Ignore:
File:
1 edited

Legend:

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

    ra106037 rc0757e1f  
    4040#include <gfx/coord.h>
    4141#include <gfx/text.h>
     42#include <stdbool.h>
    4243
    4344/** Actual structure of text entry.
     
    5859        /** Text */
    5960        char *text;
     61        /** Current scroll position (in pixels) */
     62        gfx_coord_t scroll_pos;
    6063        /** Cursor position in the text (offset in bytes) */
    6164        unsigned pos;
     
    8184        /** Interior rectangle */
    8285        gfx_rect_t interior_rect;
     86        /** Text rectangle */
     87        gfx_rect_t text_rect;
    8388        /** Text anchor position */
    8489        gfx_coord2_t text_pos;
     90        /** Text anchor X coordinate */
     91        gfx_coord_t anchor_x;
    8592} ui_entry_geom_t;
    8693
    87 extern errno_t ui_entry_insert_str(ui_entry_t *, const char *);
    8894extern ui_evclaim_t ui_entry_key_press_ctrl(ui_entry_t *, kbd_event_t *);
    8995extern ui_evclaim_t ui_entry_key_press_shift(ui_entry_t *, kbd_event_t *);
     
    9298extern size_t ui_entry_find_pos(ui_entry_t *, gfx_coord2_t *);
    9399extern void ui_entry_delete_sel(ui_entry_t *);
    94 extern void ui_entry_activate(ui_entry_t *);
    95 extern void ui_entry_deactivate(ui_entry_t *);
     100extern void ui_entry_scroll_update(ui_entry_t *, bool);
    96101
    97102#endif
Note: See TracChangeset for help on using the changeset viewer.