| 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
- spinnerGetSpinning :: (HasCallStack, MonadIO m, IsSpinner a) => a -> m Bool
- spinnerNew :: (HasCallStack, MonadIO m) => m Spinner
- spinnerSetSpinning :: (HasCallStack, MonadIO m, IsSpinner a) => a -> Bool -> m ()
- spinnerStart :: (HasCallStack, MonadIO m, IsSpinner a) => a -> m ()
- spinnerStop :: (HasCallStack, MonadIO m, IsSpinner a) => a -> m ()
- constructSpinnerSpinning :: (IsSpinner o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSpinnerSpinning :: (MonadIO m, IsSpinner o) => o -> m Bool
- setSpinnerSpinning :: (MonadIO m, IsSpinner o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
| Eq Spinner Source # | |
| GObject Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner | |
| ManagedPtrNewtype Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner Methods toManagedPtr :: Spinner -> ManagedPtr Spinner | |
| TypedObject Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner Methods glibType :: IO GType | |
| IsGValue Spinner Source # | Convert |
Defined in GI.Gtk.Objects.Spinner | |
| 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
getSpinning
Arguments
| :: (HasCallStack, MonadIO m, IsSpinner a) | |
| => a |
|
| -> m Bool | Returns: |
Returns whether the spinner is spinning.
new
Returns a new spinner widget. Not yet started.
setSpinning
Arguments
| :: (HasCallStack, MonadIO m, IsSpinner a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets the activity of the spinner.
start
Starts the animation of the spinner.
stop
Stops the animation of the spinner.
Properties
spinning
No description available in the introspection data.
constructSpinnerSpinning :: (IsSpinner o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “spinning” property. This is rarely needed directly, but it is used by new.
getSpinnerSpinning :: (MonadIO m, IsSpinner o) => o -> m Bool Source #
Get the value of the “spinning” property.
When overloading is enabled, this is equivalent to
get spinner #spinning
setSpinnerSpinning :: (MonadIO m, IsSpinner o) => o -> Bool -> m () Source #
Set the value of the “spinning” property.
When overloading is enabled, this is equivalent to
setspinner [ #spinning:=value ]