Changeset 8965860c in mainline for uspace/lib/ui/private/scrollbar.h


Ignore:
Timestamp:
2022-03-23T18:35:16Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ca7215
Parents:
d4ea1f6
Message:

Clickmatic

A class that periodically generates when held, after initial delay.
This is quite similar to the typematic feature found in PC keyboards.
We use it to automatically scroll when scrollbar button or through
is held.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/private/scrollbar.h

    rd4ea1f6 r8965860c  
    4848        /** Base control object */
    4949        struct ui_control *control;
    50         /** UI resource */
    51         struct ui_resource *res;
     50        /** UI */
     51        struct ui *ui;
     52        /** UI window containing scrollbar */
     53        struct ui_window *window;
    5254        /** Callbacks */
    5355        struct ui_scrollbar_cb *cb;
     
    6668        /** Up through is currently held down */
    6769        bool up_through_held;
     70        /** Pointer is inside up through */
     71        bool up_through_inside;
    6872        /** Down through is currently held down */
    6973        bool down_through_held;
     74        /** Pointer is inside down through */
     75        bool down_through_inside;
    7076        /** Position where thumb was pressed */
    7177        gfx_coord2_t press_pos;
     
    7480        /** Thumb position */
    7581        gfx_coord_t pos;
     82        /** Last cursor position (when through is held) */
     83        gfx_coord2_t last_curs_pos;
    7684};
    7785
     
    97105extern errno_t ui_scrollbar_paint_gfx(ui_scrollbar_t *);
    98106extern errno_t ui_scrollbar_paint_text(ui_scrollbar_t *);
    99 extern errno_t ui_scrollbar_thumb_clear(ui_scrollbar_t *);
    100107extern void ui_scrollbar_get_geom(ui_scrollbar_t *, ui_scrollbar_geom_t *);
    101108
Note: See TracChangeset for help on using the changeset viewer.