Changeset 7481ee19 in mainline for uspace/lib/ui/include


Ignore:
Timestamp:
2021-06-23T08:15:00Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a977e37
Parents:
034ce6bb
git-author:
Jiri Svoboda <jiri@…> (2021-06-22 17:14:40)
git-committer:
Jiri Svoboda <jiri@…> (2021-06-23 08:15:00)
Message:

Basic editable text entry

Location:
uspace/lib/ui/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/types/ui/control.h

    r034ce6bb r7481ee19  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3838
    3939#include <errno.h>
     40#include <io/kbd_event.h>
    4041#include <io/pos_event.h>
    4142#include <types/ui/event.h>
     
    5051        /** Paint */
    5152        errno_t (*paint)(void *);
     53        /** Keyboard event */
     54        ui_evclaim_t (*kbd_event)(void *, kbd_event_t *);
    5255        /** Position event */
    5356        ui_evclaim_t (*pos_event)(void *, pos_event_t *);
  • uspace/lib/ui/include/ui/control.h

    r034ce6bb r7481ee19  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3838
    3939#include <errno.h>
     40#include <io/kbd_event.h>
    4041#include <io/pos_event.h>
    4142#include <types/ui/control.h>
     
    4647extern void ui_control_destroy(ui_control_t *);
    4748extern errno_t ui_control_paint(ui_control_t *);
     49extern ui_evclaim_t ui_control_kbd_event(ui_control_t *, kbd_event_t *);
    4850extern ui_evclaim_t ui_control_pos_event(ui_control_t *, pos_event_t *);
    4951extern void ui_control_unfocus(ui_control_t *);
  • uspace/lib/ui/include/ui/entry.h

    r034ce6bb r7481ee19  
    5050extern void ui_entry_set_rect(ui_entry_t *, gfx_rect_t *);
    5151extern void ui_entry_set_halign(ui_entry_t *, gfx_halign_t);
     52extern void ui_entry_set_read_only(ui_entry_t *, bool);
    5253extern errno_t ui_entry_set_text(ui_entry_t *, const char *);
    5354extern errno_t ui_entry_paint(ui_entry_t *);
     55extern ui_evclaim_t ui_entry_kbd_event(ui_entry_t *, kbd_event_t *);
     56extern ui_evclaim_t ui_entry_pos_event(ui_entry_t *, pos_event_t *);
    5457
    5558#endif
  • uspace/lib/ui/include/ui/fixed.h

    r034ce6bb r7481ee19  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4949extern void ui_fixed_remove(ui_fixed_t *, ui_control_t *);
    5050extern errno_t ui_fixed_paint(ui_fixed_t *);
     51extern ui_evclaim_t ui_fixed_kbd_event(ui_fixed_t *, kbd_event_t *);
    5152extern ui_evclaim_t ui_fixed_pos_event(ui_fixed_t *, pos_event_t *);
    5253extern void ui_fixed_unfocus(ui_fixed_t *);
  • uspace/lib/ui/include/ui/window.h

    r034ce6bb r7481ee19  
    4040#include <gfx/context.h>
    4141#include <gfx/coord.h>
     42#include <io/kbd_event.h>
    4243#include <io/pos_event.h>
    4344#include <types/ui/control.h>
     
    6263extern void ui_window_set_ctl_cursor(ui_window_t *, ui_stock_cursor_t);
    6364extern errno_t ui_window_paint(ui_window_t *);
     65extern void ui_window_def_kbd(ui_window_t *, kbd_event_t *);
    6466extern errno_t ui_window_def_paint(ui_window_t *);
    6567extern void ui_window_def_pos(ui_window_t *, pos_event_t *);
Note: See TracChangeset for help on using the changeset viewer.