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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
|
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#define ELM_WIDGET_PROTECTED
#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
#include <Elementary.h>
#include "elm_priv.h"
#include "elm_widget_notify.h"
#include "elm_widget_container.h"
#define MY_CLASS ELM_NOTIFY_CLASS
#define MY_CLASS_NAME "Elm_Notify"
#define MY_CLASS_NAME_LEGACY "elm_notify"
static void
_notify_theme_apply(Evas_Object *obj)
{
const char *style = elm_widget_style_get(obj);
const char *position;
double ax, ay;
ELM_NOTIFY_DATA_GET(obj, sd);
ax = sd->horizontal_align;
ay = sd->vertical_align;
if (ay == 0.0)
{
if (ax == 0.0)
position = "top_left";
else if (ax == 1.0)
position = "top_right";
else
position = "top";
}
else if (ay == 1.0)
{
if (ax == 0.0)
position = "bottom_left";
else if (ax == 1.0)
position = "bottom_right";
else
position = "bottom";
}
else
{
if (ax == 0.0)
position = "left";
else if (ax == 1.0)
position = "right";
else
position = "center";
}
elm_widget_theme_object_set(obj, sd->notify, "notify", position, style);
}
/**
* Moves notification to orientation.
*
* This function moves notification to orientation
* according to object RTL orientation.
*
* @param obj notification object.
*
* @param x, y, w, h geometry of object.
*
* @internal
**/
static void
_notify_move_to_orientation(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
{
Evas_Coord minw = -1, minh = -1;
double ax, ay;
ELM_NOTIFY_DATA_GET(obj, sd);
edje_object_size_min_get(sd->notify, &minw, &minh);
edje_object_size_min_restricted_calc(sd->notify, &minw, &minh, minw, minh);
ax = sd->horizontal_align;
ay = sd->vertical_align;
if ((elm_widget_mirrored_get(obj)) && (ax != ELM_NOTIFY_ALIGN_FILL)) ax = 1.0 - ax;
if (ax == ELM_NOTIFY_ALIGN_FILL) minw = w;
if (ay == ELM_NOTIFY_ALIGN_FILL) minh = h;
x = x + ((w - minw) * ax);
y = y + ((h - minh) * ay);
evas_object_move(sd->notify, x, y);
evas_object_resize(sd->notify, minw, minh);
}
static void
_block_events_theme_apply(Evas_Object *obj)
{
ELM_NOTIFY_DATA_GET(obj, sd);
const char *style = elm_widget_style_get(obj);
if (!elm_layout_theme_set
(sd->block_events, "notify", "block_events", style))
CRI("Failed to set layout!");
}
static void
_mirrored_set(Evas_Object *obj, Eina_Bool rtl)
{
Evas_Coord x, y, w, h;
ELM_NOTIFY_DATA_GET(obj, sd);
edje_object_mirrored_set(sd->notify, rtl);
evas_object_geometry_get(obj, &x, &y, &w, &h);
_notify_move_to_orientation(obj, x, y, w, h);
}
static void
_sizing_eval(Evas_Object *obj)
{
Evas_Coord x, y, w, h;
ELM_NOTIFY_DATA_GET(obj, sd);
if (!sd->parent) return;
evas_object_geometry_get(sd->parent, &x, &y, &w, &h);
if (eo_isa(sd->parent, ELM_WIN_CLASS))
{
x = 0;
y = 0;
}
evas_object_move(obj, x, y);
evas_object_resize(obj, w, h);
}
EOLIAN static Eina_Bool
_elm_notify_elm_widget_theme_apply(Eo *obj, Elm_Notify_Data *sd)
{
Eina_Bool int_ret = EINA_FALSE;
int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS));
if (!int_ret) return EINA_FALSE;
_mirrored_set(obj, elm_widget_mirrored_get(obj));
_notify_theme_apply(obj);
if (sd->block_events) _block_events_theme_apply(obj);
edje_object_scale_set
(sd->notify, elm_widget_scale_get(obj) * elm_config_scale_get());
_sizing_eval(obj);
return EINA_TRUE;
}
EOLIAN static void
_elm_notify_elm_widget_part_text_set(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const char *part, const char *label)
{
edje_object_part_text_set(sd->notify, part, label);
}
EOLIAN static const char*
_elm_notify_elm_widget_part_text_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const char *part)
{
return edje_object_part_text_get(sd->notify, part);
}
static void
_calc(Evas_Object *obj)
{
Evas_Coord x, y, w, h;
ELM_NOTIFY_DATA_GET(obj, sd);
_sizing_eval(obj);
evas_object_geometry_get(obj, &x, &y, &w, &h);
if (sd->content)
{
_notify_move_to_orientation(obj, x, y, w, h);
}
}
static void
_changed_size_hints_cb(void *data,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
_calc(data);
}
EOLIAN static Eina_Bool
_elm_notify_elm_widget_sub_object_del(Eo *obj, Elm_Notify_Data *sd, Evas_Object *sobj)
{
Eina_Bool int_ret = EINA_FALSE;
int_ret = elm_obj_widget_sub_object_del(eo_super(obj, MY_CLASS), sobj);
if (!int_ret) return EINA_FALSE;
if (sobj == sd->content)
{
evas_object_event_callback_del_full
(sobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints_cb, obj);
sd->content = NULL;
}
return EINA_TRUE;
}
static void
_block_area_clicked_cb(void *data,
Evas_Object *obj EINA_UNUSED,
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
eo_event_callback_call(data, ELM_NOTIFY_EVENT_BLOCK_CLICKED, NULL);
}
EOLIAN static void
_elm_notify_evas_object_smart_resize(Eo *obj, Elm_Notify_Data *sd, Evas_Coord w, Evas_Coord h)
{
Evas_Coord x, y;
evas_obj_smart_resize(eo_super(obj, MY_CLASS), w, h);
if (!sd->parent && sd->content)
{
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
_notify_move_to_orientation(obj, x, y, w, h);
}
}
EOLIAN static void
_elm_notify_evas_object_smart_move(Eo *obj, Elm_Notify_Data *sd, Evas_Coord x, Evas_Coord y)
{
Evas_Coord w, h;
evas_obj_smart_move(eo_super(obj, MY_CLASS), x, y);
if (!sd->parent && sd->content)
{
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
_notify_move_to_orientation(obj, x, y, w, h);
}
}
static Eina_Bool
_timer_cb(void *data)
{
Evas_Object *obj = data;
ELM_NOTIFY_DATA_GET(obj, sd);
sd->timer = NULL;
if (!evas_object_visible_get(obj)) goto end;
evas_object_hide(obj);
eo_event_callback_call(obj, ELM_NOTIFY_EVENT_TIMEOUT, NULL);
end:
return ECORE_CALLBACK_CANCEL;
}
static void
_timer_init(Evas_Object *obj,
Elm_Notify_Data *sd)
{
ecore_timer_del(sd->timer);
if (sd->timeout > 0.0)
sd->timer = ecore_timer_add(sd->timeout, _timer_cb, obj);
else
sd->timer = NULL;
}
EOLIAN static void
_elm_notify_evas_object_smart_show(Eo *obj, Elm_Notify_Data *sd)
{
sd->had_hidden = EINA_FALSE;
sd->in_timeout = EINA_FALSE;
evas_obj_smart_show(eo_super(obj, MY_CLASS));
evas_object_show(sd->notify);
if (!sd->allow_events) evas_object_show(sd->block_events);
_timer_init(obj, sd);
elm_object_focus_set(obj, EINA_TRUE);
}
EOLIAN static void
_elm_notify_evas_object_smart_hide(Eo *obj, Elm_Notify_Data *sd)
{
const char *hide_signal;
if (sd->had_hidden && !sd->in_timeout)
return;
hide_signal = edje_object_data_get(sd->notify, "hide_finished_signal");
if ((hide_signal) && (!strcmp(hide_signal, "on")))
{
if (!sd->in_timeout)
edje_object_signal_emit(sd->notify, "elm,state,hide", "elm");
}
else //for backport supporting: edc without emitting hide finished signal
{
evas_obj_smart_hide(eo_super(obj, MY_CLASS));
evas_object_hide(sd->notify);
if (sd->allow_events) evas_object_hide(sd->block_events);
}
ELM_SAFE_FREE(sd->timer, ecore_timer_del);
}
static void
_parent_del_cb(void *data,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
elm_notify_parent_set(data, NULL);
evas_object_hide(data);
}
static void
_parent_hide_cb(void *data,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
evas_object_hide(data);
}
EOLIAN static Eina_Bool
_elm_notify_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd EINA_UNUSED)
{
return EINA_TRUE;
}
EOLIAN static Eina_Bool
_elm_notify_elm_widget_focus_next(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, Elm_Focus_Direction dir, Evas_Object **next, Elm_Object_Item **next_item)
{
Evas_Object *cur;
if (!sd->content) return EINA_FALSE;
cur = sd->content;
/* Try to cycle focus on content */
return elm_widget_focus_next_get(cur, dir, next, next_item);
}
EOLIAN static Eina_Bool
_elm_notify_elm_widget_focus_direction_manager_is(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd EINA_UNUSED)
{
return EINA_TRUE;
}
EOLIAN static Eina_Bool
_elm_notify_elm_widget_focus_direction(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const Evas_Object *base, double degree, Evas_Object **direction, Elm_Object_Item **direction_item, double *weight)
{
Evas_Object *cur;
if (!sd->content) return EINA_FALSE;
cur = sd->content;
return elm_widget_focus_direction_get(cur, base, degree, direction, direction_item, weight);
}
EOLIAN static Eina_Bool
_elm_notify_efl_container_content_set(Eo *obj, Elm_Notify_Data *sd, const char *part, Evas_Object *content)
{
if (part && strcmp(part, "default")) return EINA_FALSE;
if (sd->content == content) return EINA_TRUE;
evas_object_del(sd->content);
sd->content = content;
if (content)
{
elm_widget_sub_object_add(obj, content);
evas_object_event_callback_add
(content, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints_cb, obj);
edje_object_part_swallow(sd->notify, "elm.swallow.content", content);
}
_calc(obj);
return EINA_TRUE;
}
EOLIAN static Evas_Object*
_elm_notify_efl_container_content_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const char *part)
{
if (part && strcmp(part, "default")) return NULL;
return sd->content;
}
EOLIAN static Evas_Object*
_elm_notify_efl_container_content_unset(Eo *obj, Elm_Notify_Data *sd, const char *part)
{
Evas_Object *content;
if (part && strcmp(part, "default")) return NULL;
if (!sd->content) return NULL;
content = sd->content;
elm_widget_sub_object_del(obj, sd->content);
edje_object_part_unswallow(sd->notify, content);
return content;
}
static void
_hide_finished_cb(void *data,
Evas_Object *obj EINA_UNUSED,
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
ELM_NOTIFY_DATA_GET(data, sd);
sd->had_hidden = EINA_TRUE;
evas_object_hide(sd->notify);
if (!sd->allow_events) evas_object_hide(sd->block_events);
evas_obj_smart_hide(eo_super(data, MY_CLASS));
eo_event_callback_call(data, ELM_NOTIFY_EVENT_DISMISSED, NULL);
}
EOLIAN static void
_elm_notify_evas_object_smart_add(Eo *obj, Elm_Notify_Data *priv)
{
evas_obj_smart_add(eo_super(obj, MY_CLASS));
elm_widget_sub_object_parent_add(obj);
priv->allow_events = EINA_TRUE;
priv->notify = edje_object_add(evas_object_evas_get(obj));
evas_object_smart_member_add(priv->notify, obj);
edje_object_signal_callback_add
(priv->notify, "elm,action,hide,finished", "elm", _hide_finished_cb, obj);
elm_widget_can_focus_set(obj, EINA_FALSE);
elm_notify_align_set(obj, 0.5, 0.0);
}
EOLIAN static void
_elm_notify_evas_object_smart_del(Eo *obj, Elm_Notify_Data *sd)
{
edje_object_signal_callback_del_full
(sd->notify, "elm,action,hide,finished", "elm", _hide_finished_cb, obj);
elm_notify_parent_set(obj, NULL);
elm_notify_allow_events_set(obj, EINA_FALSE);
ecore_timer_del(sd->timer);
ELM_SAFE_FREE(sd->notify, evas_object_del);
evas_obj_smart_del(eo_super(obj, MY_CLASS));
}
EAPI Evas_Object *
elm_notify_add(Evas_Object *parent)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
Evas_Object *obj = eo_add(MY_CLASS, parent);
return obj;
}
EOLIAN static Eo *
_elm_notify_eo_base_constructor(Eo *obj, Elm_Notify_Data *sd EINA_UNUSED)
{
obj = eo_constructor(eo_super(obj, MY_CLASS));
evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_NOTIFICATION);
return obj;
}
EAPI void
elm_notify_parent_set(Evas_Object *obj,
Evas_Object *parent)
{
ELM_NOTIFY_CHECK(obj);
elm_obj_widget_parent_set(obj, parent);
}
EOLIAN static void
_elm_notify_elm_widget_widget_parent_set(Eo *obj, Elm_Notify_Data *sd, Evas_Object *parent)
{
if (sd->parent)
{
evas_object_event_callback_del_full
(sd->parent, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints_cb, obj);
evas_object_event_callback_del_full
(sd->parent, EVAS_CALLBACK_RESIZE, _changed_size_hints_cb, obj);
evas_object_event_callback_del_full
(sd->parent, EVAS_CALLBACK_MOVE, _changed_size_hints_cb, obj);
evas_object_event_callback_del_full
(sd->parent, EVAS_CALLBACK_DEL, _parent_del_cb, obj);
evas_object_event_callback_del_full
(sd->parent, EVAS_CALLBACK_HIDE, _parent_hide_cb, obj);
sd->parent = NULL;
}
if (parent)
{
sd->parent = parent;
evas_object_event_callback_add
(parent, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints_cb, obj);
evas_object_event_callback_add
(parent, EVAS_CALLBACK_RESIZE, _changed_size_hints_cb, obj);
evas_object_event_callback_add
(parent, EVAS_CALLBACK_MOVE, _changed_size_hints_cb, obj);
evas_object_event_callback_add
(parent, EVAS_CALLBACK_DEL, _parent_del_cb, obj);
evas_object_event_callback_add
(parent, EVAS_CALLBACK_HIDE, _parent_hide_cb, obj);
}
_calc(obj);
}
EAPI Evas_Object *
elm_notify_parent_get(const Evas_Object *obj)
{
ELM_NOTIFY_CHECK(obj) NULL;
Evas_Object *ret = NULL;
ret = elm_obj_widget_parent_get((Eo *) obj);
return ret;
}
EOLIAN static Evas_Object*
_elm_notify_elm_widget_widget_parent_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd)
{
return sd->parent;
}
EINA_DEPRECATED EAPI void
elm_notify_orient_set(Evas_Object *obj,
Elm_Notify_Orient orient)
{
double horizontal = 0, vertical = 0;
switch (orient)
{
case ELM_NOTIFY_ORIENT_TOP:
horizontal = 0.5; vertical = 0.0;
break;
case ELM_NOTIFY_ORIENT_CENTER:
horizontal = 0.5; vertical = 0.5;
break;
case ELM_NOTIFY_ORIENT_BOTTOM:
horizontal = 0.5; vertical = 1.0;
break;
case ELM_NOTIFY_ORIENT_LEFT:
horizontal = 0.0; vertical = 0.5;
break;
case ELM_NOTIFY_ORIENT_RIGHT:
horizontal = 1.0; vertical = 0.5;
break;
case ELM_NOTIFY_ORIENT_TOP_LEFT:
horizontal = 0.0; vertical = 0.0;
break;
case ELM_NOTIFY_ORIENT_TOP_RIGHT:
horizontal = 1.0; vertical = 0.0;
break;
case ELM_NOTIFY_ORIENT_BOTTOM_LEFT:
horizontal = 0.0; vertical = 1.0;
break;
case ELM_NOTIFY_ORIENT_BOTTOM_RIGHT:
horizontal = 1.0; vertical = 1.0;
break;
case ELM_NOTIFY_ORIENT_LAST:
break;
}
elm_notify_align_set(obj, horizontal, vertical);
}
EINA_DEPRECATED EAPI Elm_Notify_Orient
elm_notify_orient_get(const Evas_Object *obj)
{
Elm_Notify_Orient orient;
double horizontal, vertical;
elm_notify_align_get(obj, &horizontal, &vertical);
if ((horizontal == 0.5) && (vertical == 0.0))
orient = ELM_NOTIFY_ORIENT_TOP;
else if ((horizontal == 0.5) && (vertical == 0.5))
orient = ELM_NOTIFY_ORIENT_CENTER;
else if ((horizontal == 0.5) && (vertical == 1.0))
orient = ELM_NOTIFY_ORIENT_BOTTOM;
else if ((horizontal == 0.0) && (vertical == 0.5))
orient = ELM_NOTIFY_ORIENT_LEFT;
else if ((horizontal == 1.0) && (vertical == 0.5))
orient = ELM_NOTIFY_ORIENT_RIGHT;
else if ((horizontal == 0.0) && (vertical == 0.0))
orient = ELM_NOTIFY_ORIENT_TOP_LEFT;
else if ((horizontal == 1.0) && (vertical == 0.0))
orient = ELM_NOTIFY_ORIENT_TOP_RIGHT;
else if ((horizontal == 0.0) && (vertical == 1.0))
orient = ELM_NOTIFY_ORIENT_BOTTOM_LEFT;
else if ((horizontal == 1.0) && (vertical == 1.0))
orient = ELM_NOTIFY_ORIENT_BOTTOM_RIGHT;
else
orient = ELM_NOTIFY_ORIENT_TOP;
return orient;
}
EOLIAN static void
_elm_notify_timeout_set(Eo *obj, Elm_Notify_Data *sd, double timeout)
{
sd->timeout = timeout;
_timer_init(obj, sd);
}
EOLIAN static double
_elm_notify_timeout_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd)
{
return sd->timeout;
}
EOLIAN static void
_elm_notify_allow_events_set(Eo *obj, Elm_Notify_Data *sd, Eina_Bool allow)
{
if (allow == sd->allow_events) return;
sd->allow_events = allow;
if (!allow)
{
sd->block_events = elm_layout_add(obj);
_block_events_theme_apply(obj);
elm_widget_resize_object_set(obj, sd->block_events, EINA_TRUE);
evas_object_stack_above(sd->notify, sd->block_events);
elm_layout_signal_callback_add
(sd->block_events, "elm,action,click", "elm",
_block_area_clicked_cb, obj);
}
else
evas_object_del(sd->block_events);
}
EOLIAN static Eina_Bool
_elm_notify_allow_events_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd)
{
return sd->allow_events;
}
EOLIAN static void
_elm_notify_align_set(Eo *obj, Elm_Notify_Data *sd, double horizontal, double vertical)
{
sd->horizontal_align = horizontal;
sd->vertical_align = vertical;
_notify_theme_apply(obj);
_calc(obj);
}
EOLIAN static void
_elm_notify_dismiss(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd)
{
elm_layout_signal_emit(sd->block_events, "elm,state,hide", "elm");
edje_object_signal_emit(sd->notify, "elm,state,hide", "elm");
}
EOLIAN static void
_elm_notify_align_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, double *horizontal, double *vertical)
{
if (horizontal)
*horizontal = sd->horizontal_align;
if (vertical)
*vertical = sd->vertical_align;
}
static void
_elm_notify_class_constructor(Eo_Class *klass)
{
evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
}
#include "elm_notify.eo.c"
|