Package org.gnome.gdk
Class Surface.Builder<B extends Surface.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theSurfaceobject.Emitted whensurfacestarts 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 ofsurfaceis changed, or when relayout should be performed.Emitted whensurfacestops 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) TheGdkDisplayconnection of the surface.setFrameClock(FrameClock frameClock) TheGdkFrameClockof the surface.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theSurfaceobject. 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:
buildin classGObject.Builder<B extends Surface.Builder<B>>- Returns:
- a new instance of
Surfacewith the properties that were set in the Builder object.
-
setCursor
-
setDisplay
-
setFrameClock
TheGdkFrameClockof the surface.- Parameters:
frameClock- the value for theframe-clockproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onEnterMonitor
Emitted whensurfacestarts being present on the monitor.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onEvent
Emitted when GDK receives an input event forsurface.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onLayout
Emitted when the size ofsurfaceis 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
Builderinstance is returned, to allow method chaining - See Also:
-
onLeaveMonitor
Emitted whensurfacestops being present on the monitor.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-