Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
A GtkSpinner widget displays an icon-size spinning animation.
It is often used as an alternative to a ProgressBar
for
displaying indefinite activity, instead of actual progress.
To start the animation, use spinnerStart
, to stop it
use spinnerStop
.
CSS nodes
GtkSpinner has a single CSS node with the name spinner.
- newtype Spinner = Spinner (ManagedPtr Spinner)
- class GObject o => IsSpinner o
- toSpinner :: IsSpinner o => o -> IO Spinner
- noSpinner :: Maybe Spinner
- spinnerNew :: (HasCallStack, MonadIO m) => m Spinner
- data SpinnerStartMethodInfo
- spinnerStart :: (HasCallStack, MonadIO m, IsSpinner a) => a -> m ()
- data SpinnerStopMethodInfo
- spinnerStop :: (HasCallStack, MonadIO m, IsSpinner a) => a -> m ()
- data SpinnerActivePropertyInfo
- constructSpinnerActive :: IsSpinner o => Bool -> IO (GValueConstruct o)
- getSpinnerActive :: (MonadIO m, IsSpinner o) => o -> m Bool
- setSpinnerActive :: (MonadIO m, IsSpinner o) => o -> Bool -> m ()
- spinnerActive :: AttrLabelProxy "active"
Exported types
GObject Spinner Source # | |
IsImplementorIface Spinner Source # | |
IsObject Spinner Source # | |
IsWidget Spinner Source # | |
IsBuildable Spinner Source # | |
IsSpinner Spinner Source # | |
((~) * info (ResolveSpinnerMethod t Spinner), MethodInfo * info Spinner p) => IsLabel t (Spinner -> p) Source # | |
((~) * info (ResolveSpinnerMethod t Spinner), MethodInfo * info Spinner p) => IsLabelProxy t (Spinner -> p) Source # | |
HasAttributeList * Spinner Source # | |
type AttributeList Spinner Source # | |
type SignalList Spinner Source # | |
Methods
new
:: (HasCallStack, MonadIO m) | |
=> m Spinner | Returns: a new |
Returns a new spinner widget. Not yet started.
Since: 2.20
start
data SpinnerStartMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsSpinner a) => MethodInfo * SpinnerStartMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsSpinner a) | |
=> a |
|
-> m () |
Starts the animation of the spinner.
Since: 2.20
stop
data SpinnerStopMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsSpinner a) => MethodInfo * SpinnerStopMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsSpinner a) | |
=> a |
|
-> m () |
Stops the animation of the spinner.
Since: 2.20
Properties
active
data SpinnerActivePropertyInfo Source #
constructSpinnerActive :: IsSpinner o => Bool -> IO (GValueConstruct o) Source #
spinnerActive :: AttrLabelProxy "active" Source #