Changeset 5ef85c0 in mainline
- Timestamp:
- 2022-03-17T12:16:03Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1026cc4
- Parents:
- 71edd430
- git-author:
- Jiri Svoboda <jiri@…> (2022-03-16 19:15:43)
- git-committer:
- Jiri Svoboda <jiri@…> (2022-03-17 12:16:03)
- Location:
- uspace/lib/ui
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/meson.build
r71edd430 r5ef85c0 75 75 'test/rbutton.c', 76 76 'test/resource.c', 77 'test/scrollbar.c', 77 78 'test/slider.c', 78 79 'test/ui.c', -
uspace/lib/ui/src/scrollbar.c
r71edd430 r5ef85c0 49 49 #include "../private/scrollbar.h" 50 50 51 /*52 * The kind reader will appreciate that scrollbar thumb dimensions 23:1553 * are chosen such that, after subtracting the frame width (2 times 1),54 * we get 21:13, which is a good approximation of the golden ratio.55 */56 51 enum { 57 52 /** Scrollbar button width */ … … 471 466 w = scrollbar->rect.p1.x - scrollbar->rect.p0.x - 472 467 2 * ui_scrollbar_btn_len_text; 468 assert(w >= 0); 469 if (w < 0) 470 return EINVAL; 471 473 472 gchar = "\u2592"; 474 473 gcharsz = str_size(gchar); -
uspace/lib/ui/test/main.c
r71edd430 r5ef85c0 48 48 PCUT_IMPORT(rbutton); 49 49 PCUT_IMPORT(resource); 50 PCUT_IMPORT(scrollbar); 50 51 PCUT_IMPORT(slider); 51 52 PCUT_IMPORT(ui); -
uspace/lib/ui/test/slider.c
r71edd430 r5ef85c0 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2022 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 225 225 ui_slider_moved(slider, 42); 226 226 227 /* Moved with callback not implementing clicked */227 /* Moved with callback not implementing moved */ 228 228 ui_slider_set_cb(slider, &dummy_slider_cb, NULL); 229 229 ui_slider_moved(slider, 42);
Note:
See TracChangeset
for help on using the changeset viewer.