Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_type.h File Reference


Detailed Description


Data Structures

struct  Etk_Type
 The type of an Etk_Object: it can have a constructor and a destructor and can inherit from another Etk_Type
It also has a list of properties that will describe the state of the instanciated object. More...

Defines

#define ETK_CONSTRUCTOR(constructor)   ((Etk_Constructor)(constructor))
#define ETK_DESTRUCTOR(destructor)   ((Etk_Destructor)(destructor))

Functions

void etk_type_shutdown (void)
 Deletes all the created types.
Etk_Type * etk_type_new (const char *type_name, Etk_Type *parent_type, int type_size, Etk_Constructor constructor, Etk_Destructor destructor, const Etk_Signal_Description *signals)
 Creates a new type. Will be automatically deleted with the etk_type_shutdown() call.
void etk_type_delete (Etk_Type *type)
 Deletes the type.
void etk_type_object_construct (Etk_Type *type, Etk_Object *object)
 Calls the constructors of the object, from the constructor of the root parent type up to the one of the object type.
void etk_type_destructors_call (Etk_Type *type, Etk_Object *object)
 Calls the destructors of the object, from the destructor of the object type up to the one of the root parent type.
Etk_Bool etk_type_inherits_from (Etk_Type *type, Etk_Type *parent)
 Checks if the type inherits from the parent type.
Etk_Type * etk_type_parent_type_get (Etk_Type *type)
 Gets the parent type of the type type.
const char * etk_type_name_get (Etk_Type *type)
 Gets the name of the type.
Etk_Type * etk_type_get_from_name (const char *name)
 Gets the Etk_Type from the type's name.
Etk_Signal * etk_type_signal_get (Etk_Type *type, int signal_code)
 Gets the signal corresponding to the type and the signal code.
Etk_Signal * etk_type_signal_get_by_name (Etk_Type *type, const char *signal_name)
 Gets the signal corresponding to the type and the signal name.
Etk_Property * etk_type_property_add (Etk_Type *type, const char *name, int property_id, Etk_Property_Type property_type, Etk_Property_Flags flags, Etk_Property_Value *default_value)
 Adds a new property to the type.
Etk_Bool etk_type_property_find (Etk_Type *type, const char *name, Etk_Type **property_owner, Etk_Property **property)
 Finds the property called name in the type type.
void etk_type_property_list (Etk_Type *type, Evas_List **properties)
 Lists the properties of the type and appends them to properties.