Tizen Native API 5.5
Functions that deal with messages.
Edje has two communication interfaces between code and theme. Signals and messages.
Edje messages are one of the communication interfaces between code and a given Edje object's theme. With messages, one can communicate values like strings, float numbers and integer numbers. Moreover, messages can be identified by integer numbers. See Edje_Message_Type for the full list of message types.
- Messages must be handled by scripts.
|typedef struct _Edje_Message_Float Edje_Message_Float|
Alias for _Edje_Message_Float
|typedef struct _Edje_Message_Float_Set Edje_Message_Float_Set|
Alias for _Edje_Message_Float_Set
|typedef void(* Edje_Message_Handler_Cb)(void *data, Evas_Object *obj, Edje_Message_Type type, int id, void *msg)|
Edje message handler callback functions's prototype definition.
data will have the auxiliary data pointer set at the time the callback registration.
obj will be a pointer the Edje object where the message comes from.
type will identify the type of the given message and
msg will be a pointer the message's contents, de facto, which depend on
|typedef struct _Edje_Message_Int Edje_Message_Int|
Alias for _Edje_Message_Int
|typedef struct _Edje_Message_Int_Set Edje_Message_Int_Set|
Alias for _Edje_Message_Int_Set
|typedef struct _Edje_Message_String Edje_Message_String|
Alias for _Edje_Message_String.
|typedef struct _Edje_Message_String_Float Edje_Message_String_Float|
Alias for _Edje_Message_String_Float
|typedef struct _Edje_Message_String_Float_Set Edje_Message_String_Float_Set|
Alias for _Edje_Message_String_Float_Set
|typedef struct _Edje_Message_String_Int Edje_Message_String_Int|
Alias for _Edje_Message_String_Int
|typedef struct _Edje_Message_String_Int_Set Edje_Message_String_Int_Set|
Alias for _Edje_Message_String_Int_Set
|typedef struct _Edje_Message_String_Set Edje_Message_String_Set|
Alias for _Edje_Message_String_Set
Enumeration Type Documentation
Identifiers of Edje message types, which can be sent back and forth code and a given Edje object's theme file/group.
No message type
DO NOT USE THIS
A message with a string as value. Use Edje_Message_String structs as message body, for this type.
A message with an integer number as value. Use Edje_Message_Int structs as message body, for this type.
A message with a floating pointer number as value. Use Edje_Message_Float structs as message body, for this type.
A message with a list of strings as value. Use Edje_Message_String_Set structs as message body, for this type.
A message with a list of integer numbers as value. Use Edje_Message_Int_Set structs as message body, for this type.
A message with a list of floating point numbers as value. Use Edje_Message_Float_Set structs as message body, for this type.
A message with a struct containing a string and an integer number as value. Use Edje_Message_String_Int structs as message body, for this type.
A message with a struct containing a string and a floating point number as value. Use Edje_Message_String_Float structs as message body, for this type.
A message with a struct containing a string and list of integer numbers as value. Use Edje_Message_String_Int_Set structs as message body, for this type.
A message with a struct containing a string and list of floating point numbers as value. Use Edje_Message_String_Float_Set structs as message body, for this type.
Processes all queued up edje messages.
This function triggers the processing of messages addressed to any (alive) edje objects.
- Since :
|void edje_object_message_handler_set||(||Evas_Object *||obj,|
Sets an Edje message handler function for a given Edje object.
For scriptable programs on an Edje object's defining EDC file which send messages with the send_message() primitive, one can attach handler functions, to be called in the code which creates that object (see the syntax for EDC files).
This function associates a message handler function and the attached data pointer to the object obj.
See also edje_object_message_send()
[in] func The function to handle messages coming from obj [in] data Auxiliary data to be passed to func
- Since :
|void edje_object_message_send||(||Evas_Object *||obj,|
Sends an (Edje) message to a given Edje object.
This function sends an Edje message to obj and to all of its child objects, if it has any (swallowed objects are one kind of child object). type and msg must be matched accordingly, as documented in Edje_Message_Type.
The id argument as a form of code and theme defining a common interface on message communication. One should define the same IDs on both code and EDC declaration (see the syntax for EDC files), to individualize messages (binding them to a given context).
The function to handle messages arriving from obj is set with edje_object_message_handler_set().
[in] type The type of message to send to obj [in] id A identification number for the message to be sent [in] msg The message's body, a struct depending on type
- Since :
- edje-signals-messages.c, and prefs_example_03.c.
|void edje_object_message_signal_process||(||Evas_Object *||obj||)|
Processes an object's message queue.
This function goes through the object message queue processing the pending messages for this specific Edje object. Normally they'd be processed only at idle time. Child objects will not be affected.
- See also:
- Since :