compositor

Functions

clipboard_create

struct clipboard *
clipboard_create (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( struct clipboard * ) –
No description available

noop_renderer_init

int 
noop_renderer_init (struct weston_compositor * ec)

Parameters:

ec
No description available
Returns ( int ) –
No description available

notify_axis

void 
notify_axis (struct weston_seat * seat,
             const struct timespec * time,
             struct weston_pointer_axis_event * event)

Parameters:

seat
No description available
time
No description available
event
No description available
Returns ( void ) –
No description available

notify_axis_source

void 
notify_axis_source (struct weston_seat * seat,
                    uint32_t source)

Parameters:

seat
No description available
source
No description available
Returns ( void ) –
No description available

notify_button

void 
notify_button (struct weston_seat * seat,
               const struct timespec * time,
               int32_t button,
               enum wl_pointer_button_state  state)

Parameters:

seat
No description available
time
No description available
button
No description available
state
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
key
No description available
state
No description available
update_state
No description available
Returns ( void ) –
No description available

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
No description available
keys
No description available
update_state
No description available
Returns ( void ) –
No description available

notify_keyboard_focus_out

void 
notify_keyboard_focus_out (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

notify_modifiers

void 
notify_modifiers (struct weston_seat * seat,
                  uint32_t serial)

Parameters:

seat
No description available
serial
No description available
Returns ( void ) –
No description available

notify_motion

void 
notify_motion (struct weston_seat * seat,
               const struct timespec * time,
               struct weston_pointer_motion_event * event)

Parameters:

seat
No description available
time
No description available
event
No description available
Returns ( void ) –
No description available

notify_motion_absolute

void 
notify_motion_absolute (struct weston_seat * seat,
                        const struct timespec * time,
                        double  x,
                        double  y)

Parameters:

seat
No description available
time
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

notify_pointer_focus

void 
notify_pointer_focus (struct weston_seat * seat,
                      struct weston_output * output,
                      double  x,
                      double  y)

Parameters:

seat
No description available
output
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

notify_pointer_frame

void 
notify_pointer_frame (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
touch_id
No description available
x
No description available
y
No description available
touch_type
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
slot
No description available
norm
No description available
touch_type
No description available
Returns ( void ) –
No description available

notify_touch_calibrator_cancel

void 
notify_touch_calibrator_cancel (struct weston_touch_device * device)

Parameters:

device
No description available
Returns ( void ) –
No description available

notify_touch_calibrator_frame

void 
notify_touch_calibrator_frame (struct weston_touch_device * device)

Parameters:

device
No description available
Returns ( void ) –
No description available

notify_touch_cancel

void 
notify_touch_cancel (struct weston_touch_device * device)

Parameters:

device
No description available
Returns ( void ) –
No description available

notify_touch_frame

void 
notify_touch_frame (struct weston_touch_device * device)

Parameters:

device
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
touch_id
No description available
x
No description available
y
No description available
norm
No description available
touch_type
No description available
Returns ( void ) –
No description available

touch_calibrator_mode_changed

void 
touch_calibrator_mode_changed (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

tty_activate_vt

int 
tty_activate_vt (struct tty * tty,
                 int  vt)

Parameters:

tty
No description available
vt
No description available
Returns ( int ) –
No description available

tty_create

struct tty *
tty_create (struct weston_compositor * compositor,
            int  tty_nr)

Parameters:

compositor
No description available
tty_nr
No description available
Returns ( struct tty * ) –
No description available

tty_destroy

void 
tty_destroy (struct tty * tty)

Parameters:

tty
No description available
Returns ( void ) –
No description available

tty_reset

void 
tty_reset (struct tty * tty)

Parameters:

tty
No description available
Returns ( void ) –
No description available

weston_backend_init

int 
weston_backend_init (struct weston_compositor * c,
                     struct weston_backend_config * config_base)

Parameters:

c
No description available
config_base
No description available
Returns ( int ) –
No description available

weston_binding_destroy

void 
weston_binding_destroy (struct weston_binding * binding)

Parameters:

binding
No description available
Returns ( void ) –
No description available

weston_binding_list_destroy_all

void 
weston_binding_list_destroy_all (struct wl_list * list)

Parameters:

list
No description available
Returns ( void ) –
No description available

weston_buffer_from_resource

struct weston_buffer *
weston_buffer_from_resource (struct wl_resource * resource)

Parameters:

resource
No description available
Returns ( struct weston_buffer * ) –
No description available

weston_buffer_release_move

void 
weston_buffer_release_move (struct weston_buffer_release_reference * dest,
                            struct weston_buffer_release_reference * src)

Parameters:

dest
No description available
src
No description available
Returns ( void ) –
No description available

weston_buffer_send_server_error

void 
weston_buffer_send_server_error (struct weston_buffer * buffer,
                                 const char * msg)

Parameters:

buffer
No description available
msg
No description available
Returns ( void ) –
No description available

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
No description available
axis
No description available
modifier
No description available
binding
No description available
data
No description available
Returns ( struct weston_binding * ) –
No description available

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
No description available
button
No description available
modifier
No description available
binding
No description available
data
No description available
Returns ( struct weston_binding * ) –
No description available

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
No description available
key
No description available
binding
No description available
data
No description available
Returns ( struct weston_binding * ) –
No description available

weston_compositor_add_head

void 
weston_compositor_add_head (struct weston_compositor * compositor,
                            struct weston_head * head)

Parameters:

compositor
No description available
head
No description available
Returns ( void ) –
No description available

weston_compositor_add_heads_changed_listener

void 
weston_compositor_add_heads_changed_listener (struct weston_compositor * compositor,
                                              struct wl_listener * listener)

Parameters:

compositor
No description available
listener
No description available
Returns ( void ) –
No description available

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
No description available
key
No description available
modifier
No description available
binding
No description available
data
No description available
Returns ( struct weston_binding * ) –
No description available

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
No description available
modifier
No description available
binding
No description available
data
No description available
Returns ( struct weston_binding * ) –
No description available

weston_compositor_add_pending_output

void 
weston_compositor_add_pending_output (struct weston_output * output,
                                      struct weston_compositor * compositor)

Parameters:

output
No description available
compositor
No description available
Returns ( void ) –
No description available

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
No description available
modifier
No description available
binding
No description available
data
No description available
Returns ( struct weston_binding * ) –
No description available

weston_compositor_create

struct weston_compositor *
weston_compositor_create (struct wl_display * display,
                          void * user_data)

Parameters:

display
No description available
user_data
No description available
Returns ( struct weston_compositor * ) –
No description available

weston_compositor_create_output

struct weston_output *
weston_compositor_create_output (struct weston_compositor * compositor,
                                 const char * name)

Parameters:

compositor
No description available
name
No description available
Returns ( struct weston_output * ) –
No description available

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
No description available
head
No description available
Returns ( struct weston_output * ) –
No description available

weston_compositor_damage_all

void 
weston_compositor_damage_all (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

weston_compositor_destroy

void 
weston_compositor_destroy (struct weston_compositor * ec)

Parameters:

ec
No description available
Returns ( void ) –
No description available

weston_compositor_enable_touch_calibrator

int 
weston_compositor_enable_touch_calibrator (struct weston_compositor * compositor,
                                           weston_touch_calibration_save_func save)

Parameters:

compositor
No description available
save
No description available
Returns ( int ) –
No description available

weston_compositor_exit

void 
weston_compositor_exit (struct weston_compositor * ec)

Parameters:

ec
No description available
Returns ( void ) –
No description available

weston_compositor_exit_with_code

void 
weston_compositor_exit_with_code (struct weston_compositor * compositor,
                                  int  exit_code)

Parameters:

compositor
No description available
exit_code
No description available
Returns ( void ) –
No description available

weston_compositor_fade

void 
weston_compositor_fade (struct weston_compositor * compositor,
                        float  tint)

Parameters:

compositor
No description available
tint
No description available
Returns ( void ) –
No description available

weston_compositor_find_output_by_name

struct weston_output *
weston_compositor_find_output_by_name (struct weston_compositor * compositor,
                                       const char * name)

Parameters:

compositor
No description available
name
No description available
Returns ( struct weston_output * ) –
No description available

weston_compositor_flush_heads_changed

void 
weston_compositor_flush_heads_changed (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

weston_compositor_get_time

void 
weston_compositor_get_time (struct timespec * time)

Parameters:

time
No description available
Returns ( void ) –
No description available

weston_compositor_get_user_data

void *
weston_compositor_get_user_data (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void * ) –
No description available

weston_compositor_import_dmabuf

_Bool 
weston_compositor_import_dmabuf (struct weston_compositor * compositor,
                                 struct linux_dmabuf_buffer * buffer)

Parameters:

compositor
No description available
buffer
No description available
Returns ( _Bool ) –
No description available

weston_compositor_iterate_heads

struct weston_head *
weston_compositor_iterate_heads (struct weston_compositor * compositor,
                                 struct weston_head * iter)

Parameters:

compositor
No description available
iter
No description available
Returns ( struct weston_head * ) –
No description available

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
No description available
backend
No description available
config_base
No description available
Returns ( int ) –
No description available

weston_compositor_load_xwayland

int 
weston_compositor_load_xwayland (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( int ) –
No description available

weston_compositor_offscreen

void 
weston_compositor_offscreen (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

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
No description available
x
No description available
y
No description available
sx
No description available
sy
No description available
Returns ( struct weston_view * ) –
No description available

weston_compositor_print_scene_graph

char *
weston_compositor_print_scene_graph (struct weston_compositor * ec)

Parameters:

ec
No description available
Returns ( char * ) –
No description available

weston_compositor_read_presentation_clock

void 
weston_compositor_read_presentation_clock (const struct weston_compositor * compositor,
                                           struct timespec * ts)

Parameters:

compositor
No description available
ts
No description available
Returns ( void ) –
No description available

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
No description available
pointer
No description available
time
No description available
event
No description available
Returns ( int ) –
No description available

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
No description available
pointer
No description available
time
No description available
button
No description available
value
No description available
Returns ( void ) –
No description available

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
No description available
keyboard
No description available
time
No description available
key
No description available
state
No description available
Returns ( int ) –
No description available

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
No description available
keyboard
No description available
time
No description available
key
No description available
state
No description available
Returns ( void ) –
No description available

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
No description available
keyboard
No description available
modifier
No description available
state
No description available
Returns ( void ) –
No description available

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
No description available
touch
No description available
time
No description available
touch_type
No description available
Returns ( void ) –
No description available

weston_compositor_schedule_repaint

void 
weston_compositor_schedule_repaint (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

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
No description available
interface
No description available
Returns ( void ) –
No description available

weston_compositor_set_presentation_clock

int 
weston_compositor_set_presentation_clock (struct weston_compositor * compositor,
                                          clockid_t clk_id)

Parameters:

compositor
No description available
clk_id
No description available
Returns ( int ) –
No description available

weston_compositor_set_presentation_clock_software

int 
weston_compositor_set_presentation_clock_software (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( int ) –
No description available

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
No description available
Returns ( void ) –
No description available

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
No description available
Returns ( void ) –
No description available

weston_compositor_set_xkb_rule_names

int 
weston_compositor_set_xkb_rule_names (struct weston_compositor * ec,
                                      struct xkb_rule_names * names)

Parameters:

ec
No description available
names
No description available
Returns ( int ) –
No description available

weston_compositor_shutdown

void 
weston_compositor_shutdown (struct weston_compositor * ec)

Parameters:

ec
No description available
Returns ( void ) –
No description available

weston_compositor_sleep

void 
weston_compositor_sleep (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

weston_compositor_stack_plane

void 
weston_compositor_stack_plane (struct weston_compositor * ec,
                               struct weston_plane * plane,
                               struct weston_plane * above)

Parameters:

ec
No description available
plane
No description available
above
No description available
Returns ( void ) –
No description available

weston_compositor_unlock

void 
weston_compositor_unlock (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

weston_compositor_wake

void 
weston_compositor_wake (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

weston_compositor_xkb_destroy

void 
weston_compositor_xkb_destroy (struct weston_compositor * ec)

Parameters:

ec
No description available
Returns ( void ) –
No description available

weston_debug_compositor_create

int 
weston_debug_compositor_create (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( int ) –
No description available

weston_debug_compositor_destroy

void 
weston_debug_compositor_destroy (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( void ) –
No description available

weston_environment_get_fd

int 
weston_environment_get_fd (const char * env)

Parameters:

env
No description available
Returns ( int ) –
No description available

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
No description available
start
No description available
end
No description available
k
No description available
done
No description available
data
No description available
Returns ( struct weston_view_animation * ) –
No description available

weston_fade_update

void 
weston_fade_update (struct weston_view_animation * fade,
                    float  target)

Parameters:

fade
No description available
target
No description available
Returns ( void ) –
No description available

weston_head_add_destroy_listener

void 
weston_head_add_destroy_listener (struct weston_head * head,
                                  struct wl_listener * listener)

Parameters:

head
No description available
listener
No description available
Returns ( void ) –
No description available

weston_head_detach

void 
weston_head_detach (struct weston_head * head)

Parameters:

head
No description available
Returns ( void ) –
No description available

weston_head_from_resource

struct weston_head *
weston_head_from_resource (struct wl_resource * resource)

Parameters:

resource
No description available
Returns ( struct weston_head * ) –
No description available

weston_head_get_destroy_listener

struct wl_listener *
weston_head_get_destroy_listener (struct weston_head * head,
                                  int  notify)

Parameters:

head
No description available
notify
No description available
Returns ( struct wl_listener * ) –
No description available

weston_head_get_name

const char *
weston_head_get_name (struct weston_head * head)

Parameters:

head
No description available
Returns ( const char * ) –
No description available

weston_head_get_output

struct weston_output *
weston_head_get_output (struct weston_head * head)

Parameters:

head
No description available
Returns ( struct weston_output * ) –
No description available

weston_head_init

void 
weston_head_init (struct weston_head * head,
                  const char * name)

Parameters:

head
No description available
name
No description available
Returns ( void ) –
No description available

weston_head_is_connected

_Bool 
weston_head_is_connected (struct weston_head * head)

Parameters:

head
No description available
Returns ( _Bool ) –
No description available

weston_head_is_device_changed

_Bool 
weston_head_is_device_changed (struct weston_head * head)

Parameters:

head
No description available
Returns ( _Bool ) –
No description available

weston_head_is_enabled

_Bool 
weston_head_is_enabled (struct weston_head * head)

Parameters:

head
No description available
Returns ( _Bool ) –
No description available

weston_head_is_non_desktop

_Bool 
weston_head_is_non_desktop (struct weston_head * head)

Parameters:

head
No description available
Returns ( _Bool ) –
No description available

weston_head_release

void 
weston_head_release (struct weston_head * head)

Parameters:

head
No description available
Returns ( void ) –
No description available

weston_head_reset_device_changed

void 
weston_head_reset_device_changed (struct weston_head * head)

Parameters:

head
No description available
Returns ( void ) –
No description available

weston_head_set_connection_status

void 
weston_head_set_connection_status (struct weston_head * head,
                                   _Bool  connected)

Parameters:

head
No description available
connected
No description available
Returns ( void ) –
No description available

weston_head_set_internal

void 
weston_head_set_internal (struct weston_head * head)

Parameters:

head
No description available
Returns ( void ) –
No description available

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
No description available
make
No description available
model
No description available
serialno
No description available
Returns ( void ) –
No description available

weston_head_set_non_desktop

void 
weston_head_set_non_desktop (struct weston_head * head,
                             _Bool  non_desktop)

Parameters:

head
No description available
non_desktop
No description available
Returns ( void ) –
No description available

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
No description available
mm_width
No description available
mm_height
No description available
Returns ( void ) –
No description available

weston_head_set_subpixel

void 
weston_head_set_subpixel (struct weston_head * head,
                          enum wl_output_subpixel  sp)

Parameters:

head
No description available
sp
No description available
Returns ( void ) –
No description available

weston_input_init

int 
weston_input_init (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( int ) –
No description available

weston_install_debug_key_binding

void 
weston_install_debug_key_binding (struct weston_compositor * compositor,
                                  uint32_t mod)

Parameters:

compositor
No description available
mod
No description available
Returns ( void ) –
No description available

weston_keyboard_end_grab

void 
weston_keyboard_end_grab (struct weston_keyboard * keyboard)

Parameters:

keyboard
No description available
Returns ( void ) –
No description available

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
No description available
Returns ( _Bool ) –
No description available

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
No description available
time
No description available
key
No description available
state
No description available
Returns ( void ) –
No description available

weston_keyboard_send_keymap

void 
weston_keyboard_send_keymap (struct weston_keyboard * kbd,
                             struct wl_resource * resource)

Parameters:

kbd
No description available
resource
No description available
Returns ( void ) –
No description available

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
No description available
serial
No description available
mods_depressed
No description available
mods_latched
No description available
mods_locked
No description available
group
No description available
Returns ( void ) –
No description available

weston_keyboard_set_focus

void 
weston_keyboard_set_focus (struct weston_keyboard * keyboard,
                           struct weston_surface * surface)

Parameters:

keyboard
No description available
surface
No description available
Returns ( void ) –
No description available

weston_keyboard_set_locks

int 
weston_keyboard_set_locks (struct weston_keyboard * keyboard,
                           uint32_t mask,
                           uint32_t value)

Parameters:

keyboard
No description available
mask
No description available
value
No description available
Returns ( int ) –
No description available

weston_keyboard_start_grab

void 
weston_keyboard_start_grab (struct weston_keyboard * device,
                            struct weston_keyboard_grab * grab)

Parameters:

device
No description available
grab
No description available
Returns ( void ) –
No description available

weston_layer_entry_insert

void 
weston_layer_entry_insert (struct weston_layer_entry * list,
                           struct weston_layer_entry * entry)

Parameters:

list
No description available
entry
No description available
Returns ( void ) –
No description available

weston_layer_entry_remove

void 
weston_layer_entry_remove (struct weston_layer_entry * entry)

Parameters:

entry
No description available
Returns ( void ) –
No description available

weston_layer_init

void 
weston_layer_init (struct weston_layer * layer,
                   struct weston_compositor * compositor)

Parameters:

layer
No description available
compositor
No description available
Returns ( void ) –
No description available

weston_layer_mask_is_infinite

_Bool 
weston_layer_mask_is_infinite (struct weston_layer * layer)

Parameters:

layer
No description available
Returns ( _Bool ) –
No description available

weston_layer_set_mask

void 
weston_layer_set_mask (struct weston_layer * layer,
                       int  x,
                       int  y,
                       int  width,
                       int  height)

Parameters:

layer
No description available
x
No description available
y
No description available
width
No description available
height
No description available
Returns ( void ) –
No description available

weston_layer_set_mask_infinite

void 
weston_layer_set_mask_infinite (struct weston_layer * layer)

Parameters:

layer
No description available
Returns ( void ) –
No description available

weston_layer_set_position

void 
weston_layer_set_position (struct weston_layer * layer,
                           enum weston_layer_position  position)

Parameters:

layer
No description available
position
No description available
Returns ( void ) –
No description available

weston_layer_unset_position

void 
weston_layer_unset_position (struct weston_layer * layer)

Parameters:

layer
No description available
Returns ( void ) –
No description available

weston_load_module

void *
weston_load_module (const char * name,
                    const char * entrypoint)

Parameters:

name
No description available
entrypoint
No description available
Returns ( void * ) –
No description available

weston_log

int 
weston_log (const char * fmt)

Parameters:

fmt
No description available
Returns ( int ) –
No description available

weston_log_continue

int 
weston_log_continue (const char * fmt)

Parameters:

fmt
No description available
Returns ( int ) –
No description available

weston_log_set_handler

void 
weston_log_set_handler (log_func_t log,
                        log_func_t cont)

Parameters:

log
No description available
cont
No description available
Returns ( void ) –
No description available

weston_matrix_transform_region

void 
weston_matrix_transform_region (int * dest,
                                struct weston_matrix * matrix,
                                int * src)

Parameters:

dest
No description available
matrix
No description available
src
No description available
Returns ( void ) –
No description available

weston_module_init

int 
weston_module_init (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( int ) –
No description available

weston_module_path_from_env

size_t
weston_module_path_from_env (const char * name,
                             char * path,
                             size_t path_len)

Parameters:

name
No description available
path
No description available
path_len
No description available
Returns ( size_t ) –
No description available

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
No description available
dx
No description available
dy
No description available
start
No description available
end
No description available
reverse
No description available
done
No description available
data
No description available
Returns ( struct weston_view_animation * ) –
No description available

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
No description available
dx
No description available
dy
No description available
start
No description available
end
No description available
reverse
No description available
done
No description available
data
No description available
Returns ( struct weston_view_animation * ) –
No description available

weston_output_activate_zoom

void 
weston_output_activate_zoom (struct weston_output * output,
                             struct weston_seat * seat)

Parameters:

output
No description available
seat
No description available
Returns ( void ) –
No description available

weston_output_add_destroy_listener

void 
weston_output_add_destroy_listener (struct weston_output * output,
                                    struct wl_listener * listener)

Parameters:

output
No description available
listener
No description available
Returns ( void ) –
No description available

weston_output_attach_head

int 
weston_output_attach_head (struct weston_output * output,
                           struct weston_head * head)

Parameters:

output
No description available
head
No description available
Returns ( int ) –
No description available

weston_output_damage

void 
weston_output_damage (struct weston_output * output)

Parameters:

output
No description available
Returns ( void ) –
No description available

weston_output_destroy

void 
weston_output_destroy (struct weston_output * output)

Parameters:

output
No description available
Returns ( void ) –
No description available

weston_output_disable

void 
weston_output_disable (struct weston_output * output)

Parameters:

output
No description available
Returns ( void ) –
No description available

weston_output_enable

int 
weston_output_enable (struct weston_output * output)

Parameters:

output
No description available
Returns ( int ) –
No description available

weston_output_finish_frame

void 
weston_output_finish_frame (struct weston_output * output,
                            const struct timespec * stamp,
                            uint32_t presented_flags)

Parameters:

output
No description available
stamp
No description available
presented_flags
No description available
Returns ( void ) –
No description available

weston_output_get_destroy_listener

struct wl_listener *
weston_output_get_destroy_listener (struct weston_output * output,
                                    int  notify)

Parameters:

output
No description available
notify
No description available
Returns ( struct wl_listener * ) –
No description available

weston_output_get_first_head

struct weston_head *
weston_output_get_first_head (struct weston_output * output)

Parameters:

output
No description available
Returns ( struct weston_head * ) –
No description available

weston_output_init

void 
weston_output_init (struct weston_output * output,
                    struct weston_compositor * compositor,
                    const char * name)

Parameters:

output
No description available
compositor
No description available
name
No description available
Returns ( void ) –
No description available

weston_output_init_zoom

void 
weston_output_init_zoom (struct weston_output * output)

Parameters:

output
No description available
Returns ( void ) –
No description available

weston_output_iterate_heads

struct weston_head *
weston_output_iterate_heads (struct weston_output * output,
                             struct weston_head * iter)

Parameters:

output
No description available
iter
No description available
Returns ( struct weston_head * ) –
No description available

weston_output_mode_set_native

int 
weston_output_mode_set_native (struct weston_output * output,
                               struct weston_mode * mode,
                               int32_t scale)

Parameters:

output
No description available
mode
No description available
scale
No description available
Returns ( int ) –
No description available

weston_output_mode_switch_to_native

int 
weston_output_mode_switch_to_native (struct weston_output * output)

Parameters:

output
No description available
Returns ( int ) –
No description available

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
No description available
mode
No description available
scale
No description available
Returns ( int ) –
No description available

weston_output_move

void 
weston_output_move (struct weston_output * output,
                    int  x,
                    int  y)

Parameters:

output
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

weston_output_release

void 
weston_output_release (struct weston_output * output)

Parameters:

output
No description available
Returns ( void ) –
No description available

weston_output_schedule_repaint

void 
weston_output_schedule_repaint (struct weston_output * output)

Parameters:

output
No description available
Returns ( void ) –
No description available

weston_output_set_scale

void 
weston_output_set_scale (struct weston_output * output,
                         int32_t scale)

Parameters:

output
No description available
scale
No description available
Returns ( void ) –
No description available

weston_output_set_transform

void 
weston_output_set_transform (struct weston_output * output,
                             uint32_t transform)

Parameters:

output
No description available
transform
No description available
Returns ( void ) –
No description available

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
No description available
device_x
No description available
device_y
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

weston_output_update_zoom

void 
weston_output_update_zoom (struct weston_output * output)

Parameters:

output
No description available
Returns ( void ) –
No description available

weston_parse_transform

int 
weston_parse_transform (const char * transform,
                        uint32_t* out)

Parameters:

transform
No description available
out
No description available
Returns ( int ) –
No description available

weston_plane_init

void 
weston_plane_init (struct weston_plane * plane,
                   struct weston_compositor * ec,
                   int32_t x,
                   int32_t y)

Parameters:

plane
No description available
ec
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

weston_plane_release

void 
weston_plane_release (struct weston_plane * plane)

Parameters:

plane
No description available
Returns ( void ) –
No description available

weston_pointer_clamp

void 
weston_pointer_clamp (struct weston_pointer * pointer,
                      int * fx,
                      int * fy)

Parameters:

pointer
No description available
fx
No description available
fy
No description available
Returns ( void ) –
No description available

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
No description available
Returns ( void ) –
No description available

weston_pointer_constraint_destroy

void 
weston_pointer_constraint_destroy (struct weston_pointer_constraint * constraint)

Parameters:

constraint
No description available
Returns ( void ) –
No description available

weston_pointer_end_grab

void 
weston_pointer_end_grab (struct weston_pointer * pointer)

Parameters:

pointer
No description available
Returns ( void ) –
No description available

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
No description available
Returns ( _Bool ) –
No description available

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
No description available
event
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

weston_pointer_move

void 
weston_pointer_move (struct weston_pointer * pointer,
                     struct weston_pointer_motion_event * event)

Parameters:

pointer
No description available
event
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
event
No description available
Returns ( void ) –
No description available

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
No description available
source
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
button
No description available
state_w
No description available
Returns ( void ) –
No description available

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
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
event
No description available
Returns ( void ) –
No description available

weston_pointer_set_default_grab

void 
weston_pointer_set_default_grab (struct weston_pointer * pointer,
                                 const struct weston_pointer_grab_interface * interface)

Parameters:

pointer
No description available
interface
No description available
Returns ( void ) –
No description available

weston_pointer_set_focus

void 
weston_pointer_set_focus (struct weston_pointer * pointer,
                          struct weston_view * view,
                          int  sx,
                          int  sy)

Parameters:

pointer
No description available
view
No description available
sx
No description available
sy
No description available
Returns ( void ) –
No description available

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
No description available
source
No description available
icon
No description available
client
No description available
Returns ( int ) –
No description available

weston_pointer_start_grab

void 
weston_pointer_start_grab (struct weston_pointer * pointer,
                           struct weston_pointer_grab * grab)

Parameters:

pointer
No description available
grab
No description available
Returns ( void ) –
No description available

weston_recorder_start

struct weston_recorder *
weston_recorder_start (struct weston_output * output,
                       const char * filename)

Parameters:

output
No description available
filename
No description available
Returns ( struct weston_recorder * ) –
No description available

weston_recorder_stop

void 
weston_recorder_stop (struct weston_recorder * recorder)

Parameters:

recorder
No description available
Returns ( void ) –
No description available

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
No description available
buffer
No description available
done
No description available
data
No description available
Returns ( int ) –
No description available

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
No description available
Returns ( struct weston_keyboard * ) –
No description available

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
No description available
Returns ( struct weston_pointer * ) –
No description available

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
No description available
Returns ( struct weston_touch * ) –
No description available

weston_seat_init

void 
weston_seat_init (struct weston_seat * seat,
                  struct weston_compositor * ec,
                  const char * seat_name)

Parameters:

seat
No description available
ec
No description available
seat_name
No description available
Returns ( void ) –
No description available

weston_seat_init_keyboard

int 
weston_seat_init_keyboard (struct weston_seat * seat,
                           struct xkb_keymap * keymap)

Parameters:

seat
No description available
keymap
No description available
Returns ( int ) –
No description available

weston_seat_init_pointer

void 
weston_seat_init_pointer (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

weston_seat_init_touch

void 
weston_seat_init_touch (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

weston_seat_release

void 
weston_seat_release (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

weston_seat_release_keyboard

void 
weston_seat_release_keyboard (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

weston_seat_release_pointer

void 
weston_seat_release_pointer (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

weston_seat_release_touch

void 
weston_seat_release_touch (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

weston_seat_repick

void 
weston_seat_repick (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

weston_seat_send_selection

void 
weston_seat_send_selection (struct weston_seat * seat,
                            struct wl_client * client)

Parameters:

seat
No description available
client
No description available
Returns ( void ) –
No description available

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
No description available
surface
No description available
Returns ( void ) –
No description available

weston_seat_set_selection

void 
weston_seat_set_selection (struct weston_seat * seat,
                           struct weston_data_source * source,
                           uint32_t serial)

Parameters:

seat
No description available
source
No description available
serial
No description available
Returns ( void ) –
No description available

weston_seat_update_keymap

void 
weston_seat_update_keymap (struct weston_seat * seat,
                           struct xkb_keymap * keymap)

Parameters:

seat
No description available
keymap
No description available
Returns ( void ) –
No description available

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
No description available
start
No description available
stop
No description available
done
No description available
data
No description available
Returns ( struct weston_view_animation * ) –
No description available

weston_spring_done

int 
weston_spring_done (struct weston_spring * spring)

Parameters:

spring
No description available
Returns ( int ) –
No description available

weston_spring_init

void 
weston_spring_init (struct weston_spring * spring,
                    double  k,
                    double  current,
                    double  target)

Parameters:

spring
No description available
k
No description available
current
No description available
target
No description available
Returns ( void ) –
No description available

weston_spring_update

void 
weston_spring_update (struct weston_spring * spring,
                      const struct timespec * time)

Parameters:

spring
No description available
time
No description available
Returns ( void ) –
No description available

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
No description available
start
No description available
back_view
No description available
end
No description available
done
No description available
data
No description available
Returns ( struct weston_view_animation * ) –
No description available

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
No description available
target
No description available
size
No description available
src_x
No description available
src_y
No description available
width
No description available
height
No description available
Returns ( int ) –
No description available

weston_surface_create

struct weston_surface *
weston_surface_create (struct weston_compositor * compositor)

Parameters:

compositor
No description available
Returns ( struct weston_surface * ) –
No description available

weston_surface_damage

void 
weston_surface_damage (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( void ) –
No description available

weston_surface_destroy

void 
weston_surface_destroy (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( void ) –
No description available

weston_surface_get_bounding_box

struct weston_geometry 
weston_surface_get_bounding_box (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( struct weston_geometry ) –
No description available

weston_surface_get_content_size

void 
weston_surface_get_content_size (struct weston_surface * surface,
                                 int * width,
                                 int * height)

Parameters:

surface
No description available
width
No description available
height
No description available
Returns ( void ) –
No description available

weston_surface_get_main_surface

struct weston_surface *
weston_surface_get_main_surface (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( struct weston_surface * ) –
No description available

weston_surface_get_role

const char *
weston_surface_get_role (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( const char * ) –
No description available

weston_surface_is_mapped

_Bool 
weston_surface_is_mapped (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( _Bool ) –
No description available

weston_surface_schedule_repaint

void 
weston_surface_schedule_repaint (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( void ) –
No description available

weston_surface_set_color

void 
weston_surface_set_color (struct weston_surface * surface,
                          float  red,
                          float  green,
                          float  blue,
                          float  alpha)

Parameters:

surface
No description available
red
No description available
green
No description available
blue
No description available
alpha
No description available
Returns ( void ) –
No description available

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
No description available
desc
No description available
Returns ( void ) –
No description available

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
No description available
role_name
No description available
error_resource
No description available
error_code
No description available
Returns ( int ) –
No description available

weston_surface_set_size

void 
weston_surface_set_size (struct weston_surface * surface,
                         int32_t width,
                         int32_t height)

Parameters:

surface
No description available
width
No description available
height
No description available
Returns ( void ) –
No description available

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
No description available
x
No description available
y
No description available
bx
No description available
by
No description available
Returns ( void ) –
No description available

weston_surface_to_buffer_rect

int 
weston_surface_to_buffer_rect (struct weston_surface * surface,
                               int  rect)

Parameters:

surface
No description available
rect
No description available
Returns ( int ) –
No description available

weston_surface_to_buffer_region

void 
weston_surface_to_buffer_region (struct weston_surface * surface,
                                 int * surface_region,
                                 int * buffer_region)

Parameters:

surface
No description available
surface_region
No description available
buffer_region
No description available
Returns ( void ) –
No description available

weston_surface_unmap

void 
weston_surface_unmap (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( void ) –
No description available

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.

Returns ( struct weston_touch_device * ) –

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

Returns ( _Bool ) –
No description available

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

Returns ( void ) –
No description available

weston_touch_end_grab

void 
weston_touch_end_grab (struct weston_touch * touch)

Parameters:

touch
No description available
Returns ( void ) –
No description available

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
No description available
Returns ( _Bool ) –
No description available

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
No description available
time
No description available
touch_id
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

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
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
touch_id
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

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
No description available
time
No description available
touch_id
No description available
Returns ( void ) –
No description available

weston_touch_set_focus

void 
weston_touch_set_focus (struct weston_touch * touch,
                        struct weston_view * view)

Parameters:

touch
No description available
view
No description available
Returns ( void ) –
No description available

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
No description available
source
No description available
icon
No description available
client
No description available
Returns ( int ) –
No description available

weston_touch_start_grab

void 
weston_touch_start_grab (struct weston_touch * touch,
                         struct weston_touch_grab * grab)

Parameters:

touch
No description available
grab
No description available
Returns ( void ) –
No description available

weston_transform_to_string

const char *
weston_transform_to_string (uint32_t output_transform)

Parameters:

output_transform
No description available
Returns ( const char * ) –
No description available

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
No description available
height
No description available
transform
No description available
scale
No description available
sx
No description available
sy
No description available
bx
No description available
by
No description available
Returns ( void ) –
No description available

weston_transformed_rect

int 
weston_transformed_rect (int  width,
                         int  height,
                         enum wl_output_transform  transform,
                         int32_t scale,
                         int  rect)

Parameters:

width
No description available
height
No description available
transform
No description available
scale
No description available
rect
No description available
Returns ( int ) –
No description available

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
No description available
height
No description available
transform
No description available
scale
No description available
src
No description available
dest
No description available
Returns ( void ) –
No description available

weston_version

void 
weston_version (int * major,
                int * minor,
                int * micro)

Parameters:

major
No description available
minor
No description available
micro
No description available
Returns ( void ) –
No description available

weston_view_activate

void 
weston_view_activate (struct weston_view * view,
                      struct weston_seat * seat,
                      uint32_t flags)

Parameters:

view
No description available
seat
No description available
flags
No description available
Returns ( void ) –
No description available

weston_view_animation_destroy

void 
weston_view_animation_destroy (struct weston_view_animation * animation)

Parameters:

animation
No description available
Returns ( void ) –
No description available

weston_view_create

struct weston_view *
weston_view_create (struct weston_surface * surface)

Parameters:

surface
No description available
Returns ( struct weston_view * ) –
No description available

weston_view_damage_below

void 
weston_view_damage_below (struct weston_view * view)

Parameters:

view
No description available
Returns ( void ) –
No description available

weston_view_destroy

void 
weston_view_destroy (struct weston_view * view)

Parameters:

view
No description available
Returns ( void ) –
No description available

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
No description available
x
No description available
y
No description available
vx
No description available
vy
No description available
Returns ( void ) –
No description available

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
No description available
x
No description available
y
No description available
vx
No description available
vy
No description available
Returns ( void ) –
No description available

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
No description available
x
No description available
y
No description available
vx
No description available
vy
No description available
Returns ( void ) –
No description available

weston_view_geometry_dirty

void 
weston_view_geometry_dirty (struct weston_view * view)

Parameters:

view
No description available
Returns ( void ) –
No description available

weston_view_is_mapped

_Bool 
weston_view_is_mapped (struct weston_view * view)

Parameters:

view
No description available
Returns ( _Bool ) –
No description available

weston_view_is_opaque

_Bool 
weston_view_is_opaque (struct weston_view * ev,
                       int * region)

Parameters:

ev
No description available
region
No description available
Returns ( _Bool ) –
No description available

weston_view_move_to_plane

void 
weston_view_move_to_plane (struct weston_view * view,
                           struct weston_plane * plane)

Parameters:

view
No description available
plane
No description available
Returns ( void ) –
No description available

weston_view_schedule_repaint

void 
weston_view_schedule_repaint (struct weston_view * view)

Parameters:

view
No description available
Returns ( void ) –
No description available

weston_view_set_mask

void 
weston_view_set_mask (struct weston_view * view,
                      int  x,
                      int  y,
                      int  width,
                      int  height)

Parameters:

view
No description available
x
No description available
y
No description available
width
No description available
height
No description available
Returns ( void ) –
No description available

weston_view_set_mask_infinite

void 
weston_view_set_mask_infinite (struct weston_view * view)

Parameters:

view
No description available
Returns ( void ) –
No description available

weston_view_set_output

void 
weston_view_set_output (struct weston_view * view,
                        struct weston_output * output)

Parameters:

view
No description available
output
No description available
Returns ( void ) –
No description available

weston_view_set_position

void 
weston_view_set_position (struct weston_view * view,
                          float  x,
                          float  y)

Parameters:

view
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

weston_view_set_transform_parent

void 
weston_view_set_transform_parent (struct weston_view * view,
                                  struct weston_view * parent)

Parameters:

view
No description available
parent
No description available
Returns ( void ) –
No description available

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
No description available
sx
No description available
sy
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

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
No description available
sx
No description available
sy
No description available
x
No description available
y
No description available
Returns ( void ) –
No description available

weston_view_unmap

void 
weston_view_unmap (struct weston_view * view)

Parameters:

view
No description available
Returns ( void ) –
No description available

weston_view_update_transform

void 
weston_view_update_transform (struct weston_view * view)

Parameters:

view
No description available
Returns ( void ) –
No description available

weston_vlog

int 
weston_vlog (const char * fmt,
             int  ap)

Parameters:

fmt
No description available
ap
No description available
Returns ( int ) –
No description available

weston_vlog_continue

int 
weston_vlog_continue (const char * fmt,
                      int  ap)

Parameters:

fmt
No description available
ap
No description available
Returns ( int ) –
No description available

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
No description available
start
No description available
stop
No description available
done
No description available
data
No description available
Returns ( struct weston_view_animation * ) –
No description available

wl_data_device_manager_init

int 
wl_data_device_manager_init (struct wl_display * display)

Parameters:

display
No description available
Returns ( int ) –
No description available

wl_data_device_set_keyboard_focus

void 
wl_data_device_set_keyboard_focus (struct weston_seat * seat)

Parameters:

seat
No description available
Returns ( void ) –
No description available

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 () –
No description available
frame_counter (int ) –
No description available
link (struct wl_list ) –
No description available

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 () –
No description available
repaint_begin () –
No description available
repaint_cancel () –
No description available
repaint_flush () –
No description available
create_output () –
No description available

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) –
No description available
struct_size (size_t) –
No description available

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 *) –
No description available
destroy_listener (struct wl_listener ) –
No description available

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 *) –
No description available
ref_count (uint32_t) –
No description available
fence_fd (int ) –
No description available

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 *) –
No description available
destroy_listener (struct wl_listener ) –
No description available

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) ) –
No description available
surface (struct (anonymous struct at /home/mvlad/src/weston/libweston/compositor.h:1251:2) ) –
No description available
changed (int ) –
No description available

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 *) –
No description available
source (struct weston_data_source *) –
No description available
source_destroy_listener (struct wl_listener ) –
No description available
dnd_actions (uint32_t) –
No description available
wl_data_device_manager_dnd_action (enum wl_data_device_manager_dnd_action ) –
No description available
preferred_dnd_action (enum wl_data_device_manager_dnd_action ) –
No description available
in_ask (_Bool ) –
No description available

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) –
No description available
y (int32_t) –
No description available
width (int32_t) –
No description available
height (int32_t) –
No description available

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 *) –
No description available
compositor_link (struct wl_list ) –
No description available
destroy_signal (struct wl_signal ) –
No description available
output (struct weston_output *) –
No description available
output_link (struct wl_list ) –
No description available
resource_list (struct wl_list ) –
No description available
global (struct wl_global *) –
No description available
mm_width (int32_t) –
No description available
mm_height (int32_t) –
No description available
make (char *) –
No description available
model (char *) –
No description available
serial_number (char *) –
No description available
subpixel (uint32_t) –
No description available
connection_internal (_Bool ) –
No description available
device_changed (_Bool ) –
No description available
name (char *) –
No description available
connected (_Bool ) –
No description available
non_desktop (_Bool ) –
No description available

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 () –
No description available
modifiers () –
No description available
cancel () –
No description available

weston_launcher


weston_layer


weston_layer_entry

struct weston_layer_entry {
	struct wl_list link;
	struct weston_layer *layer;
};

Fields

link (struct wl_list ) –
No description available
layer (struct weston_layer *) –
No description available

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) –
No description available
aspect_ratio (enum weston_mode_aspect_ratio ) –
No description available
width (int32_t) –
No description available
height (int32_t) –
No description available
refresh (uint32_t) –
No description available
link (struct wl_list ) –
No description available

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 ) –
No description available
increment (float ) –
No description available
level (float ) –
No description available
max_level (float ) –
No description available
trans_x (float ) –
No description available
trans_y (float ) –
No description available
current (struct (anonymous struct at /home/mvlad/src/weston/libweston/compositor.h:155:2) ) –
No description available
seat (struct weston_seat *) –
No description available
animation_z (struct weston_animation ) –
No description available
spring_z (struct weston_spring ) –
No description available
motion_listener (struct wl_listener ) –
No description available

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 *) –
No description available
damage (int ) –
No description available
clip (int ) –
No description available
x (int32_t) –
No description available
y (int32_t) –
No description available
link (struct wl_list ) –
No description available

weston_point2d_device_normalized

struct weston_point2d_device_normalized {
	double x;
	double y;
};

Fields

x (double ) –
No description available
y (double ) –
No description available

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) –
No description available
value (double ) –
No description available
has_discrete (_Bool ) –
No description available
discrete (int32_t) –
No description available

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 () –
No description available
motion () –
No description available
button () –
No description available
axis () –
No description available
axis_source () –
No description available
frame () –
No description available
cancel () –
No description available

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) –
No description available
time (struct timespec ) –
No description available
x (double ) –
No description available
y (double ) –
No description available
dx (double ) –
No description available
dy (double ) –
No description available
dx_unaccel (double ) –
No description available
dy_unaccel (double ) –
No description available

weston_position

struct weston_position {
	int32_t x, y;
};

Fields

x (int32_t) –
No description available
y (int32_t) –
No description available

weston_recorder


weston_region

struct weston_region {
	struct wl_resource *resource;
	pixman_region32_t region;
};

Fields

resource (struct wl_resource *) –
No description available
region (int ) –
No description available

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 () –
No description available
repaint_output () –
No description available
flush_damage () –
No description available
attach () –
No description available
surface_set_color () –
No description available
destroy () –
No description available
surface_get_content_size () –
No description available
surface_copy_content () –
No description available
import_dmabuf () –
No description available
query_dmabuf_formats () –
No description available
query_dmabuf_modifiers () –
No description available

weston_seat


weston_size

struct weston_size {
	int32_t width, height;
};

Fields

width (int32_t) –
No description available
height (int32_t) –
No description available

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 ) –
No description available
friction (double ) –
No description available
current (double ) –
No description available
target (double ) –
No description available
previous (double ) –
No description available
min (double ) –
No description available
max (double ) –
No description available
timestamp (struct timespec ) –
No description available
clip (uint32_t) –
No description available

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 *) –
No description available
surface (struct weston_surface *) –
No description available
surface_destroy_listener (struct wl_listener ) –
No description available
parent (struct weston_surface *) –
No description available
parent_destroy_listener (struct wl_listener ) –
No description available
parent_link (struct wl_list ) –
No description available
parent_link_pending (struct wl_list ) –
No description available
position (struct (anonymous struct at /home/mvlad/src/weston/libweston/compositor.h:1579:2) ) –
No description available
has_cached_data (int ) –
No description available
cached (struct weston_surface_state ) –
No description available
cached_buffer_ref (struct weston_buffer_reference ) –
No description available
reordered (_Bool ) –
No description available
synchronized (int ) –
No description available
unused_views (struct wl_list ) –
No description available

weston_surface


weston_surface_activation_data

struct weston_surface_activation_data {
	struct weston_surface *surface;
	struct weston_seat *seat;
};

Fields

surface (struct weston_surface *) –
No description available
seat (struct weston_seat *) –
No description available

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 ) –
No description available
buffer (struct weston_buffer *) –
No description available
buffer_destroy_listener (struct wl_listener ) –
No description available
sx (int32_t) –
No description available
sy (int32_t) –
No description available
damage_surface (int ) –
No description available
damage_buffer (int ) –
No description available
opaque (int ) –
No description available
input (int ) –
No description available
frame_callback_list (struct wl_list ) –
No description available
feedback_list (struct wl_list ) –
No description available
buffer_viewport (struct weston_buffer_viewport ) –
No description available
acquire_fence_fd (int ) –
No description available
buffer_release_ref (struct weston_buffer_release_reference ) –
No description available

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] ) –
No description available

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 () –
No description available
get_calibration_head_name () –
No description available
get_calibration () –
No description available
set_calibration () –
No description available

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 () –
No description available
up () –
No description available
motion () –
No description available
frame () –
No description available
cancel () –
No description available

weston_transform

struct weston_transform {
	struct weston_matrix matrix;
	struct wl_list link;
};

Fields

matrix (struct weston_matrix ) –
No description available
link (struct wl_list ) –
No description available

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 *) –
No description available
keymap_size (size_t) –
No description available
keymap_string (char *) –
No description available
ref_count (int32_t) –
No description available
shift_mod (xkb_mod_index_t) –
No description available
caps_mod (xkb_mod_index_t) –
No description available
ctrl_mod (xkb_mod_index_t) –
No description available
alt_mod (xkb_mod_index_t) –
No description available
mod2_mod (xkb_mod_index_t) –
No description available
mod3_mod (xkb_mod_index_t) –
No description available
super_mod (xkb_mod_index_t) –
No description available
mod5_mod (xkb_mod_index_t) –
No description available
num_led (xkb_led_index_t) –
No description available
caps_led (xkb_led_index_t) –
No description available
scroll_led (xkb_led_index_t) –
No description available

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) –
No description available
WESTON_DPMS_STANDBY (1) –
No description available
WESTON_DPMS_SUSPEND (2) –
No description available
WESTON_DPMS_OFF (3) –
No description available

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) –
No description available
WESTON_ACTIVATE_FLAG_CONFIGURE (1) –
No description available
WESTON_ACTIVATE_FLAG_CLICKED (2) –
No description available

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) –
No description available
WESTON_CAP_CAPTURE_YFLIP (2) –
No description available
WESTON_CAP_CURSOR_PLANE (4) –
No description available
WESTON_CAP_ARBITRARY_MODES (8) –
No description available
WESTON_CAP_VIEW_CLIP_MASK (16) –
No description available
WESTON_CAP_EXPLICIT_SYNC (32) –
No description available

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) –
No description available
WESTON_BACKEND_FBDEV (1) –
No description available
WESTON_BACKEND_HEADLESS (2) –
No description available
WESTON_BACKEND_RDP (3) –
No description available
WESTON_BACKEND_WAYLAND (4) –
No description available
WESTON_BACKEND_X11 (5) –
No description available

weston_key_state_update

enum weston_key_state_update {
	STATE_UPDATE_AUTOMATIC,
	STATE_UPDATE_NONE,
};

Members

STATE_UPDATE_AUTOMATIC (0) –
No description available
STATE_UPDATE_NONE (1) –
No description available

weston_keyboard_locks

enum weston_keyboard_locks {
	WESTON_NUM_LOCK = (1 << 0),
	WESTON_CAPS_LOCK = (1 << 1),
};

Members

WESTON_NUM_LOCK (1) –
No description available
WESTON_CAPS_LOCK (2) –
No description available

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) –
No description available
MODIFIER_ALT (2) –
No description available
MODIFIER_SUPER (4) –
No description available
MODIFIER_SHIFT (8) –
No description available

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) –
No description available
WESTON_LAYER_POSITION_BACKGROUND (2) –
No description available
WESTON_LAYER_POSITION_BOTTOM_UI (805306368) –
No description available
WESTON_LAYER_POSITION_NORMAL (1342177280) –
No description available
WESTON_LAYER_POSITION_UI (2147483648) –
No description available
WESTON_LAYER_POSITION_FULLSCREEN (2952790016) –
No description available
WESTON_LAYER_POSITION_TOP_UI (3758096384) –
No description available
WESTON_LAYER_POSITION_LOCK (4294901760) –
No description available
WESTON_LAYER_POSITION_CURSOR (4294967294) –
No description available
WESTON_LAYER_POSITION_FADE (4294967295) –
No description available

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) –
No description available
LED_CAPS_LOCK (2) –
No description available
LED_SCROLL_LOCK (4) –
No description available

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) –
No description available
WESTON_MODE_PIC_AR_4_3 (1) –
No description available
WESTON_MODE_PIC_AR_16_9 (2) –
No description available
WESTON_MODE_PIC_AR_64_27 (3) –
No description available
WESTON_MODE_PIC_AR_256_135 (4) –
No description available

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) –
No description available
WESTON_POINTER_MOTION_REL (2) –
No description available
WESTON_POINTER_MOTION_REL_UNACCEL (4) –
No description available

weston_screenshooter_outcome

enum weston_screenshooter_outcome {
	WESTON_SCREENSHOOTER_SUCCESS,
	WESTON_SCREENSHOOTER_NO_MEMORY,
	WESTON_SCREENSHOOTER_BAD_BUFFER
};

Members

WESTON_SCREENSHOOTER_SUCCESS (0) –
No description available
WESTON_SCREENSHOOTER_NO_MEMORY (1) –
No description available
WESTON_SCREENSHOOTER_BAD_BUFFER (2) –
No description available

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) –
No description available
WESTON_TOUCH_MODE_PREP_CALIB (1) –
No description available
WESTON_TOUCH_MODE_CALIB (2) –
No description available
WESTON_TOUCH_MODE_PREP_NORMAL (3) –
No description available

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
No description available
Returns ( int ) –
No description available

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
No description available
event
No description available
data
No description available
Returns ( void ) –
No description available

weston_button_binding_handler_t

void 
(*weston_button_binding_handler_t) (const struct timespec * time,
                                    uint32_t button,
                                    void * data)

Parameters:

time
No description available
button
No description available
data
No description available
Returns ( void ) –
No description available

weston_key_binding_handler_t

void 
(*weston_key_binding_handler_t) (const struct timespec * time,
                                 uint32_t key,
                                 void * data)

Parameters:

time
No description available
key
No description available
data
No description available
Returns ( void ) –
No description available

weston_modifier_binding_handler_t

void 
(*weston_modifier_binding_handler_t) (enum weston_keyboard_modifier  modifier,
                                      void * data)

Parameters:

modifier
No description available
data
No description available
Returns ( void ) –
No description available

weston_screenshooter_done_func_t

void 
(*weston_screenshooter_done_func_t) (enum weston_screenshooter_outcome  outcome)

Parameters:

outcome
No description available
Returns ( void ) –
No description available

weston_touch_binding_handler_t

void 
(*weston_touch_binding_handler_t) (const struct timespec * time,
                                   void * data)

Parameters:

time
No description available
data
No description available
Returns ( void ) –
No description available

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
No description available
calibration
No description available
Returns ( int ) –
No description available

weston_view_animation_done_func_t

void 
(*weston_view_animation_done_func_t) (void * data)

Parameters:

data
No description available
Returns ( void ) –
No description available

The results of the search are