Top | ![]() |
![]() |
![]() |
![]() |
GdkToplevelLayout * | gdk_toplevel_layout_new () |
GdkToplevelLayout * | gdk_toplevel_layout_ref () |
void | gdk_toplevel_layout_unref () |
GdkToplevelLayout * | gdk_toplevel_layout_copy () |
gboolean | gdk_toplevel_layout_equal () |
void | gdk_toplevel_layout_set_maximized () |
gboolean | gdk_toplevel_layout_get_maximized () |
void | gdk_toplevel_layout_set_fullscreen () |
gboolean | gdk_toplevel_layout_get_fullscreen () |
GdkMonitor * | gdk_toplevel_layout_get_fullscreen_monitor () |
int | gdk_toplevel_layout_get_min_width () |
int | gdk_toplevel_layout_get_min_height () |
void | gdk_toplevel_layout_set_resizable () |
gboolean | gdk_toplevel_layout_get_resizable () |
Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).
The GdkToplevelLayout struct contains information that
is necessary to do so, and is passed to gdk_toplevel_present()
.
GdkToplevelLayout * gdk_toplevel_layout_new (int min_width
,int min_height
);
Create a toplevel layout description.
Used together with gdk_toplevel_present()
to describe
how a toplevel surface should be placed and behave on-screen.
[constructor]
GdkToplevelLayout *
gdk_toplevel_layout_ref (GdkToplevelLayout *layout
);
Increases the reference count of layout
.
void
gdk_toplevel_layout_unref (GdkToplevelLayout *layout
);
Decreases the reference count of layout
.
GdkToplevelLayout *
gdk_toplevel_layout_copy (GdkToplevelLayout *layout
);
Create a new GdkToplevelLayout and copy the contents of layout
into it.
gboolean gdk_toplevel_layout_equal (GdkToplevelLayout *layout
,GdkToplevelLayout *other
);
Check whether layout
and other
has identical layout properties.
void gdk_toplevel_layout_set_maximized (GdkToplevelLayout *layout
,gboolean maximized
);
Sets whether the layout should cause the surface to be maximized when presented.
gboolean
gdk_toplevel_layout_get_maximized (GdkToplevelLayout *layout
);
Returns whether the layout should present the surface as maximized.
void gdk_toplevel_layout_set_fullscreen (GdkToplevelLayout *layout
,gboolean fullscreen
,GdkMonitor *monitor
);
Sets whether the layout should cause the surface to be fullscreen when presented.
gboolean
gdk_toplevel_layout_get_fullscreen (GdkToplevelLayout *layout
);
Returns whether the layout should cause the surface to be fullscreen when presented.
GdkMonitor *
gdk_toplevel_layout_get_fullscreen_monitor
(GdkToplevelLayout *layout
);
Returns the monitor that the layout is fullscreening the surface on.
int
gdk_toplevel_layout_get_min_width (GdkToplevelLayout *layout
);
Returns the minimum width of the given layout.
int
gdk_toplevel_layout_get_min_height (GdkToplevelLayout *layout
);
Returns the minimum height of the given layout.
void gdk_toplevel_layout_set_resizable (GdkToplevelLayout *layout
,gboolean resizable
);
Sets whether the layout should allow the user to resize the surface after it has been presented.
gboolean
gdk_toplevel_layout_get_resizable (GdkToplevelLayout *layout
);
Returns whether the layout should allow the user to resize the surface.