Package org.gnome.gdk
Class Seat.Builder<B extends Seat.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.Seat.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Seat
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theSeat
object.onDeviceAdded
(Seat.DeviceAddedCallback handler) Emitted when a new input device is related to this seat.Emitted when an input device is removed (e.g.onToolAdded
(Seat.ToolAddedCallback handler) Emitted whenever a new tool is made known to the seat.onToolRemoved
(Seat.ToolRemovedCallback handler) Emitted whenever a tool is no longer known to thisseat
.setDisplay
(Display display) GdkDisplay
of this seat.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 theSeat
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 toSeat
.- Overrides:
build
in classGObject.Builder<B extends Seat.Builder<B>>
- Returns:
- a new instance of
Seat
with the properties that were set in the Builder object.
-
setDisplay
-
onDeviceAdded
Emitted when a new input device is related to this seat.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDeviceRemoved
Emitted when an input device is removed (e.g. unplugged).- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onToolAdded
Emitted whenever a new tool is made known to the seat.The tool may later be assigned to a device (i.e. on proximity with a tablet). The device will emit the
Gdk.Device::tool-changed
signal accordingly.A same tool may be used by several devices.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onToolRemoved
Emitted whenever a tool is no longer known to thisseat
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-