Repository navigation
Agent KB_headers_p6
grisun0 edited this page Oct 30, 2026
·
13 revisions
Previous: KB_headers_p5.md
- Doc: Docstring: Window event contract for the MiniOS desktop.
- Layer: infrastructure
- Language: h
- Symbols:
-
wm_mouse_t(struct, line 25) -
wm_event_t(struct, line 34) -
wm_event_config_t(struct, line 43) -
wm_combo_t(struct, line 158) -
wm_is_click_edge(function, line 52)static inline int wm_is_click_edge(const wm_event_config_t *cfg, int prev_buttons, int curr_buttons) -
wm_is_release_edge(function, line 59)static inline int wm_is_release_edge(const wm_event_config_t *cfg, int prev_buttons, int curr_but... -
wm_translate_event(function, line 66)static inline wm_event_t wm_translate_event(const wm_event_config_t *cfg, const wm_mouse_t *prev,... -
wm_event_suppresses_drag(function, line 104)static inline int wm_event_suppresses_drag(const wm_event_t *evt) -
wm_combo_lookup(function, line 201)static inline int wm_combo_lookup(int alt, int altgr, int sup, int e0, int sc, int path, int *zon... -
wm_combo_lookup_mods(function, line 238)static inline int wm_combo_lookup_mods(const modifier_state_t *st, int e0, int sc, int path, int ... -
WM_EVENTS_H(macro, line 11)#define WM_EVENTS_H -
WM_EVENT_CONFIG_DEFAULT(macro, line 49)#define WM_EVENT_CONFIG_DEFAULT -
WM_SC_TAB(macro, line 110)#define WM_SC_TAB -
WM_SC_ENTER(macro, line 111)#define WM_SC_ENTER -
WM_SC_MINUS(macro, line 112)#define WM_SC_MINUS -
WM_SC_EQUAL(macro, line 113)#define WM_SC_EQUAL -
WM_SC_ZERO(macro, line 114)#define WM_SC_ZERO -
WM_SC_Q(macro, line 115)#define WM_SC_Q -
WM_SC_LBRACKET(macro, line 116)#define WM_SC_LBRACKET -
WM_SC_RBRACKET(macro, line 117)#define WM_SC_RBRACKET -
WM_SC_M(macro, line 118)#define WM_SC_M -
WM_SC_X(macro, line 119)#define WM_SC_X -
WM_SC_UP(macro, line 120)#define WM_SC_UP -
WM_SC_DOWN(macro, line 121)#define WM_SC_DOWN -
WM_SC_LEFT(macro, line 122)#define WM_SC_LEFT -
WM_SC_RIGHT(macro, line 123)#define WM_SC_RIGHT -
WM_SC_HOME(macro, line 124)#define WM_SC_HOME -
WM_SC_END(macro, line 125)#define WM_SC_END -
WM_SNAP_LEFT(macro, line 128)#define WM_SNAP_LEFT -
WM_SNAP_RIGHT(macro, line 129)#define WM_SNAP_RIGHT -
WM_SNAP_TOP(macro, line 130)#define WM_SNAP_TOP -
WM_SNAP_BOTTOM(macro, line 131)#define WM_SNAP_BOTTOM -
WM_SNAP_TOP_LEFT(macro, line 132)#define WM_SNAP_TOP_LEFT -
WM_SNAP_TOP_RIGHT(macro, line 133)#define WM_SNAP_TOP_RIGHT -
WM_SNAP_BOTTOM_LEFT(macro, line 134)#define WM_SNAP_BOTTOM_LEFT -
WM_SNAP_BOTTOM_RIGHT(macro, line 135)#define WM_SNAP_BOTTOM_RIGHT -
WM_PATH_COOKED(macro, line 138)#define WM_PATH_COOKED -
WM_PATH_RAW(macro, line 139)#define WM_PATH_RAW -
WM_COMBOS_N(macro, line 198)#define WM_COMBOS_N
-
- Depends on:
headers/drivers/modifiers.h - Imported by:
drivers/kbd.c,kernel/vga_fb.c,tests/test_wm.c
- Doc: Docstring: Focus manager contract for the MiniOS desktop.
- Layer: utility
- Language: h
- Symbols:
-
wm_focus_state_t(struct, line 15) -
wm_focus_selectable(function, line 23)static inline int wm_focus_selectable(const wm_focus_state_t *st, int id) -
wm_focus_next(function, line 38)static inline int wm_focus_next(const wm_focus_state_t *st) -
wm_focus_set(function, line 55)static inline int wm_focus_set(const wm_focus_state_t *st, int id) -
WM_FOCUS_H(macro, line 10)#define WM_FOCUS_H
-
- Depends on:
headers/wm_window.h - Imported by:
kernel/vga_fb.c,tests/test_wm.c
- Doc: Docstring: Window geometry contract for the MiniOS desktop.
- Layer: utility
- Language: h
- Symbols:
-
wm_geom_config_t(struct, line 14) -
wm_rect_t(struct, line 25) -
wm_rect_valid(function, line 33)static inline int wm_rect_valid(const wm_rect_t *r) -
wm_rect_contains(function, line 39)static inline int wm_rect_contains(const wm_rect_t *r, int px, int py) -
wm_title_bar_rect(function, line 48)static inline wm_rect_t wm_title_bar_rect(const wm_geom_config_t *cfg, int px, int py, int w) -
wm_content_rect(function, line 59)static inline wm_rect_t wm_content_rect(const wm_geom_config_t *cfg, int px, int py, int w, int h) -
wm_scrollbar_rect(function, line 71)static inline wm_rect_t wm_scrollbar_rect(const wm_geom_config_t *cfg, int px, int py, int conten... -
wm_hit_title_bar(function, line 84)static inline int wm_hit_title_bar(const wm_geom_config_t *cfg, int wx, int wy, int w, int px, in... -
wm_clamp_point(function, line 91)static inline void wm_clamp_point(int *px, int *py, int fb_w, int fb_h) -
WM_GEOM_H(macro, line 11)#define WM_GEOM_H -
WM_GEOM_CONFIG_DEFAULT(macro, line 22)#define WM_GEOM_CONFIG_DEFAULT
-
- Imported by:
headers/wm_window.h,kernel/vga_fb.c,tests/test_wm.c
- Doc: Docstring: Graphics-window view contract for the MiniOS desktop.
- Layer: utility
- Language: h
- Symbols:
-
wm_gfxview_config_t(struct, line 31) -
wm_gfxview_rect_t(struct, line 47) -
wm_gfxview_t(struct, line 56) -
wm_gfxview_mode_name(function, line 64)static inline const char *wm_gfxview_mode_name(int mode) -
wm_gfxview_dims_ok(function, line 79)static inline int wm_gfxview_dims_ok(int w, int h) -
Downscale(function, line 88) `* Downscale (fit below 1x) always takes the exact fit. Returns 1 on
-
- success, 0 on degenerate i...`
-
wm_gfxview_clamp(function, line 134)static inline void wm_gfxview_clamp(wm_gfxview_rect_t *r, int fb_w, int fb_h) -
wm_gfxview_place_content(function, line 160)static inline int wm_gfxview_place_content(const wm_gfxview_config_t *cfg, int sw, int sh, ... -
wm_gfxview_map_point(function, line 255)static inline int wm_gfxview_map_point(const wm_gfxview_t *v, int sw, int sh, ... -
wm_gfxview_ease(function, line 291)static inline long wm_gfxview_ease(int t, int n, long den) -
wm_gfxview_lerp_rect(function, line 313)static inline int wm_gfxview_lerp_rect(const wm_gfxview_rect_t *a, const wm_gfxview_rect_t *b, ... -
wm_gfxview_rect_same(function, line 336)static inline int wm_gfxview_rect_same(const wm_gfxview_rect_t *a, const wm_gfxview_rect_t *b) -
WM_GFXVIEW_H(macro, line 21)#define WM_GFXVIEW_H -
WM_GFXVIEW_CONFIG_DEFAULT(macro, line 41)#define WM_GFXVIEW_CONFIG_DEFAULT -
WM_GFXVIEW_DIM_MAX(macro, line 44)#define WM_GFXVIEW_DIM_MAX - Imported by:
kernel/vga_fb.c,tests/test_wm.c
- Doc: Docstring: Wobbly-window spring mesh contract for the MiniOS desktop.
- Layer: utility
- Language: h
- Symbols:
-
wm_jelly_config_t(struct, line 33) -
wm_jelly_t(struct, line 51) -
wm_jelly_clamp(function, line 59)static inline int wm_jelly_clamp(int v, int lim) -
wm_jelly_abs(function, line 71)static inline int wm_jelly_abs(int v) -
wm_jelly_reset(function, line 77)static inline void wm_jelly_reset(wm_jelly_t *j) -
wm_jelly_neighbours(function, line 130)static inline int wm_jelly_neighbours(const int *d, int r, int c) -
wm_jelly_step(function, line 155)static inline void wm_jelly_step(const wm_jelly_config_t *cfg, wm_jelly_t *j) -
wm_jelly_at_rest(function, line 186)static inline int wm_jelly_at_rest(const wm_jelly_config_t *cfg, const wm_jelly_t *j) -
wm_jelly_sample(function, line 203)static inline void wm_jelly_sample(const wm_jelly_t *j, int x, int y, int w, int h, ... -
WM_JELLY_H(macro, line 16)#define WM_JELLY_H -
WM_JELLY_GRID(macro, line 19)#define WM_JELLY_GRID -
WM_JELLY_FP(macro, line 22)#define WM_JELLY_FP -
WM_JELLY_WEIGHT_ONE(macro, line 25)#define WM_JELLY_WEIGHT_ONE -
WM_JELLY_CONFIG_DEFAULT(macro, line 48)#define WM_JELLY_CONFIG_DEFAULT
-
- Imported by:
kernel/vga_fb.c,tests/test_jelly.c
- Doc: Docstring: Unified layout contract for the MiniOS desktop.
- Layer: presentation
- Language: h
- Symbols:
-
wm_layout_window_t(struct, line 27) -
wm_layout_config_t(struct, line 36) -
wm_layout_cell_t(struct, line 48) -
wm_layout_mode_name(function, line 57)static inline const char *wm_layout_mode_name(int mode) -
wm_layout_mode_valid(function, line 76)static inline int wm_layout_mode_valid(int mode) -
wm_layout_clamp_cell(function, line 82)static inline int wm_layout_clamp_cell(wm_layout_cell_t *cell, int max_cols, int max_rows) -
wm_layout_fullscreen_cell(function, line 118)static inline int wm_layout_fullscreen_cell(int max_cols, int max_rows, wm_layout_cell_t *out) -
wm_layout_compute_tile(function, line 135)static inline int wm_layout_compute_tile(const wm_layout_window_t *wins, int nwin, int max_cols, ... -
wm_layout_compute_bsp(function, line 182)static inline int wm_layout_compute_bsp(const wm_layout_window_t *wins, int nwin, int max_cols, i... -
wm_layout_compute_cascade(function, line 250)static inline int wm_layout_compute_cascade(const wm_layout_config_t *cfg, const wm_layout_window... -
wm_layout_compute_fibonacci(function, line 285)static inline int wm_layout_compute_fibonacci(const wm_layout_config_t *cfg, const wm_layout_wind... -
wm_layout_compute(function, line 361)static inline int wm_layout_compute(const wm_layout_config_t *cfg, const wm_layout_window_t *wins... -
wm_layout_same(function, line 443)static inline int wm_layout_same(const wm_layout_cell_t *a, const wm_layout_cell_t *b, int n) -
WM_LAYOUT_H(macro, line 12)#define WM_LAYOUT_H -
WM_LAYOUT_MODE_COUNT(macro, line 24)#define WM_LAYOUT_MODE_COUNT -
WM_LAYOUT_CONFIG_DEFAULT(macro, line 45)#define WM_LAYOUT_CONFIG_DEFAULT
-
- Imported by:
kernel/shell.c,kernel/vga_fb.c,tests/test_wm.c
- Doc: Docstring: Focus event bus for the MiniOS desktop.
- Layer: utility
- Language: h
- Symbols:
-
wm_notify_event_t(struct, line 30) -
wm_notify_bus_t(struct, line 43) -
wm_notify_reset(function, line 51)static inline void wm_notify_reset(wm_notify_bus_t *bus) -
wm_notify_subscribe(function, line 66)static inline int wm_notify_subscribe(wm_notify_bus_t *bus, ... -
wm_notify_emit(function, line 76)static inline void wm_notify_emit(wm_notify_bus_t *bus, const w... -
wm_notify_last(function, line 90)static inline const wm_notify_event_t *wm_notify_last( const wm_notify_bus_t *bus) -
wm_notify_src_name(function, line 98)static inline const char *wm_notify_src_name(int source) -
WM_NOTIFY_H(macro, line 2)#define WM_NOTIFY_H -
WM_NOTIFY_MAX_HANDLERS(macro, line 41)#define WM_NOTIFY_MAX_HANDLERS
-
- Imported by:
headers/vga_fb.h,kernel/shell.c,kernel/vga_fb.c,tests/test_notify.c
- Doc: Docstring: Render pipeline contract for the MiniOS desktop.
- Layer: presentation
- Language: h
- Symbols:
-
wm_render_item_t(struct, line 25) -
wm_render_config_t(struct, line 31) -
wm_build_render_plan(function, line 39)static inline int wm_build_render_plan(const wm_render_config_t *cfg, const int *present, int nte... -
WM_RENDER_H(macro, line 11)#define WM_RENDER_H -
WM_RENDER_CONFIG_DEFAULT(macro, line 36)#define WM_RENDER_CONFIG_DEFAULT
-
- Depends on:
headers/wm_window.h - Imported by:
kernel/vga_fb.c,tests/test_wm.c
- Doc: Docstring: Tiling layout contract for the MiniOS desktop.
- Layer: utility
- Language: h
- Symbols:
-
wm_tile_cell_t(struct, line 13) -
wm_tile_layout(function, line 22)static inline int wm_tile_layout(const int *present, int nterms, int gfx_active, int max_cols, in... -
WM_TILING_H(macro, line 10)#define WM_TILING_H
-
- Imported by:
kernel/vga_fb.c,tests/test_wm.c
- Doc: Docstring: Unified window contract for the MiniOS desktop.
- Layer: utility
- Language: h
- Symbols:
-
wm_window_t(struct, line 29) -
wm_window_active(function, line 41)static inline int wm_window_active(const wm_window_t *w) -
wm_window_rect(function, line 47)static inline wm_rect_t wm_window_rect(const wm_window_t *w) -
wm_window_contains(function, line 58)static inline int wm_window_contains(const wm_window_t *w, int px, int py) -
wm_window_title_hits(function, line 68)static inline int wm_window_title_hits(const wm_geom_config_t *cfg, const wm_window_t *w, int px,... -
wm_focus_next_id(function, line 77)static inline int wm_focus_next_id(const int *present, int nterms, int gfx_active, int focus) -
wm_paint_order(function, line 114)static inline int wm_paint_order(const int *present, int nterms, int focus, int *order, int cap) -
WM_WINDOW_H(macro, line 11)#define WM_WINDOW_H -
WM_WINDOW_GFX_ID(macro, line 23)#define WM_WINDOW_GFX_ID -
WM_WINDOW_MAX_TERMS(macro, line 26)#define WM_WINDOW_MAX_TERMS
-
- Depends on:
headers/wm_geom.h - Imported by:
headers/wm_focus.h,headers/wm_render.h,kernel/vga_fb.c,tests/test_wm.c
- Doc: — MiniOS integration API for the miniz zip library.
- Layer: utility
- Language: h
- Symbols:
-
miniz(function, line 6)* * The shell builtins over miniz (see zip.c) are declared here so kernel.c's * shell dispatcher can route the... -
shell_cmd_zip(function, line 15)void shell_cmd_zip(int argc, char **argv); -
ZIP_H(macro, line 2)#define ZIP_H
-
- Imported by:
kernel/shell.c,kernel/syscalls.c
Generated offline by readmenator from commit d64a8fe9383a. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_headers_kernel
- community_10_orphans
- community_1_progs_doomgeneric_d_englsh
- community_2_progs_src
- community_3_progs_doomgeneric_p_spec
- community_4_tools_tls_crypto
- community_5_headers_vga_fb
- community_6_progs_doomgeneric_net_defs
- community_7_headers_batch
- community_8_headers_tick
- community_9_tools_doom_pwad
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- KB_asm
- KB_boot
- KB_doomgeneric
- KB_doomgeneric_p10
- KB_doomgeneric_p11
- KB_doomgeneric_p12
- KB_doomgeneric_p2
- KB_doomgeneric_p3
- KB_doomgeneric_p4
- KB_doomgeneric_p5
- KB_doomgeneric_p6
- KB_doomgeneric_p7
- KB_doomgeneric_p8
- KB_doomgeneric_p9
- KB_drivers
- KB_drivers_p2
- KB_file
- KB_freedomui
- KB_fs
- KB_headers
- KB_headers_arch_x86
- KB_headers_drivers
- KB_headers_kernel
- KB_headers_p2
- KB_headers_p3
- KB_headers_p4
- KB_headers_p5
- KB_headers_p6
- KB_kernel
- KB_kernel_p2
- KB_kernel_p3
- KB_kernel_p4
- KB_lib
- KB_lisp
- KB_lua
- KB_mcp
- KB_minios
- KB_misc
- KB_misc_p2
- KB_misc_p3
- KB_mm
- KB_net
- KB_nuklear
- KB_pokemon
- KB_progs
- KB_quake2generic
- KB_root
- KB_src
- KB_src_p2
- KB_src_p3
- KB_tests
- KB_tests_p2
- KB_tls_u
- KB_tools
- KB_tools_p2
- KB_wl
- KB_x86
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p3
- SYMBOLS_p4
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes