2019-03-29 00:14:05 -07:00
|
|
|
#ifndef EFL_UI_SUITE_H
|
|
|
|
#define EFL_UI_SUITE_H
|
|
|
|
|
|
|
|
#include <check.h>
|
|
|
|
|
|
|
|
#define EFL_NOLEGACY_API_SUPPORT
|
|
|
|
#include <Efl_Ui.h>
|
|
|
|
#include "../efl_check.h"
|
|
|
|
|
|
|
|
extern Evas_Object *win;
|
|
|
|
extern Evas_Object *widget;
|
|
|
|
|
|
|
|
void efl_pack_behavior_test(TCase *tc);
|
|
|
|
void efl_pack_linear_behavior_test(TCase *tc);
|
2019-04-17 05:45:19 -07:00
|
|
|
void efl_content_behavior_test(TCase *tc);
|
2019-04-24 06:41:39 -07:00
|
|
|
void efl_gfx_arrangement_behavior_test(TCase *tc);
|
2019-05-14 12:50:32 -07:00
|
|
|
void efl_ui_clickable_behavior_test(TCase *tc);
|
Efl.Ui.Format revamp
This class helps widgets which contain a numerical value and must display it,
like Progressbar (units label), Spin, Spin_Button, Slider (both units and popup
labels, in legacy), Tags (when in shrunk mode) or Calendar (year_month label).
Previously this was a mix of interface and mixin: widgets had to support setting a
formatting func, and the mixin offered support for formatting strings, by setting
an internal formatting func. On top of that, the spinner widget supported "special
values", a list of values that should be shown as certain strings instead.
This has now been simplified and unified:
Widgets including this mixin can use the formatted_value_get() method which accepts
an Eina_Value and returns a string. Thats's it.
The mixin adds three properties to the widget (format_values, format_func and
format_string) which users can use to tailor formatting. The widget does not need
to know which method has been used, it just retrieves the resulting string.
This removes a lot of duplicated widget code, and adds functionality which was
missing before. For example, all widgets support passing a list of values now.
Widgets must implement the apply_formatted_value() method so they are notified
of changes in the format and they can redraw anything they need.
Tests have been added to the Elementary Spec suite for all cases.
Legacy widgets behavior has not been modified, although a few needed some code
changes.
2019-07-02 05:40:06 -07:00
|
|
|
void efl_ui_format_behavior_test(TCase *tc);
|
2019-03-29 00:14:05 -07:00
|
|
|
|
|
|
|
void efl_test_container_content_equal(Efl_Ui_Widget **wid, unsigned int len);
|
|
|
|
void efl_test_container_expect_evt_content_added(Efl_Ui_Widget *widget, const Efl_Event_Description *ev, Eina_Bool *flag, void *event_data);
|
|
|
|
|
2019-04-24 08:35:45 -07:00
|
|
|
Eo* create_test_widget(void);
|
|
|
|
|
2019-03-29 00:14:05 -07:00
|
|
|
Evas_Object * win_add();
|
|
|
|
|
|
|
|
const Efl_Class* efl_ui_widget_realized_class_get(void);
|
|
|
|
|
|
|
|
#define WIDGET_CLASS efl_ui_widget_realized_class_get()
|
|
|
|
|
|
|
|
#endif
|