blob: 6f501ff6a422bc7c50b1ee9cd3b26c5a86db1251 (
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
55
56
57
58
59
60
61
62
|
/*
Copyright (C) 2016 Alexander Borisov
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Author: lex.borisov@gmail.com (Alexander Borisov)
*/
#ifndef MODEST_LAYER_LAYER_H
#define MODEST_LAYER_LAYER_H
#pragma once
#include "modest/myosi.h"
#include "myhtml/utils/mcobject.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct modest_layer modest_layer_t;
typedef struct modest_layout modest_layout_t;
struct modest_layer {
/* navigation */
modest_layer_t* next;
modest_layer_t* prev;
modest_layer_t* child;
modest_layer_t* parent;
};
struct modest_layout {
mcobject_t* mc_nodes;
};
modest_layout_t * modest_layers_create(void);
modest_status_t modest_layers_init(modest_layout_t* layout);
void modest_layers_clean_all(modest_layout_t* layout);
modest_layout_t * modest_layers_destroy(modest_layout_t* layout, bool self_destroy);
modest_layer_t * modest_layer_create(modest_layout_t* layout);
void modest_layer_clean(modest_layer_t* layer);
modest_layer_t * modest_layer_destroy(modest_layout_t* layout, modest_layer_t* layer);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* MODEST_LAYER_LAYER_H */
|