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 |
The Orientable
interface is implemented by all widgets that can be
oriented horizontally or vertically. Historically, such widgets have been
realized as subclasses of a common base class (e.g 'GI.Gtk.Objects.Box.Box'\/'GI.Gtk.Objects.HBox.HBox'\/'GI.Gtk.Objects.VBox.VBox'
or 'GI.Gtk.Objects.Scale.Scale'\/'GI.Gtk.Objects.HScale.HScale'\/'GI.Gtk.Objects.VScale.VScale'). Orientable
is more flexible in that
it allows the orientation to be changed at runtime, allowing the widgets
to “flip”.
Orientable
was introduced in GTK+ 2.16.
- newtype Orientable = Orientable (ManagedPtr Orientable)
- noOrientable :: Maybe Orientable
- class GObject o => IsOrientable o
- toOrientable :: IsOrientable o => o -> IO Orientable
- data OrientableGetOrientationMethodInfo
- orientableGetOrientation :: (HasCallStack, MonadIO m, IsOrientable a) => a -> m Orientation
- data OrientableSetOrientationMethodInfo
- orientableSetOrientation :: (HasCallStack, MonadIO m, IsOrientable a) => a -> Orientation -> m ()
- data OrientableOrientationPropertyInfo
- constructOrientableOrientation :: IsOrientable o => Orientation -> IO (GValueConstruct o)
- getOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> m Orientation
- orientableOrientation :: AttrLabelProxy "orientation"
- setOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> Orientation -> m ()
Exported types
newtype Orientable Source #
GObject Orientable Source # | |
IsObject Orientable Source # | |
IsOrientable Orientable Source # | |
((~) * info (ResolveOrientableMethod t Orientable), MethodInfo * info Orientable p) => IsLabel t (Orientable -> p) Source # | |
((~) * info (ResolveOrientableMethod t Orientable), MethodInfo * info Orientable p) => IsLabelProxy t (Orientable -> p) Source # | |
HasAttributeList * Orientable Source # | |
type AttributeList Orientable Source # | |
type SignalList Orientable Source # | |
class GObject o => IsOrientable o Source #
toOrientable :: IsOrientable o => o -> IO Orientable Source #
Methods
getOrientation
data OrientableGetOrientationMethodInfo Source #
((~) * signature (m Orientation), MonadIO m, IsOrientable a) => MethodInfo * OrientableGetOrientationMethodInfo a signature Source # | |
orientableGetOrientation Source #
:: (HasCallStack, MonadIO m, IsOrientable a) | |
=> a |
|
-> m Orientation | Returns: the orientation of the |
Retrieves the orientation of the orientable
.
Since: 2.16
setOrientation
data OrientableSetOrientationMethodInfo Source #
((~) * signature (Orientation -> m ()), MonadIO m, IsOrientable a) => MethodInfo * OrientableSetOrientationMethodInfo a signature Source # | |
orientableSetOrientation Source #
:: (HasCallStack, MonadIO m, IsOrientable a) | |
=> a |
|
-> Orientation |
|
-> m () |
Sets the orientation of the orientable
.
Since: 2.16
Properties
orientation
data OrientableOrientationPropertyInfo Source #
constructOrientableOrientation :: IsOrientable o => Orientation -> IO (GValueConstruct o) Source #
getOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> m Orientation Source #
orientableOrientation :: AttrLabelProxy "orientation" Source #
setOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> Orientation -> m () Source #