summaryrefslogtreecommitdiff
path: root/src/text.h
blob: 6dd1913c15cf4a44c00751abe71a8a12321fd450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef E_TEXT_H
#define E_TEXT_H

#include "e.h"

typedef struct _E_Text                E_Text;

struct _E_Text
{
   char *text;
   char *class;
   char *state;
   
   int visible;
   double x, y, w, h;
   struct {
      double w, h;
   } min, max;
   struct {
      int r, g, b, a;
   } color;
   int layer;   
   
   Evas evas;
   Evas_Object obj;
};

E_Text *e_text_new(Evas evas, char *text, char *class);
void    e_text_free(E_Text *t);
void    e_text_set_text(E_Text *t);
void    e_text_set_layer(E_Text *t, int l);
void    e_text_set_clip(E_Text *t, Evas_Object clip);
void    e_text_unset_clip(E_Text *t);
void    e_text_raise(E_Text *t);
void    e_text_lower(E_Text *t);
void    e_text_show(E_Text *t);
void    e_text_hide(E_Text *t);
void    e_text_set_color(E_Text *t, int r, int g, int b, int a);
void    e_text_move(E_Text *t, double x, double y);
void    e_text_resize(E_Text *t, double w, double h);
void    e_text_get_geometry(E_Text *t, double *x, double *y, double *w, double *h);
void    e_text_get_min_size(E_Text *t, double *w, double *h);
void    e_text_get_max_size(E_Text *t, double *w, double *h);
void    e_text_set_state(E_Text *t, char *state);

#endif