GtkOverlayLayout — Layout manager that places widgets as overlays
| GtkLayoutManager * | gtk_overlay_layout_new () |
| void | gtk_overlay_layout_child_set_measure () |
| gboolean | gtk_overlay_layout_child_get_measure () |
| void | gtk_overlay_layout_child_set_clip_overlay () |
| gboolean | gtk_overlay_layout_child_get_clip_overlay () |
| gboolean | clip-overlay | Read / Write |
| gboolean | measure | Read / Write |
GObject
├── GtkLayoutChild
│ ╰── GtkOverlayLayoutChild
╰── GtkLayoutManager
╰── GtkOverlayLayout
#include <gtk/gtk.h>
GtkOverlayLayout is the layout manager used by GtkOverlay. It places widgets as overlays on top of the main child.
This is not a reusable layout manager, since it expects its widget to be a GtkOverlay. It only listed here so that its layout properties get documented.
GtkLayoutManager *
gtk_overlay_layout_new (void); Creates a new GtkOverlayLayout instance.
the newly created instance
void gtk_overlay_layout_child_set_measure (GtkOverlayLayoutChild *child,gboolean measure);
Sets whether to measure this child.
child | ||
measure | whether to measure this child |
gboolean
gtk_overlay_layout_child_get_measure (GtkOverlayLayoutChild *child); Retrieves whether the child is measured.
child |
whether the child is measured
void gtk_overlay_layout_child_set_clip_overlay (GtkOverlayLayoutChild *child,gboolean clip_overlay);
Sets whether to clip this child.
child | ||
clip_overlay | whether to clip this child |
gboolean
gtk_overlay_layout_child_get_clip_overlay
(GtkOverlayLayoutChild *child); Retrieves whether the child is clipped.
child |
whether the child is clipped
typedef struct _GtkOverlayLayout GtkOverlayLayout;
typedef struct _GtkOverlayLayoutChild GtkOverlayLayoutChild;
“clip-overlay” property“clip-overlay” gboolean
Whether the child should be clipped to fit the parent's size.
Owner: GtkOverlayLayoutChild
Flags: Read / Write
Default value: FALSE
“measure” property“measure” gboolean
Whether the child size should contribute to the GtkOverlayLayout's measurement.
Owner: GtkOverlayLayoutChild
Flags: Read / Write
Default value: FALSE
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkOverlayLayout.html