gi-gtk-4.0.4: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Interfaces.Orientable

Description

The Orientable interface is implemented by all widgets that can be oriented horizontally or vertically. Orientable is more flexible in that it allows the orientation to be changed at runtime, allowing the widgets to “flip”.

Synopsis

Exported types

newtype Orientable Source #

Memory-managed wrapper type.

Constructors

Orientable (ManagedPtr Orientable) 

Instances

Instances details
Eq Orientable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Orientable

GObject Orientable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Orientable

ManagedPtrNewtype Orientable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Orientable

Methods

toManagedPtr :: Orientable -> ManagedPtr Orientable

TypedObject Orientable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Orientable

Methods

glibType :: IO GType

HasParentTypes Orientable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Orientable

IsGValue (Maybe Orientable) Source #

Convert Orientable to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Interfaces.Orientable

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Orientable -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Orientable)

type ParentTypes Orientable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Orientable

type ParentTypes Orientable = '[Object]

class (GObject o, IsDescendantOf Orientable o) => IsOrientable o Source #

Type class for types which can be safely cast to Orientable, for instance with toOrientable.

Instances

Instances details
(GObject o, IsDescendantOf Orientable o) => IsOrientable o Source # 
Instance details

Defined in GI.Gtk.Interfaces.Orientable

toOrientable :: (MonadIO m, IsOrientable o) => o -> m Orientable Source #

Cast to Orientable, for types for which this is known to be safe. For general casts, use castTo.

Methods

getOrientation

orientableGetOrientation Source #

Arguments

:: (HasCallStack, MonadIO m, IsOrientable a) 
=> a

orientable: a Orientable

-> m Orientation

Returns: the orientation of the orientable.

Retrieves the orientation of the orientable.

setOrientation

orientableSetOrientation Source #

Arguments

:: (HasCallStack, MonadIO m, IsOrientable a) 
=> a

orientable: a Orientable

-> Orientation

orientation: the orientable’s new orientation.

-> m () 

Sets the orientation of the orientable.

Properties

orientation

The orientation of the orientable.

constructOrientableOrientation :: (IsOrientable o, MonadIO m) => Orientation -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “orientation” property. This is rarely needed directly, but it is used by new.

getOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> m Orientation Source #

Get the value of the “orientation” property. When overloading is enabled, this is equivalent to

get orientable #orientation

setOrientableOrientation :: (MonadIO m, IsOrientable o) => o -> Orientation -> m () Source #

Set the value of the “orientation” property. When overloading is enabled, this is equivalent to

set orientable [ #orientation := value ]