weston/include/libweston
Derek Foreman e1b4ad7d0b matrix: Introduce weston_coord
All through weston we have code that passes int x, y or
float x, y or wl_fixed_t x, y pairs. These pairs are frequently
converted to/from wl_fixed_t and other types.

We also have struct vec2d and struct weston_geometry which also
contain coordinate pairs.

Let's create a family of coordinate vector structures for coordinate
pairs and use it anywhere we sensibly can.

This has a few benefits - it helps remove intermediate conversion
between fixed/float/int types. It lets us roll the homogenous
coordinate normalization bits into helper functions instead of
needing them open coded throughout the source.

Possibly most importantly, it also allows us to do some compile time
validation of what coordinate space we're working in.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2023-02-01 07:27:05 -06:00
..
backend-drm.h backend-drm: Use renderer enum type for config selection 2023-01-10 10:59:04 +02:00
backend-headless.h backend-headless: Use renderer enum type for config selection 2023-01-10 10:59:04 +02:00
backend-rdp.h rdp: Add preliminary rdp multihead support 2023-01-10 12:12:49 +00:00
backend-vnc.h backend-vnc: Add renderer parameter to backend config 2023-01-10 10:59:04 +02:00
backend-wayland.h backend-wayland: Use renderer enum type for config selection 2023-01-10 10:59:04 +02:00
backend-x11.h backend-x11: Use renderer enum type for config selection 2023-01-10 10:59:04 +02:00
config-parser.h libweston, shared: Move out weston_shell_get_binding_modifier 2023-01-09 22:13:07 +00:00
desktop.h libweston/desktop, desktop-shell: Add getters for pending state 2022-11-10 13:06:07 +02:00
libweston.h matrix: Introduce weston_coord 2023-02-01 07:27:05 -06:00
matrix.h matrix: Introduce weston_coord 2023-02-01 07:27:05 -06:00
meson.build shell-utils: Add missing macros and C++ compat/install header 2023-01-09 22:13:07 +00:00
pipewire-plugin.h plug-ins: Migrate pipewire and remoting plug-ins headers to public header 2020-09-04 10:36:48 +00:00
plugin-registry.h Rename plugin-registry.h to libweston/plugin-registry.h 2019-04-18 12:31:46 +03:00
remoting-plugin.h plug-ins: Migrate pipewire and remoting plug-ins headers to public header 2020-09-04 10:36:48 +00:00
shell-utils.h libweston, shared: Move out weston_shell_get_binding_modifier 2023-01-09 22:13:07 +00:00
version.h.in Rename version.h to libweston/version.h 2019-04-18 12:31:46 +03:00
weston-log.h weston-log: Extract helper for generating a time stamp 2022-03-10 17:11:31 +02:00
windowed-output-api.h Fix indentation all through the project 2021-07-31 15:28:20 +00:00
xwayland-api.h Rename xwayland-api.h to libweston/xwayland-api.h 2019-04-18 12:31:46 +03:00
zalloc.h Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00