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. When the animation is active, the :checked pseudoclass is added to this node.
Synopsis
- newtype Spinner = Spinner (ManagedPtr Spinner)
- class GObject o => IsSpinner o
- toSpinner :: (MonadIO m, IsSpinner o) => o -> m Spinner
- noSpinner :: Maybe 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 => Bool -> IO (GValueConstruct o)
- getSpinnerActive :: (MonadIO m, IsSpinner o) => o -> m Bool
- setSpinnerActive :: (MonadIO m, IsSpinner o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
GObject Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner gobjectType :: Spinner -> IO GType # | |
IsImplementorIface Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner | |
IsObject Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner | |
IsBuildable Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner | |
IsWidget Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner | |
IsSpinner Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner |
class GObject o => IsSpinner o Source #
Instances
(GObject a, (UnknownAncestorError Spinner a :: Constraint)) => IsSpinner a Source # | |
Defined in GI.Gtk.Objects.Spinner | |
IsSpinner Spinner Source # | |
Defined in GI.Gtk.Objects.Spinner |
Methods
new
:: (HasCallStack, MonadIO m) | |
=> m Spinner | Returns: a new |
Returns a new spinner widget. Not yet started.
Since: 2.20
start
:: (HasCallStack, MonadIO m, IsSpinner a) | |
=> a |
|
-> m () |
Starts the animation of the spinner.
Since: 2.20
stop
:: (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 => Bool -> IO (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
set
spinner [ #active:=
value ]