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.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.
- newtype Misc = Misc (ManagedPtr Misc)
- class GObject o => IsMisc o
- toMisc :: IsMisc o => o -> IO Misc
- noMisc :: Maybe Misc
- data MiscGetAlignmentMethodInfo
- miscGetAlignment :: (HasCallStack, MonadIO m, IsMisc a) => a -> m (Float, Float)
- data MiscGetPaddingMethodInfo
- miscGetPadding :: (HasCallStack, MonadIO m, IsMisc a) => a -> m (Int32, Int32)
- data MiscSetAlignmentMethodInfo
- miscSetAlignment :: (HasCallStack, MonadIO m, IsMisc a) => a -> Float -> Float -> m ()
- data MiscSetPaddingMethodInfo
- miscSetPadding :: (HasCallStack, MonadIO m, IsMisc a) => a -> Int32 -> Int32 -> m ()
- data MiscXalignPropertyInfo
- constructMiscXalign :: IsMisc o => Float -> IO (GValueConstruct o)
- getMiscXalign :: (MonadIO m, IsMisc o) => o -> m Float
- miscXalign :: AttrLabelProxy "xalign"
- setMiscXalign :: (MonadIO m, IsMisc o) => o -> Float -> m ()
- data MiscXpadPropertyInfo
- constructMiscXpad :: IsMisc o => Int32 -> IO (GValueConstruct o)
- getMiscXpad :: (MonadIO m, IsMisc o) => o -> m Int32
- miscXpad :: AttrLabelProxy "xpad"
- setMiscXpad :: (MonadIO m, IsMisc o) => o -> Int32 -> m ()
- data MiscYalignPropertyInfo
- constructMiscYalign :: IsMisc o => Float -> IO (GValueConstruct o)
- getMiscYalign :: (MonadIO m, IsMisc o) => o -> m Float
- miscYalign :: AttrLabelProxy "yalign"
- setMiscYalign :: (MonadIO m, IsMisc o) => o -> Float -> m ()
- data MiscYpadPropertyInfo
- constructMiscYpad :: IsMisc o => Int32 -> IO (GValueConstruct o)
- getMiscYpad :: (MonadIO m, IsMisc o) => o -> m Int32
- miscYpad :: AttrLabelProxy "ypad"
- setMiscYpad :: (MonadIO m, IsMisc o) => o -> Int32 -> m ()
Exported types
Constructors
Misc (ManagedPtr Misc) |
Instances
GObject Misc Source # | |
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 # | |
((~) * info (ResolveMiscMethod t Misc), MethodInfo * info Misc p) => IsLabelProxy t (Misc -> p) Source # | |
HasAttributeList * Misc Source # | |
type AttributeList Misc Source # | |
type SignalList Misc Source # | |
Methods
getAlignment
data MiscGetAlignmentMethodInfo Source #
Instances
((~) * signature (m (Float, Float)), MonadIO m, IsMisc a) => MethodInfo * MiscGetAlignmentMethodInfo a signature Source # | |
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 # | |
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 # | |
setPadding
data MiscSetPaddingMethodInfo Source #
Instances
((~) * signature (Int32 -> Int32 -> m ()), MonadIO m, IsMisc a) => MethodInfo * MiscSetPaddingMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsMisc a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> 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
constructMiscXalign :: IsMisc o => Float -> IO (GValueConstruct o) Source #
miscXalign :: AttrLabelProxy "xalign" Source #
xpad
data MiscXpadPropertyInfo Source #
Instances
constructMiscXpad :: IsMisc o => Int32 -> IO (GValueConstruct o) Source #
miscXpad :: AttrLabelProxy "xpad" Source #
yalign
data MiscYalignPropertyInfo Source #
Instances
constructMiscYalign :: IsMisc o => Float -> IO (GValueConstruct o) Source #
miscYalign :: AttrLabelProxy "yalign" Source #
ypad
data MiscYpadPropertyInfo Source #
Instances
constructMiscYpad :: IsMisc o => Int32 -> IO (GValueConstruct o) Source #
miscYpad :: AttrLabelProxy "ypad" Source #