diff options
author | Adam NAILI | 2017-12-10 18:33:11 +0100 |
---|---|---|
committer | Adam NAILI | 2017-12-10 18:36:41 +0100 |
commit | 8ad5554529a9f1a6d128582af5aec13c792f0932 (patch) | |
tree | 8983b9a03130b1a728609e74061f3935c7094eca /include | |
parent | ed99a651c4e0c1a162f416ec384cef7df4268a88 (diff) | |
download | morpher-8ad5554529a9f1a6d128582af5aec13c792f0932.tar.gz |
Update doc and reworking structure and signature of init function for group
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/group.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gui/group.h b/include/gui/group.h index b766ded..1887bf6 100644 --- a/include/gui/group.h +++ b/include/gui/group.h | |||
@@ -29,13 +29,15 @@ typedef struct _GroupElement { | |||
29 | * Parameters: | 29 | * Parameters: |
30 | * component - Component used for the Group to catch clicks and handle print to delegate to the components contented in it | 30 | * component - Component used for the Group to catch clicks and handle print to delegate to the components contented in it |
31 | * *group_head - pointer to the head of the list that regroup all the components contained inside of the group | 31 | * *group_head - pointer to the head of the list that regroup all the components contained inside of the group |
32 | * padding - padding for all components | ||
32 | */ | 33 | */ |
33 | typedef struct { | 34 | typedef struct { |
34 | Component component; | 35 | Component component; |
35 | GroupElement *group_head; | 36 | GroupElement *group_head; |
37 | int padding; | ||
36 | } Group; | 38 | } Group; |
37 | 39 | ||
38 | void group_init(Group *group, int padding); | 40 | void group_init(Group *group, int width, int height, int x_pos, int y_pos, int padding); |
39 | 41 | ||
40 | void group_free(Group *group); | 42 | void group_free(Group *group); |
41 | 43 | ||