Changeset 5e109e1 in mainline for uspace/lib/ui/src/entry.c


Ignore:
Timestamp:
2021-08-10T09:49:21Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
307d4d2, 3a4a944f
Parents:
edeee9f
git-author:
Jiri Svoboda <jiri@…> (2021-08-09 18:49:14)
git-committer:
Jiri Svoboda <jiri@…> (2021-08-10 09:49:21)
Message:

File dialog prototype

This only contains a text entry for entering the file path and
OK / Cancel buttons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/entry.c

    redeee9f r5e109e1  
    190190        entry->pos = str_size(text);
    191191        entry->sel_start = entry->pos;
     192
    192193        ui_entry_scroll_update(entry, false);
    193194        ui_entry_paint(entry);
    194195
    195196        return EOK;
     197}
     198
     199/** Get entry text.
     200 *
     201 * @return Pointer to entry text.
     202 */
     203const char *ui_entry_get_text(ui_entry_t *entry)
     204{
     205        return entry->text;
    196206}
    197207
Note: See TracChangeset for help on using the changeset viewer.