Package org.gnome.gdk
Class Surface.Builder<B extends Surface.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.Surface.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Surface
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theSurface
object.Emitted whensurface
starts being present on the monitor.onEvent
(Surface.EventCallback handler) Emitted when GDK receives an input event forsurface
.onLayout
(Surface.LayoutCallback handler) Emitted when the size ofsurface
is changed, or when relayout should be performed.Emitted whensurface
stops being present on the monitor.onRender
(Surface.RenderCallback handler) Emitted when part of the surface needs to be redrawn.The mouse pointer for theGdkSurface
.setDisplay
(Display display) TheGdkDisplay
connection of the surface.setFrameClock
(FrameClock frameClock) TheGdkFrameClock
of the surface.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theSurface
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toSurface
.- Overrides:
build
in classGObject.Builder<B extends Surface.Builder<B>>
- Returns:
- a new instance of
Surface
with the properties that were set in the Builder object.
-
setCursor
-
setDisplay
-
setFrameClock
TheGdkFrameClock
of the surface.- Parameters:
frameClock
- the value for theframe-clock
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onEnterMonitor
Emitted whensurface
starts being present on the monitor.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onEvent
Emitted when GDK receives an input event forsurface
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onLayout
Emitted when the size ofsurface
is changed, or when relayout should be performed.Surface size is reported in ”application pixels”, not ”device pixels” (see gdk_surface_get_scale_factor()).
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onLeaveMonitor
Emitted whensurface
stops being present on the monitor.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onRender
Emitted when part of the surface needs to be redrawn.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-