summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/edje/edje_private.h')
-rw-r--r--src/lib/edje/edje_private.h70
1 files changed, 69 insertions, 1 deletions
diff --git a/src/lib/edje/edje_private.h b/src/lib/edje/edje_private.h
index 2c12ea6a51..2b0d538ebb 100644
--- a/src/lib/edje/edje_private.h
+++ b/src/lib/edje/edje_private.h
@@ -1974,6 +1974,7 @@ struct _Edje_Real_Part_Text
1974 const char *style; // 4 1974 const char *style; // 4
1975 Edje_Position offset; // 8 1975 Edje_Position offset; // 8
1976 short size; // 2 1976 short size; // 2
1977 Efl_Canvas_Layout_Part_Text_Expand expand;
1977 struct { 1978 struct {
1978 unsigned char fit_x, fit_y; // 2 1979 unsigned char fit_x, fit_y; // 2
1979 short in_size; // 2 1980 short in_size; // 2
@@ -2252,6 +2253,58 @@ struct _Edje_Patterns
2252 unsigned int finals[]; 2253 unsigned int finals[];
2253}; 2254};
2254 2255
2256typedef enum
2257{
2258 EDJE_PART_TEXT_PROP_NONE = 0, // never used
2259 EDJE_PART_TEXT_PROP_BACKING_TYPE = 1,
2260 EDJE_PART_TEXT_PROP_COLOR_BACKING = 1 << 2,
2261 EDJE_PART_TEXT_PROP_COLOR_GLOW = 1 << 3,
2262 EDJE_PART_TEXT_PROP_COLOR_GLOW2 = 1 << 4,
2263 EDJE_PART_TEXT_PROP_COLOR_NORMAL = 1 << 5,
2264 EDJE_PART_TEXT_PROP_COLOR_OUTLINE = 1 << 6,
2265 EDJE_PART_TEXT_PROP_COLOR_SHADOW = 1 << 7,
2266 EDJE_PART_TEXT_PROP_COLOR_STRIKETHROUGH = 1 << 8,
2267 EDJE_PART_TEXT_PROP_COLOR_UNDERLINE = 1 << 9,
2268 EDJE_PART_TEXT_PROP_COLOR_UNDERLINE2 = 1 << 10,
2269 EDJE_PART_TEXT_PROP_COLOR_UNDERLINE_DASHED = 1 << 11,
2270 EDJE_PART_TEXT_PROP_EFFECT_TYPE = 1 << 12,
2271 EDJE_PART_TEXT_PROP_ELLIPSIS = 1 << 13,
2272 EDJE_PART_TEXT_PROP_FONT = 1 << 14,
2273 EDJE_PART_TEXT_PROP_SHADOW_DIRECTION = 1 << 15,
2274 EDJE_PART_TEXT_PROP_STRIKETHROUGH_TYPE = 1 << 16,
2275 EDJE_PART_TEXT_PROP_UNDERLINE_DASHED_GAP = 1 << 17,
2276 EDJE_PART_TEXT_PROP_UNDERLINE_DASHED_WIDTH = 1 << 18,
2277 EDJE_PART_TEXT_PROP_UNDERLINE_TYPE = 1 << 19,
2278 EDJE_PART_TEXT_PROP_UNDERLINE_HEIGHT = 1 << 20,
2279 EDJE_PART_TEXT_PROP_WRAP = 1 << 21
2280} Edje_Part_Text_Prop_Type;
2281
2282typedef struct
2283{
2284 Edje_Part_Text_Prop_Type type;
2285 union
2286 {
2287 int ni; // number integer
2288 int nd; // number double
2289 Efl_Text_Format_Wrap wrap;
2290 Efl_Text_Style_Backing_Type backing;
2291 Efl_Text_Style_Underline_Type underline;
2292 struct
2293 {
2294 unsigned char r, g, b, a;
2295 } color;
2296 struct
2297 {
2298 const char *font;
2299 Efl_Font_Size size;
2300 } font;
2301 Efl_Text_Style_Effect_Type effect;
2302 Efl_Text_Style_Shadow_Direction shadow;
2303 Efl_Text_Style_Strikethrough_Type strikethrough_type;
2304 Efl_Text_Style_Underline_Type underline_type;
2305 } val;
2306} Edje_Part_Text_Prop;
2307
2255typedef enum _Edje_User_Defined_Type 2308typedef enum _Edje_User_Defined_Type
2256{ 2309{
2257 EDJE_USER_SWALLOW, 2310 EDJE_USER_SWALLOW,
@@ -2261,7 +2314,9 @@ typedef enum _Edje_User_Defined_Type
2261 EDJE_USER_DRAG_STEP, 2314 EDJE_USER_DRAG_STEP,
2262 EDJE_USER_DRAG_PAGE, 2315 EDJE_USER_DRAG_PAGE,
2263 EDJE_USER_DRAG_VALUE, 2316 EDJE_USER_DRAG_VALUE,
2264 EDJE_USER_DRAG_SIZE 2317 EDJE_USER_DRAG_SIZE,
2318 EDJE_USER_TEXT_STYLE,
2319 EDJE_USER_TEXT_EXPAND,
2265} Edje_User_Defined_Type; 2320} Edje_User_Defined_Type;
2266 2321
2267typedef struct _Edje_User_Defined Edje_User_Defined; 2322typedef struct _Edje_User_Defined Edje_User_Defined;
@@ -2296,6 +2351,13 @@ struct _Edje_User_Defined
2296 struct { 2351 struct {
2297 double w, h; 2352 double w, h;
2298 } drag_size; 2353 } drag_size;
2354 struct {
2355 Eina_List *props;
2356 Edje_Part_Text_Prop_Type types;
2357 } text_style;
2358 struct {
2359 Efl_Canvas_Layout_Part_Text_Expand expand;
2360 } text_expand;
2299 } u; 2361 } u;
2300}; 2362};
2301 2363
@@ -2973,9 +3035,15 @@ Eina_Bool _edje_multisense_internal_vibration_sample_play(Edje *ed, const char *
2973 3035
2974void _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *state); 3036void _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *state);
2975 3037
3038Edje_User_Defined * _edje_user_definition_fetch(Edje *ed, const char *part, Edje_User_Defined_Type type);
3039Edje_User_Defined * _edje_user_text_style_definition_fetch(Edje *ed, const char *part);
3040Edje_User_Defined * _edje_user_text_expand_definition_fetch(Edje *ed, const char *part);
2976void _edje_user_definition_remove(Edje_User_Defined *eud, Evas_Object *child); 3041void _edje_user_definition_remove(Edje_User_Defined *eud, Evas_Object *child);
2977void _edje_user_definition_free(Edje_User_Defined *eud); 3042void _edje_user_definition_free(Edje_User_Defined *eud);
2978 3043
3044void _canvas_layout_user_text_apply(Edje_User_Defined *eud, Eo *obj, Edje_Part_Text_Prop *prop);
3045void _canvas_layout_user_text_collect(Edje *ed, Edje_User_Defined *eud);
3046
2979extern Efl_Observable *_edje_color_class_member; 3047extern Efl_Observable *_edje_color_class_member;
2980extern Efl_Observable *_edje_text_class_member; 3048extern Efl_Observable *_edje_text_class_member;
2981extern Efl_Observable *_edje_size_class_member; 3049extern Efl_Observable *_edje_size_class_member;