labwc/include/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
..
array.h common/array.h: add array_add() helper 2024-08-03 18:25:23 +02:00
border.h Move border-struct to common/border.h for sharing 2023-06-26 06:04:07 +01:00
box.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
buf.h buf: add buf_add_fmt() 2024-08-21 16:09:44 +02:00
dir.h config: support merging multiple config files 2024-01-18 20:20:36 +00:00
direction.h action: make "FocusOutput" behave like "MoveToOutput" 2024-08-24 14:59:42 -04:00
fd-util.h Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
file-helpers.h common/file-helpers.c: share file_exists() to reduce duplication 2023-09-17 19:26:41 +01:00
font.h scaled-scene-buffer: reduce unnecessary renderings 2024-12-18 17:21:29 +09:00
grab-file.h common: remove buf_init(), add BUF_INIT and buf_move() 2024-04-18 07:00:23 +01:00
graphic-helpers.h buffer: always set buffer->{cairo,surface} for simplification 2024-11-28 18:56:03 +09:00
list.h common/list: add WL_LIST_INIT() macro 2024-11-21 20:31:41 +00:00
macros.h edges, resistance, snap: unified resistance and snapping engine 2024-01-30 15:02:17 -05:00
match.h docs: simplify description of shell wildcard patterns 2024-12-01 20:17:04 +01:00
mem.h common/mem.h: introduce xstrdup_replace() 2024-11-16 22:13:17 +00:00
nodename.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
parse-bool.h config/rcxml.c: fix parsing of three-state query parameters 2024-10-30 21:53:23 -04:00
parse-double.h common: validate and properly parse floats 2024-04-02 10:37:50 -04:00
scaled-font-buffer.h font: remove arrow character from font buffer 2024-12-14 20:09:53 +00:00
scaled-img-buffer.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
scaled-rect-buffer.h Add scaled_rect_buffer 2024-11-25 19:41:07 +00:00
scaled-scene-buffer.h scaled-scene-buffer: reduce unnecessary renderings 2024-12-18 17:21:29 +09:00
scene-helpers.h magnifier: fix flickering on simultaneous gamma changes 2024-06-29 23:36:41 +02:00
set.h key-state.c: generalize set operations 2024-10-13 20:45:16 +01:00
spawn.h Add -S|--session <command> option 2024-04-14 13:05:25 +02:00
string-helpers.h string-helpers.c: add str_starts_with() 2024-12-18 18:32:25 +00:00
surface-helpers.h cursor: process layer subsurfaces in cursor_button_press() 2024-03-09 00:44:19 +01:00