Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GtkCustomLayout
uses closures for size negotiation.
A GtkCustomLayout
uses closures matching to the old GtkWidget
virtual functions for size negotiation, as a convenience API to
ease the porting towards the corresponding `GtkLayoutManager
virtual functions.
Synopsis
- newtype CustomLayout = CustomLayout (ManagedPtr CustomLayout)
- class (GObject o, IsDescendantOf CustomLayout o) => IsCustomLayout o
- toCustomLayout :: (MonadIO m, IsCustomLayout o) => o -> m CustomLayout
- customLayoutNew :: (HasCallStack, MonadIO m) => Maybe CustomRequestModeFunc -> CustomMeasureFunc -> CustomAllocateFunc -> m CustomLayout
Exported types
newtype CustomLayout Source #
Memory-managed wrapper type.
CustomLayout (ManagedPtr CustomLayout) |
Instances
Eq CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout (==) :: CustomLayout -> CustomLayout -> Bool # (/=) :: CustomLayout -> CustomLayout -> Bool # | |
GObject CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout | |
ManagedPtrNewtype CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout toManagedPtr :: CustomLayout -> ManagedPtr CustomLayout | |
TypedObject CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout | |
HasParentTypes CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout | |
IsGValue (Maybe CustomLayout) Source # | Convert |
Defined in GI.Gtk.Objects.CustomLayout gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe CustomLayout -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe CustomLayout) | |
type ParentTypes CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout |
class (GObject o, IsDescendantOf CustomLayout o) => IsCustomLayout o Source #
Type class for types which can be safely cast to CustomLayout
, for instance with toCustomLayout
.
Instances
(GObject o, IsDescendantOf CustomLayout o) => IsCustomLayout o Source # | |
Defined in GI.Gtk.Objects.CustomLayout |
toCustomLayout :: (MonadIO m, IsCustomLayout o) => o -> m CustomLayout Source #
Cast to CustomLayout
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
allocate, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, layoutChanged, measure, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getLayoutChild, getProperty, getQdata, getRequestMode, getWidget.
Setters
new
:: (HasCallStack, MonadIO m) | |
=> Maybe CustomRequestModeFunc |
|
-> CustomMeasureFunc |
|
-> CustomAllocateFunc |
|
-> m CustomLayout | Returns: the newly created |
Creates a new legacy layout manager.
Legacy layout managers map to the old GtkWidget
size negotiation
virtual functions, and are meant to be used during the transition
from layout containers to layout manager delegates.