gi-gtk-3.0.11: 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.Objects.Misc

Contents

Description

The Misc widget is an abstract widget which is not useful itself, but is used to derive subclasses which have alignment and padding attributes.

The horizontal and vertical padding attributes allows extra space to be added around the widget.

The horizontal and vertical alignment attributes enable the widget to be positioned within its allocated area. Note that if the widget is added to a container in such a way that it expands automatically to fill its allocated area, the alignment settings will not alter the widget's position.

Note that the desired effect can in most cases be achieved by using the Widget:halign, Widget:valign and Widget:margin properties on the child widget, so GtkMisc should not be used in new code. To reflect this fact, all Misc API has been deprecated.

Synopsis

Exported types

newtype Misc Source #

Constructors

Misc (ManagedPtr Misc) 

Instances

GObject Misc Source # 

Methods

gobjectType :: Misc -> IO GType #

IsImplementorIface Misc Source # 
IsObject Misc Source # 
IsWidget Misc Source # 
IsMisc Misc Source # 
IsBuildable Misc Source # 
((~) * info (ResolveMiscMethod t Misc), MethodInfo * info Misc p) => IsLabel t (Misc -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Misc -> p #

((~) * info (ResolveMiscMethod t Misc), MethodInfo * info Misc p) => IsLabelProxy t (Misc -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Misc -> p #

HasAttributeList * Misc Source # 
type AttributeList Misc Source # 
type SignalList Misc Source # 

toMisc :: IsMisc o => o -> IO Misc Source #

Methods

getAlignment

data MiscGetAlignmentMethodInfo Source #

Instances

((~) * signature (m (Float, Float)), MonadIO m, IsMisc a) => MethodInfo * MiscGetAlignmentMethodInfo a signature Source # 

miscGetAlignment Source #

Arguments

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

misc: a Misc

-> m (Float, Float) 

Deprecated: (Since version 3.14)Use Widget alignment and margin properties.

Gets the X and Y alignment of the widget within its allocation. See miscSetAlignment.

getPadding

data MiscGetPaddingMethodInfo Source #

Instances

((~) * signature (m (Int32, Int32)), MonadIO m, IsMisc a) => MethodInfo * MiscGetPaddingMethodInfo a signature Source # 

miscGetPadding Source #

Arguments

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

misc: a Misc

-> m (Int32, Int32) 

Deprecated: (Since version 3.14)Use Widget alignment and margin properties.

Gets the padding in the X and Y directions of the widget. See miscSetPadding.

setAlignment

data MiscSetAlignmentMethodInfo Source #

Instances

((~) * signature (Float -> Float -> m ()), MonadIO m, IsMisc a) => MethodInfo * MiscSetAlignmentMethodInfo a signature Source # 

miscSetAlignment Source #

Arguments

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

misc: a Misc.

-> Float

xalign: the horizontal alignment, from 0 (left) to 1 (right).

-> Float

yalign: the vertical alignment, from 0 (top) to 1 (bottom).

-> m () 

Deprecated: (Since version 3.14)Use 'GI.Gtk.Objects.Widget.Widget'\'s alignment (Widget:halign and Widget:valign) and margin properties or 'GI.Gtk.Objects.Label.Label'\'s Label:xalign and Label:yalign properties.

Sets the alignment of the widget.

setPadding

data MiscSetPaddingMethodInfo Source #

Instances

((~) * signature (Int32 -> Int32 -> m ()), MonadIO m, IsMisc a) => MethodInfo * MiscSetPaddingMethodInfo a signature Source # 

miscSetPadding Source #

Arguments

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

misc: a Misc.

-> Int32

xpad: the amount of space to add on the left and right of the widget, in pixels.

-> Int32

ypad: the amount of space to add on the top and bottom of the widget, in pixels.

-> m () 

Deprecated: (Since version 3.14)Use Widget alignment and margin properties.

Sets the amount of space to add around the widget.

Properties

xalign

data MiscXalignPropertyInfo Source #

Instances

AttrInfo MiscXalignPropertyInfo Source # 
type AttrOrigin MiscXalignPropertyInfo Source # 
type AttrLabel MiscXalignPropertyInfo Source # 
type AttrGetType MiscXalignPropertyInfo Source # 
type AttrBaseTypeConstraint MiscXalignPropertyInfo Source # 
type AttrSetTypeConstraint MiscXalignPropertyInfo Source # 
type AttrAllowedOps MiscXalignPropertyInfo Source # 

setMiscXalign :: (MonadIO m, IsMisc o) => o -> Float -> m () Source #

xpad

data MiscXpadPropertyInfo Source #

Instances

AttrInfo MiscXpadPropertyInfo Source # 
type AttrOrigin MiscXpadPropertyInfo Source # 
type AttrLabel MiscXpadPropertyInfo Source # 
type AttrGetType MiscXpadPropertyInfo Source # 
type AttrBaseTypeConstraint MiscXpadPropertyInfo Source # 
type AttrSetTypeConstraint MiscXpadPropertyInfo Source # 
type AttrAllowedOps MiscXpadPropertyInfo Source # 

getMiscXpad :: (MonadIO m, IsMisc o) => o -> m Int32 Source #

setMiscXpad :: (MonadIO m, IsMisc o) => o -> Int32 -> m () Source #

yalign

data MiscYalignPropertyInfo Source #

Instances

AttrInfo MiscYalignPropertyInfo Source # 
type AttrOrigin MiscYalignPropertyInfo Source # 
type AttrLabel MiscYalignPropertyInfo Source # 
type AttrGetType MiscYalignPropertyInfo Source # 
type AttrBaseTypeConstraint MiscYalignPropertyInfo Source # 
type AttrSetTypeConstraint MiscYalignPropertyInfo Source # 
type AttrAllowedOps MiscYalignPropertyInfo Source # 

setMiscYalign :: (MonadIO m, IsMisc o) => o -> Float -> m () Source #

ypad

data MiscYpadPropertyInfo Source #

Instances

AttrInfo MiscYpadPropertyInfo Source # 
type AttrOrigin MiscYpadPropertyInfo Source # 
type AttrLabel MiscYpadPropertyInfo Source # 
type AttrGetType MiscYpadPropertyInfo Source # 
type AttrBaseTypeConstraint MiscYpadPropertyInfo Source # 
type AttrSetTypeConstraint MiscYpadPropertyInfo Source # 
type AttrAllowedOps MiscYpadPropertyInfo Source # 

getMiscYpad :: (MonadIO m, IsMisc o) => o -> m Int32 Source #

setMiscYpad :: (MonadIO m, IsMisc o) => o -> Int32 -> m () Source #