Contains information that is necessary to present a sovereign window on screen.
The GdkToplevelLayout struct is necessary for using [methodGdk.Toplevel.present].
Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).
function Copy (Self : Gdk_Toplevel_Layout) return Gdk_Toplevel_Layout
Create a new GdkToplevelLayout and copy the contents of Layout into it.
a copy of Layout. Has transfer-ownership='full'.
function Equal
(Self : Gdk_Toplevel_Layout;
Other : Gdk_Toplevel_Layout) return Boolean
Check whether Layout and Other has identical layout properties.
another toplevel layout
true if Layout and Other have identical layout properties, otherwise false.
function From_Object (Object : System.Address) return Gdk_Toplevel_Layout
function From_Object_Free (B : access Gdk_Toplevel_Layout'Class) return Gdk_Toplevel_Layout
procedure Gdk_New (Self : out Gdk_Toplevel_Layout)
Create a toplevel layout description. Used together with [methodGdk.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 [methodGdk.Surface.get_scale]).
type Gdk_Toplevel_Layout is new Glib.C_Boxed with null record;
function Gdk_Toplevel_Layout_New return Gdk_Toplevel_Layout
Create a toplevel layout description. Used together with [methodGdk.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 [methodGdk.Surface.get_scale]).
function Get_Fullscreen
(Self : Gdk_Toplevel_Layout;
Fullscreen : out Boolean) return Boolean
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.
location to store whether the toplevel should be fullscreen
whether the Layout specifies the fullscreen state for the toplevel
function Get_Fullscreen_Monitor
(Self : Gdk_Toplevel_Layout) return Gdk.Monitor.Gdk_Monitor
Returns the monitor that the layout is fullscreening the surface on.
the monitor on which Layout fullscreens. Has transfer-ownership='none'.
function Get_Maximized
(Self : Gdk_Toplevel_Layout;
Maximized : out Boolean) return Boolean
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 maximized, or false, if it should go unmaximized.
set to true if the toplevel should be maximized
whether the Layout specifies the maximized state for the toplevel
function Get_Resizable (Self : Gdk_Toplevel_Layout) return Boolean
Returns whether the layout should allow the user to resize the surface.
true if the layout is resizable
function Get_Type return Glib.GType
Null_Gdk_Toplevel_Layout : constant Gdk_Toplevel_Layout;
function Ref (Self : Gdk_Toplevel_Layout) return Gdk_Toplevel_Layout
Increases the reference count of Layout.
the same Layout. Has transfer-ownership='full'.
procedure Set_Fullscreen
(Self : Gdk_Toplevel_Layout;
Fullscreen : Boolean;
Monitor : access Gdk.Monitor.Gdk_Monitor_Record'Class)
Sets whether the layout should cause the surface to be fullscreen when presented.
true to fullscreen the surface
the monitor to fullscreen on
procedure Set_Maximized (Self : Gdk_Toplevel_Layout; Maximized : Boolean)
Sets whether the layout should cause the surface to be maximized when presented.
true to maximize
procedure Set_Resizable (Self : Gdk_Toplevel_Layout; Resizable : Boolean)
Sets whether the layout should allow the user to resize the surface after it has been presented.
true to allow resizing
procedure Unref (Self : Gdk_Toplevel_Layout)
Decreases the reference count of Layout.