| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Handy.Objects.Leaflet
Contents
- Exported types
- Methods
- getChildTransitionDuration
- getChildTransitionRunning
- getChildTransitionType
- getFold
- getHomogeneous
- getInterpolateSize
- getModeTransitionDuration
- getModeTransitionType
- getVisibleChild
- getVisibleChildName
- new
- setChildTransitionDuration
- setChildTransitionType
- setHomogeneous
- setInterpolateSize
- setModeTransitionDuration
- setModeTransitionType
- setVisibleChild
- setVisibleChildName
- Properties
Description
No description available in the introspection data.
Synopsis
- newtype Leaflet = Leaflet (ManagedPtr Leaflet)
- class (GObject o, IsDescendantOf Leaflet o) => IsLeaflet o
- toLeaflet :: (MonadIO m, IsLeaflet o) => o -> m Leaflet
- noLeaflet :: Maybe Leaflet
- leafletGetChildTransitionDuration :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Word32
- leafletGetChildTransitionRunning :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Bool
- leafletGetChildTransitionType :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m LeafletChildTransitionType
- leafletGetFold :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Fold
- leafletGetHomogeneous :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> Fold -> Orientation -> m Bool
- leafletGetInterpolateSize :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Bool
- leafletGetModeTransitionDuration :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Word32
- leafletGetModeTransitionType :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m LeafletModeTransitionType
- leafletGetVisibleChild :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Widget
- leafletGetVisibleChildName :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Text
- leafletNew :: (HasCallStack, MonadIO m) => m Leaflet
- leafletSetChildTransitionDuration :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> Word32 -> m ()
- leafletSetChildTransitionType :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> LeafletChildTransitionType -> m ()
- leafletSetHomogeneous :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> Fold -> Orientation -> Bool -> m ()
- leafletSetInterpolateSize :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> Bool -> m ()
- leafletSetModeTransitionDuration :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> Word32 -> m ()
- leafletSetModeTransitionType :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> LeafletModeTransitionType -> m ()
- leafletSetVisibleChild :: (HasCallStack, MonadIO m, IsLeaflet a, IsWidget b) => a -> b -> m ()
- leafletSetVisibleChildName :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> Text -> m ()
- constructLeafletChildTransitionDuration :: IsLeaflet o => Word32 -> IO (GValueConstruct o)
- getLeafletChildTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> m Word32
- setLeafletChildTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> Word32 -> m ()
- getLeafletChildTransitionRunning :: (MonadIO m, IsLeaflet o) => o -> m Bool
- constructLeafletChildTransitionType :: IsLeaflet o => LeafletChildTransitionType -> IO (GValueConstruct o)
- getLeafletChildTransitionType :: (MonadIO m, IsLeaflet o) => o -> m LeafletChildTransitionType
- setLeafletChildTransitionType :: (MonadIO m, IsLeaflet o) => o -> LeafletChildTransitionType -> m ()
- getLeafletFold :: (MonadIO m, IsLeaflet o) => o -> m Fold
- getLeafletFolded :: (MonadIO m, IsLeaflet o) => o -> m Bool
- constructLeafletHhomogeneousFolded :: IsLeaflet o => Bool -> IO (GValueConstruct o)
- getLeafletHhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> m Bool
- setLeafletHhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m ()
- constructLeafletHhomogeneousUnfolded :: IsLeaflet o => Bool -> IO (GValueConstruct o)
- getLeafletHhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> m Bool
- setLeafletHhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m ()
- constructLeafletInterpolateSize :: IsLeaflet o => Bool -> IO (GValueConstruct o)
- getLeafletInterpolateSize :: (MonadIO m, IsLeaflet o) => o -> m Bool
- setLeafletInterpolateSize :: (MonadIO m, IsLeaflet o) => o -> Bool -> m ()
- constructLeafletModeTransitionDuration :: IsLeaflet o => Word32 -> IO (GValueConstruct o)
- getLeafletModeTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> m Word32
- setLeafletModeTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> Word32 -> m ()
- constructLeafletModeTransitionType :: IsLeaflet o => LeafletModeTransitionType -> IO (GValueConstruct o)
- getLeafletModeTransitionType :: (MonadIO m, IsLeaflet o) => o -> m LeafletModeTransitionType
- setLeafletModeTransitionType :: (MonadIO m, IsLeaflet o) => o -> LeafletModeTransitionType -> m ()
- constructLeafletVhomogeneousFolded :: IsLeaflet o => Bool -> IO (GValueConstruct o)
- getLeafletVhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> m Bool
- setLeafletVhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m ()
- constructLeafletVhomogeneousUnfolded :: IsLeaflet o => Bool -> IO (GValueConstruct o)
- getLeafletVhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> m Bool
- setLeafletVhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m ()
- constructLeafletVisibleChild :: (IsLeaflet o, IsWidget a) => a -> IO (GValueConstruct o)
- getLeafletVisibleChild :: (MonadIO m, IsLeaflet o) => o -> m Widget
- setLeafletVisibleChild :: (MonadIO m, IsLeaflet o, IsWidget a) => o -> a -> m ()
- constructLeafletVisibleChildName :: IsLeaflet o => Text -> IO (GValueConstruct o)
- getLeafletVisibleChildName :: (MonadIO m, IsLeaflet o) => o -> m Text
- setLeafletVisibleChildName :: (MonadIO m, IsLeaflet o) => o -> Text -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| Leaflet (ManagedPtr Leaflet) |
Instances
| GObject Leaflet Source # | |
Defined in GI.Handy.Objects.Leaflet Methods gobjectType :: IO GType # | |
| HasParentTypes Leaflet Source # | |
Defined in GI.Handy.Objects.Leaflet | |
| type ParentTypes Leaflet Source # | |
Defined in GI.Handy.Objects.Leaflet type ParentTypes Leaflet = Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': (Orientable ': ([] :: [Type])))))) | |
class (GObject o, IsDescendantOf Leaflet o) => IsLeaflet o Source #
Instances
| (GObject o, IsDescendantOf Leaflet o) => IsLeaflet o Source # | |
Defined in GI.Handy.Objects.Leaflet | |
Methods
getChildTransitionDuration
leafletGetChildTransitionDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m Word32 | Returns: the mode transition duration |
Returns the amount of time (in milliseconds) that
transitions between children in self will take.
getChildTransitionRunning
leafletGetChildTransitionRunning Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m Bool | Returns: |
Returns whether self is currently in a transition from one page to
another.
getChildTransitionType
leafletGetChildTransitionType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m LeafletChildTransitionType | Returns: the current mode transition type of |
Gets the type of animation that will be used
for transitions between modes in self.
getFold
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m Fold | Returns: the fold of |
Gets the fold of self.
getHomogeneous
leafletGetHomogeneous Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> Fold |
|
| -> Orientation |
|
| -> m Bool | Returns: whether |
Gets whether self is homogeneous for the given fold and orientation.
See leafletSetHomogeneous.
getInterpolateSize
leafletGetInterpolateSize Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m Bool | Returns: |
Returns wether the Leaflet is set up to interpolate between
the sizes of children on page switch.
getModeTransitionDuration
leafletGetModeTransitionDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m Word32 | Returns: the mode transition duration |
Returns the amount of time (in milliseconds) that
transitions between modes in self will take.
getModeTransitionType
leafletGetModeTransitionType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m LeafletModeTransitionType | Returns: the current mode transition type of |
Gets the type of animation that will be used
for transitions between modes in self.
getVisibleChild
leafletGetVisibleChild Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> m Widget | Returns: the visible child widget |
Get the visible child widget.
getVisibleChildName
leafletGetVisibleChildName :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> m Text Source #
No description available in the introspection data.
new
leafletNew :: (HasCallStack, MonadIO m) => m Leaflet Source #
No description available in the introspection data.
setChildTransitionDuration
leafletSetChildTransitionDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Sets the duration that transitions between children in self
will take.
setChildTransitionType
leafletSetChildTransitionType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> LeafletChildTransitionType |
|
| -> m () |
Sets the type of animation that will be used for
transitions between children in self.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode that is about to become current.
setHomogeneous
leafletSetHomogeneous Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> Fold |
|
| -> Orientation |
|
| -> Bool |
|
| -> m () |
Sets the Leaflet to be homogeneous or not for the given fold and orientation.
If it is homogeneous, the Leaflet will request the same
width or height for all its children depending on the orientation.
If it isn't and it is folded, the leaflet may change width or height
when a different child becomes visible.
setInterpolateSize
leafletSetInterpolateSize Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> Bool |
|
| -> m () |
setModeTransitionDuration
leafletSetModeTransitionDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Sets the duration that transitions between modes in self
will take.
setModeTransitionType
leafletSetModeTransitionType Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLeaflet a) | |
| => a |
|
| -> LeafletModeTransitionType |
|
| -> m () |
Sets the type of animation that will be used for
transitions between modes in self.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode that is about to become current.
setVisibleChild
leafletSetVisibleChild :: (HasCallStack, MonadIO m, IsLeaflet a, IsWidget b) => a -> b -> m () Source #
No description available in the introspection data.
setVisibleChildName
leafletSetVisibleChildName :: (HasCallStack, MonadIO m, IsLeaflet a) => a -> Text -> m () Source #
No description available in the introspection data.
Properties
childTransitionDuration
No description available in the introspection data.
constructLeafletChildTransitionDuration :: IsLeaflet o => Word32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “child-transition-duration” property. This is rarely needed directly, but it is used by new.
getLeafletChildTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> m Word32 Source #
Get the value of the “child-transition-duration” property.
When overloading is enabled, this is equivalent to
get leaflet #childTransitionDuration
setLeafletChildTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> Word32 -> m () Source #
Set the value of the “child-transition-duration” property.
When overloading is enabled, this is equivalent to
setleaflet [ #childTransitionDuration:=value ]
childTransitionRunning
No description available in the introspection data.
getLeafletChildTransitionRunning :: (MonadIO m, IsLeaflet o) => o -> m Bool Source #
Get the value of the “child-transition-running” property.
When overloading is enabled, this is equivalent to
get leaflet #childTransitionRunning
childTransitionType
No description available in the introspection data.
constructLeafletChildTransitionType :: IsLeaflet o => LeafletChildTransitionType -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “child-transition-type” property. This is rarely needed directly, but it is used by new.
getLeafletChildTransitionType :: (MonadIO m, IsLeaflet o) => o -> m LeafletChildTransitionType Source #
Get the value of the “child-transition-type” property.
When overloading is enabled, this is equivalent to
get leaflet #childTransitionType
setLeafletChildTransitionType :: (MonadIO m, IsLeaflet o) => o -> LeafletChildTransitionType -> m () Source #
Set the value of the “child-transition-type” property.
When overloading is enabled, this is equivalent to
setleaflet [ #childTransitionType:=value ]
fold
The fold of the leaflet.
The leaflet will be folded if the size allocated to it is smaller than the sum of the natural size of its children, it will be unfolded otherwise.
See also: Leaflet:folded.
getLeafletFold :: (MonadIO m, IsLeaflet o) => o -> m Fold Source #
Get the value of the “fold” property.
When overloading is enabled, this is equivalent to
get leaflet #fold
folded
True if the leaflet is folded.
This is similar to the Leaflet:fold property but expressed as a
Bool rather than a GEnum. This makes it convenient to bind the
Leaflet:fold of a leaflet to any other Bool property of other
'GI.GObject.Objects.Object.Object'\'s using g_object_bind_property().
getLeafletFolded :: (MonadIO m, IsLeaflet o) => o -> m Bool Source #
Get the value of the “folded” property.
When overloading is enabled, this is equivalent to
get leaflet #folded
hhomogeneousFolded
No description available in the introspection data.
constructLeafletHhomogeneousFolded :: IsLeaflet o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “hhomogeneous-folded” property. This is rarely needed directly, but it is used by new.
getLeafletHhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> m Bool Source #
Get the value of the “hhomogeneous-folded” property.
When overloading is enabled, this is equivalent to
get leaflet #hhomogeneousFolded
setLeafletHhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m () Source #
Set the value of the “hhomogeneous-folded” property.
When overloading is enabled, this is equivalent to
setleaflet [ #hhomogeneousFolded:=value ]
hhomogeneousUnfolded
No description available in the introspection data.
constructLeafletHhomogeneousUnfolded :: IsLeaflet o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “hhomogeneous-unfolded” property. This is rarely needed directly, but it is used by new.
getLeafletHhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> m Bool Source #
Get the value of the “hhomogeneous-unfolded” property.
When overloading is enabled, this is equivalent to
get leaflet #hhomogeneousUnfolded
setLeafletHhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m () Source #
Set the value of the “hhomogeneous-unfolded” property.
When overloading is enabled, this is equivalent to
setleaflet [ #hhomogeneousUnfolded:=value ]
interpolateSize
No description available in the introspection data.
constructLeafletInterpolateSize :: IsLeaflet o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “interpolate-size” property. This is rarely needed directly, but it is used by new.
getLeafletInterpolateSize :: (MonadIO m, IsLeaflet o) => o -> m Bool Source #
Get the value of the “interpolate-size” property.
When overloading is enabled, this is equivalent to
get leaflet #interpolateSize
setLeafletInterpolateSize :: (MonadIO m, IsLeaflet o) => o -> Bool -> m () Source #
Set the value of the “interpolate-size” property.
When overloading is enabled, this is equivalent to
setleaflet [ #interpolateSize:=value ]
modeTransitionDuration
No description available in the introspection data.
constructLeafletModeTransitionDuration :: IsLeaflet o => Word32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “mode-transition-duration” property. This is rarely needed directly, but it is used by new.
getLeafletModeTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> m Word32 Source #
Get the value of the “mode-transition-duration” property.
When overloading is enabled, this is equivalent to
get leaflet #modeTransitionDuration
setLeafletModeTransitionDuration :: (MonadIO m, IsLeaflet o) => o -> Word32 -> m () Source #
Set the value of the “mode-transition-duration” property.
When overloading is enabled, this is equivalent to
setleaflet [ #modeTransitionDuration:=value ]
modeTransitionType
No description available in the introspection data.
constructLeafletModeTransitionType :: IsLeaflet o => LeafletModeTransitionType -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “mode-transition-type” property. This is rarely needed directly, but it is used by new.
getLeafletModeTransitionType :: (MonadIO m, IsLeaflet o) => o -> m LeafletModeTransitionType Source #
Get the value of the “mode-transition-type” property.
When overloading is enabled, this is equivalent to
get leaflet #modeTransitionType
setLeafletModeTransitionType :: (MonadIO m, IsLeaflet o) => o -> LeafletModeTransitionType -> m () Source #
Set the value of the “mode-transition-type” property.
When overloading is enabled, this is equivalent to
setleaflet [ #modeTransitionType:=value ]
vhomogeneousFolded
No description available in the introspection data.
constructLeafletVhomogeneousFolded :: IsLeaflet o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “vhomogeneous-folded” property. This is rarely needed directly, but it is used by new.
getLeafletVhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> m Bool Source #
Get the value of the “vhomogeneous-folded” property.
When overloading is enabled, this is equivalent to
get leaflet #vhomogeneousFolded
setLeafletVhomogeneousFolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m () Source #
Set the value of the “vhomogeneous-folded” property.
When overloading is enabled, this is equivalent to
setleaflet [ #vhomogeneousFolded:=value ]
vhomogeneousUnfolded
No description available in the introspection data.
constructLeafletVhomogeneousUnfolded :: IsLeaflet o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “vhomogeneous-unfolded” property. This is rarely needed directly, but it is used by new.
getLeafletVhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> m Bool Source #
Get the value of the “vhomogeneous-unfolded” property.
When overloading is enabled, this is equivalent to
get leaflet #vhomogeneousUnfolded
setLeafletVhomogeneousUnfolded :: (MonadIO m, IsLeaflet o) => o -> Bool -> m () Source #
Set the value of the “vhomogeneous-unfolded” property.
When overloading is enabled, this is equivalent to
setleaflet [ #vhomogeneousUnfolded:=value ]
visibleChild
No description available in the introspection data.
constructLeafletVisibleChild :: (IsLeaflet o, IsWidget a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “visible-child” property. This is rarely needed directly, but it is used by new.
getLeafletVisibleChild :: (MonadIO m, IsLeaflet o) => o -> m Widget Source #
Get the value of the “visible-child” property.
When overloading is enabled, this is equivalent to
get leaflet #visibleChild
setLeafletVisibleChild :: (MonadIO m, IsLeaflet o, IsWidget a) => o -> a -> m () Source #
Set the value of the “visible-child” property.
When overloading is enabled, this is equivalent to
setleaflet [ #visibleChild:=value ]
visibleChildName
No description available in the introspection data.
constructLeafletVisibleChildName :: IsLeaflet o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “visible-child-name” property. This is rarely needed directly, but it is used by new.
getLeafletVisibleChildName :: (MonadIO m, IsLeaflet o) => o -> m Text Source #
Get the value of the “visible-child-name” property.
When overloading is enabled, this is equivalent to
get leaflet #visibleChildName
setLeafletVisibleChildName :: (MonadIO m, IsLeaflet o) => o -> Text -> m () Source #
Set the value of the “visible-child-name” property.
When overloading is enabled, this is equivalent to
setleaflet [ #visibleChildName:=value ]