gi-gtk-3.0.22: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Interfaces.Orientable

Contents

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.

Synopsis

Exported types

class GObject o => IsOrientable o Source #

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

Instances

(GObject a, UnknownAncestorError Constraint Orientable a) => IsOrientable a Source # 
IsOrientable SpinButton Source # 
IsOrientable Separator Source # 
IsOrientable Scrollbar Source # 
IsOrientable ScaleButton Source # 
IsOrientable Scale Source # 
IsOrientable Range Source # 
IsOrientable Paned Source # 
IsOrientable FlowBox Source # 
IsOrientable ButtonBox Source # 
IsOrientable Box Source # 
IsOrientable Orientable Source # 
IsOrientable CellRendererProgress Source # 
IsOrientable CellAreaBox Source # 
IsOrientable CellView Source # 
IsOrientable ColorChooserWidget Source # 
IsOrientable ColorSelection Source # 
IsOrientable FontChooserWidget Source # 
IsOrientable FontSelection Source # 
IsOrientable HBox Source # 
IsOrientable HButtonBox Source # 
IsOrientable HPaned Source # 
IsOrientable HScale Source # 
IsOrientable HScrollbar Source # 
IsOrientable HSeparator Source # 
IsOrientable ProgressBar Source # 
IsOrientable RecentChooserWidget Source # 
IsOrientable ShortcutLabel Source # 
IsOrientable ShortcutsGroup Source # 
IsOrientable ShortcutsSection Source # 
IsOrientable StackSwitcher Source # 
IsOrientable Statusbar Source # 
IsOrientable VBox Source # 
IsOrientable VButtonBox Source # 
IsOrientable VPaned Source # 
IsOrientable VScale Source # 
IsOrientable VScrollbar Source # 
IsOrientable VSeparator Source # 
IsOrientable AppChooserWidget Source # 
IsOrientable VolumeButton Source # 
IsOrientable FileChooserButton Source # 
IsOrientable FileChooserWidget Source # 
IsOrientable Grid Source # 
IsOrientable InfoBar Source # 
IsOrientable LevelBar Source # 
IsOrientable ShortcutsShortcut Source # 
IsOrientable ToolPalette Source # 
IsOrientable Toolbar Source # 

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.

Since: 2.16

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.

Since: 2.16

Properties

orientation

The orientation of the orientable.

Since: 2.16

constructOrientableOrientation :: IsOrientable o => Orientation -> IO (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 ]