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 |
GI.Gtk.Interfaces.Orientable
Description
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 :: (MonadIO m, IsOrientable o) => o -> m Orientable
- orientableGetOrientation :: (HasCallStack, MonadIO m, IsOrientable a) => a -> m Orientation
- orientableSetOrientation :: (HasCallStack, MonadIO m, IsOrientable a) => a -> Orientation -> m ()
- constructOrientableOrientation :: IsOrientable o => Orientation -> IO (GValueConstruct o)
- getOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> m Orientation
- setOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> Orientation -> m ()
Exported types
class GObject o => IsOrientable o Source #
Instances
toOrientable :: (MonadIO m, IsOrientable o) => o -> m Orientable Source #
Methods
getOrientation
orientableGetOrientation Source #
Arguments
:: (HasCallStack, MonadIO m, IsOrientable a) | |
=> a |
|
-> m Orientation | Returns: the orientation of the |
Retrieves the orientation of the orientable
.
Since: 2.16
setOrientation
orientableSetOrientation Source #
Arguments
:: (HasCallStack, MonadIO m, IsOrientable a) | |
=> a |
|
-> Orientation |
|
-> m () |
Sets the orientation of the orientable
.
Since: 2.16
Properties
orientation
constructOrientableOrientation :: IsOrientable o => Orientation -> IO (GValueConstruct o) Source #
getOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> m Orientation Source #
setOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> Orientation -> m () Source #