Package ch.bailu.gtk.gdk
Klasse ToplevelLayout
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdk.ToplevelLayout
- Alle implementierten Schnittstellen:
PointerInterface
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).
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).
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreate a toplevel layout description.ToplevelLayout
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()
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.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
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()).
-
-
Methodendetails
-
getClassHandler
-
copy
Create a new `GdkToplevelLayout` and copy the contents of @layout into it.- Gibt zurück:
- a copy of @layout.
-
equal
Check whether @layout and @other has identical layout properties.- Parameter:
other
- another `GdkToplevelLayout`- Gibt zurück:
- %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.- Parameter:
fullscreen
- location to store whether the toplevel should be fullscreen- Gibt zurück:
- whether the @layout specifies the fullscreen state for the toplevel
-
getFullscreenMonitor
Returns the monitor that the layout is fullscreening
the surface on.- Gibt zurück:
- 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.- Parameter:
maximized
- set to %TRUE if the toplevel should be maximized- Gibt zurück:
- 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.- Gibt zurück:
- %TRUE if the layout is resizable
-
ref
Increases the reference count of @layout.- Gibt zurück:
- the same @layout
-
setFullscreen
Sets whether the layout should cause the surface
to be fullscreen when presented.- Parameter:
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.- Parameter:
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.- Parameter:
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()
-