compositor
Functions
clipboard_create
struct clipboard * clipboard_create (struct weston_seat * seat)
Parameters:
seat
–
noop_renderer_init
int noop_renderer_init (struct weston_compositor * ec)
Parameters:
ec
–
notify_axis
void notify_axis (struct weston_seat * seat, const struct timespec * time, struct weston_pointer_axis_event * event)
Parameters:
seat
–
time
–
event
–
notify_axis_source
void notify_axis_source (struct weston_seat * seat, uint32_t source)
Parameters:
seat
–
source
–
notify_button
void notify_button (struct weston_seat * seat, const struct timespec * time, int32_t button, enum wl_pointer_button_state state)
Parameters:
seat
–
time
–
button
–
state
–
notify_key
void notify_key (struct weston_seat * seat, const struct timespec * time, uint32_t key, enum wl_keyboard_key_state state, enum weston_key_state_update update_state)
Parameters:
seat
–
time
–
key
–
state
–
update_state
–
notify_keyboard_focus_in
void notify_keyboard_focus_in (struct weston_seat * seat, struct wl_array * keys, enum weston_key_state_update update_state)
Parameters:
seat
–
keys
–
update_state
–
notify_keyboard_focus_out
void notify_keyboard_focus_out (struct weston_seat * seat)
Parameters:
seat
–
notify_modifiers
void notify_modifiers (struct weston_seat * seat, uint32_t serial)
Parameters:
seat
–
serial
–
notify_motion
void notify_motion (struct weston_seat * seat, const struct timespec * time, struct weston_pointer_motion_event * event)
Parameters:
seat
–
time
–
event
–
notify_motion_absolute
void notify_motion_absolute (struct weston_seat * seat, const struct timespec * time, double x, double y)
Parameters:
seat
–
time
–
x
–
y
–
notify_pointer_focus
void notify_pointer_focus (struct weston_seat * seat, struct weston_output * output, double x, double y)
Parameters:
seat
–
output
–
x
–
y
–
notify_pointer_frame
void notify_pointer_frame (struct weston_seat * seat)
Parameters:
seat
–
notify_touch
void notify_touch (struct weston_touch_device * device, const struct timespec * time, int touch_id, double x, double y, int touch_type)
Parameters:
device
–
time
–
touch_id
–
x
–
y
–
touch_type
–
notify_touch_calibrator
void notify_touch_calibrator (struct weston_touch_device * device, const struct timespec * time, int32_t slot, const struct weston_point2d_device_normalized * norm, int touch_type)
Parameters:
device
–
time
–
slot
–
norm
–
touch_type
–
notify_touch_calibrator_cancel
void notify_touch_calibrator_cancel (struct weston_touch_device * device)
Parameters:
device
–
notify_touch_calibrator_frame
void notify_touch_calibrator_frame (struct weston_touch_device * device)
Parameters:
device
–
notify_touch_cancel
void notify_touch_cancel (struct weston_touch_device * device)
Parameters:
device
–
notify_touch_frame
void notify_touch_frame (struct weston_touch_device * device)
Parameters:
device
–
notify_touch_normalized
void notify_touch_normalized (struct weston_touch_device * device, const struct timespec * time, int touch_id, double x, double y, const struct weston_point2d_device_normalized * norm, int touch_type)
Feed in touch down, motion, and up events, calibratable device.
It assumes always the correct cycle sequence until it gets here: touch_down → touch_update → ... → touch_update → touch_end. The driver is responsible for sending along such order.
\param device The physical device that generated the event. \param time The event timestamp. \param touch_id ID for the touch point of this event (multi-touch). \param double_x X coordinate in compositor global space. \param double_y Y coordinate in compositor global space. \param norm Normalized device X, Y coordinates in calibration space, or NULL. \param touch_type Either WL_TOUCH_DOWN, WL_TOUCH_UP, or WL_TOUCH_MOTION.
Coordinates double_x and double_y are used for normal operation.
Coordinates norm are only used for touch device calibration. If and only if the weston_touch_device does not support calibrating, norm must be NULL.
The calibration space is the normalized coordinate space [0.0, 1.0]×[0.0, 1.0] of the weston_touch_device. This is assumed to map to the similar normalized coordinate space of the associated weston_output.
Parameters:
device
–
time
–
touch_id
–
x
–
y
–
norm
–
touch_type
–
touch_calibrator_mode_changed
void touch_calibrator_mode_changed (struct weston_compositor * compositor)
Parameters:
compositor
–
tty_activate_vt
int tty_activate_vt (struct tty * tty, int vt)
Parameters:
tty
–
vt
–
tty_create
struct tty * tty_create (struct weston_compositor * compositor, int tty_nr)
Parameters:
compositor
–
tty_nr
–
tty_destroy
void tty_destroy (struct tty * tty)
Parameters:
tty
–
tty_reset
void tty_reset (struct tty * tty)
Parameters:
tty
–
weston_backend_init
int weston_backend_init (struct weston_compositor * c, struct weston_backend_config * config_base)
Parameters:
c
–
config_base
–
weston_binding_destroy
void weston_binding_destroy (struct weston_binding * binding)
Parameters:
binding
–
weston_binding_list_destroy_all
void weston_binding_list_destroy_all (struct wl_list * list)
Parameters:
list
–
weston_buffer_from_resource
struct weston_buffer * weston_buffer_from_resource (struct wl_resource * resource)
Parameters:
resource
–
weston_buffer_release_move
void weston_buffer_release_move (struct weston_buffer_release_reference * dest, struct weston_buffer_release_reference * src)
Parameters:
dest
–
src
–
weston_buffer_send_server_error
void weston_buffer_send_server_error (struct weston_buffer * buffer, const char * msg)
Parameters:
buffer
–
msg
–
weston_compositor_add_axis_binding
struct weston_binding * weston_compositor_add_axis_binding (struct weston_compositor * compositor, uint32_t axis, enum weston_keyboard_modifier modifier, weston_axis_binding_handler_t binding, void * data)
Parameters:
compositor
–
axis
–
modifier
–
binding
–
data
–
weston_compositor_add_button_binding
struct weston_binding * weston_compositor_add_button_binding (struct weston_compositor * compositor, uint32_t button, enum weston_keyboard_modifier modifier, weston_button_binding_handler_t binding, void * data)
Parameters:
compositor
–
button
–
modifier
–
binding
–
data
–
weston_compositor_add_debug_binding
struct weston_binding * weston_compositor_add_debug_binding (struct weston_compositor * compositor, uint32_t key, weston_key_binding_handler_t binding, void * data)
Parameters:
compositor
–
key
–
binding
–
data
–
weston_compositor_add_head
void weston_compositor_add_head (struct weston_compositor * compositor, struct weston_head * head)
Parameters:
compositor
–
head
–
weston_compositor_add_heads_changed_listener
void weston_compositor_add_heads_changed_listener (struct weston_compositor * compositor, struct wl_listener * listener)
Parameters:
compositor
–
listener
–
weston_compositor_add_key_binding
struct weston_binding * weston_compositor_add_key_binding (struct weston_compositor * compositor, uint32_t key, enum weston_keyboard_modifier modifier, weston_key_binding_handler_t binding, void * data)
Parameters:
compositor
–
key
–
modifier
–
binding
–
data
–
weston_compositor_add_modifier_binding
struct weston_binding * weston_compositor_add_modifier_binding (struct weston_compositor * compositor, enum weston_keyboard_modifier modifier, weston_modifier_binding_handler_t binding, void * data)
Parameters:
compositor
–
modifier
–
binding
–
data
–
weston_compositor_add_pending_output
void weston_compositor_add_pending_output (struct weston_output * output, struct weston_compositor * compositor)
Parameters:
output
–
compositor
–
weston_compositor_add_touch_binding
struct weston_binding * weston_compositor_add_touch_binding (struct weston_compositor * compositor, enum weston_keyboard_modifier modifier, weston_touch_binding_handler_t binding, void * data)
Parameters:
compositor
–
modifier
–
binding
–
data
–
weston_compositor_create
struct weston_compositor * weston_compositor_create (struct wl_display * display, void * user_data)
Parameters:
display
–
user_data
–
weston_compositor_create_output
struct weston_output * weston_compositor_create_output (struct weston_compositor * compositor, const char * name)
Parameters:
compositor
–
name
–
weston_compositor_create_output_with_head
struct weston_output * weston_compositor_create_output_with_head (struct weston_compositor * compositor, struct weston_head * head)
Parameters:
compositor
–
head
–
weston_compositor_damage_all
void weston_compositor_damage_all (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_destroy
void weston_compositor_destroy (struct weston_compositor * ec)
Parameters:
ec
–
weston_compositor_enable_touch_calibrator
int weston_compositor_enable_touch_calibrator (struct weston_compositor * compositor, weston_touch_calibration_save_func save)
Parameters:
compositor
–
save
–
weston_compositor_exit
void weston_compositor_exit (struct weston_compositor * ec)
Parameters:
ec
–
weston_compositor_exit_with_code
void weston_compositor_exit_with_code (struct weston_compositor * compositor, int exit_code)
Parameters:
compositor
–
exit_code
–
weston_compositor_fade
void weston_compositor_fade (struct weston_compositor * compositor, float tint)
Parameters:
compositor
–
tint
–
weston_compositor_find_output_by_name
struct weston_output * weston_compositor_find_output_by_name (struct weston_compositor * compositor, const char * name)
Parameters:
compositor
–
name
–
weston_compositor_flush_heads_changed
void weston_compositor_flush_heads_changed (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_get_time
void weston_compositor_get_time (struct timespec * time)
Parameters:
time
–
weston_compositor_get_user_data
void * weston_compositor_get_user_data (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_import_dmabuf
_Bool weston_compositor_import_dmabuf (struct weston_compositor * compositor, struct linux_dmabuf_buffer * buffer)
Parameters:
compositor
–
buffer
–
weston_compositor_iterate_heads
struct weston_head * weston_compositor_iterate_heads (struct weston_compositor * compositor, struct weston_head * iter)
Parameters:
compositor
–
iter
–
weston_compositor_load_backend
int weston_compositor_load_backend (struct weston_compositor * compositor, enum weston_compositor_backend backend, struct weston_backend_config * config_base)
Parameters:
compositor
–
backend
–
config_base
–
weston_compositor_load_xwayland
int weston_compositor_load_xwayland (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_offscreen
void weston_compositor_offscreen (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_pick_view
struct weston_view * weston_compositor_pick_view (struct weston_compositor * compositor, int x, int y, int * sx, int * sy)
Parameters:
compositor
–
x
–
y
–
sx
–
sy
–
weston_compositor_print_scene_graph
char * weston_compositor_print_scene_graph (struct weston_compositor * ec)
Parameters:
ec
–
weston_compositor_read_presentation_clock
void weston_compositor_read_presentation_clock (const struct weston_compositor * compositor, struct timespec * ts)
Parameters:
compositor
–
ts
–
weston_compositor_run_axis_binding
int weston_compositor_run_axis_binding (struct weston_compositor * compositor, struct weston_pointer * pointer, const struct timespec * time, struct weston_pointer_axis_event * event)
Parameters:
compositor
–
pointer
–
time
–
event
–
weston_compositor_run_button_binding
void weston_compositor_run_button_binding (struct weston_compositor * compositor, struct weston_pointer * pointer, const struct timespec * time, uint32_t button, enum wl_pointer_button_state value)
Parameters:
compositor
–
pointer
–
time
–
button
–
value
–
weston_compositor_run_debug_binding
int weston_compositor_run_debug_binding (struct weston_compositor * compositor, struct weston_keyboard * keyboard, const struct timespec * time, uint32_t key, enum wl_keyboard_key_state state)
Parameters:
compositor
–
keyboard
–
time
–
key
–
state
–
weston_compositor_run_key_binding
void weston_compositor_run_key_binding (struct weston_compositor * compositor, struct weston_keyboard * keyboard, const struct timespec * time, uint32_t key, enum wl_keyboard_key_state state)
Parameters:
compositor
–
keyboard
–
time
–
key
–
state
–
weston_compositor_run_modifier_binding
void weston_compositor_run_modifier_binding (struct weston_compositor * compositor, struct weston_keyboard * keyboard, enum weston_keyboard_modifier modifier, enum wl_keyboard_key_state state)
Parameters:
compositor
–
keyboard
–
modifier
–
state
–
weston_compositor_run_touch_binding
void weston_compositor_run_touch_binding (struct weston_compositor * compositor, struct weston_touch * touch, const struct timespec * time, int touch_type)
Parameters:
compositor
–
touch
–
time
–
touch_type
–
weston_compositor_schedule_repaint
void weston_compositor_schedule_repaint (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_set_default_pointer_grab
void weston_compositor_set_default_pointer_grab (struct weston_compositor * compositor, const struct weston_pointer_grab_interface * interface)
Parameters:
compositor
–
interface
–
weston_compositor_set_presentation_clock
int weston_compositor_set_presentation_clock (struct weston_compositor * compositor, clockid_t clk_id)
Parameters:
compositor
–
clk_id
–
weston_compositor_set_presentation_clock_software
int weston_compositor_set_presentation_clock_software (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_set_touch_mode_calib
void weston_compositor_set_touch_mode_calib (struct weston_compositor * compositor)
Start transition to calibrator touch event handling
The touch event mode changes when all touches on all touch devices have been lifted. If no touches are currently down, the transition is immediate.
\sa weston_touch_mode
Parameters:
compositor
–
weston_compositor_set_touch_mode_normal
void weston_compositor_set_touch_mode_normal (struct weston_compositor * compositor)
Start transition to normal touch event handling
The touch event mode changes when all touches on all touch devices have been lifted. If no touches are currently down, the transition is immediate.
\sa weston_touch_mode
Parameters:
compositor
–
weston_compositor_set_xkb_rule_names
int weston_compositor_set_xkb_rule_names (struct weston_compositor * ec, struct xkb_rule_names * names)
Parameters:
ec
–
names
–
weston_compositor_shutdown
void weston_compositor_shutdown (struct weston_compositor * ec)
Parameters:
ec
–
weston_compositor_sleep
void weston_compositor_sleep (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_stack_plane
void weston_compositor_stack_plane (struct weston_compositor * ec, struct weston_plane * plane, struct weston_plane * above)
Parameters:
ec
–
plane
–
above
–
weston_compositor_unlock
void weston_compositor_unlock (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_wake
void weston_compositor_wake (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_compositor_xkb_destroy
void weston_compositor_xkb_destroy (struct weston_compositor * ec)
Parameters:
ec
–
weston_debug_compositor_create
int weston_debug_compositor_create (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_debug_compositor_destroy
void weston_debug_compositor_destroy (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_environment_get_fd
int weston_environment_get_fd (const char * env)
Parameters:
env
–
weston_fade_run
struct weston_view_animation * weston_fade_run (struct weston_view * view, float start, float end, float k, weston_view_animation_done_func_t done, void * data)
Parameters:
view
–
start
–
end
–
k
–
done
–
data
–
weston_fade_update
void weston_fade_update (struct weston_view_animation * fade, float target)
Parameters:
fade
–
target
–
weston_head_add_destroy_listener
void weston_head_add_destroy_listener (struct weston_head * head, struct wl_listener * listener)
Parameters:
head
–
listener
–
weston_head_detach
void weston_head_detach (struct weston_head * head)
Parameters:
head
–
weston_head_from_resource
struct weston_head * weston_head_from_resource (struct wl_resource * resource)
Parameters:
resource
–
weston_head_get_destroy_listener
struct wl_listener * weston_head_get_destroy_listener (struct weston_head * head, int notify)
Parameters:
head
–
notify
–
weston_head_get_name
const char * weston_head_get_name (struct weston_head * head)
Parameters:
head
–
weston_head_get_output
struct weston_output * weston_head_get_output (struct weston_head * head)
Parameters:
head
–
weston_head_init
void weston_head_init (struct weston_head * head, const char * name)
Parameters:
head
–
name
–
weston_head_is_connected
_Bool weston_head_is_connected (struct weston_head * head)
Parameters:
head
–
weston_head_is_device_changed
_Bool weston_head_is_device_changed (struct weston_head * head)
Parameters:
head
–
weston_head_is_enabled
_Bool weston_head_is_enabled (struct weston_head * head)
Parameters:
head
–
weston_head_is_non_desktop
_Bool weston_head_is_non_desktop (struct weston_head * head)
Parameters:
head
–
weston_head_release
void weston_head_release (struct weston_head * head)
Parameters:
head
–
weston_head_reset_device_changed
void weston_head_reset_device_changed (struct weston_head * head)
Parameters:
head
–
weston_head_set_connection_status
void weston_head_set_connection_status (struct weston_head * head, _Bool connected)
Parameters:
head
–
connected
–
weston_head_set_internal
void weston_head_set_internal (struct weston_head * head)
Parameters:
head
–
weston_head_set_monitor_strings
void weston_head_set_monitor_strings (struct weston_head * head, const char * make, const char * model, const char * serialno)
Parameters:
head
–
make
–
model
–
serialno
–
weston_head_set_non_desktop
void weston_head_set_non_desktop (struct weston_head * head, _Bool non_desktop)
Parameters:
head
–
non_desktop
–
weston_head_set_physical_size
void weston_head_set_physical_size (struct weston_head * head, int32_t mm_width, int32_t mm_height)
Parameters:
head
–
mm_width
–
mm_height
–
weston_head_set_subpixel
void weston_head_set_subpixel (struct weston_head * head, enum wl_output_subpixel sp)
Parameters:
head
–
sp
–
weston_input_init
int weston_input_init (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_install_debug_key_binding
void weston_install_debug_key_binding (struct weston_compositor * compositor, uint32_t mod)
Parameters:
compositor
–
mod
–
weston_keyboard_end_grab
void weston_keyboard_end_grab (struct weston_keyboard * keyboard)
Parameters:
keyboard
–
weston_keyboard_has_focus_resource
_Bool weston_keyboard_has_focus_resource (struct weston_keyboard * keyboard)
Check if the keyboard has focused resources.
\param keyboard The keyboard to check for focused resources. \return Whether or not this keyboard has focused resources
Parameters:
keyboard
–
weston_keyboard_send_key
void weston_keyboard_send_key (struct weston_keyboard * keyboard, const struct timespec * time, uint32_t key, enum wl_keyboard_key_state state)
Send wl_keyboard.key events to focused resources.
\param keyboard The keyboard where the key events originates from. \param time The timestamp of the event \param key The key value of the event \param state The state enum value of the event
For every resource that is currently in focus, send a wl_keyboard.key event with the passed parameters. The focused resources are the wl_keyboard resources of the client which currently has the surface with keyboard focus.
Parameters:
keyboard
–
time
–
key
–
state
–
weston_keyboard_send_keymap
void weston_keyboard_send_keymap (struct weston_keyboard * kbd, struct wl_resource * resource)
Parameters:
kbd
–
resource
–
weston_keyboard_send_modifiers
void weston_keyboard_send_modifiers (struct weston_keyboard * keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group)
Send wl_keyboard.modifiers events to focused resources and pointer * focused resources.
\param keyboard The keyboard where the modifiers events originates from. \param serial The serial of the event \param mods_depressed The mods_depressed value of the event \param mods_latched The mods_latched value of the event \param mods_locked The mods_locked value of the event \param group The group value of the event
For every resource that is currently in focus, send a wl_keyboard.modifiers event with the passed parameters. The focused resources are the wl_keyboard resources of the client which currently has the surface with keyboard focus. This also sends wl_keyboard.modifiers events to the wl_keyboard resources of the client having pointer focus (if different from the keyboard focus client).
Parameters:
keyboard
–
serial
–
mods_depressed
–
mods_latched
–
mods_locked
–
group
–
weston_keyboard_set_focus
void weston_keyboard_set_focus (struct weston_keyboard * keyboard, struct weston_surface * surface)
Parameters:
keyboard
–
surface
–
weston_keyboard_set_locks
int weston_keyboard_set_locks (struct weston_keyboard * keyboard, uint32_t mask, uint32_t value)
Parameters:
keyboard
–
mask
–
value
–
weston_keyboard_start_grab
void weston_keyboard_start_grab (struct weston_keyboard * device, struct weston_keyboard_grab * grab)
Parameters:
device
–
grab
–
weston_layer_entry_insert
void weston_layer_entry_insert (struct weston_layer_entry * list, struct weston_layer_entry * entry)
Parameters:
list
–
entry
–
weston_layer_entry_remove
void weston_layer_entry_remove (struct weston_layer_entry * entry)
Parameters:
entry
–
weston_layer_init
void weston_layer_init (struct weston_layer * layer, struct weston_compositor * compositor)
Parameters:
layer
–
compositor
–
weston_layer_mask_is_infinite
_Bool weston_layer_mask_is_infinite (struct weston_layer * layer)
Parameters:
layer
–
weston_layer_set_mask
void weston_layer_set_mask (struct weston_layer * layer, int x, int y, int width, int height)
Parameters:
layer
–
x
–
y
–
width
–
height
–
weston_layer_set_mask_infinite
void weston_layer_set_mask_infinite (struct weston_layer * layer)
Parameters:
layer
–
weston_layer_set_position
void weston_layer_set_position (struct weston_layer * layer, enum weston_layer_position position)
Parameters:
layer
–
position
–
weston_layer_unset_position
void weston_layer_unset_position (struct weston_layer * layer)
Parameters:
layer
–
weston_load_module
void * weston_load_module (const char * name, const char * entrypoint)
Parameters:
name
–
entrypoint
–
weston_log
int weston_log (const char * fmt)
Parameters:
fmt
–
weston_log_continue
int weston_log_continue (const char * fmt)
Parameters:
fmt
–
weston_log_set_handler
void weston_log_set_handler (log_func_t log, log_func_t cont)
Parameters:
log
–
cont
–
weston_matrix_transform_region
void weston_matrix_transform_region (int * dest, struct weston_matrix * matrix, int * src)
Parameters:
dest
–
matrix
–
src
–
weston_module_init
int weston_module_init (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_module_path_from_env
size_t weston_module_path_from_env (const char * name, char * path, size_t path_len)
Parameters:
name
–
path
–
path_len
–
weston_move_run
struct weston_view_animation * weston_move_run (struct weston_view * view, int dx, int dy, float start, float end, _Bool reverse, weston_view_animation_done_func_t done, void * data)
Parameters:
view
–
dx
–
dy
–
start
–
end
–
reverse
–
done
–
data
–
weston_move_scale_run
struct weston_view_animation * weston_move_scale_run (struct weston_view * view, int dx, int dy, float start, float end, _Bool reverse, weston_view_animation_done_func_t done, void * data)
Parameters:
view
–
dx
–
dy
–
start
–
end
–
reverse
–
done
–
data
–
weston_output_activate_zoom
void weston_output_activate_zoom (struct weston_output * output, struct weston_seat * seat)
Parameters:
output
–
seat
–
weston_output_add_destroy_listener
void weston_output_add_destroy_listener (struct weston_output * output, struct wl_listener * listener)
Parameters:
output
–
listener
–
weston_output_attach_head
int weston_output_attach_head (struct weston_output * output, struct weston_head * head)
Parameters:
output
–
head
–
weston_output_damage
void weston_output_damage (struct weston_output * output)
Parameters:
output
–
weston_output_destroy
void weston_output_destroy (struct weston_output * output)
Parameters:
output
–
weston_output_disable
void weston_output_disable (struct weston_output * output)
Parameters:
output
–
weston_output_enable
int weston_output_enable (struct weston_output * output)
Parameters:
output
–
weston_output_finish_frame
void weston_output_finish_frame (struct weston_output * output, const struct timespec * stamp, uint32_t presented_flags)
Parameters:
output
–
stamp
–
presented_flags
–
weston_output_get_destroy_listener
struct wl_listener * weston_output_get_destroy_listener (struct weston_output * output, int notify)
Parameters:
output
–
notify
–
weston_output_get_first_head
struct weston_head * weston_output_get_first_head (struct weston_output * output)
Parameters:
output
–
weston_output_init
void weston_output_init (struct weston_output * output, struct weston_compositor * compositor, const char * name)
Parameters:
output
–
compositor
–
name
–
weston_output_init_zoom
void weston_output_init_zoom (struct weston_output * output)
Parameters:
output
–
weston_output_iterate_heads
struct weston_head * weston_output_iterate_heads (struct weston_output * output, struct weston_head * iter)
Parameters:
output
–
iter
–
weston_output_mode_set_native
int weston_output_mode_set_native (struct weston_output * output, struct weston_mode * mode, int32_t scale)
Parameters:
output
–
mode
–
scale
–
weston_output_mode_switch_to_native
int weston_output_mode_switch_to_native (struct weston_output * output)
Parameters:
output
–
weston_output_mode_switch_to_temporary
int weston_output_mode_switch_to_temporary (struct weston_output * output, struct weston_mode * mode, int32_t scale)
Parameters:
output
–
mode
–
scale
–
weston_output_move
void weston_output_move (struct weston_output * output, int x, int y)
Parameters:
output
–
x
–
y
–
weston_output_release
void weston_output_release (struct weston_output * output)
Parameters:
output
–
weston_output_schedule_repaint
void weston_output_schedule_repaint (struct weston_output * output)
Parameters:
output
–
weston_output_set_scale
void weston_output_set_scale (struct weston_output * output, int32_t scale)
Parameters:
output
–
scale
–
weston_output_set_transform
void weston_output_set_transform (struct weston_output * output, uint32_t transform)
Parameters:
output
–
transform
–
weston_output_transform_coordinate
void weston_output_transform_coordinate (struct weston_output * output, double device_x, double device_y, double * x, double * y)
Parameters:
output
–
device_x
–
device_y
–
x
–
y
–
weston_output_update_zoom
void weston_output_update_zoom (struct weston_output * output)
Parameters:
output
–
weston_parse_transform
int weston_parse_transform (const char * transform, uint32_t* out)
Parameters:
transform
–
out
–
weston_plane_init
void weston_plane_init (struct weston_plane * plane, struct weston_compositor * ec, int32_t x, int32_t y)
Parameters:
plane
–
ec
–
x
–
y
–
weston_plane_release
void weston_plane_release (struct weston_plane * plane)
Parameters:
plane
–
weston_pointer_clamp
void weston_pointer_clamp (struct weston_pointer * pointer, int * fx, int * fy)
Parameters:
pointer
–
fx
–
fy
–
weston_pointer_clear_focus
void weston_pointer_clear_focus (struct weston_pointer * pointer)
Clear the pointer focus
\param pointer the pointer to clear focus for.
This can be used to unset pointer focus and set the co-ordinates to the arbitrary values we use for the no focus case.
There's no requirement to use this function. For example, passing the results of a weston_compositor_pick_view directly to weston_pointer_set_focus will do the right thing when no view is found.
Parameters:
pointer
–
weston_pointer_constraint_destroy
void weston_pointer_constraint_destroy (struct weston_pointer_constraint * constraint)
Parameters:
constraint
–
weston_pointer_end_grab
void weston_pointer_end_grab (struct weston_pointer * pointer)
Parameters:
pointer
–
weston_pointer_has_focus_resource
_Bool weston_pointer_has_focus_resource (struct weston_pointer * pointer)
Check if the pointer has focused resources.
\param pointer The pointer to check for focused resources. \return Whether or not this pointer has focused resources
Parameters:
pointer
–
weston_pointer_motion_to_abs
void weston_pointer_motion_to_abs (struct weston_pointer * pointer, struct weston_pointer_motion_event * event, int * x, int * y)
Parameters:
pointer
–
event
–
x
–
y
–
weston_pointer_move
void weston_pointer_move (struct weston_pointer * pointer, struct weston_pointer_motion_event * event)
Parameters:
pointer
–
event
–
weston_pointer_send_axis
void weston_pointer_send_axis (struct weston_pointer * pointer, const struct timespec * time, struct weston_pointer_axis_event * event)
Send wl_pointer.axis events to focused resources.
\param pointer The pointer where the axis events originates from. \param time The timestamp of the event \param axis The axis enum value of the event \param value The axis value of the event
For every resource that is currently in focus, send a wl_pointer.axis event with the passed parameters. The focused resources are the wl_pointer resources of the client which currently has the surface with pointer focus.
Parameters:
pointer
–
time
–
event
–
weston_pointer_send_axis_source
void weston_pointer_send_axis_source (struct weston_pointer * pointer, uint32_t source)
Send wl_pointer.axis_source events to focused resources.
\param pointer The pointer where the axis_source events originates from. \param source The axis_source enum value of the event
For every resource that is currently in focus, send a wl_pointer.axis_source event with the passed parameter. The focused resources are the wl_pointer resources of the client which currently has the surface with pointer focus.
Parameters:
pointer
–
source
–
weston_pointer_send_button
void weston_pointer_send_button (struct weston_pointer * pointer, const struct timespec * time, uint32_t button, uint32_t state_w)
Send wl_pointer.button events to focused resources.
\param pointer The pointer where the button events originates from. \param time The timestamp of the event \param button The button value of the event \param value The state enum value of the event
For every resource that is currently in focus, send a wl_pointer.button event with the passed parameters. The focused resources are the wl_pointer resources of the client which currently has the surface with pointer focus.
Parameters:
pointer
–
time
–
button
–
state_w
–
weston_pointer_send_frame
void weston_pointer_send_frame (struct weston_pointer * pointer)
Send wl_pointer.frame events to focused resources.
\param pointer The pointer where the frame events originates from.
For every resource that is currently in focus, send a wl_pointer.frame event. The focused resources are the wl_pointer resources of the client which currently has the surface with pointer focus.
Parameters:
pointer
–
weston_pointer_send_motion
void weston_pointer_send_motion (struct weston_pointer * pointer, const struct timespec * time, struct weston_pointer_motion_event * event)
Parameters:
pointer
–
time
–
event
–
weston_pointer_set_default_grab
void weston_pointer_set_default_grab (struct weston_pointer * pointer, const struct weston_pointer_grab_interface * interface)
Parameters:
pointer
–
interface
–
weston_pointer_set_focus
void weston_pointer_set_focus (struct weston_pointer * pointer, struct weston_view * view, int sx, int sy)
Parameters:
pointer
–
view
–
sx
–
sy
–
weston_pointer_start_drag
int weston_pointer_start_drag (struct weston_pointer * pointer, struct weston_data_source * source, struct weston_surface * icon, struct wl_client * client)
Parameters:
pointer
–
source
–
icon
–
client
–
weston_pointer_start_grab
void weston_pointer_start_grab (struct weston_pointer * pointer, struct weston_pointer_grab * grab)
Parameters:
pointer
–
grab
–
weston_recorder_start
struct weston_recorder * weston_recorder_start (struct weston_output * output, const char * filename)
Parameters:
output
–
filename
–
weston_recorder_stop
void weston_recorder_stop (struct weston_recorder * recorder)
Parameters:
recorder
–
weston_screenshooter_shoot
int weston_screenshooter_shoot (struct weston_output * output, struct weston_buffer * buffer, weston_screenshooter_done_func_t done, void * data)
Parameters:
output
–
buffer
–
done
–
data
–
weston_seat_get_keyboard
struct weston_keyboard * weston_seat_get_keyboard (struct weston_seat * seat)
Get a seat's keyboard pointer
\param seat The seat to query \return The seat's keyboard pointer, or NULL if no keyboard is present
The keyboard pointer for a seat isn't freed when all keyboards are removed, so it should only be used when the seat's keyboard_device_count is greater than zero. This function does that test and only returns a pointer when a keyboard is present.
Parameters:
seat
–
weston_seat_get_pointer
struct weston_pointer * weston_seat_get_pointer (struct weston_seat * seat)
Get a seat's pointer pointer
\param seat The seat to query \return The seat's pointer pointer, or NULL if no pointer device is present
The pointer pointer for a seat isn't freed when all mice are removed, so it should only be used when the seat's pointer_device_count is greater than zero. This function does that test and only returns a pointer when a pointing device is present.
Parameters:
seat
–
weston_seat_get_touch
struct weston_touch * weston_seat_get_touch (struct weston_seat * seat)
Get a seat's touch pointer
\param seat The seat to query \return The seat's touch pointer, or NULL if no touch device is present
The touch pointer for a seat isn't freed when all touch devices are removed, so it should only be used when the seat's touch_device_count is greater than zero. This function does that test and only returns a pointer when a touch device is present.
Parameters:
seat
–
weston_seat_init
void weston_seat_init (struct weston_seat * seat, struct weston_compositor * ec, const char * seat_name)
Parameters:
seat
–
ec
–
seat_name
–
weston_seat_init_keyboard
int weston_seat_init_keyboard (struct weston_seat * seat, struct xkb_keymap * keymap)
Parameters:
seat
–
keymap
–
weston_seat_init_pointer
void weston_seat_init_pointer (struct weston_seat * seat)
Parameters:
seat
–
weston_seat_init_touch
void weston_seat_init_touch (struct weston_seat * seat)
Parameters:
seat
–
weston_seat_release
void weston_seat_release (struct weston_seat * seat)
Parameters:
seat
–
weston_seat_release_keyboard
void weston_seat_release_keyboard (struct weston_seat * seat)
Parameters:
seat
–
weston_seat_release_pointer
void weston_seat_release_pointer (struct weston_seat * seat)
Parameters:
seat
–
weston_seat_release_touch
void weston_seat_release_touch (struct weston_seat * seat)
Parameters:
seat
–
weston_seat_repick
void weston_seat_repick (struct weston_seat * seat)
Parameters:
seat
–
weston_seat_send_selection
void weston_seat_send_selection (struct weston_seat * seat, struct wl_client * client)
Parameters:
seat
–
client
–
weston_seat_set_keyboard_focus
void weston_seat_set_keyboard_focus (struct weston_seat * seat, struct weston_surface * surface)
Sets the keyboard focus to the given surface
\param seat The seat to query
Parameters:
seat
–
surface
–
weston_seat_set_selection
void weston_seat_set_selection (struct weston_seat * seat, struct weston_data_source * source, uint32_t serial)
Parameters:
seat
–
source
–
serial
–
weston_seat_update_keymap
void weston_seat_update_keymap (struct weston_seat * seat, struct xkb_keymap * keymap)
Parameters:
seat
–
keymap
–
weston_slide_run
struct weston_view_animation * weston_slide_run (struct weston_view * view, float start, float stop, weston_view_animation_done_func_t done, void * data)
Parameters:
view
–
start
–
stop
–
done
–
data
–
weston_spring_done
int weston_spring_done (struct weston_spring * spring)
Parameters:
spring
–
weston_spring_init
void weston_spring_init (struct weston_spring * spring, double k, double current, double target)
Parameters:
spring
–
k
–
current
–
target
–
weston_spring_update
void weston_spring_update (struct weston_spring * spring, const struct timespec * time)
Parameters:
spring
–
time
–
weston_stable_fade_run
struct weston_view_animation * weston_stable_fade_run (struct weston_view * front_view, float start, struct weston_view * back_view, float end, weston_view_animation_done_func_t done, void * data)
Parameters:
front_view
–
start
–
back_view
–
end
–
done
–
data
–
weston_surface_copy_content
int weston_surface_copy_content (struct weston_surface * surface, void * target, size_t size, int src_x, int src_y, int width, int height)
Parameters:
surface
–
target
–
size
–
src_x
–
src_y
–
width
–
height
–
weston_surface_create
struct weston_surface * weston_surface_create (struct weston_compositor * compositor)
Parameters:
compositor
–
weston_surface_damage
void weston_surface_damage (struct weston_surface * surface)
Parameters:
surface
–
weston_surface_destroy
void weston_surface_destroy (struct weston_surface * surface)
Parameters:
surface
–
weston_surface_get_bounding_box
struct weston_geometry weston_surface_get_bounding_box (struct weston_surface * surface)
Parameters:
surface
–
weston_surface_get_content_size
void weston_surface_get_content_size (struct weston_surface * surface, int * width, int * height)
Parameters:
surface
–
width
–
height
–
weston_surface_get_main_surface
struct weston_surface * weston_surface_get_main_surface (struct weston_surface * surface)
Parameters:
surface
–
weston_surface_get_role
const char * weston_surface_get_role (struct weston_surface * surface)
Parameters:
surface
–
weston_surface_is_mapped
_Bool weston_surface_is_mapped (struct weston_surface * surface)
Parameters:
surface
–
weston_surface_schedule_repaint
void weston_surface_schedule_repaint (struct weston_surface * surface)
Parameters:
surface
–
weston_surface_set_color
void weston_surface_set_color (struct weston_surface * surface, float red, float green, float blue, float alpha)
Parameters:
surface
–
red
–
green
–
blue
–
alpha
–
weston_surface_set_label_func
void weston_surface_set_label_func (struct weston_surface * surface, int (struct weston_surface *, char *, size_t) * desc)
Parameters:
surface
–
desc
–
weston_surface_set_role
int weston_surface_set_role (struct weston_surface * surface, const char * role_name, struct wl_resource * error_resource, uint32_t error_code)
Parameters:
surface
–
role_name
–
error_resource
–
error_code
–
weston_surface_set_size
void weston_surface_set_size (struct weston_surface * surface, int32_t width, int32_t height)
Parameters:
surface
–
width
–
height
–
weston_surface_to_buffer_float
void weston_surface_to_buffer_float (struct weston_surface * surface, float x, float y, float * bx, float * by)
Parameters:
surface
–
x
–
y
–
bx
–
by
–
weston_surface_to_buffer_rect
int weston_surface_to_buffer_rect (struct weston_surface * surface, int rect)
Parameters:
surface
–
rect
–
weston_surface_to_buffer_region
void weston_surface_to_buffer_region (struct weston_surface * surface, int * surface_region, int * buffer_region)
Parameters:
surface
–
surface_region
–
buffer_region
–
weston_surface_unmap
void weston_surface_unmap (struct weston_surface * surface)
Parameters:
surface
–
weston_touch_create_touch_device
struct weston_touch_device * weston_touch_create_touch_device (struct weston_touch * touch, const char * syspath, void * backend_data, const struct weston_touch_device_ops * ops)
Parameters:
touch
–
The parent weston_touch that identifies the seat.
syspath
–
Unique device name.
backend_data
–
Backend private data if necessary.
ops
–
Calibration operations, or NULL for not able to run calibration.
New touch device, or NULL on failure.
Register a touchscreen input device
weston_touch_device_can_calibrate
_Bool weston_touch_device_can_calibrate (struct weston_touch_device * device)
Is it possible to run calibration on this touch device?
Parameters:
device
–
pointer to weston_touch_device Returns: boolean, true when device can be calibrated or false otherwise
weston_touch_device_destroy
void weston_touch_device_destroy (struct weston_touch_device * device)
Destroy the touch device.
Parameters:
device
–
pointer to weston_touch_device Returns: Nothing
weston_touch_end_grab
void weston_touch_end_grab (struct weston_touch * touch)
Parameters:
touch
–
weston_touch_has_focus_resource
_Bool weston_touch_has_focus_resource (struct weston_touch * touch)
Check if the touch has focused resources.
\param touch The touch to check for focused resources. \return Whether or not this touch has focused resources
Parameters:
touch
–
weston_touch_send_down
void weston_touch_send_down (struct weston_touch * touch, const struct timespec * time, int touch_id, int x, int y)
Send wl_touch.down events to focused resources.
\param touch The touch where the down events originates from. \param time The timestamp of the event \param touch_id The touch_id value of the event \param x The x value of the event \param y The y value of the event
For every resource that is currently in focus, send a wl_touch.down event with the passed parameters. The focused resources are the wl_touch resources of the client which currently has the surface with touch focus.
Parameters:
touch
–
time
–
touch_id
–
x
–
y
–
weston_touch_send_frame
void weston_touch_send_frame (struct weston_touch * touch)
Send wl_touch.frame events to focused resources.
\param touch The touch where the frame events originates from.
For every resource that is currently in focus, send a wl_touch.frame event. The focused resources are the wl_touch resources of the client which currently has the surface with touch focus.
Parameters:
touch
–
weston_touch_send_motion
void weston_touch_send_motion (struct weston_touch * touch, const struct timespec * time, int touch_id, int x, int y)
Send wl_touch.motion events to focused resources.
\param touch The touch where the motion events originates from. \param time The timestamp of the event \param touch_id The touch_id value of the event \param x The x value of the event \param y The y value of the event
For every resource that is currently in focus, send a wl_touch.motion event with the passed parameters. The focused resources are the wl_touch resources of the client which currently has the surface with touch focus.
Parameters:
touch
–
time
–
touch_id
–
x
–
y
–
weston_touch_send_up
void weston_touch_send_up (struct weston_touch * touch, const struct timespec * time, int touch_id)
Send wl_touch.up events to focused resources.
\param touch The touch where the up events originates from. \param time The timestamp of the event \param touch_id The touch_id value of the event
For every resource that is currently in focus, send a wl_touch.up event with the passed parameters. The focused resources are the wl_touch resources of the client which currently has the surface with touch focus.
Parameters:
touch
–
time
–
touch_id
–
weston_touch_set_focus
void weston_touch_set_focus (struct weston_touch * touch, struct weston_view * view)
Parameters:
touch
–
view
–
weston_touch_start_drag
int weston_touch_start_drag (struct weston_touch * touch, struct weston_data_source * source, struct weston_surface * icon, struct wl_client * client)
Parameters:
touch
–
source
–
icon
–
client
–
weston_touch_start_grab
void weston_touch_start_grab (struct weston_touch * touch, struct weston_touch_grab * grab)
Parameters:
touch
–
grab
–
weston_transform_to_string
const char * weston_transform_to_string (uint32_t output_transform)
Parameters:
output_transform
–
weston_transformed_coord
void weston_transformed_coord (int width, int height, enum wl_output_transform transform, int32_t scale, float sx, float sy, float * bx, float * by)
Parameters:
width
–
height
–
transform
–
scale
–
sx
–
sy
–
bx
–
by
–
weston_transformed_rect
int weston_transformed_rect (int width, int height, enum wl_output_transform transform, int32_t scale, int rect)
Parameters:
width
–
height
–
transform
–
scale
–
rect
–
weston_transformed_region
void weston_transformed_region (int width, int height, enum wl_output_transform transform, int32_t scale, int * src, int * dest)
Parameters:
width
–
height
–
transform
–
scale
–
src
–
dest
–
weston_version
void weston_version (int * major, int * minor, int * micro)
Parameters:
major
–
minor
–
micro
–
weston_view_activate
void weston_view_activate (struct weston_view * view, struct weston_seat * seat, uint32_t flags)
Parameters:
view
–
seat
–
flags
–
weston_view_animation_destroy
void weston_view_animation_destroy (struct weston_view_animation * animation)
Parameters:
animation
–
weston_view_create
struct weston_view * weston_view_create (struct weston_surface * surface)
Parameters:
surface
–
weston_view_damage_below
void weston_view_damage_below (struct weston_view * view)
Parameters:
view
–
weston_view_destroy
void weston_view_destroy (struct weston_view * view)
Parameters:
view
–
weston_view_from_global
void weston_view_from_global (struct weston_view * view, int32_t x, int32_t y, int32_t* vx, int32_t* vy)
Parameters:
view
–
x
–
y
–
vx
–
vy
–
weston_view_from_global_fixed
void weston_view_from_global_fixed (struct weston_view * view, int x, int y, int * vx, int * vy)
Parameters:
view
–
x
–
y
–
vx
–
vy
–
weston_view_from_global_float
void weston_view_from_global_float (struct weston_view * view, float x, float y, float * vx, float * vy)
Parameters:
view
–
x
–
y
–
vx
–
vy
–
weston_view_geometry_dirty
void weston_view_geometry_dirty (struct weston_view * view)
Parameters:
view
–
weston_view_is_mapped
_Bool weston_view_is_mapped (struct weston_view * view)
Parameters:
view
–
weston_view_is_opaque
_Bool weston_view_is_opaque (struct weston_view * ev, int * region)
Parameters:
ev
–
region
–
weston_view_move_to_plane
void weston_view_move_to_plane (struct weston_view * view, struct weston_plane * plane)
Parameters:
view
–
plane
–
weston_view_schedule_repaint
void weston_view_schedule_repaint (struct weston_view * view)
Parameters:
view
–
weston_view_set_mask
void weston_view_set_mask (struct weston_view * view, int x, int y, int width, int height)
Parameters:
view
–
x
–
y
–
width
–
height
–
weston_view_set_mask_infinite
void weston_view_set_mask_infinite (struct weston_view * view)
Parameters:
view
–
weston_view_set_output
void weston_view_set_output (struct weston_view * view, struct weston_output * output)
Parameters:
view
–
output
–
weston_view_set_position
void weston_view_set_position (struct weston_view * view, float x, float y)
Parameters:
view
–
x
–
y
–
weston_view_set_transform_parent
void weston_view_set_transform_parent (struct weston_view * view, struct weston_view * parent)
Parameters:
view
–
parent
–
weston_view_to_global_fixed
void weston_view_to_global_fixed (struct weston_view * view, int sx, int sy, int * x, int * y)
Parameters:
view
–
sx
–
sy
–
x
–
y
–
weston_view_to_global_float
void weston_view_to_global_float (struct weston_view * view, float sx, float sy, float * x, float * y)
Parameters:
view
–
sx
–
sy
–
x
–
y
–
weston_view_unmap
void weston_view_unmap (struct weston_view * view)
Parameters:
view
–
weston_view_update_transform
void weston_view_update_transform (struct weston_view * view)
Parameters:
view
–
weston_vlog
int weston_vlog (const char * fmt, int ap)
Parameters:
fmt
–
ap
–
weston_vlog_continue
int weston_vlog_continue (const char * fmt, int ap)
Parameters:
fmt
–
ap
–
weston_zoom_run
struct weston_view_animation * weston_zoom_run (struct weston_view * view, float start, float stop, weston_view_animation_done_func_t done, void * data)
Parameters:
view
–
start
–
stop
–
done
–
data
–
wl_data_device_manager_init
int wl_data_device_manager_init (struct wl_display * display)
Parameters:
display
–
wl_data_device_set_keyboard_focus
void wl_data_device_set_keyboard_focus (struct weston_seat * seat)
Parameters:
seat
–
Structures
input_method
linux_dmabuf_buffer
shell_surface
weston_animation
struct weston_animation { void (*frame)(struct weston_animation *animation, struct weston_output *output, const struct timespec *time); int frame_counter; struct wl_list link; };
Fields
frame
()
–
frame_counter
(int )
–
link
(struct wl_list )
–
weston_backend
struct weston_backend { void (*destroy)(struct weston_compositor *compositor); /** Begin a repaint sequence * * Provides the backend with explicit markers around repaint * sequences, which may allow the backend to aggregate state * application. This call will be bracketed by the repaint_flush (on * success), or repaint_cancel (when any output in the grouping fails * repaint). * * Returns an opaque pointer, which the backend may use as private * data referring to the repaint cycle. */ void * (*repaint_begin)(struct weston_compositor *compositor); /** Cancel a repaint sequence * * Cancels a repaint sequence, when an error has occurred during * one output's repaint; see repaint_begin. * * @param repaint_data Data returned by repaint_begin */ void (*repaint_cancel)(struct weston_compositor *compositor, void *repaint_data); /** Conclude a repaint sequence * * Called on successful completion of a repaint sequence; see * repaint_begin. * * @param repaint_data Data returned by repaint_begin */ void (*repaint_flush)(struct weston_compositor *compositor, void *repaint_data); /** Allocate a new output * * @param compositor The compositor. * @param name Name for the new output. * * Allocates a new output structure that embeds a weston_output, * initializes it, and returns the pointer to the weston_output * member. * * Must set weston_output members @c destroy, @c enable and @c disable. */ struct weston_output * (*create_output)(struct weston_compositor *compositor, const char *name); };
Fields
destroy
()
–
repaint_begin
()
–
repaint_cancel
()
–
repaint_flush
()
–
create_output
()
–
weston_backend_config
struct weston_backend_config { /** Major version for the backend-specific config struct * * This version must match exactly what the backend expects, otherwise * the struct is incompatible. */ uint32_t struct_version; /** Minor version of the backend-specific config struct * * This must be set to sizeof(struct backend-specific config). * If the value here is smaller than what the backend expects, the * extra config members will assume their default values. * * A value greater than what the backend expects is incompatible. */ size_t struct_size; };
Fields
struct_version
(uint32_t)
–
struct_size
(size_t)
–
weston_binding
weston_buffer
weston_buffer_reference
struct weston_buffer_reference { struct weston_buffer *buffer; struct wl_listener destroy_listener; };
Fields
buffer
(struct weston_buffer *)
–
destroy_listener
(struct wl_listener )
–
weston_buffer_release
struct weston_buffer_release { /* The associated zwp_linux_buffer_release_v1 resource. */ struct wl_resource *resource; /* How many weston_buffer_release_reference objects point to this * object. */ uint32_t ref_count; /* The fence fd, if any, associated with this release. If the fence fd * is -1 then this is considered an immediate release. */ int fence_fd; };
Fields
resource
(struct wl_resource *)
–
ref_count
(uint32_t)
–
fence_fd
(int )
–
weston_buffer_release_reference
struct weston_buffer_release_reference { struct weston_buffer_release *buffer_release; /* Listener for the destruction of the wl_resource associated with the * referenced buffer_release object. */ struct wl_listener destroy_listener; };
Fields
buffer_release
(struct weston_buffer_release *)
–
destroy_listener
(struct wl_listener )
–
weston_buffer_viewport
struct weston_buffer_viewport { struct { /* wl_surface.set_buffer_transform */ uint32_t transform; /* wl_surface.set_scaling_factor */ int32_t scale; /* * If src_width != wl_fixed_from_int(-1), * then and only then src_* are used. */ wl_fixed_t src_x, src_y; wl_fixed_t src_width, src_height; } buffer; struct { /* * If width == -1, the size is inferred from the buffer. */ int32_t width, height; } surface; int changed; };
Fields
buffer
(struct (anonymous struct at /home/mvlad/src/weston/libweston/compositor.h:1236:2) )
–
surface
(struct (anonymous struct at /home/mvlad/src/weston/libweston/compositor.h:1251:2) )
–
changed
(int )
–
weston_compositor
weston_data_offer
struct weston_data_offer { struct wl_resource *resource; struct weston_data_source *source; struct wl_listener source_destroy_listener; uint32_t dnd_actions; enum wl_data_device_manager_dnd_action preferred_dnd_action; bool in_ask; };
Fields
resource
(struct wl_resource *)
–
source
(struct weston_data_source *)
–
source_destroy_listener
(struct wl_listener )
–
dnd_actions
(uint32_t)
–
wl_data_device_manager_dnd_action
(enum wl_data_device_manager_dnd_action )
–
preferred_dnd_action
(enum wl_data_device_manager_dnd_action )
–
in_ask
(_Bool )
–
weston_data_source
weston_debug_compositor
weston_debug_scope
weston_desktop_xwayland
weston_desktop_xwayland_interface
weston_geometry
struct weston_geometry { int32_t x, y; int32_t width, height; };
Fields
x
(int32_t)
–
y
(int32_t)
–
width
(int32_t)
–
height
(int32_t)
–
weston_head
struct weston_head { struct weston_compositor *compositor; /**< owning compositor */ struct wl_list compositor_link; /**< in weston_compositor::head_list */ struct wl_signal destroy_signal; /**< destroy callbacks */ struct weston_output *output; /**< the output driving this head */ struct wl_list output_link; /**< in weston_output::head_list */ struct wl_list resource_list; /**< wl_output protocol objects */ struct wl_global *global; /**< wl_output global */ int32_t mm_width; /**< physical image width in mm */ int32_t mm_height; /**< physical image height in mm */ char *make; /**< monitor manufacturer (PNP ID) */ char *model; /**< monitor model */ char *serial_number; /**< monitor serial */ uint32_t subpixel; /**< enum wl_output_subpixel */ bool connection_internal; /**< embedded monitor (e.g. laptop) */ bool device_changed; /**< monitor information has changed */ char *name; /**< head name, e.g. connector name */ bool connected; /**< is physically connected */ bool non_desktop; /**< non-desktop display, e.g. HMD */ };
Fields
compositor
(struct weston_compositor *)
–
compositor_link
(struct wl_list )
–
destroy_signal
(struct wl_signal )
–
output
(struct weston_output *)
–
output_link
(struct wl_list )
–
resource_list
(struct wl_list )
–
global
(struct wl_global *)
–
mm_width
(int32_t)
–
mm_height
(int32_t)
–
make
(char *)
–
model
(char *)
–
serial_number
(char *)
–
subpixel
(uint32_t)
–
connection_internal
(_Bool )
–
device_changed
(_Bool )
–
name
(char *)
–
connected
(_Bool )
–
non_desktop
(_Bool )
–
weston_keyboard
weston_keyboard_grab
weston_keyboard_grab_interface
struct weston_keyboard_grab_interface { void (*key)(struct weston_keyboard_grab *grab, const struct timespec *time, uint32_t key, uint32_t state); void (*modifiers)(struct weston_keyboard_grab *grab, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group); void (*cancel)(struct weston_keyboard_grab *grab); };
Fields
key
()
–
modifiers
()
–
cancel
()
–
weston_launcher
weston_layer
weston_layer_entry
struct weston_layer_entry { struct wl_list link; struct weston_layer *layer; };
Fields
link
(struct wl_list )
–
layer
(struct weston_layer *)
–
weston_matrix
weston_mode
struct weston_mode { uint32_t flags; enum weston_mode_aspect_ratio aspect_ratio; int32_t width, height; uint32_t refresh; struct wl_list link; };
Fields
flags
(uint32_t)
–
aspect_ratio
(enum weston_mode_aspect_ratio )
–
width
(int32_t)
–
height
(int32_t)
–
refresh
(uint32_t)
–
link
(struct wl_list )
–
weston_output
weston_output_zoom
struct weston_output_zoom { bool active; float increment; float level; float max_level; float trans_x, trans_y; struct { double x, y; } current; struct weston_seat *seat; struct weston_animation animation_z; struct weston_spring spring_z; struct wl_listener motion_listener; };
Fields
active
(_Bool )
–
increment
(float )
–
level
(float )
–
max_level
(float )
–
trans_x
(float )
–
trans_y
(float )
–
current
(struct (anonymous struct at /home/mvlad/src/weston/libweston/compositor.h:155:2) )
–
seat
(struct weston_seat *)
–
animation_z
(struct weston_animation )
–
spring_z
(struct weston_spring )
–
motion_listener
(struct wl_listener )
–
weston_plane
struct weston_plane { struct weston_compositor *compositor; pixman_region32_t damage; /**< in global coords */ pixman_region32_t clip; int32_t x, y; struct wl_list link; };
Fields
compositor
(struct weston_compositor *)
–
damage
(int )
–
clip
(int )
–
x
(int32_t)
–
y
(int32_t)
–
link
(struct wl_list )
–
weston_point2d_device_normalized
struct weston_point2d_device_normalized { double x; double y; };
Fields
x
(double )
–
y
(double )
–
weston_pointer
seat: a pointer to weston_seat pointer_clients: a list of pointer clients focus: A pointer to the current view in focus focus_client: focus_serial: focus_view_listener: focus_resource_listener: focus_signal: motion_signal: destroy_signal: sprite: sprite_destroy_listener: hotspot_x: hotspot_y: grab: default_grab: grab_x: grab_y: grab_button: grab_serial: grab_time: x: y: sx: sy: button_count: output_destroy_listener: timestamps_list:
weston_pointer_axis_event
struct weston_pointer_axis_event { uint32_t axis; double value; bool has_discrete; int32_t discrete; };
Fields
axis
(uint32_t)
–
value
(double )
–
has_discrete
(_Bool )
–
discrete
(int32_t)
–
weston_pointer_client
struct weston_pointer_client { struct wl_list link; struct wl_client *client; struct wl_list pointer_resources; struct wl_list relative_pointer_resources; };
This represents the current weston pointer client
Fields
link
(struct wl_list )
–
the link
client
(struct wl_client *)
–
current client
pointer_resources
(struct wl_list )
–
the pointer resources
relative_pointer_resources
(struct wl_list )
–
relative pointe resources
weston_pointer_constraint
weston_pointer_grab
weston_pointer_grab_interface
struct weston_pointer_grab_interface { void (*focus)(struct weston_pointer_grab *grab); void (*motion)(struct weston_pointer_grab *grab, const struct timespec *time, struct weston_pointer_motion_event *event); void (*button)(struct weston_pointer_grab *grab, const struct timespec *time, uint32_t button, uint32_t state); void (*axis)(struct weston_pointer_grab *grab, const struct timespec *time, struct weston_pointer_axis_event *event); void (*axis_source)(struct weston_pointer_grab *grab, uint32_t source); void (*frame)(struct weston_pointer_grab *grab); void (*cancel)(struct weston_pointer_grab *grab); };
Fields
focus
()
–
motion
()
–
button
()
–
axis
()
–
axis_source
()
–
frame
()
–
cancel
()
–
weston_pointer_motion_event
struct weston_pointer_motion_event { uint32_t mask; struct timespec time; double x; double y; double dx; double dy; double dx_unaccel; double dy_unaccel; };
Fields
mask
(uint32_t)
–
time
(struct timespec )
–
x
(double )
–
y
(double )
–
dx
(double )
–
dy
(double )
–
dx_unaccel
(double )
–
dy_unaccel
(double )
–
weston_position
struct weston_position { int32_t x, y; };
Fields
x
(int32_t)
–
y
(int32_t)
–
weston_recorder
weston_region
struct weston_region { struct wl_resource *resource; pixman_region32_t region; };
Fields
resource
(struct wl_resource *)
–
region
(int )
–
weston_renderer
struct weston_renderer { int (*read_pixels)(struct weston_output *output, pixman_format_code_t format, void *pixels, uint32_t x, uint32_t y, uint32_t width, uint32_t height); void (*repaint_output)(struct weston_output *output, pixman_region32_t *output_damage); void (*flush_damage)(struct weston_surface *surface); void (*attach)(struct weston_surface *es, struct weston_buffer *buffer); void (*surface_set_color)(struct weston_surface *surface, float red, float green, float blue, float alpha); void (*destroy)(struct weston_compositor *ec); /** See weston_surface_get_content_size() */ void (*surface_get_content_size)(struct weston_surface *surface, int *width, int *height); /** See weston_surface_copy_content() */ int (*surface_copy_content)(struct weston_surface *surface, void *target, size_t size, int src_x, int src_y, int width, int height); /** See weston_compositor_import_dmabuf() */ bool (*import_dmabuf)(struct weston_compositor *ec, struct linux_dmabuf_buffer *buffer); /** On error sets num_formats to zero */ void (*query_dmabuf_formats)(struct weston_compositor *ec, int **formats, int *num_formats); /** On error sets num_modifiers to zero */ void (*query_dmabuf_modifiers)(struct weston_compositor *ec, int format, uint64_t **modifiers, int *num_modifiers); };
Fields
read_pixels
()
–
repaint_output
()
–
flush_damage
()
–
attach
()
–
surface_set_color
()
–
destroy
()
–
surface_get_content_size
()
–
surface_copy_content
()
–
import_dmabuf
()
–
query_dmabuf_formats
()
–
query_dmabuf_modifiers
()
–
weston_seat
weston_size
struct weston_size { int32_t width, height; };
Fields
width
(int32_t)
–
height
(int32_t)
–
weston_spring
struct weston_spring { double k; double friction; double current; double target; double previous; double min, max; struct timespec timestamp; uint32_t clip; };
Fields
k
(double )
–
friction
(double )
–
current
(double )
–
target
(double )
–
previous
(double )
–
min
(double )
–
max
(double )
–
timestamp
(struct timespec )
–
clip
(uint32_t)
–
weston_subsurface
struct weston_subsurface { struct wl_resource *resource; /* guaranteed to be valid and non-NULL */ struct weston_surface *surface; struct wl_listener surface_destroy_listener; /* can be NULL */ struct weston_surface *parent; struct wl_listener parent_destroy_listener; struct wl_list parent_link; struct wl_list parent_link_pending; struct { int32_t x; int32_t y; int set; } position; int has_cached_data; struct weston_surface_state cached; struct weston_buffer_reference cached_buffer_ref; /* Sub-surface has been reordered; need to apply damage. */ bool reordered; int synchronized; /* Used for constructing the view tree */ struct wl_list unused_views; };
Fields
resource
(struct wl_resource *)
–
surface
(struct weston_surface *)
–
surface_destroy_listener
(struct wl_listener )
–
parent
(struct weston_surface *)
–
parent_destroy_listener
(struct wl_listener )
–
parent_link
(struct wl_list )
–
parent_link_pending
(struct wl_list )
–
position
(struct (anonymous struct at /home/mvlad/src/weston/libweston/compositor.h:1579:2) )
–
has_cached_data
(int )
–
cached
(struct weston_surface_state )
–
cached_buffer_ref
(struct weston_buffer_reference )
–
reordered
(_Bool )
–
synchronized
(int )
–
unused_views
(struct wl_list )
–
weston_surface
weston_surface_activation_data
struct weston_surface_activation_data { struct weston_surface *surface; struct weston_seat *seat; };
Fields
surface
(struct weston_surface *)
–
seat
(struct weston_seat *)
–
weston_surface_state
struct weston_surface_state { /* wl_surface.attach */ int newly_attached; struct weston_buffer *buffer; struct wl_listener buffer_destroy_listener; int32_t sx; int32_t sy; /* wl_surface.damage */ pixman_region32_t damage_surface; /* wl_surface.damage_buffer */ pixman_region32_t damage_buffer; /* wl_surface.set_opaque_region */ pixman_region32_t opaque; /* wl_surface.set_input_region */ pixman_region32_t input; /* wl_surface.frame */ struct wl_list frame_callback_list; /* presentation.feedback */ struct wl_list feedback_list; /* wl_surface.set_buffer_transform */ /* wl_surface.set_scaling_factor */ /* wp_viewport.set_source */ /* wp_viewport.set_destination */ struct weston_buffer_viewport buffer_viewport; /* zwp_surface_synchronization_v1.set_acquire_fence */ int acquire_fence_fd; /* zwp_surface_synchronization_v1.get_release */ struct weston_buffer_release_reference buffer_release_ref; };
Fields
newly_attached
(int )
–
buffer
(struct weston_buffer *)
–
buffer_destroy_listener
(struct wl_listener )
–
sx
(int32_t)
–
sy
(int32_t)
–
damage_surface
(int )
–
damage_buffer
(int )
–
opaque
(int )
–
input
(int )
–
frame_callback_list
(struct wl_list )
–
feedback_list
(struct wl_list )
–
buffer_viewport
(struct weston_buffer_viewport )
–
acquire_fence_fd
(int )
–
buffer_release_ref
(struct weston_buffer_release_reference )
–
weston_timeline_object
weston_touch
weston_touch_calibrator
weston_touch_device
weston_touch_device_matrix
struct weston_touch_device_matrix { float m[6]; };
Fields
m
(float [6] )
–
weston_touch_device_ops
struct weston_touch_device_ops { /** Get the associated output if existing. */ struct weston_output *(*get_output)(struct weston_touch_device *device); /** Get the name of the associated head if existing. */ const char * (*get_calibration_head_name)(struct weston_touch_device *device); /** Retrieve the current calibration matrix. */ void (*get_calibration)(struct weston_touch_device *device, struct weston_touch_device_matrix *cal); /** Set a new calibration matrix. */ void (*set_calibration)(struct weston_touch_device *device, const struct weston_touch_device_matrix *cal); };
Fields
get_output
()
–
get_calibration_head_name
()
–
get_calibration
()
–
set_calibration
()
–
weston_touch_grab
weston_touch_grab_interface
struct weston_touch_grab_interface { void (*down)(struct weston_touch_grab *grab, const struct timespec *time, int touch_id, wl_fixed_t sx, wl_fixed_t sy); void (*up)(struct weston_touch_grab *grab, const struct timespec *time, int touch_id); void (*motion)(struct weston_touch_grab *grab, const struct timespec *time, int touch_id, wl_fixed_t sx, wl_fixed_t sy); void (*frame)(struct weston_touch_grab *grab); void (*cancel)(struct weston_touch_grab *grab); };
Fields
down
()
–
up
()
–
motion
()
–
frame
()
–
cancel
()
–
weston_transform
struct weston_transform { struct weston_matrix matrix; struct wl_list link; };
Fields
matrix
(struct weston_matrix )
–
link
(struct wl_list )
–
weston_view
weston_view_animation
weston_xkb_info
struct weston_xkb_info { struct xkb_keymap *keymap; size_t keymap_size; char *keymap_string; int32_t ref_count; xkb_mod_index_t shift_mod; xkb_mod_index_t caps_mod; xkb_mod_index_t ctrl_mod; xkb_mod_index_t alt_mod; xkb_mod_index_t mod2_mod; xkb_mod_index_t mod3_mod; xkb_mod_index_t super_mod; xkb_mod_index_t mod5_mod; xkb_led_index_t num_led; xkb_led_index_t caps_led; xkb_led_index_t scroll_led; };
Fields
keymap
(struct xkb_keymap *)
–
keymap_size
(size_t)
–
keymap_string
(char *)
–
ref_count
(int32_t)
–
shift_mod
(xkb_mod_index_t)
–
caps_mod
(xkb_mod_index_t)
–
ctrl_mod
(xkb_mod_index_t)
–
alt_mod
(xkb_mod_index_t)
–
mod2_mod
(xkb_mod_index_t)
–
mod3_mod
(xkb_mod_index_t)
–
super_mod
(xkb_mod_index_t)
–
mod5_mod
(xkb_mod_index_t)
–
num_led
(xkb_led_index_t)
–
caps_led
(xkb_led_index_t)
–
scroll_led
(xkb_led_index_t)
–
wl_array
wl_client
wl_display
wl_event_source
wl_global
wl_list
wl_listener
wl_resource
wl_shm_buffer
wl_signal
Enumerations
dpms_enum
enum dpms_enum { WESTON_DPMS_ON, WESTON_DPMS_STANDBY, WESTON_DPMS_SUSPEND, WESTON_DPMS_OFF };
Members
WESTON_DPMS_ON
(0)
–
WESTON_DPMS_STANDBY
(1)
–
WESTON_DPMS_SUSPEND
(2)
–
WESTON_DPMS_OFF
(3)
–
weston_activate_flag
enum weston_activate_flag { WESTON_ACTIVATE_FLAG_NONE = 0, WESTON_ACTIVATE_FLAG_CONFIGURE = 1 << 0, WESTON_ACTIVATE_FLAG_CLICKED = 1 << 1, };
Members
WESTON_ACTIVATE_FLAG_NONE
(0)
–
WESTON_ACTIVATE_FLAG_CONFIGURE
(1)
–
WESTON_ACTIVATE_FLAG_CLICKED
(2)
–
weston_capability
enum weston_capability { /* backend/renderer supports arbitrary rotation */ WESTON_CAP_ROTATION_ANY = 0x0001, /* screencaptures need to be y-flipped */ WESTON_CAP_CAPTURE_YFLIP = 0x0002, /* backend/renderer has a separate cursor plane */ WESTON_CAP_CURSOR_PLANE = 0x0004, /* backend supports setting arbitrary resolutions */ WESTON_CAP_ARBITRARY_MODES = 0x0008, /* renderer supports weston_view_set_mask() clipping */ WESTON_CAP_VIEW_CLIP_MASK = 0x0010, /* renderer supports explicit synchronization */ WESTON_CAP_EXPLICIT_SYNC = 0x0020, };
Members
WESTON_CAP_ROTATION_ANY
(1)
–
WESTON_CAP_CAPTURE_YFLIP
(2)
–
WESTON_CAP_CURSOR_PLANE
(4)
–
WESTON_CAP_ARBITRARY_MODES
(8)
–
WESTON_CAP_VIEW_CLIP_MASK
(16)
–
WESTON_CAP_EXPLICIT_SYNC
(32)
–
weston_compositor_backend
enum weston_compositor_backend { WESTON_BACKEND_DRM, WESTON_BACKEND_FBDEV, WESTON_BACKEND_HEADLESS, WESTON_BACKEND_RDP, WESTON_BACKEND_WAYLAND, WESTON_BACKEND_X11, };
Members
WESTON_BACKEND_DRM
(0)
–
WESTON_BACKEND_FBDEV
(1)
–
WESTON_BACKEND_HEADLESS
(2)
–
WESTON_BACKEND_RDP
(3)
–
WESTON_BACKEND_WAYLAND
(4)
–
WESTON_BACKEND_X11
(5)
–
weston_key_state_update
enum weston_key_state_update { STATE_UPDATE_AUTOMATIC, STATE_UPDATE_NONE, };
Members
STATE_UPDATE_AUTOMATIC
(0)
–
STATE_UPDATE_NONE
(1)
–
weston_keyboard_locks
enum weston_keyboard_locks { WESTON_NUM_LOCK = (1 << 0), WESTON_CAPS_LOCK = (1 << 1), };
Members
WESTON_NUM_LOCK
(1)
–
WESTON_CAPS_LOCK
(2)
–
weston_keyboard_modifier
enum weston_keyboard_modifier { MODIFIER_CTRL = (1 << 0), MODIFIER_ALT = (1 << 1), MODIFIER_SUPER = (1 << 2), MODIFIER_SHIFT = (1 << 3), };
Members
MODIFIER_CTRL
(1)
–
MODIFIER_ALT
(2)
–
MODIFIER_SUPER
(4)
–
MODIFIER_SHIFT
(8)
–
weston_layer_position
enum weston_layer_position { /* * Special value to make the layer invisible and still rendered. * This is used by compositors wanting e.g. minimized surfaces to still * receive frame callbacks. */ WESTON_LAYER_POSITION_HIDDEN = 0x00000000, /* * There should always be a background layer with a surface covering * the visible area. * * If the compositor handles the background itself, it should use * BACKGROUND. * * If the compositor supports runtime-loadable modules to set the * background, it should put a solid color surface at (BACKGROUND - 1) * and modules must use BACKGROUND. */ WESTON_LAYER_POSITION_BACKGROUND = 0x00000002, /* For "desktop widgets" and applications like conky. */ WESTON_LAYER_POSITION_BOTTOM_UI = 0x30000000, /* For regular applications, only one layer should have this value * to ensure proper stacking control. */ WESTON_LAYER_POSITION_NORMAL = 0x50000000, /* For desktop UI, like panels. */ WESTON_LAYER_POSITION_UI = 0x80000000, /* For fullscreen applications that should cover UI. */ WESTON_LAYER_POSITION_FULLSCREEN = 0xb0000000, /* For special UI like on-screen keyboard that fullscreen applications * will need. */ WESTON_LAYER_POSITION_TOP_UI = 0xe0000000, /* For the lock surface. */ WESTON_LAYER_POSITION_LOCK = 0xffff0000, /* Values reserved for libweston internal usage */ WESTON_LAYER_POSITION_CURSOR = 0xfffffffe, WESTON_LAYER_POSITION_FADE = 0xffffffff, };
Members
WESTON_LAYER_POSITION_HIDDEN
(0)
–
WESTON_LAYER_POSITION_BACKGROUND
(2)
–
WESTON_LAYER_POSITION_BOTTOM_UI
(805306368)
–
WESTON_LAYER_POSITION_NORMAL
(1342177280)
–
WESTON_LAYER_POSITION_UI
(2147483648)
–
WESTON_LAYER_POSITION_FULLSCREEN
(2952790016)
–
WESTON_LAYER_POSITION_TOP_UI
(3758096384)
–
WESTON_LAYER_POSITION_LOCK
(4294901760)
–
WESTON_LAYER_POSITION_CURSOR
(4294967294)
–
WESTON_LAYER_POSITION_FADE
(4294967295)
–
weston_led
enum weston_led { LED_NUM_LOCK = (1 << 0), LED_CAPS_LOCK = (1 << 1), LED_SCROLL_LOCK = (1 << 2), };
Members
LED_NUM_LOCK
(1)
–
LED_CAPS_LOCK
(2)
–
LED_SCROLL_LOCK
(4)
–
weston_mode_aspect_ratio
enum weston_mode_aspect_ratio { /** The picture aspect ratio values, for the aspect_ratio field of * weston_mode. The values here, are taken from * DRM_MODE_PICTURE_ASPECT_* from drm_mode.h. */ WESTON_MODE_PIC_AR_NONE = 0, /* DRM_MODE_PICTURE_ASPECT_NONE */ WESTON_MODE_PIC_AR_4_3 = 1, /* DRM_MODE_PICTURE_ASPECT_4_3 */ WESTON_MODE_PIC_AR_16_9 = 2, /* DRM_MODE_PICTURE_ASPECT_16_9 */ WESTON_MODE_PIC_AR_64_27 = 3, /* DRM_MODE_PICTURE_ASPECT_64_27 */ WESTON_MODE_PIC_AR_256_135 = 4, /* DRM_MODE_PICTURE_ASPECT_256_135*/ };
Members
WESTON_MODE_PIC_AR_NONE
(0)
–
WESTON_MODE_PIC_AR_4_3
(1)
–
WESTON_MODE_PIC_AR_16_9
(2)
–
WESTON_MODE_PIC_AR_64_27
(3)
–
WESTON_MODE_PIC_AR_256_135
(4)
–
weston_pointer_motion_mask
enum weston_pointer_motion_mask { WESTON_POINTER_MOTION_ABS = 1 << 0, WESTON_POINTER_MOTION_REL = 1 << 1, WESTON_POINTER_MOTION_REL_UNACCEL = 1 << 2, };
Members
WESTON_POINTER_MOTION_ABS
(1)
–
WESTON_POINTER_MOTION_REL
(2)
–
WESTON_POINTER_MOTION_REL_UNACCEL
(4)
–
weston_screenshooter_outcome
enum weston_screenshooter_outcome { WESTON_SCREENSHOOTER_SUCCESS, WESTON_SCREENSHOOTER_NO_MEMORY, WESTON_SCREENSHOOTER_BAD_BUFFER };
Members
WESTON_SCREENSHOOTER_SUCCESS
(0)
–
WESTON_SCREENSHOOTER_NO_MEMORY
(1)
–
WESTON_SCREENSHOOTER_BAD_BUFFER
(2)
–
weston_touch_mode
enum weston_touch_mode { /** Normal touch event handling */ WESTON_TOUCH_MODE_NORMAL, /** Prepare moving to WESTON_TOUCH_MODE_CALIB. * * Move to WESTON_TOUCH_MODE_CALIB as soon as no touches are down on * any seat. Until then, all touch events are routed normally. */ WESTON_TOUCH_MODE_PREP_CALIB, /** Calibration mode * * Only a single weston_touch_device forwards events to the calibrator * all other touch device cause a calibrator "wrong device" event to * be sent. */ WESTON_TOUCH_MODE_CALIB, /** Prepare moving to WESTON_TOUCH_MODE_NORMAL. * * Move to WESTON_TOUCH_MODE_NORMAL as soon as no touches are down on * any seat. Until then, touch events are routed as in * WESTON_TOUCH_MODE_CALIB except "wrong device" events are not sent. */ WESTON_TOUCH_MODE_PREP_NORMAL };
Members
WESTON_TOUCH_MODE_NORMAL
(0)
–
WESTON_TOUCH_MODE_PREP_CALIB
(1)
–
WESTON_TOUCH_MODE_CALIB
(2)
–
WESTON_TOUCH_MODE_PREP_NORMAL
(3)
–
wl_data_device_manager_dnd_action
enum wl_data_device_manager_dnd_action preferred_dnd_action;
Callbacks
log_func_t
int (*log_func_t) (int ap)
Parameters:
ap
–
weston_axis_binding_handler_t
void (*weston_axis_binding_handler_t) (const struct timespec * time, struct weston_pointer_axis_event * event, void * data)
Parameters:
time
–
event
–
data
–
weston_button_binding_handler_t
void (*weston_button_binding_handler_t) (const struct timespec * time, uint32_t button, void * data)
Parameters:
time
–
button
–
data
–
weston_key_binding_handler_t
void (*weston_key_binding_handler_t) (const struct timespec * time, uint32_t key, void * data)
Parameters:
time
–
key
–
data
–
weston_modifier_binding_handler_t
void (*weston_modifier_binding_handler_t) (enum weston_keyboard_modifier modifier, void * data)
Parameters:
modifier
–
data
–
weston_screenshooter_done_func_t
void (*weston_screenshooter_done_func_t) (enum weston_screenshooter_outcome outcome)
Parameters:
outcome
–
weston_touch_binding_handler_t
void (*weston_touch_binding_handler_t) (const struct timespec * time, void * data)
Parameters:
time
–
data
–
weston_touch_calibration_save_func
int (*weston_touch_calibration_save_func) (struct weston_touch_device * device, const struct weston_touch_device_matrix * calibration)
Parameters:
device
–
calibration
–
weston_view_animation_done_func_t
void (*weston_view_animation_done_func_t) (void * data)
Parameters:
data
–
The results of the search are