| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
GI.Gtk.Objects.Spinner
Description
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. When the animation is active, the :checked pseudoclass is added to this node.
Synopsis
- newtype Spinner = Spinner (ManagedPtr Spinner)
 - class (GObject o, IsDescendantOf Spinner o) => IsSpinner o
 - toSpinner :: (MonadIO m, IsSpinner o) => o -> m Spinner
 - spinnerNew :: (HasCallStack, MonadIO m) => m Spinner
 - spinnerStart :: (HasCallStack, MonadIO m, IsSpinner a) => a -> m ()
 - spinnerStop :: (HasCallStack, MonadIO m, IsSpinner a) => a -> m ()
 - constructSpinnerActive :: (IsSpinner o, MonadIO m) => Bool -> m (GValueConstruct o)
 - getSpinnerActive :: (MonadIO m, IsSpinner o) => o -> m Bool
 - setSpinnerActive :: (MonadIO m, IsSpinner o) => o -> Bool -> m ()
 
Exported types
Memory-managed wrapper type.
Constructors
| Spinner (ManagedPtr Spinner) | 
Instances
| Eq Spinner Source # | |
| IsGValue Spinner Source # | Convert   | 
| GObject Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner Methods gobjectType :: IO GType #  | |
| HasParentTypes Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner  | |
| type ParentTypes Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner  | |
class (GObject o, IsDescendantOf Spinner o) => IsSpinner o Source #
Instances
| (GObject o, IsDescendantOf Spinner o) => IsSpinner o Source # | |
Defined in GI.Gtk.Objects.Spinner  | |
Methods
Overloaded methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Spinner | Returns: a new   | 
Returns a new spinner widget. Not yet started.
Since: 2.20
start
Arguments
| :: (HasCallStack, MonadIO m, IsSpinner a) | |
| => a | 
  | 
| -> m () | 
Starts the animation of the spinner.
Since: 2.20
stop
Arguments
| :: (HasCallStack, MonadIO m, IsSpinner a) | |
| => a | 
  | 
| -> m () | 
Stops the animation of the spinner.
Since: 2.20
Properties
active
No description available in the introspection data.
constructSpinnerActive :: (IsSpinner o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “active” property. This is rarely needed directly, but it is used by new.
getSpinnerActive :: (MonadIO m, IsSpinner o) => o -> m Bool Source #
Get the value of the “active” property.
 When overloading is enabled, this is equivalent to
get spinner #active
setSpinnerActive :: (MonadIO m, IsSpinner o) => o -> Bool -> m () Source #
Set the value of the “active” property.
 When overloading is enabled, this is equivalent to
setspinner [ #active:=value ]