Package ch.bailu.gtk.gdk
Class ToplevelLayout
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdk.ToplevelLayout
- All Implemented Interfaces:
PointerInterface
The `GdkToplevelLayout` struct contains information that
is necessary to present a sovereign window on screen.
The `GdkToplevelLayout` struct is necessary for using
[method@Gdk.Toplevel.present].
Toplevel surfaces are sovereign windows that can be presented
to the user in various states (maximized, on all workspaces,
etc).
is necessary to present a sovereign window on screen.
The `GdkToplevelLayout` struct is necessary for using
[method@Gdk.Toplevel.present].
Toplevel surfaces are sovereign windows that can be presented
to the user in various states (maximized, on all workspaces,
etc).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate a toplevel layout description.ToplevelLayout
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a new `GdkToplevelLayout` and copy the contents of @layout into it.boolean
equal
(ToplevelLayout other) Check whether @layout and @other has identical layout properties.static ClassHandler
boolean
getFullscreen
(Int 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.Returns the monitor that the layout is fullscreening
the surface on.static int
boolean
getMaximized
(Int 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.static long
static TypeSystem.TypeSize
boolean
Returns whether the layout should allow the user
to resize the surface.static long
static TypeSystem.TypeSize
ref()
Increases the reference count of @layout.void
setFullscreen
(boolean fullscreen, Monitor monitor) Sets whether the layout should cause the surface
to be fullscreen when presented.void
setMaximized
(boolean maximized) Sets whether the layout should cause the surface
to be maximized when presented.void
setResizable
(boolean resizable) Sets whether the layout should allow the user
to resize the surface after it has been presented.void
unref()
Decreases the reference count of @layout.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
ToplevelLayout
-
ToplevelLayout
public ToplevelLayout()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()).
-
-
Method Details
-
getClassHandler
-
copy
Create a new `GdkToplevelLayout` and copy the contents of @layout into it.- Returns:
- a copy of @layout.
-
equal
Check whether @layout and @other has identical layout properties.- Parameters:
other
- another `GdkToplevelLayout`- Returns:
- %TRUE if @layout and @other have identical layout properties, otherwise %FALSE.
-
getFullscreen
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.- Parameters:
fullscreen
- location to store whether the toplevel should be fullscreen- Returns:
- whether the @layout specifies the fullscreen state for the toplevel
-
getFullscreenMonitor
Returns the monitor that the layout is fullscreening
the surface on.- Returns:
- the monitor on which @layout fullscreens
-
getMaximized
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.- Parameters:
maximized
- set to %TRUE if the toplevel should be maximized- Returns:
- whether the @layout specifies the maximized state for the toplevel
-
getResizable
public boolean getResizable()Returns whether the layout should allow the user
to resize the surface.- Returns:
- %TRUE if the layout is resizable
-
ref
Increases the reference count of @layout.- Returns:
- the same @layout
-
setFullscreen
Sets whether the layout should cause the surface
to be fullscreen when presented.- Parameters:
fullscreen
- %TRUE to fullscreen the surfacemonitor
- the monitor to fullscreen on
-
setMaximized
public void setMaximized(boolean maximized) Sets whether the layout should cause the surface
to be maximized when presented.- Parameters:
maximized
- %TRUE to maximize
-
setResizable
public void setResizable(boolean resizable) Sets whether the layout should allow the user
to resize the surface after it has been presented.- Parameters:
resizable
- %TRUE to allow resizing
-
unref
public void unref()Decreases the reference count of @layout. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-