labwc/src/common
tokyo4j 16dbdc64e5 ssd: rework titlebar button rendering
- fix that icons for normal/hovered/rounded buttons are not placed
  exactly the same position
- fix blurry window button icons in scaled outputs

This commit introduces lab_img and scaled_img_buffer and uses them for
rendering icons in the window titlebar. Now the process of rendering
button icons are split into 2 phases: loading with lab_img_load() and
creating scene-nodes for them with scaled_img_buffer_create(). This
might incur some additional overhead since we no longer preload icon
textures, but the rendering of icon only happens for the first window
as backing buffers are shared and the overhead won't be noticeable.
This commit also simplifies the process of centering icon buffer in the
button, by creating icon buffers in a fixed geometry via
lab_img_render().
2024-12-23 18:11:32 +09:00
..
box.c ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
buf.c buf.c: fix off by one bug in buf_add_char() 2024-11-07 23:34:48 +01:00
dir.c common/buf: rename buf->buf to buf->data 2024-04-18 07:00:23 +01:00
direction.c action: make "FocusOutput" behave like "MoveToOutput" 2024-08-24 14:59:42 -04:00
fd-util.c Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
file-helpers.c common/file-helpers.c: share file_exists() to reduce duplication 2023-09-17 19:26:41 +01:00
font.c scaled-scene-buffer: reduce unnecessary renderings 2024-12-18 17:21:29 +09:00
grab-file.c common: remove buf_init(), add BUF_INIT and buf_move() 2024-04-18 07:00:23 +01:00
graphic-helpers.c buffer: always set buffer->{cairo,surface} for simplification 2024-11-28 18:56:03 +09:00
match.c common: use fnmatch() for pattern matching 2023-10-01 14:17:29 +01:00
mem.c common: Add additional memory utilities (xzalloc() etc.) 2022-09-17 10:57:30 -04:00
meson.build ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
nodename.c Fixed some typos 2024-01-04 19:32:51 +00:00
parse-bool.c config/rcxml.c: fix parsing of three-state query parameters 2024-10-30 21:53:23 -04:00
parse-double.c common: validate and properly parse floats 2024-04-02 10:37:50 -04:00
scaled-font-buffer.c scaled-scene-buffer: reduce unnecessary renderings 2024-12-18 17:21:29 +09:00
scaled-img-buffer.c ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
scaled-rect-buffer.c scaled-scene-buffer: reduce unnecessary renderings 2024-12-18 17:21:29 +09:00
scaled-scene-buffer.c node: add node_scaled_scene_buffer_from_node 2024-12-23 18:11:32 +09:00
scene-helpers.c tearing: avoid permanent disable due to rejected commits (#2295) 2024-11-03 21:05:46 +00:00
set.c key-state.c: generalize set operations 2024-10-13 20:45:16 +01:00
spawn.c Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
string-helpers.c string-helpers.c: add str_starts_with() 2024-12-18 18:32:25 +00:00
surface-helpers.c cursor: process layer subsurfaces in cursor_button_press() 2024-03-09 00:44:19 +01:00