aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_colorclass.c
blob: 876406589195e23f021b30f225cfb95f83e4fc61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#include <Elementary.h>


void
test_colorclass(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
   Evas_Object *win, *cc;

   win = elm_win_util_standard_add("colorclass", "Color Classes");
   elm_win_autodel_set(win, EINA_TRUE);

   cc = elm_color_class_editor_add(win);
   elm_win_resize_object_add(win, cc);
   evas_object_size_hint_weight_set(cc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(cc, EVAS_HINT_FILL, EVAS_HINT_FILL);
   evas_object_show(cc);

   evas_object_show(win);
   evas_object_size_hint_min_set(win, 400, 280);
   evas_object_resize(win, 400, 280);
}