Class: Gtk::CustomLayout

Inherits:
LayoutManager show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from LayoutManager

#allocate, #get_layout_child, #layout_changed, #measure, #request_mode, #widget

Constructor Details

#initialize(request_mode, measure, allocate) ⇒ Gtk::LayoutManager

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.

Parameters:

  • request_mode (Gtk::CustomRequestModeFunc)

    a function to retrieve the GtkSizeRequestMode of the widget using the layout; the default request mode is %GTK_SIZE_REQUEST_CONSTANT_SIZE

  • measure (Gtk::CustomMeasureFunc)

    a function to measure the widget using the layout manager

  • allocate (Gtk::CustomAllocateFunc)

    a function to allocate the children of the widget using the layout manager