Tizen Native API
|
General Elementary API. Functions that don't relate to Elementary objects specifically.
These are documented functions that init/shutdown the library, that apply to generic Elementary objects, that deal with configuration, etc.
Functions | |
int | elm_init (int argc, char **argv) |
Initializes Elementary. | |
int | elm_shutdown (void) |
Shuts down Elementary. | |
void | elm_run (void) |
Runs Elementary's main loop. | |
void | elm_exit (void) |
Asks to exit Elementary's main loop. | |
void | elm_quicklaunch_mode_set (Eina_Bool ql_on) |
Exposed symbol used only by macros and should not be used by apps. | |
Eina_Bool | elm_quicklaunch_mode_get (void) |
Exposed symbol used only by macros and should not be used by apps. | |
int | elm_quicklaunch_init (int argc, char **argv) |
Exposed symbol used only by macros and should not be used by apps. | |
int | elm_quicklaunch_sub_init (int argc, char **argv) |
Exposed symbol used only by macros and should not be used by apps. | |
int | elm_quicklaunch_sub_shutdown (void) |
Exposed symbol used only by macros and should not be used by apps. | |
int | elm_quicklaunch_shutdown (void) |
Exposed symbol used only by macros and should not be used by apps. | |
void | elm_quicklaunch_seed (void) |
Exposed symbol used only by macros and should not be used by apps. | |
Eina_Bool | elm_quicklaunch_prepare (int argc, char **argv) |
Exposed symbol used only by macros and should not be used by apps. | |
Eina_Bool | elm_quicklaunch_fork (int argc, char **argv, char *cwd, void(*postfork_func)(void *data), void *postfork_data) |
Exposed symbol used only by macros and should not be used by apps. | |
void | elm_quicklaunch_cleanup (void) |
Exposed symbol used only by macros and should not be used by apps. | |
int | elm_quicklaunch_fallback (int argc, char **argv) |
Exposed symbol used only by macros and should not be used by apps. | |
char * | elm_quicklaunch_exe_path_get (const char *exe) |
Exposed symbol used only by macros and should not be used by apps. | |
Eina_Bool | elm_policy_set (unsigned int policy, int value) |
Sets a new policy's value (for a given policy group/identifier). | |
int | elm_policy_get (unsigned int policy) |
Gets the policy value for the given policy identifier. | |
void | elm_language_set (const char *lang) |
Changes the language of the current application. | |
void | elm_object_part_text_set (Evas_Object *obj, const char *part, const char *text) |
Sets the text of an object. | |
const char * | elm_object_part_text_get (const Evas_Object *obj, const char *part) |
Gets the text of an object. | |
void | elm_object_domain_translatable_part_text_set (Evas_Object *obj, const char *part, const char *domain, const char *text) |
Sets the text for an object's part, marking it translatable. | |
const char * | elm_object_translatable_part_text_get (const Evas_Object *obj, const char *part) |
Gets the original string set as translatable for an object. | |
void | elm_object_domain_part_text_translatable_set (Evas_Object *obj, const char *part, const char *domain, Eina_Bool translatable) |
Marks the part text to be transltable. | |
void | elm_object_part_content_set (Evas_Object *obj, const char *part, Evas_Object *content) |
Sets the content at a part of a given container widget. | |
Evas_Object * | elm_object_part_content_get (const Evas_Object *obj, const char *part) |
Gets the content at a part of a given container widget. | |
Evas_Object * | elm_object_part_content_unset (Evas_Object *obj, const char *part) |
Unsets the content at a part of a given container widget. | |
void | elm_object_access_info_set (Evas_Object *obj, const char *txt) |
Sets the text to read out when in the accessibility mode. | |
Evas_Object * | elm_object_name_find (const Evas_Object *obj, const char *name, int recurse) |
Gets a named object from the children. | |
void | elm_object_disabled_set (Evas_Object *obj, Eina_Bool disabled) |
Sets the disabled state of an Elementary object. | |
Eina_Bool | elm_object_disabled_get (const Evas_Object *obj) |
Gets the disabled state of an Elementary object. | |
void | elm_object_signal_emit (Evas_Object *obj, const char *emission, const char *source) |
Sends a signal to the widget edje object. | |
void | elm_object_signal_callback_add (Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) |
Adds a callback for a signal emitted by the widget edje object. | |
void * | elm_object_signal_callback_del (Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func) |
Removes a signal-triggered callback from a widget edje object. | |
void | elm_object_event_callback_add (Evas_Object *obj, Elm_Event_Cb func, const void *data) |
Adds a callback for input events (key up, key down, mouse wheel) on a given Elementary widget. | |
void * | elm_object_event_callback_del (Evas_Object *obj, Elm_Event_Cb func, const void *data) |
Removes an event callback from a widget. | |
void | elm_object_orientation_mode_disabled_set (Evas_Object *obj, Eina_Bool disabled) |
Disables the orientation mode of a given widget. | |
Eina_Bool | elm_object_orientation_mode_disabled_get (const Evas_Object *obj) |
Gets the orientation mode of a given widget. | |
Evas_Object * | elm_object_item_widget_get (const Elm_Object_Item *it) |
Gets the widget object's handle which contains a given item. | |
void | elm_object_item_part_content_set (Elm_Object_Item *it, const char *part, Evas_Object *content) |
Sets the content of an object item. | |
Evas_Object * | elm_object_item_part_content_get (const Elm_Object_Item *it, const char *part) |
Gets the content of an object item. | |
Evas_Object * | elm_object_item_part_content_unset (Elm_Object_Item *it, const char *part) |
Unsets the content of an object item. | |
void | elm_object_item_part_text_set (Elm_Object_Item *it, const char *part, const char *label) |
Sets the label of an object item. | |
const char * | elm_object_item_part_text_get (const Elm_Object_Item *it, const char *part) |
Gets the label of an object item. | |
void | elm_object_item_domain_translatable_part_text_set (Elm_Object_Item *it, const char *part, const char *domain, const char *text) |
Sets the text for an object item's part, marking it as translatable. | |
const char * | elm_object_item_translatable_part_text_get (const Elm_Object_Item *it, const char *part) |
Gets the original string set as translatable for an object item. | |
void | elm_object_item_domain_part_text_translatable_set (Elm_Object_Item *it, const char *part, const char *domain, Eina_Bool translatable) |
Marks the part text to be translatable. | |
void | elm_object_item_access_info_set (Elm_Object_Item *it, const char *txt) |
Sets the text to read out when in the accessibility mode. | |
Evas_Object * | elm_object_item_access_register (Elm_Object_Item *item) |
Registers the object item as an accessible object. | |
void | elm_object_item_access_unregister (Elm_Object_Item *item) |
Unregisters the accessible object of the object item. | |
Evas_Object * | elm_object_item_access_object_get (const Elm_Object_Item *item) |
Gets the accessible object of the object item. | |
void | elm_object_item_access_order_set (Elm_Object_Item *item, Eina_List *objs) |
Sets the highlight order. | |
const Eina_List * | elm_object_item_access_order_get (const Elm_Object_Item *item) |
Gets the highlight order. | |
void | elm_object_item_access_order_unset (Elm_Object_Item *item) |
Unsets the highlight order. | |
void * | elm_object_item_data_get (const Elm_Object_Item *it) |
Gets the data associated with an object item. | |
void | elm_object_item_data_set (Elm_Object_Item *it, void *data) |
Sets the data associated with an object item. | |
void | elm_object_item_signal_emit (Elm_Object_Item *it, const char *emission, const char *source) |
Sends a signal to the edje object of the widget item. | |
void | elm_object_item_signal_callback_add (Elm_Object_Item *it, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func, void *data) |
Adds a callback for a signal emitted by the object item, edje object. | |
void * | elm_object_item_signal_callback_del (Elm_Object_Item *it, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func) |
Removes a signal-triggered callback from the object item, edje object. | |
void | elm_object_item_del_cb_set (Elm_Object_Item *it, Evas_Smart_Cb del_cb) |
Sets the function to be called when an item from the widget is freed. | |
void | elm_object_item_del (Elm_Object_Item *it) |
Deletes the given item. | |
void | elm_object_item_cursor_set (Elm_Object_Item *it, const char *cursor) |
Sets the type of mouse pointer/cursor decoration to be shown, when the mouse pointer is over the given item. | |
const char * | elm_object_item_cursor_get (const Elm_Object_Item *it) |
Gets the type of mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given item. | |
void | elm_object_item_cursor_unset (Elm_Object_Item *it) |
Unsets any custom mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given item, thus making it show the default cursor again. | |
void | elm_object_item_cursor_style_set (Elm_Object_Item *it, const char *style) |
Sets a different style for a given custom cursor set of an item. | |
const char * | elm_object_item_cursor_style_get (const Elm_Object_Item *it) |
Get the current style set for a given item's custom cursor. | |
void | elm_object_item_cursor_engine_only_set (Elm_Object_Item *it, Eina_Bool engine_only) |
Sets whether the (custom)cursor for a given item should be searched in its theme or should only rely on the rendering engine. | |
Eina_Bool | elm_object_item_cursor_engine_only_get (const Elm_Object_Item *it) |
Gets whether the (custom) cursor for a given item is being searched in its theme or is only relying on the rendering engine. | |
Evas_Object * | elm_object_item_track (Elm_Object_Item *it) |
Returns the track object of the item. | |
void | elm_object_item_untrack (Elm_Object_Item *it) |
Retrieves the track object of the item. | |
int | elm_object_item_track_get (const Elm_Object_Item *it) |
Gets the track object reference count. | |
void | elm_object_item_style_set (Elm_Object_Item *it, const char *part) |
Sets the style of an object item. | |
const char * | elm_object_item_style_get (Elm_Object_Item *it) |
Gets the style of an object item. | |
Typedefs | |
typedef struct _Elm_Event_Policy_Changed | Elm_Event_Policy_Changed |
The structure type containing data on the event when an Elementary policy has changed. | |
typedef struct _Elm_Object_Item | Elm_Object_Item |
An Elementary Object item handle. | |
typedef Eina_Bool(* | Elm_Event_Cb )(void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info) |
typedef void(* | Elm_Object_Item_Signal_Cb )(void *data, Elm_Object_Item *it, const char *emission, const char *source) |
It is the Elm_Object_Item Signal Callback functions' prototype definition. data is going to have the auxiliary data pointer at the time of the callback registration. it is a pointer to Elm_Object_Item that has the edje object from where the signal comes. emission identifies the exact signal's emission string and source identifies the exact signal's source. | |
Defines | |
#define | ELM_MAIN() int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv); } |
#define | elm_object_text_set(obj, text) elm_object_part_text_set((obj), NULL, (text)) |
Convenient macro for elm_object_part_text_set. | |
#define | elm_object_text_get(obj) elm_object_part_text_get((obj), NULL) |
Convenient macro for elm_object_part_text_get. | |
#define | elm_object_domain_translatable_text_set(obj, domain, text) elm_object_domain_translatable_part_text_set((obj), NULL, (domain), (text)) |
Convenient macro for elm_object_domain_translatable_part_text_set. | |
#define | elm_object_translatable_text_set(obj, text) elm_object_domain_translatable_part_text_set((obj), NULL, NULL, (text)) |
Convenient macro for elm_object_domain_translatable_part_text_set. | |
#define | elm_object_translatable_part_text_set(obj, part, text) elm_object_domain_translatable_part_text_set((obj), (part), NULL, (text)) |
Convenient macro for elm_object_domain_translatable_part_text_set. | |
#define | elm_object_translatable_text_get(obj) elm_object_translatable_part_text_get((obj), NULL) |
Convenient macro for elm_object_translatable_part_text_get. | |
#define | elm_object_part_text_translatable_set(obj, part, translatable) elm_object_domain_part_text_translatable_set((obj), (part), NULL, (translatable)) |
Convenient macro for elm_object_domain_part_text_translatable_set. | |
#define | elm_object_domain_text_translatable_set(obj, domain, translatable) elm_object_domain_part_text_translatable_set((obj), NULL, (domain), (translatable)) |
Convenient macro for elm_object_domain_part_text_translatable_set. | |
#define | elm_object_content_set(obj, content) elm_object_part_content_set((obj), NULL, (content)) |
Convenient macro for elm_object_part_content_set. | |
#define | elm_object_content_get(obj) elm_object_part_content_get((obj), NULL) |
Convenient macro for elm_object_part_content_get. | |
#define | elm_object_content_unset(obj) elm_object_part_content_unset((obj), NULL) |
Convenient macro for elm_object_part_content_unset. | |
#define | elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content)) |
Convenient macro for elm_object_item_part_content_set. | |
#define | elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL) |
Convenient macro for elm_object_item_part_content_get. | |
#define | elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL) |
Convenient macro for elm_object_item_part_content_unset. | |
#define | elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label)) |
Sets the macro label of an object item. | |
#define | elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL) |
Convenient macro for elm_object_item_part_text_get. | |
#define | elm_object_item_domain_translatable_text_set(it, domain, text) elm_object_item_domain_translatable_part_text_set((it), NULL, (domain), (text)) |
Convenient macro for elm_object_item_domain_translatable_part_text_set. | |
#define | elm_object_item_translatable_text_set(it, text) elm_object_item_domain_translatable_part_text_set((it), NULL, NULL, (text)) |
Convenient macro for elm_object_item_domain_translatable_part_text_set. | |
#define | elm_object_item_translatable_part_text_set(it, part, text) elm_object_item_domain_translatable_part_text_set((it), (part), NULL, (text)) |
Convenient macro for elm_object_item_domain_translatable_part_text_set. | |
#define | elm_object_item_translatable_text_get(it) elm_object_item_translatable_part_text_get((it), NULL) |
Convenient macro for elm_object_item_translatable_part_text_get. | |
#define | elm_object_item_part_text_translatable_set(it, part, translatable) elm_object_item_domain_part_text_translatable_set((it), (part), NULL, (translatable)) |
Convenient macro for elm_object_item_domain_part_text_translatable_set. | |
#define | elm_object_item_domain_text_translatable_set(it, domain, translatable) elm_object_item_domain_part_text_translatable_set((it), NULL, (domain), (translatable)) |
Convenient macro for elm_object_item_domain_part_text_translatable_set. |
Define Documentation
#define ELM_MAIN | ( | ) | int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv); } |
Macro to be used after the elm_main() function
#define elm_object_content_get | ( | obj | ) | elm_object_part_content_get((obj), NULL) |
#define elm_object_content_set | ( | obj, | |
content | |||
) | elm_object_part_content_set((obj), NULL, (content)) |
#define elm_object_content_unset | ( | obj | ) | elm_object_part_content_unset((obj), NULL) |
Convenient macro for elm_object_part_content_unset.
- Since :
- 2.3.1
- See also:
- elm_object_part_content_unset
#define elm_object_domain_text_translatable_set | ( | obj, | |
domain, | |||
translatable | |||
) | elm_object_domain_part_text_translatable_set((obj), NULL, (domain), (translatable)) |
Convenient macro for elm_object_domain_part_text_translatable_set.
- Since :
- 2.3.1
#define elm_object_domain_translatable_text_set | ( | obj, | |
domain, | |||
text | |||
) | elm_object_domain_translatable_part_text_set((obj), NULL, (domain), (text)) |
Convenient macro for elm_object_domain_translatable_part_text_set.
- Since :
- 2.3.1
#define elm_object_item_content_get | ( | it | ) | elm_object_item_part_content_get((it), NULL) |
Convenient macro for elm_object_item_part_content_get.
- Since :
- 2.3.1
- See also:
- elm_object_item_part_content_get
#define elm_object_item_content_set | ( | it, | |
content | |||
) | elm_object_item_part_content_set((it), NULL, (content)) |
Convenient macro for elm_object_item_part_content_set.
- Since :
- 2.3.1
- See also:
- elm_object_item_part_content_set
#define elm_object_item_content_unset | ( | it | ) | elm_object_item_part_content_unset((it), NULL) |
Convenient macro for elm_object_item_part_content_unset.
- Since :
- 2.3.1
- See also:
- elm_object_item_part_content_unset
#define elm_object_item_domain_text_translatable_set | ( | it, | |
domain, | |||
translatable | |||
) | elm_object_item_domain_part_text_translatable_set((it), NULL, (domain), (translatable)) |
Convenient macro for elm_object_item_domain_part_text_translatable_set.
- Since :
- 2.3.1
#define elm_object_item_domain_translatable_text_set | ( | it, | |
domain, | |||
text | |||
) | elm_object_item_domain_translatable_part_text_set((it), NULL, (domain), (text)) |
Convenient macro for elm_object_item_domain_translatable_part_text_set.
- Since :
- 2.3.1
#define elm_object_item_part_text_translatable_set | ( | it, | |
part, | |||
translatable | |||
) | elm_object_item_domain_part_text_translatable_set((it), (part), NULL, (translatable)) |
Convenient macro for elm_object_item_domain_part_text_translatable_set.
- Since :
- 2.3.1
#define elm_object_item_text_get | ( | it | ) | elm_object_item_part_text_get((it), NULL) |
Convenient macro for elm_object_item_part_text_get.
- Since :
- 2.3.1
- See also:
- elm_object_item_part_text_get
#define elm_object_item_text_set | ( | it, | |
label | |||
) | elm_object_item_part_text_set((it), NULL, (label)) |
Sets the macro label of an object item.
- Since :
- 2.3.1
- Remarks:
- Elementary object items may have many labels.
- Parameters:
-
[in] it The Elementary object item [in] label The new text of the label
#define elm_object_item_translatable_part_text_set | ( | it, | |
part, | |||
text | |||
) | elm_object_item_domain_translatable_part_text_set((it), (part), NULL, (text)) |
Convenient macro for elm_object_item_domain_translatable_part_text_set.
- Since :
- 2.3.1
#define elm_object_item_translatable_text_get | ( | it | ) | elm_object_item_translatable_part_text_get((it), NULL) |
Convenient macro for elm_object_item_translatable_part_text_get.
- Since :
- 2.3.1
#define elm_object_item_translatable_text_set | ( | it, | |
text | |||
) | elm_object_item_domain_translatable_part_text_set((it), NULL, NULL, (text)) |
Convenient macro for elm_object_item_domain_translatable_part_text_set.
- Since :
- 2.3.1
#define elm_object_part_text_translatable_set | ( | obj, | |
part, | |||
translatable | |||
) | elm_object_domain_part_text_translatable_set((obj), (part), NULL, (translatable)) |
Convenient macro for elm_object_domain_part_text_translatable_set.
- Since :
- 2.3.1
#define elm_object_text_get | ( | obj | ) | elm_object_part_text_get((obj), NULL) |
#define elm_object_text_set | ( | obj, | |
text | |||
) | elm_object_part_text_set((obj), NULL, (text)) |
#define elm_object_translatable_part_text_set | ( | obj, | |
part, | |||
text | |||
) | elm_object_domain_translatable_part_text_set((obj), (part), NULL, (text)) |
Convenient macro for elm_object_domain_translatable_part_text_set.
- Since :
- 2.3.1
#define elm_object_translatable_text_get | ( | obj | ) | elm_object_translatable_part_text_get((obj), NULL) |
Convenient macro for elm_object_translatable_part_text_get.
- Since :
- 2.3.1
#define elm_object_translatable_text_set | ( | obj, | |
text | |||
) | elm_object_domain_translatable_part_text_set((obj), NULL, NULL, (text)) |
Convenient macro for elm_object_domain_translatable_part_text_set.
- Since :
- 2.3.1
Typedef Documentation
typedef Eina_Bool(* Elm_Event_Cb)(void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info) |
Function prototype definition for callbacks on input events happening on Elementary widgets. data receives the user data pointer passed to elm_object_event_callback_add(). src is a pointer to the widget on which the input event took place. type gets the type of this event and event_info, the struct with details on this event
It is the Elm_Object_Item Signal Callback functions' prototype definition. data is going to have the auxiliary data pointer at the time of the callback registration. it is a pointer to Elm_Object_Item that has the edje object from where the signal comes. emission identifies the exact signal's emission string and source identifies the exact signal's source.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
Enumeration Type Documentation
enum Elm_Object_Layer |
Enumeration that defines a couple of standard Evas_Object layers to be used with evas_object_layer_set().
- Remarks:
- Whenever extending with new values, try to keep some padding to siblings so that there is room for further extensions.
- Enumerator:
enum Elm_Policy |
Enumeration that defines the policy identifiers.
- Enumerator:
ELM_POLICY_QUIT Under which circumstances the application should quit automatically.
- See also:
- Elm_Policy_Quit
ELM_POLICY_EXIT Defines the elm_exit() behaviour.
- See also:
- Elm_Policy_Exit
- Since (EFL) :
- 1.8
ELM_POLICY_THROTTLE Defines how throttling should work
- See also:
- Elm_Policy_Throttle
- Since (EFL) :
- 1.8
enum Elm_Policy_Exit |
Enumeration that defines the possible values for the ELM_POLICY_EXIT policy.
- Since (EFL) :
- 1.8
- Enumerator:
ELM_POLICY_EXIT_NONE Just quit the main loop on elm_exit()
ELM_POLICY_EXIT_WINDOWS_DEL Delete all the windows after quitting the main loop
enum Elm_Policy_Quit |
Enumeration that defines the possible values for the ELM_POLICY_QUIT policy.
enum Elm_Policy_Throttle |
Enumeration that defines the possible values for the ELM_POLICY_THROTTLE policy.
- Since (EFL) :
- 1.8
Function Documentation
void elm_exit | ( | void | ) |
Asks to exit Elementary's main loop.
- Since :
- 2.3.1
- Remarks:
- If this call is issued, it flags the main loop to cease processing and returns back to its parent function (usually your elm_main() function). This does not mean that the main loop instantly quits. So your ecore callbacks(timer, animator, event, job, and etc.) have chances to be called even after elm_exit().
- Just after a request to close the window comes, the main loop is left.
- By using the appropriate ELM_POLICY_QUIT on your Elementary applications, you are able to get this function called automatically for you.
- See also:
- elm_init()
int elm_init | ( | int | argc, |
char ** | argv | ||
) |
Initializes Elementary.
This function initializes Elementary and increments a counter of the number of calls to it. It returns the new counter's value.
- Since :
- 2.3.1
- Remarks:
- This call is exported only for use by the ELM_MAIN() macro. There is no need to use this if you use this macro (which is highly advisable). An elm_main() should contain the entry point code for your application, having the same prototype as elm_init(), and not being static (putting the
EAPI_MAIN
symbol in front of its type declaration is advisable). The ELM_MAIN() call should be placed just after it.
- Parameters:
-
[in] argc The system's argument count value [in] argv The system's pointer to the array of argument strings
- Returns:
- The init counter value
- See also:
- elm_shutdown()
void elm_language_set | ( | const char * | lang | ) |
Changes the language of the current application.
- Since :
- 2.3.1
- Remarks:
- The lang passed must be the full name of the locale to use, for example "en_US.utf8" or "es_ES@euro".
-
For more complex cases, like having formatted strings that need translation, widgets also emit a
"language,changed"
signal that the user can listen to, in order to manually translate the text.
- Parameters:
-
[in] lang The language to set, must be the full name of the locale
void elm_object_access_info_set | ( | Evas_Object * | obj, |
const char * | txt | ||
) |
Sets the text to read out when in the accessibility mode.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The object which is to be described [in] txt The text that describes the widget to people with poor or no vision
Eina_Bool elm_object_disabled_get | ( | const Evas_Object * | obj | ) |
Gets the disabled state of an Elementary object.
This gets the state of the widget, which might be enabled or disabled.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The Elementary object to operate on
- Returns:
EINA_TRUE
if the widget is disabled, otherwiseEINA_FALSE
if it's enabled (or on errors)
void elm_object_disabled_set | ( | Evas_Object * | obj, |
Eina_Bool | disabled | ||
) |
Sets the disabled state of an Elementary object.
- Since :
- 2.3.1
- Remarks:
- Elementary objects can be disabled, in which state they won't receive input and, in general, get themed differently from their normal state, usually greyed out. Useful for contexts where you don't want your users to interact with some of the parts of your interface.
- This sets the state for the widget, either disabling it or enabling it back.
- Parameters:
-
[in] obj The Elementary object to operate on [in] disabled If EINA_TRUE
that state is disabled, otherwiseEINA_FALSE
if it is enabled
void elm_object_domain_part_text_translatable_set | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | domain, | ||
Eina_Bool | translatable | ||
) |
Marks the part text to be transltable.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- Once you mark the part text to be translatable, the text is translated internally regardless of elm_object_part_text_set() and elm_object_domain_translatable_part_text_set(). In other cases, if you set the Elementary policy that all text should be translatable by default, you can set the part text to not be translated by calling this API.
- Parameters:
-
[in] obj The object containing the text part [in] part The part name of the translatable text [in] domain The translation domain to use [in] translatable If EINA_TRUE
the part text is translated internally, otherwiseEINA_FALSE
- See also:
- elm_object_domain_part_text_translatable_set()
- elm_object_part_text_set()
- elm_policy()
void elm_object_domain_translatable_part_text_set | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | domain, | ||
const char * | text | ||
) |
Sets the text for an object's part, marking it translatable.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- The string to set as text must be the original one. Do not pass the return of gettext() here. Elementary translates the string internally and sets it on the object using elm_object_part_text_set(), also stores the original string so that it can be automatically translated when the language is changed with elm_language_set().
-
The domain is also stored to find the translation in the correct catalog. It can be
NULL
, in which case it uses whatever domain is set by the application with textdomain(). This is useful in case you are building a library on top of Elementary that has its own translatable strings, that should not be mixed with those of programs using the library.
- Parameters:
-
[in] obj The object containing the text part [in] part The name of the part to set [in] domain The translation domain to use [in] text The original, non-translated text to set
void elm_object_event_callback_add | ( | Evas_Object * | obj, |
Elm_Event_Cb | func, | ||
const void * | data | ||
) |
Adds a callback for input events (key up, key down, mouse wheel) on a given Elementary widget.
- Since :
- 2.3.1
- Remarks:
- Every widget in an Elementary interface is set to receive focus, with elm_object_focus_allow_set(), propagate all of its key up, key down, and mouse wheel input events up to its parent object, and so on. All of the focusable ones in this chain that had an event callback set, with this call, are able to treat those events. There are two ways of making the propagation of these event upwards in the tree of widgets to cease:
- Just return
EINA_TRUE
on func.EINA_FALSE
means that the event is not processed, so the propagation goes on. - The event_info pointer passed to
func
contains the event's structure and, if you OR its event_flags inner value toEVAS_EVENT_FLAG_ON_HOLD
, you're telling Elementary has already handled it, thus killing the event's propagation.
- Just return
- Your event callback is issued on those events taking place only if no other child widget of obj has consumed the event already.
- Not to be confused with evas_object_event_callback_add(), which adds event callbacks per type on general Evas objects (no event propagation infrastructure taken into account).
- Not to be confused with elm_object_signal_callback_add(), which adds callbacks to signals coming from a widget's theme, not input events.
- Not to be confused with edje_object_signal_callback_add(), which does the same as elm_object_signal_callback_add(), but directly on an Edje object.
- Not to be confused with evas_object_smart_callback_add(), which adds callbacks to smart objects' smart events, and not input events.
- Parameters:
-
[in] obj The widget to add an event callback on [in] func The callback function to be executed when the event happens [in] data The data to pass into func
- See also:
- elm_object_event_callback_del()
void* elm_object_event_callback_del | ( | Evas_Object * | obj, |
Elm_Event_Cb | func, | ||
const void * | data | ||
) |
Removes an event callback from a widget.
This function removes a callback, previously attached to the event emission by the obj. The parameters func and data must match exactly those passed to a previous call to elm_object_event_callback_add(). The data pointer that is passed to this call is returned.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The object [in] func The callback function to be executed when the event is emitted [in] data The data to pass to the callback function
- Returns:
- A data pointer
void elm_object_item_access_info_set | ( | Elm_Object_Item * | it, |
const char * | txt | ||
) |
Sets the text to read out when in the accessibility mode.
- Since :
- 2.3.1
- Parameters:
-
[in] it The object item which is to be described [in] txt The text that describes the widget to people with poor or no vision
Evas_Object* elm_object_item_access_object_get | ( | const Elm_Object_Item * | item | ) |
Gets the accessible object of the object item.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] item The elementary object item
- Returns:
- The accessible object of the object item, otherwise
NULL
for any error
const Eina_List* elm_object_item_access_order_get | ( | const Elm_Object_Item * | item | ) |
Gets the highlight order.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] item The container object item
- Returns:
- The order of objects to pass highlight
void elm_object_item_access_order_set | ( | Elm_Object_Item * | item, |
Eina_List * | objs | ||
) |
Sets the highlight order.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] item The container object item [in] objs The order of objects to pass highlight
void elm_object_item_access_order_unset | ( | Elm_Object_Item * | item | ) |
Unsets the highlight order.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] item The container object item
Registers the object item as an accessible object.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] item The elementary object item
- Returns:
- The accessible object of the object item, otherwise
NULL
for any error
void elm_object_item_access_unregister | ( | Elm_Object_Item * | item | ) |
Unregisters the accessible object of the object item.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] item The elementary object item
Eina_Bool elm_object_item_cursor_engine_only_get | ( | const Elm_Object_Item * | it | ) |
Gets whether the (custom) cursor for a given item is being searched in its theme or is only relying on the rendering engine.
- Since :
- 2.3.1
- Parameters:
-
[in] it The object item
- Returns:
EINA_TRUE
, if cursors are being looked for only from those provided by the rendering engine, otherwiseEINA_FALSE
if they are being searched on the widget's theme as well.
void elm_object_item_cursor_engine_only_set | ( | Elm_Object_Item * | it, |
Eina_Bool | engine_only | ||
) |
Sets whether the (custom)cursor for a given item should be searched in its theme or should only rely on the rendering engine.
- Since :
- 2.3.1
- Remarks:
- This call is of use only if you've set a custom cursor for items using elm_object_item_cursor_set().
- By default, cursors are only looked for from those provided by the rendering engine.
- Parameters:
-
[in] it The item with custom (custom) cursor already set on it [in] engine_only If EINA_TRUE
cursors are looked for only from those provided by the rendering engine, otherwiseEINA_FALSE
to have them searched on the widget's theme as well
const char* elm_object_item_cursor_get | ( | const Elm_Object_Item * | it | ) |
Gets the type of mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given item.
- Since :
- 2.3.1
- Parameters:
-
[in] it The item with the custom cursor set
- Returns:
- The cursor type's name, otherwise
NULL
if no custom cursors are set to it (and on errors)
void elm_object_item_cursor_set | ( | Elm_Object_Item * | it, |
const char * | cursor | ||
) |
Sets the type of mouse pointer/cursor decoration to be shown, when the mouse pointer is over the given item.
- Since :
- 2.3.1
- Remarks:
- This function is analogous to elm_object_cursor_set(), but here the cursor's changing area is restricted to the item's area, and not the whole widget's. Note that the item cursors have precedence over widget cursors, so a mouse over an item with custom cursor set always shows that cursor.
- If this function is called twice for an object, a previously set cursor is unset on the second call.
- Parameters:
-
[in] it The item to customize the cursor on [in] cursor The cursor type's name
const char* elm_object_item_cursor_style_get | ( | const Elm_Object_Item * | it | ) |
Get the current style set for a given item's custom cursor.
- Since :
- 2.3.1
- Parameters:
-
[in] it The item with the custom cursor set
- Returns:
- style The cursor style in use
If the object does not have a cursor set, thenNULL
is returned.
- See also:
- elm_object_item_cursor_style_set()
void elm_object_item_cursor_style_set | ( | Elm_Object_Item * | it, |
const char * | style | ||
) |
Sets a different style for a given custom cursor set of an item.
- Since :
- 2.3.1
- Remarks:
- This function only makes sense when one is using custom mouse cursor decorations defined in a theme file, which can have, a given cursor name/type and alternate styles on it. It is analogous to elm_object_cursor_style_set(), but here it applies only to item objects.
- Before you set a cursor style you should have defined a custom cursor previously on the item, with elm_object_item_cursor_set()
- Parameters:
-
[in] it The item with the custom cursor set [in] style The theme style to use (e.g. "default"
,"transparent"
, etc)
void elm_object_item_cursor_unset | ( | Elm_Object_Item * | it | ) |
Unsets any custom mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given item, thus making it show the default cursor again.
- Since :
- 2.3.1
- Remarks:
- Use this call to undo any custom settings on this item's cursor decoration, bringing it back to defaults (no custom style set).
- Parameters:
-
[in] it The item
void* elm_object_item_data_get | ( | const Elm_Object_Item * | it | ) |
Gets the data associated with an object item.
- Since :
- 2.3.1
- Remarks:
- Every elm_object_item supports this API.
- Parameters:
-
[in] it The Elementary object item
- Returns:
- The data associated with it
void elm_object_item_data_set | ( | Elm_Object_Item * | it, |
void * | data | ||
) |
Sets the data associated with an object item.
- Since :
- 2.3.1
- Remarks:
- Every elm_object_item supports this API.
- Parameters:
-
[in] it The Elementary object item [in] data The data to be associated with it
void elm_object_item_del | ( | Elm_Object_Item * | it | ) |
Deletes the given item.
- Since :
- 2.3.1
- Parameters:
-
[in] it The item to be deleted
void elm_object_item_del_cb_set | ( | Elm_Object_Item * | it, |
Evas_Smart_Cb | del_cb | ||
) |
Sets the function to be called when an item from the widget is freed.
- Since :
- 2.3.1
- Remarks:
- This function receives these parameters:
- void * item data
- Evas_Object * widget object
- Elm_Object_Item * widget item
- Every elm_object_item supports this API.
- Parameters:
-
[in] it The item to set the callback on [in] del_cb The function called
- See also:
- elm_object_item_del()
void elm_object_item_domain_part_text_translatable_set | ( | Elm_Object_Item * | it, |
const char * | part, | ||
const char * | domain, | ||
Eina_Bool | translatable | ||
) |
Marks the part text to be translatable.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- Once you mark the part text to be translatable, the text is translated internally regardless of elm_object_item_part_text_set() and elm_object_item_domain_translatable_part_text_set(). In another case, if you set the Elementary policy that all text should be translatable by default, you can set the part text to not be translated by calling this API.
- Parameters:
-
[in] it The object item containing the text part [in] part The part name of the translatable text [in] domain The translation domain to use [in] translatable If EINA_TRUE
, the part text is translated internally, otherwiseEINA_FALSE
- See also:
- elm_object_item_domain_translatable_part_text_set()
- elm_object_item_part_text_set()
- elm_policy()
void elm_object_item_domain_translatable_part_text_set | ( | Elm_Object_Item * | it, |
const char * | part, | ||
const char * | domain, | ||
const char * | text | ||
) |
Sets the text for an object item's part, marking it as translatable.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- The string to set as text must be the original one. Do not pass the return of gettext() here. Elementary translates the string internally and sets it on the object item using elm_object_item_part_text_set(), also storing the original string so that it can be automatically translated when the language is changed with elm_language_set(). The domain is stored along with it to find the translation in the correct catalog. It can be
NULL
, in which case it uses whatever domain is set by the application with textdomain(). This is useful in case you are building a library on top of Elementary that should have its own translatable strings, that should not be mixed with those of programs using the library.
- Parameters:
-
[in] it The object item containing the text part [in] part The name of the part to set [in] domain The translation domain to use [in] text The original, non-translated text to set
Evas_Object* elm_object_item_part_content_get | ( | const Elm_Object_Item * | it, |
const char * | part | ||
) |
Gets the content of an object item.
- Since :
- 2.3.1
- Remarks:
- Elementary object items may have many contents.
- Parameters:
-
[in] it The Elementary object item [in] part The content part name to unset ( NULL
for the default content)
- Returns:
- The content of the object item, otherwise
NULL
for any error
void elm_object_item_part_content_set | ( | Elm_Object_Item * | it, |
const char * | part, | ||
Evas_Object * | content | ||
) |
Sets the content of an object item.
This sets a new object to an item as a content object. If any object is already set as a content object in the same part, this previous object is deleted automatically.
- Since :
- 2.3.1
- Remarks:
- Elementary object items may have many contents.
- Parameters:
-
[in] it The Elementary object item [in] part The content part name to set ( NULL
for the default content)[in] content The new content of the object item
Evas_Object* elm_object_item_part_content_unset | ( | Elm_Object_Item * | it, |
const char * | part | ||
) |
Unsets the content of an object item.
- Since :
- 2.3.1
- Remarks:
- Elementary object items may have many contents.
- Parameters:
-
[in] it The Elementary object item [in] part The content part name to unset ( NULL
for the default content)
- Returns:
- EINA_TRUE if succeed, otherwise EINA_FALSE.
const char* elm_object_item_part_text_get | ( | const Elm_Object_Item * | it, |
const char * | part | ||
) |
Gets the label of an object item.
- Since :
- 2.3.1
- Remarks:
- Elementary object items may have many labels.
- Parameters:
-
[in] it The Elementary object item [in] part The text part name to get ( NULL
for the default label)
- Returns:
- The text of the label, otherwise
NULL
for any error
void elm_object_item_part_text_set | ( | Elm_Object_Item * | it, |
const char * | part, | ||
const char * | label | ||
) |
Sets the label of an object item.
- Since :
- 2.3.1
- Remarks:
- Elementary object items may have many labels.
- Parameters:
-
[in] it The Elementary object item [in] part The text part name to set ( NULL
for the default label)[in] label The new text of the label
void elm_object_item_signal_callback_add | ( | Elm_Object_Item * | it, |
const char * | emission, | ||
const char * | source, | ||
Elm_Object_Item_Signal_Cb | func, | ||
void * | data | ||
) |
Adds a callback for a signal emitted by the object item, edje object.
This function connects a callback function to a signal emitted by the edje object of the object item. Globs can occur in either the emission or source name.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] it The elementary object item [in] emission The signal name [in] source The signal source [in] func The callback function to be executed when the signal is emitted [in] data A pointer to the data to pass to the callback function
void* elm_object_item_signal_callback_del | ( | Elm_Object_Item * | it, |
const char * | emission, | ||
const char * | source, | ||
Elm_Object_Item_Signal_Cb | func | ||
) |
Removes a signal-triggered callback from the object item, edje object.
This function removes the last callback, previously attached to a signal emitted by an underlying Edje object of it, whose parameters emission, source, and func
match exactly with those passed to a previous call to elm_object_item_signal_callback_add(). The data pointer that is passed to this call is returned.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] it The elementary object item [in] emission The signal name [in] source The signal source [in] func The callback function to be executed when the signal is emitted
- Returns:
- The data pointer of the signal callback, otherwise
NULL
on errors
void elm_object_item_signal_emit | ( | Elm_Object_Item * | it, |
const char * | emission, | ||
const char * | source | ||
) |
Sends a signal to the edje object of the widget item.
This function sends a signal to the edje object of the obj item. An edje program can respond to a signal by specifying matching 'signal' and 'source' fields.
- Since :
- 2.3.1
- Parameters:
-
[in] it The Elementary object item [in] emission The signal name [in] source The signal source
const char* elm_object_item_style_get | ( | Elm_Object_Item * | it | ) |
Gets the style of an object item.
- Since :
- 2.3.1
- Parameters:
-
[in] it The Elementary object item
- Returns:
- The style of the object item
void elm_object_item_style_set | ( | Elm_Object_Item * | it, |
const char * | part | ||
) |
Sets the style of an object item.
- Since :
- 2.3.1
- Parameters:
-
[in] it The Elementary object item [in] part The style of the object item
Returns the track object of the item.
This gets a rectangle object that represents the object item's internal object. If you want to check the geometry and visibility of the item, you can call the evas apis, such as evas_object_geometry_get() and evas_object_visible_get(), to the track object. Note that all of the widget items may/may not have the internal object so this API may return NULL
if the widget item doesn't have it. Additionally, the widget item is managed/controlled by the widget, the widget item could be changed(moved, resized even deleted) anytime by its own widget's decision. So dont' change the track object and don't keep the track object on your side as far as possible, but get the track object the moment you need to refer. Otherwise, you need to add some callbacks to the track object to track it's attributes changes.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- After using the track object, call elm_object_item_untrack() paired to elm_object_item_track() without fail to free the track object properly. Don't delete the track object.
- Parameters:
-
[in] it The Elementary Object Item to be tracked
- Returns:
- The track object
int elm_object_item_track_get | ( | const Elm_Object_Item * | it | ) |
Gets the track object reference count.
This gets the reference count for the track object. Whenever you call elm_object_item_track(), the reference count is increased by one. Similarly, the reference count is decreased again when you call the elm_object_item_untrack(). Unless the reference count reaches to zero, the track object won't be deleted. So be sure to call elm_object_item_untrack() paired to the elm_object_item_track() call count.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] it The Elementary Object Item that returned the track object
- Returns:
- The track object reference count
const char* elm_object_item_translatable_part_text_get | ( | const Elm_Object_Item * | it, |
const char * | part | ||
) |
Gets the original string set as translatable for an object item.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- When setting translated strings, the function elm_object_item_part_text_get() returns the translation returned by gettext(). To get the original string use this function.
- Parameters:
-
[in] it The object item [in] part The name of the part that is set
- Returns:
- The original, untranslated string
void elm_object_item_untrack | ( | Elm_Object_Item * | it | ) |
Retrieves the track object of the item.
This retrieves the track object that is returned from elm_object_item_track().
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] it The Elementary Object Item that returned the track object
Evas_Object* elm_object_item_widget_get | ( | const Elm_Object_Item * | it | ) |
Gets the widget object's handle which contains a given item.
This returns the widget object itself to which an item belongs.
- Since :
- 2.3.1
- Remarks:
- Every elm_object_item supports this API.
- Parameters:
-
[in] it The Elementary object item
- Returns:
- The widget object
Evas_Object* elm_object_name_find | ( | const Evas_Object * | obj, |
const char * | name, | ||
int | recurse | ||
) |
Gets a named object from the children.
This function searches the children (or recursively children of children and so on) of the given obj object looking for a child with the name of name. If the child is found the object is returned, or NULL
is returned. You can set the name of an object with evas_object_name_set(). If the name is not unique within the child objects (or the tree is recurse or is greater than 0
) then it is undefined as to which child of that name is returned, so ensure that the name is unique amongst children. If recurse is set to -1
it recurses without limit.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The parent object whose children to look at [in] name The name of the child to find [in] recurse Set to the maximum number of levels to recurse ( 0
== none,1
is only to look at one level of children and so on)
- Returns:
- The found object of that name, otherwise
NULL
if none are found
Eina_Bool elm_object_orientation_mode_disabled_get | ( | const Evas_Object * | obj | ) |
Gets the orientation mode of a given widget.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Parameters:
-
[in] obj The Elementary widget to query for its orientation mode
- Returns:
EINA_TRUE
, if the orientation mode is disabled, otherwiseEINA_FALSE
if the orientation mode is enabled (or on errors)
void elm_object_orientation_mode_disabled_set | ( | Evas_Object * | obj, |
Eina_Bool | disabled | ||
) |
Disables the orientation mode of a given widget.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- Orientation mode is used for widgets to change their styles or to send signals whenever its window degree is changed. If the orientation mode is enabled and the widget has different looks and styles for the window degree(0, 90, 180, 270), it applies a style that is readied for the current degree, otherwise, it sends signals to its own edje to change its states if the style is not readied.
- Parameters:
-
[in] obj The Elementary object to operate in the orientation mode [in] disabled If EINA_TRUE
the state is disabled, otherwiseEINA_FALSE
if it is enabled
Evas_Object* elm_object_part_content_get | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets the content at a part of a given container widget.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The Elementary container widget [in] part The container's part name to get (some might accept NULL
for the default part)
- Returns:
- The content of the object at the given part, otherwise
NULL
in case of an error
- See also:
- elm_object_part_content_set()
void elm_object_part_content_set | ( | Evas_Object * | obj, |
const char * | part, | ||
Evas_Object * | content | ||
) |
Sets the content at a part of a given container widget.
- Since :
- 2.3.1
- Remarks:
- All widgets deriving from elm-container-class may hold child objects as content at given parts. This sets new content to a given part. If any object is already set as a content object in the same part, the previous object is deleted automatically with this call. If you wish to preserve it, issue elm_object_part_content_unset() on it first.
- Parameters:
-
[in] obj The Elementary container widget [in] part The container's part name to set (some might accept NULL
for the default part)[in] content The new content for that part
- See also:
- elm_object_part_content_set()
Evas_Object* elm_object_part_content_unset | ( | Evas_Object * | obj, |
const char * | part | ||
) |
Unsets the content at a part of a given container widget.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The Elementary container widget [in] part The container's part name to unset (some might accept NULL
for the default part)
- Returns:
- The content of the object at the given part, otherwise
NULL
in case of an error
- See also:
- elm_object_part_content_set()
const char* elm_object_part_text_get | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets the text of an object.
- Since :
- 2.3.1
- Remarks:
- Elementary objects may have many text parts (e.g. Action Slider).
- Parameters:
-
[in] obj The Elementary object [in] part The text part name to get ( NULL
for the default part)
- Returns:
- The text of the part, otherwise
NULL
for any error
void elm_object_part_text_set | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Sets the text of an object.
- Since :
- 2.3.1
- Remarks:
- Elementary objects may have many text parts (e.g. Action Slider).
- Parameters:
-
[in] obj The Elementary object [in] part The text part name to set ( NULL
for the default part)[in] text The new text of the part
void elm_object_signal_callback_add | ( | Evas_Object * | obj, |
const char * | emission, | ||
const char * | source, | ||
Edje_Signal_Cb | func, | ||
void * | data | ||
) |
Adds a callback for a signal emitted by the widget edje object.
This function connects a callback function to a signal emitted by the edje object of the obj. Globs can occur in either the emission or source name.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The object [in] emission The signal name [in] source The signal source [in] func The callback function to be executed when the signal is emitted [in] data A pointer to the data to pass to the callback function
void* elm_object_signal_callback_del | ( | Evas_Object * | obj, |
const char * | emission, | ||
const char * | source, | ||
Edje_Signal_Cb | func | ||
) |
Removes a signal-triggered callback from a widget edje object.
This function removes the last callback, previously attached to a signal emitted by an underlying Edje object of obj, whose parameters emission, source, and func
match exactly with those passed to a previous call to elm_object_signal_callback_add(). The data pointer that is passed to this call is returned.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The object handle [in] emission The signal name [in] source The signal source [in] func The callback function to be executed when the signal is emitted
- Returns:
- The data pointer of the signal callback, otherwise
NULL
in case of an error
void elm_object_signal_emit | ( | Evas_Object * | obj, |
const char * | emission, | ||
const char * | source | ||
) |
Sends a signal to the widget edje object.
This function sends a signal to the edje object of the obj. An edje program can respond to a signal by specifying matching 'signal' and 'source' fields.
- Since :
- 2.3.1
- Parameters:
-
[in] obj The object [in] emission The signal name [in] source The signal source
const char* elm_object_translatable_part_text_get | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets the original string set as translatable for an object.
- Since (EFL) :
- 1.8
- Since :
- 2.3.1
- Remarks:
- When setting translated strings, the function elm_object_part_text_get() returns the translation returned by gettext(). To get the original string use this function.
- Parameters:
-
[in] obj The object [in] part The name of the part that is set
- Returns:
- The original, untranslated string
int elm_policy_get | ( | unsigned int | policy | ) |
Gets the policy value for the given policy identifier.
- Since :
- 2.3.1
- Parameters:
-
[in] policy The policy identifier, as in Elm_Policy
- Returns:
- The currently set policy value for that identifier
It is0
if the policy passed is invalid.
Eina_Bool elm_policy_set | ( | unsigned int | policy, |
int | value | ||
) |
Sets a new policy's value (for a given policy group/identifier).
- Since :
- 2.3.1
- Remarks:
- Elementary policies define an applications' behavior, somehow. These behaviors are divided into policy groups (see Elm_Policy enumeration). This call emits the Ecore event ELM_EVENT_POLICY_CHANGED, which can be hooked with handlers. An Elm_Event_Policy_Changed struct is passed, after that.
- Currently, we have only one policy identifier/group (ELM_POLICY_QUIT), which has two possible values.
- Parameters:
-
[in] policy The policy identifier, as in Elm_Policy [in] value The policy value, which depends on the identifier
- Returns:
EINA_TRUE
on success, otherwiseEINA_FALSE
on error
void elm_quicklaunch_cleanup | ( | void | ) |
Exposed symbol used only by macros and should not be used by apps.
- Since :
- 2.3.1
char* elm_quicklaunch_exe_path_get | ( | const char * | exe | ) |
Exposed symbol used only by macros and should not be used by apps.
- Parameters:
-
[in] exe The executable path
- Returns:
- The exectuable path
- Since :
- 2.3.1
int elm_quicklaunch_fallback | ( | int | argc, |
char ** | argv | ||
) |
Exposed symbol used only by macros and should not be used by apps.
- Parameters:
-
[in] argc The system's argument count value [in] argv The system's pointer to the array of argument strings
- Returns:
- The return value from main function
- Since :
- 2.3.1
Eina_Bool elm_quicklaunch_fork | ( | int | argc, |
char ** | argv, | ||
char * | cwd, | ||
void(*)(void *data) | postfork_func, | ||
void * | postfork_data | ||
) |
Exposed symbol used only by macros and should not be used by apps.
- Parameters:
-
[in] argc The system's argument count value [in] argv The system's pointer to the array of argument strings [in] cwd The current working directory [in] postfork_func The function will be called after fork [in] postfork_data The used data for postfork_func
- Returns:
- EINA_TRUE if succeed, otherwise EINA_FALSE
- Since :
- 2.3.1
int elm_quicklaunch_init | ( | int | argc, |
char ** | argv | ||
) |
Exposed symbol used only by macros and should not be used by apps.
- Parameters:
-
[in] argc The system's argument count value [in] argv The system's pointer to the array of argument strings
- Returns:
- The init counter value
- Since :
- 2.3.1
Eina_Bool elm_quicklaunch_mode_get | ( | void | ) |
Exposed symbol used only by macros and should not be used by apps.
- Returns:
- EINA_TRUE if mode is on, otherwise EINA_FALSE.
- Since :
- 2.3.1
void elm_quicklaunch_mode_set | ( | Eina_Bool | ql_on | ) |
Exposed symbol used only by macros and should not be used by apps.
- Parameters:
-
[in] ql_on The quicklaunch mode to be set.
- Since :
- 2.3.1
Eina_Bool elm_quicklaunch_prepare | ( | int | argc, |
char ** | argv | ||
) |
Exposed symbol used only by macros and should not be used by apps.
- Parameters:
-
[in] argc The system's argument count value [in] argv The system's pointer to the array of argument strings
- Returns:
- EINA_TRUE if succeed, otherwise EINA_FALSE.
- Since :
- 2.3.1
void elm_quicklaunch_seed | ( | void | ) |
Exposed symbol used only by macros and should not be used by apps.
- Since :
- 2.3.1
int elm_quicklaunch_shutdown | ( | void | ) |
Exposed symbol used only by macros and should not be used by apps.
- Returns:
- The init counter value
- Since :
- 2.3.1
int elm_quicklaunch_sub_init | ( | int | argc, |
char ** | argv | ||
) |
Exposed symbol used only by macros and should not be used by apps.
- Parameters:
-
[in] argc The system's argument count value [in] argv The system's pointer to the array of argument strings
- Returns:
- The init counter value
- Since :
- 2.3.1
int elm_quicklaunch_sub_shutdown | ( | void | ) |
Exposed symbol used only by macros and should not be used by apps.
- Returns:
- The init counter value
- Since :
- 2.3.1
void elm_run | ( | void | ) |
Runs Elementary's main loop.
- Since :
- 2.3.1
- Remarks:
- This call should be issued just after all initialization is completed. This function returns until elm_exit() is called. It keeps looping, running the main (event/processing) loop for Elementary.
- See also:
- elm_init()
int elm_shutdown | ( | void | ) |
Shuts down Elementary.
- Since :
- 2.3.1
- Remarks:
- This should be called at the end of your application, just before it ceases to do any more processing. This cleans up any permanent resources that your application may have allocated via Elementary that would otherwise persist.
- elm_shutdown() iterates the main loop until all ecore_evas are freed. There is a possibility to call your ecore callbacks(timer, animator, event, job, and etc.) in elm_shutdown().
- Returns:
- The init counter value
- See also:
- elm_init()