Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Evas_Object


Detailed Description

An Etk_Evas_Object is a widget that can accept any Evas object and turn it into an Etk_Widget for use inside Etk.

image.png
The Etk_Evas_Object can used to load and hold Evas objects (regular, smarts, Edje objects, etc. ) in Etk.
Object Hierarchy:
  • Etk_Object
    • Etk_Widget
      • Etk_Evas_Object
Properties:
  • "evas-object": A pointer to the Evas object that will be held in the widget.
    • Type: Pointer (Evas_Object *)
    • Access: Read/Write
    • Default Value: NULL


Data Structures

struct  Etk_Evas_Object
 [Widget] A widget that can load Evas objects for use inside Etk More...

Defines

#define ETK_EVAS_OBJECT_TYPE   (etk_evas_object_type_get())
#define ETK_EVAS_OBJECT(obj)   (ETK_OBJECT_CAST((obj), ETK_EVAS_OBJECT_TYPE, Etk_Evas_Object))
#define ETK_IS_EVAS_OBJECT(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_EVAS_OBJECT_TYPE))

Functions

Etk_Widget * etk_evas_object_new (void)
 Creates a new empty etk evas object wrapper.
Etk_Widget * etk_evas_object_new_from_object (Evas_Object *evas_object)
 Creates a new etk evas object wrapper from the given evas object.
void etk_evas_object_set_object (Etk_Evas_Object *etk_evas_object, Evas_Object *evas_object)
 Sets the Evas_Object for the widget.
Evas_Object * etk_evas_object_get (Etk_Evas_Object *etk_evas_object)
 Gets the Evas object used by the widget.


Define Documentation

#define ETK_EVAS_OBJECT_TYPE   (etk_evas_object_type_get())

Gets the type of an etk_evas widget

Referenced by etk_evas_object_new().

#define ETK_EVAS_OBJECT ( obj   )     (ETK_OBJECT_CAST((obj), ETK_EVAS_OBJECT_TYPE, Etk_Evas_Object))

Casts the object to an Etk_Evas_Object

Referenced by etk_evas_object_new_from_object().

#define ETK_IS_EVAS_OBJECT ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_EVAS_OBJECT_TYPE))

Check if the object is an Etk_Evas_Object


Function Documentation

Etk_Widget * etk_evas_object_new ( void   ) 

Creates a new empty etk evas object wrapper.

Returns:
Returns the new etk evas object widget

References ETK_EVAS_OBJECT_TYPE, and etk_widget_new().

Referenced by etk_evas_object_new_from_object().

Etk_Widget * etk_evas_object_new_from_object ( Evas_Object *  evas_object  ) 

Creates a new etk evas object wrapper from the given evas object.

Parameters:
evas_object the evas object to use for the etk evas object wrapper
Returns:
Returns the new widget

References ETK_EVAS_OBJECT, etk_evas_object_new(), and etk_evas_object_set_object().

Referenced by etk_canvas_object_add().

void etk_evas_object_set_object ( Etk_Evas_Object *  etk_evas_object,
Evas_Object *  evas_object 
)

Sets the Evas_Object for the widget.

Parameters:
etk_evas_object an Etk_Evas_Object
evas_object the Evas object to use.

References ETK_OBJECT, etk_object_notify(), and object.

Referenced by etk_evas_object_new_from_object().

Evas_Object* etk_evas_object_get ( Etk_Evas_Object *  etk_evas_object  ) 

Gets the Evas object used by the widget.

Parameters:
etk_evas_object an Etk_Evas_Object widget
Returns:
Returns the Evas object

References object.