axle OS
x86_32 UNIX-like hobby OS
label.h
1 #ifndef LABEL_H
2 #define LABEL_H
3 
4 #include <std/std_base.h>
5 #include <stdint.h>
6 #include "rect.h"
7 #include "ca_layer.h"
8 #include "color.h"
9 
10 __BEGIN_DECLS
11 
12 typedef struct label {
13  //common
14  Rect frame;
15  char needs_redraw;
16  ca_layer* layer;
17  struct view* superview;
18 
19  char* text;
20  Color text_color;
21  Size font_size;
22 } Label;
23 
24 Label* create_label(Rect frame, char* text);
25 void draw_label(ca_layer* dest, Label* label);
26 
27 void label_teardown(Label* label);
28 void set_text(Label* label, char* text);
29 
30 __END_DECLS
31 
32 #endif
Definition: label.h:12
Definition: color.h:7
Definition: size.h:4
Definition: rect.h:14
Definition: view.h:15