3.15 <GdkToplevelLayout>

Structure: <GdkToplevelLayout>

Contains information that is necessary to present a sovereign window on screen.

The <GdkToplevelLayout> struct is necessary for using toplevel:present.

Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).

Procedures

Method: toplevel-layout:copy self ⇒ %return
Method: copy self ⇒ %return

Create a new <GdkToplevelLayout> and copy the contents of self into it.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

%return

Returned: a <GdkToplevelLayout>.

a copy of self.

Method: toplevel-layout:equal? self other ⇒ %return
Method: equal? self other ⇒ %return

Check whether self and other has identical layout properties.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

other

Passed: a <GdkToplevelLayout>.

another toplevel layout

%return

Returned: a boolean.

true if self and other have identical layout properties, otherwise false.

Method: toplevel-layout:get-fullscreen self ⇒ %return fullscreen
Method: get-fullscreen self ⇒ %return 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.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

%return

Returned: a boolean.

whether the self specifies the fullscreen state for the toplevel

fullscreen

Returned: a boolean.

location to store whether the toplevel should be fullscreen

Method: toplevel-layout:get-fullscreen-monitor self ⇒ %return
Method: get-fullscreen-monitor self ⇒ %return

Returns the monitor that the layout is fullscreening the surface on.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

%return

Returned: a <GdkMonitor>, or #f.

the monitor on which self fullscreens

Method: toplevel-layout:get-maximized self ⇒ %return maximized
Method: get-maximized self ⇒ %return 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 maximized, or false, if it should go unmaximized.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

%return

Returned: a boolean.

whether the self specifies the maximized state for the toplevel

maximized

Returned: a boolean.

set to true if the toplevel should be maximized

Method: toplevel-layout:get-resizable? self ⇒ %return
Method: get-resizable? self ⇒ %return

Returns whether the layout should allow the user to resize the surface.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

%return

Returned: a boolean.

true if the layout is resizable

Procedure: toplevel-layout:new ⇒ %return

Create a toplevel layout description.

Used together with 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 surface:get-scale).

%return

Returned: a <GdkToplevelLayout>.

newly created instance of <GdkToplevelLayout>

Method: toplevel-layout:ref self ⇒ %return
Method: ref self ⇒ %return

Increases the reference count of self.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

%return

Returned: a <GdkToplevelLayout>.

the same self

Method: toplevel-layout:set-fullscreen self fullscreen [monitor]
Method: set-fullscreen self fullscreen [monitor]

Sets whether the layout should cause the surface to be fullscreen when presented.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

fullscreen

Passed: a boolean.

true to fullscreen the surface

monitor

Passed, or left out: a <GdkMonitor>, or #f.

the monitor to fullscreen on

Method: toplevel-layout:set-maximized self maximized
Method: set-maximized self maximized

Sets whether the layout should cause the surface to be maximized when presented.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

maximized

Passed: a boolean.

true to maximize

Method: toplevel-layout:set-resizable self resizable
Method: set-resizable self resizable

Sets whether the layout should allow the user to resize the surface after it has been presented.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout

resizable

Passed: a boolean.

true to allow resizing

Method: toplevel-layout:unref self
Method: unref self

Decreases the reference count of self.

self

Passed: a <GdkToplevelLayout>.

a toplevel layout