Package org.freedesktop.wayland.server
Class Resource<I>
java.lang.Object
org.freedesktop.wayland.server.Resource<I>
- Type Parameters:
I- Type of implementation that will be used to handle client requests.
- All Implemented Interfaces:
WaylandObject
- Direct Known Subclasses:
WlBufferResource,WlCallbackResource,WlCompositorResource,WlDataDeviceManagerResource,WlDataDeviceResource,WlDataOfferResource,WlDataSourceResource,WlDisplayResource,WlKeyboardResource,WlOutputResource,WlPointerResource,WlRegionResource,WlRegistryResource,WlSeatResource,WlShellResource,WlShellSurfaceResource,WlShmPoolResource,WlShmResource,WlSubcompositorResource,WlSubsurfaceResource,WlSurfaceResource,WlTouchResource,WpPresentationFeedbackResource,WpPresentationResource,WpViewporterResource,WpViewportResource,XdgPopupResource,XdgPositionerResource,XdgSurfaceResource,XdgToplevelResource,XdgWmBaseResource,ZwpLinuxBufferParamsV1Resource,ZwpLinuxDmabufFeedbackV1Resource,ZwpLinuxDmabufV1Resource,ZwpTabletManagerV2Resource,ZwpTabletPadGroupV2Resource,ZwpTabletPadRingV2Resource,ZwpTabletPadStripV2Resource,ZwpTabletPadV2Resource,ZwpTabletSeatV2Resource,ZwpTabletToolV2Resource,ZwpTabletV2Resource
Server side implementation of a wayland object for a specific client.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDestroyListener(org.freedesktop.wayland.server.Listener listener) voiddestroy()booleanintgetId()intinthashCode()voidvoidpostEvent(int opcode) voidPost an event to the client's object referred to by 'resource'.voidregister(DestroyListener destroyListener) voidunregister(DestroyListener destroyListener)
-
Field Details
-
wlResourcePtr
-
-
Constructor Details
-
Resource
-
Resource
-
-
Method Details
-
addDestroyListener
protected void addDestroyListener(org.freedesktop.wayland.server.Listener listener) -
getImplementation
- Specified by:
getImplementationin interfaceWaylandObject
-
getClient
-
getId
public int getId()- Specified by:
getIdin interfaceWaylandObject
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceWaylandObject
-
register
-
unregister
-
postEvent
Post an event to the client's object referred to by 'resource'. 'opcode' is the event number generated from the protocol XML description (the event name). The variable arguments are the event parameters, in the order they appear in the protocol XML specification.The variable arguments' types are:
- type=uint: uint32_t
- type=int: int32_t
- type=fixed: wl_fixed_t
- type=string: (const char *) to a nil-terminated string
- type=array: (struct wl_array *)
- type=fd: int, that is an open file descriptor
- type=new_id: (struct wl_object *) or (struct wl_resource *)
- type=object: (struct wl_object *) or (struct wl_resource *)
- Parameters:
opcode- the protocol opcodeargs- the protocol arguments
-
postEvent
public void postEvent(int opcode) - Parameters:
opcode- the protocol opcode- See Also:
-
postError
-
hashCode
-
equals
-
destroy
public void destroy() -
getPointer
- Specified by:
getPointerin interfaceWaylandObject
-