Changeset 9eb8d12 in mainline for uspace/lib/ui/private/entry.h


Ignore:
Timestamp:
2021-07-19T22:35:19Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9722c1
Parents:
ead72f2
Message:

Entry text selection (using keyboard)

Text can be selected with movement keys while holding down Shift.
Selection can be deleted by pressing Backspace, Delete or typing
in replacement text.

File:
1 edited

Legend:

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

    read72f2 r9eb8d12  
    6060        /** Cursor position in the text (offset in bytes) */
    6161        unsigned pos;
     62        /** Selection start position in text (offset in bytes) */
     63        unsigned sel_start;
    6264        /** Pointer is currently inside */
    6365        bool pointer_inside;
     
    7880
    7981extern errno_t ui_entry_insert_str(ui_entry_t *, const char *);
     82extern ui_evclaim_t ui_entry_key_press_shift(ui_entry_t *, kbd_event_t *);
    8083extern ui_evclaim_t ui_entry_key_press_unmod(ui_entry_t *, kbd_event_t *);
    8184extern void ui_entry_get_geom(ui_entry_t *, ui_entry_geom_t *);
    8285extern size_t ui_entry_find_pos(ui_entry_t *, gfx_coord2_t *);
     86extern void ui_entry_delete_sel(ui_entry_t *);
    8387extern void ui_entry_activate(ui_entry_t *);
    8488extern void ui_entry_deactivate(ui_entry_t *);
Note: See TracChangeset for help on using the changeset viewer.