| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.CustomLayout
Description
CustomLayout is a convenience type meant to be used as a transition
mechanism between GtkWidgets implementing a layout policy, and
LayoutManager classes.
A CustomLayout uses closures matching to the old Widget virtual
functions for size negotiation, as a convenience API to ease the porting
towards the corresponding LayoutManager 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.
Constructors
| CustomLayout (ManagedPtr CustomLayout) |
Instances
| Eq CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout | |
| GObject CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout | |
| ManagedPtrNewtype CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout Methods toManagedPtr :: CustomLayout -> ManagedPtr CustomLayout | |
| TypedObject CustomLayout Source # | |
Defined in GI.Gtk.Objects.CustomLayout Methods glibType :: IO GType | |
| IsGValue CustomLayout Source # | Convert |
Defined in GI.Gtk.Objects.CustomLayout | |
| HasParentTypes CustomLayout Source # | |
Defined in GI.Gtk.Objects.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
Overloaded methods
new
Arguments
| :: (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 Widget size negotiation
virtual functions, and are meant to be used during the transition
from layout containers to layout manager delegates.