aboutsummaryrefslogtreecommitdiffstats
path: root/src/iconbar.h
blob: eb66e9afc678cc10bff1f433097487eb6af5f9fd (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
47
48
49
50
51
52
53
54
#ifndef IB_ICONBAR_H
#define IB_ICONBAR_H

#include "e.h"
#include "config.h"
#include "exec.h"
#include "view.h"

typedef struct _E_Iconbar_Icon E_Iconbar_Icon;
#ifndef E_ICONBAR_TYPEDEF
#define E_ICONBAR_TYPEDEF
typedef struct _E_Iconbar E_Iconbar;
#endif

#ifndef E_VIEW_TYPEDEF
#define E_VIEW_TYPEDEF
typedef struct _E_View                E_View;
#endif

struct _E_Iconbar
{
   OBJ_PROPERTIES;

   E_View       *view;
   Evas_List     icons;
  
   Ebits_Object *bit;
   struct {
      double x, y, w, h;
   } icon_area;
};

struct _E_Iconbar_Icon
{
   OBJ_PROPERTIES;

   E_Iconbar   *iconbar;
   
   Evas_Object  image;
   
   char        *image_path;
   char        *exec;
   
   int          selected;
};

void            e_iconbar_init(void);
E_Iconbar      *e_iconbar_new(E_View *v);
void            e_iconbar_free(E_Iconbar *ib);
void            e_iconbar_icon_free(E_Iconbar_Icon *);
void            e_iconbar_realize(E_Iconbar *ib);
void            e_iconbar_fix(E_Iconbar *ib);

#endif