Changeset 7e38970d in mainline for uspace/lib/ui/include/ui/label.h
- Timestamp:
- 2020-12-07T00:08:37Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25f26600
- Parents:
- 7a873f0 (diff), 8596474 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/ui/label.h
r7a873f0 r7e38970d 1 1 /* 2 * Copyright (c) 20 12 Petr Koupy2 * Copyright (c) 2020 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup gui29 /** @addtogroup libui 30 30 * @{ 31 31 */ 32 32 /** 33 * @file 33 * @file Label 34 34 */ 35 35 36 #ifndef GUI_LABEL_H_37 #define GUI_LABEL_H_36 #ifndef _UI_LABEL_H 37 #define _UI_LABEL_H 38 38 39 #include <stdint.h> 40 #include <io/pixel.h> 39 #include <errno.h> 40 #include <gfx/coord.h> 41 #include <gfx/text.h> 42 #include <types/ui/control.h> 43 #include <types/ui/label.h> 44 #include <types/ui/resource.h> 41 45 42 #include <draw/source.h> 43 #include <draw/font.h> 44 45 #include "connection.h" 46 #include "widget.h" 47 48 typedef struct label { 49 widget_t widget; 50 source_t background; 51 source_t text; 52 char *caption; 53 font_t *font; 54 slot_t rewrite; 55 } label_t; 56 57 extern bool init_label(label_t *, widget_t *, const void *, const char *, 58 uint16_t, pixel_t, pixel_t); 59 extern label_t *create_label(widget_t *, const void *, const char *, uint16_t, 60 pixel_t, pixel_t); 61 extern void deinit_label(label_t *); 46 extern errno_t ui_label_create(ui_resource_t *, const char *, 47 ui_label_t **); 48 extern void ui_label_destroy(ui_label_t *); 49 extern ui_control_t *ui_label_ctl(ui_label_t *); 50 extern void ui_label_set_rect(ui_label_t *, gfx_rect_t *); 51 extern void ui_label_set_halign(ui_label_t *, gfx_halign_t); 52 extern errno_t ui_label_set_text(ui_label_t *, const char *); 53 extern errno_t ui_label_paint(ui_label_t *); 62 54 63 55 #endif
Note:
See TracChangeset
for help on using the changeset viewer.