Top |
Functions
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 () |
void | gdk_toplevel_layout_set_resizable () |
gboolean | gdk_toplevel_layout_get_resizable () |
Description
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()
.
Functions
gdk_toplevel_layout_new ()
GdkToplevelLayout *
gdk_toplevel_layout_new (void
);
Create a toplevel layout description.
Used together with gdk_toplevel_present()
to describe
how a toplevel surface should be placed and behave on-screen.
The size is in ”application pixels”, not
”device pixels” (see gdk_surface_get_scale_factor()
).
[constructor]
gdk_toplevel_layout_ref ()
GdkToplevelLayout *
gdk_toplevel_layout_ref (GdkToplevelLayout *layout
);
Increases the reference count of layout
.
gdk_toplevel_layout_unref ()
void
gdk_toplevel_layout_unref (GdkToplevelLayout *layout
);
Decreases the reference count of layout
.
gdk_toplevel_layout_copy ()
GdkToplevelLayout *
gdk_toplevel_layout_copy (GdkToplevelLayout *layout
);
Create a new GdkToplevelLayout and copy the contents of layout
into it.
gdk_toplevel_layout_equal ()
gboolean gdk_toplevel_layout_equal (GdkToplevelLayout *layout
,GdkToplevelLayout *other
);
Check whether layout
and other
has identical layout properties.
gdk_toplevel_layout_set_maximized ()
void gdk_toplevel_layout_set_maximized (GdkToplevelLayout *layout
,gboolean maximized
);
Sets whether the layout should cause the surface to be maximized when presented.
gdk_toplevel_layout_get_maximized ()
gboolean gdk_toplevel_layout_get_maximized (GdkToplevelLayout *layout
,gboolean *maximized
);
If the layout specifies whether to the toplevel should go maximized,
the value pointed to by maximized
is set to TRUE
if it should go
fullscreen, or FALSE
, if it should go unmaximized.
gdk_toplevel_layout_set_fullscreen ()
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.
gdk_toplevel_layout_get_fullscreen ()
gboolean gdk_toplevel_layout_get_fullscreen (GdkToplevelLayout *layout
,gboolean *fullscreen
);
If the layout specifies whether to the toplevel should go fullscreen,
the value pointed to by fullscreen
is set to TRUE
if it should go
fullscreen, or FALSE
, if it should go unfullscreen.
gdk_toplevel_layout_get_fullscreen_monitor ()
GdkMonitor *
gdk_toplevel_layout_get_fullscreen_monitor
(GdkToplevelLayout *layout
);
Returns the monitor that the layout is fullscreening the surface on.
gdk_toplevel_layout_set_resizable ()
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.
gdk_toplevel_layout_get_resizable ()
gboolean
gdk_toplevel_layout_get_resizable (GdkToplevelLayout *layout
);
Returns whether the layout should allow the user to resize the surface.
Types and Values
GdkToplevelLayout
typedef struct _GdkToplevelLayout GdkToplevelLayout;
Struct containing information for gdk_toplevel_present()