#ifdef HAVE_ELEMENTARY_X
#endif
#include <Elementary.h>
static Evas_Object *win2;
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
angle = (angle + 90) % 360;
}
static void
{
angle = (angle + 90) % 360;
}
static void
{
}
static void
{
}
static void
{
}
static void
{
Evas_Object *msg, *box, *box2, *btn, *lbl, *sep;
elm_object_content_set(msg, box);
elm_object_text_set(lbl, "Really want quit?");
elm_separator_horizontal_set(sep,
EINA_TRUE);
elm_object_text_set(btn, "Yes");
elm_object_text_set(btn, "No");
}
static void
{
#ifdef HAVE_ELEMENTARY_X
#endif
}
static void
{
const char *name = data;
printf("Window focused: %s\n", name);
}
key_down()
{
}
EAPI_MAIN int
{
Evas_Object *win, *bigbox, *box, *btn, *o;
char buf[256];
elm_win_focus_highlight_enabled_set(win,
EINA_TRUE);
NULL);
elm_object_text_set(o, "<b>Managed Window</b>");
#define WIN_ACTION(name) \
do { \
btn = elm_button_add(win); \
elm_object_text_set(btn, #name); \
elm_box_pack_end(box, btn); \
evas_object_show(btn); \
evas_object_smart_callback_add(btn, "clicked", _btn_##name##_cb, win2); \
} while (0)
WIN_ACTION(activate);
WIN_ACTION(lower);
WIN_ACTION(raise);
WIN_ACTION(borderless);
WIN_ACTION(shaped);
WIN_ACTION(alpha);
WIN_ACTION(fullscreen);
WIN_ACTION(maximized);
WIN_ACTION(iconified);
WIN_ACTION(rotation);
WIN_ACTION(rotation_resize);
WIN_ACTION(sticky);
"override");
elm_object_text_set(o, "This window should have no borders or titlebar.<ps>"
"It was set in override mode, so the Window Manager<ps>"
"should ignore everything about it.<ps>"
"It's up to the program to handle it properly, and some"
"of the actions performed on it may not have any effect."
);
elm_object_text_set(o, "See if you can focus me");
elm_object_text_set(o, "Focus me");
elm_object_text_set(o, "<b>Override Window</b>");
WIN_ACTION(activate);
WIN_ACTION(lower);
WIN_ACTION(raise);
WIN_ACTION(borderless);
WIN_ACTION(shaped);
WIN_ACTION(alpha);
WIN_ACTION(fullscreen);
WIN_ACTION(maximized);
WIN_ACTION(iconified);
WIN_ACTION(rotation);
WIN_ACTION(rotation_resize);
WIN_ACTION(sticky);
return 0;
}
Ecore functions for dealing with the X Windows System.
#define EVAS_HINT_EXPAND
Use with evas_object_size_hint_weight_set(), evas_object_size_hint_weight_get(), evas_object_size_hin...
Definition Evas_Common.h:297
#define EVAS_HINT_FILL
Use with evas_object_size_hint_align_set(), evas_object_size_hint_align_get(), evas_object_size_hint_...
Definition Evas_Common.h:298
Ecore_Event_Handler * ecore_event_handler_add(int type, Ecore_Event_Handler_Cb func, const void *data)
Adds an event handler.
Definition ecore_events.c:13
#define ECORE_CALLBACK_PASS_ON
Return value to pass event to next handler.
Definition Ecore_Common.h:155
EAPI void ecore_x_window_focus(Ecore_X_Window win)
Sets the focus to the window win.
Definition ecore_x_window.c:650
#define EINA_TRUE
boolean value TRUE (numerical value 1)
Definition eina_types.h:539
#define EINA_FALSE
boolean value FALSE (numerical value 0)
Definition eina_types.h:533
unsigned char Eina_Bool
Type to mimic a boolean.
Definition eina_types.h:527
#define EINA_UNUSED
Used to indicate that a function parameter is purposely unused.
Definition eina_types.h:339
void elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile)
Re-locate the application somewhere else after compilation, if the developer wishes for easier distri...
Definition elm_main.c:496
const char * elm_app_data_dir_get(void)
Get the application's run time data prefix directory, as set by elm_app_info_set() and the way (envir...
Definition elm_main.c:586
void elm_box_horizontal_set(Elm_Box *obj, Eina_Bool horizontal)
Set the horizontal orientation.
Definition elm_box_eo.legacy.c:27
Evas_Object * elm_box_add(Evas_Object *parent)
Add a new box to the parent.
Definition elm_box.c:363
void elm_box_pack_end(Elm_Box *obj, Efl_Canvas_Object *subobj)
Add an object at the end of the pack list.
Definition elm_box_eo.legacy.c:57
void elm_entry_scrollable_set(Elm_Entry *obj, Eina_Bool scroll)
Enable or disable scrolling in entry.
Definition elm_entry_eo.legacy.c:3
void elm_entry_single_line_set(Elm_Entry *obj, Eina_Bool single_line)
Sets the entry to single line mode.
Definition elm_entry_eo.legacy.c:123
Evas_Object * elm_entry_add(Evas_Object *parent)
This adds an entry to parent object.
Definition elm_entry.c:4183
#define ELM_MAIN()
macro to be used after the elm_main() function
Definition elm_general.h:556
void elm_exit(void)
Ask to exit Elementary's main loop.
Definition elm_main.c:1373
void elm_run(void)
Run Elementary's main loop.
Definition elm_main.c:1357
Evas_Object * elm_icon_add(Evas_Object *parent)
Add a new icon object to the parent.
Definition elm_icon.c:604
void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
Control scaling behaviour of this object.
Definition efl_ui_image.c:2619
void elm_image_resizable_set(Evas_Object *obj, Eina_Bool up, Eina_Bool down)
Control if the object is (up/down) resizable.
Definition efl_ui_image.c:2637
Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group)
Set the file that will be used as the image's source.
Definition efl_ui_image.c:2416
Evas_Object * elm_label_add(Evas_Object *parent)
Add a new label to the parent.
Definition elm_label.c:421
void elm_notify_align_set(Elm_Notify *obj, double horizontal, double vertical)
Set the alignment of the notify object.
Definition elm_notify_eo.legacy.c:3
Evas_Object * elm_notify_add(Evas_Object *parent)
Add a new notify to the parent.
Definition elm_notify.c:478
void elm_notify_allow_events_set(Elm_Notify *obj, Eina_Bool allow)
Sets whether events should be passed to by a click outside its area.
Definition elm_notify_eo.legacy.c:15
Evas_Object * elm_separator_add(Evas_Object *parent)
Add a separator object to parent.
Definition elm_separator.c:49
void elm_win_activate(Evas_Object *obj)
Activate a window object.
Definition efl_ui_win.c:9809
void elm_win_title_set(Evas_Object *obj, const char *title)
Set the title of the window.
Definition efl_ui_win.c:8646
void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky)
Set the sticky state of the window.
Definition efl_ui_win.c:9720
Evas_Object * elm_win_util_standard_add(const char *name, const char *title)
Adds a window object with standard setup.
Definition efl_ui_win.c:9587
Eina_Bool elm_win_iconified_get(const Evas_Object *obj)
Get the iconified state of a window.
Definition efl_ui_win.c:9690
void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped)
Set the shaped state of a window.
Definition efl_ui_win.c:8622
Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj)
Get the Ecore_X_Window of an Evas_Object.
Definition efl_ui_win.c:7939
int elm_win_rotation_get(const Evas_Object *obj)
Get the rotation of the window.
Definition efl_ui_win.c:1794
Eina_Bool elm_win_fullscreen_get(const Evas_Object *obj)
Get the fullscreen state of a window.
Definition efl_ui_win.c:9714
void elm_win_raise(Eo *obj)
Raise a window object.
Definition efl_ui_win.c:6238
void elm_win_resize_object_add(Eo *obj, Evas_Object *subobj)
Add subobj as a resize object of window obj.
Definition efl_ui_win.c:9002
void elm_win_lower(Evas_Object *obj)
Lower a window object.
Definition efl_ui_win.c:8051
void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation)
Rotates the window and resizes it.
Definition efl_ui_win.c:8433
Eina_Bool elm_win_borderless_get(const Evas_Object *obj)
Get the borderless state of a window.
Definition efl_ui_win.c:9757
void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha)
Set the alpha channel state of a window.
Definition efl_ui_win.c:9797
void elm_win_rotation_set(Evas_Object *obj, int rotation)
Set the rotation of the window.
Definition efl_ui_win.c:1788
Eina_Bool elm_win_alpha_get(const Evas_Object *obj)
Get the alpha channel state of a window.
Definition efl_ui_win.c:9803
void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen)
Set the fullscreen state of a window.
Definition efl_ui_win.c:9708
void elm_win_autodel_set(Eo *obj, Eina_Bool autodel)
Set the window's autodel state.
Definition efl_ui_win.c:6199
void elm_win_override_set(Evas_Object *obj, Eina_Bool override)
Set the override state of a window.
Definition efl_ui_win.c:8030
void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized)
Set the maximized state of a window.
Definition efl_ui_win.c:9696
Eina_Bool elm_win_shaped_get(const Evas_Object *obj)
Get the shaped state of a window.
Definition efl_ui_win.c:8637
void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless)
Set the borderless state of a window.
Definition efl_ui_win.c:9751
Eina_Bool elm_win_maximized_get(const Evas_Object *obj)
Get the maximized state of a window.
Definition efl_ui_win.c:9702
void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified)
Set the iconified state of a window.
Definition efl_ui_win.c:9684
Evas_Object * elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
Adds a window object.
Definition efl_ui_win.c:9555
Eina_Bool elm_win_sticky_get(const Evas_Object *obj)
Get the sticky state of the window.
Definition efl_ui_win.c:9726
@ ELM_WIN_DIALOG_BASIC
Used for simple dialog windows.
Definition elm_win_legacy.h:67
EVAS_API void evas_object_show(Evas_Object *eo_obj)
Makes the given Evas object visible.
Definition evas_object_main.c:1814
EVAS_API void evas_object_del(Evas_Object *obj)
Marks the given Evas object for deletion (when Evas will free its memory).
Definition evas_object_main.c:928
EVAS_API void evas_object_size_hint_weight_set(Evas_Object *obj, double x, double y)
Sets the hints for an object's weight.
Definition evas_object_main.c:2638
EVAS_API void evas_object_size_hint_align_set(Evas_Object *obj, double x, double y)
Sets the hints for an object's alignment.
Definition evas_object_main.c:2650
EVAS_API void evas_object_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
Changes the size of the given Evas object.
Definition evas_object_main.c:1236
EVAS_API void evas_object_smart_callback_add(Evas_Object *eo_obj, const char *event, Evas_Smart_Cb func, const void *data)
Add (register) a callback function to the smart event specified by event on the smart object obj.
Definition evas_object_smart.c:1040