summaryrefslogtreecommitdiff
path: root/include/gui/group.h
blob: 45ec3b2aa7c9fb31daa49f781c2dd88488b4dd50 (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
#ifndef UPEM_MORPHING_GROUP
#define UPEM_MORPHING_GROUP

#include "window.h"

/**
 * File: group.h
 */

typedef struct _GroupElement {
  Component *c;
  struct _GroupElement *next;
} GroupElement;

typedef struct {
  Component component;
  GroupElement *group_head;
} Group;

void group_init(Group *group, int padding);

void group_free(Group *group);

void group_add_component(Group *group, Component *component);

#endif