Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlexborisov <lex.borisov@gmail.com>2016-10-23 16:09:32 +0300
committerlexborisov <lex.borisov@gmail.com>2016-10-23 16:09:32 +0300
commitca51a60b2ad8e2b8d0d19e89cfabb5dd5491aa09 (patch)
treefae35212988a3a082fe369eb499ef0f81cbd3ad2 /source/modest/style/type.h
parent221b3ae461432b7a0b799df9da60f2c2b3d70ba2 (diff)
We put in order CSS properties. Fixed memory collision bug
Diffstat (limited to 'source/modest/style/type.h')
-rw-r--r--source/modest/style/type.h33
1 files changed, 18 insertions, 15 deletions
diff --git a/source/modest/style/type.h b/source/modest/style/type.h
index d408771..366b0b4 100644
--- a/source/modest/style/type.h
+++ b/source/modest/style/type.h
@@ -23,28 +23,31 @@
#pragma once
#include "modest/myosi.h"
+#include "modest/modest.h"
#include "mycss/declaration/myosi.h"
+#include "myhtml/utils/mchar_async.h"
-typedef struct modest_style_type_length modest_style_type_length_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
-typedef struct modest_style_raw modest_style_raw_t;
-typedef struct modest_style_raw_specificity modest_style_raw_specificity_t;
+typedef struct modest_style_type_length modest_style_type_length_t;
+typedef struct modest_style_type_display modest_style_type_display_t;
-struct modest_style_raw_specificity {
- unsigned int x;
- unsigned int a;
- unsigned int b;
- unsigned int c;
+struct modest_style_type_length {
+ float value;
};
-struct modest_style_raw {
- mycss_declaration_entry_t* declaration;
- modest_style_raw_specificity_t spec;
+struct modest_style_type_display {
+ mycss_property_display_t value;
};
-struct modest_style_type_length {
- float value;
- modest_style_raw_t raw;
-};
+
+void * modest_style_type_create(modest_t* modest, size_t size);
+modest_status_t modest_style_type_init(modest_t* modest, void *data);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
#endif /* MODEST_STYLE_TYPE_H */