![]() |
![]() |
![]() |
Clutter Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
struct wl_seat * clutter_wayland_input_device_get_wl_seat (ClutterInputDevice *device
); struct wl_shell_surface * clutter_wayland_stage_get_wl_shell_surface (ClutterStage *stage
); struct wl_surface * clutter_wayland_stage_get_wl_surface (ClutterStage *stage
); void clutter_wayland_set_display (struct wl_display *display
);
The Wayland backend for Clutter provides some specific API, allowing integration with the Wayland client API for acessing the underlying data structures
The Clutter Wayland API is available since Clutter 1.10
struct wl_seat * clutter_wayland_input_device_get_wl_seat
(ClutterInputDevice *device
);
Access the underlying data structure representing the Wayland device that is backing this ClutterInputDevice.
Note: this function can only be called when running on the Wayland platform.
Calling this function at any other time will return NULL
.
|
a ClutterInputDevice |
Returns : |
the Wayland input device associated with the
device . [transfer none]
|
Since 1.10
struct wl_shell_surface * clutter_wayland_stage_get_wl_shell_surface
(ClutterStage *stage
);
Access the underlying data structure representing the shell surface that is backing the ClutterStage
Note: this function can only be called when running on the Wayland
platform. Calling this function at any other time will return NULL
.
|
a ClutterStage |
Returns : |
the Wayland shell surface associated with
stage . [transfer none]
|
Since 1.10
struct wl_surface * clutter_wayland_stage_get_wl_surface
(ClutterStage *stage
);
Access the underlying data structure representing the surface that is backing the ClutterStage
Note: this function can only be called when running on the Wayland
platform. Calling this function at any other time will return NULL
.
|
a ClutterStage |
Returns : |
the Wayland surface associated with stage . [transfer none]
|
Since 1.10
void clutter_wayland_set_display (struct wl_display *display
);
Sets the display connection Clutter should use; must be called
before clutter_init()
, clutter_init_with_args()
or other functions
pertaining Clutter's initialization process.
If you are parsing the command line arguments by retrieving Clutter's
GOptionGroup with clutter_get_option_group()
and calling
g_option_context_parse()
yourself, you should also call
clutter_wayland_set_display()
before g_option_context_parse()
.
|
pointer to a wayland display |
Since 1.16