summaryrefslogtreecommitdiff
path: root/gtk/gtklayoutmanager.h
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-9/+9
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* Properly annotate GtkLayoutManagerClass.create_layout_child()Emmanuele Bassi2020-09-121-0/+10
| | | | | | | We're missing the ownership transfer rule for the created GtkLayoutChild instance; this makes the virtual function not introspectable. Fixes: #3156
* Propagate rooting and unrooting widgets to layout managersEmmanuele Bassi2019-06-301-0/+7
| | | | | Layout managers may need to get access to data attached to the root of a scene graph.
* Connect LayoutManager to LayoutChildEmmanuele Bassi2019-03-281-0/+3
| | | | | | | | | | | If we want to inspect the type of layout properties exposed by a GtkLayoutManager, we need a way to connect the layout manager type to the GtkLayoutChild type it creates. In order to do so, we can set the GtkLayoutChild type on a field of the GtkLayoutManagerClass structure. Storing the GtkLayoutChild type on the class structure of the layout manager also allows us to implement a default create_layout_child() virtual function.
* Changes after reviewEmmanuele Bassi2019-03-261-5/+8
| | | | | | | | | - Rename GtkLegacyLayout to GtkCustomLayout - Use for() to iterate over children in GtkBinLayout - Whitespace fixes for code imported from GtkBox - Store the GtkLayoutChild instances inside LayoutManager - Simplify the GtkLayoutManager API by dropping unnecessary arguments - Fix the ownership model of GtkLayoutManager
* Add GtkLayoutChildEmmanuele Bassi2019-03-261-15/+23
| | | | | | | | | | | | Layout managers needs a way to store properties that control the layout policy of a widget; typically, we used to store these in GtkContainer's child properties, but since GtkLayoutManager is decoupled from the actual container widget, we need a separate storage. Additionally, child properties have their own downsides, like requiring a separate, global GParamSpecPool storage, and additional lookup API. GtkLayoutChild is a simple GObject class, which means you can introspect and document it as you would any other type.
* Hook GtkLayoutManager into GtkWidgetEmmanuele Bassi2019-03-261-1/+5
| | | | | | We delegate the size request mode, the measuring, and the allocation of a widget through a GtkLayoutManager instance, if one has been attached to the widget; otherwise, we fall back to the widget's own implementation.
* Add GtkLayoutManagerEmmanuele Bassi2019-03-261-0/+94
A base abstract class for layout manager delegate objects. Layout managers are associated to a single widget, like event controllers, and are responsible for measuring and allocating the children of the widget they are bound to.