Class representing an external part in Edje layouts.
An object of this type is an Efl.Part object, which means its lifecycle is limited to only one function call.
An external part contains one object, which can be retrieved with Efl.Content.content.get(). Do not delete this object. Just like for other parts Edje is in charge of the visibility, geometry, clip, etc.
Common usage in pseudo-C would be as follows: Eo *widget = efl_content_get(efl_part(layout, "extpartname")); efl_text_set(widget, "hello");
Note that as a shortcut the widget's functions can be called directly on this part object. In C++: efl::eo::downcast<efl::Text>(layout.part("title")).text_set("hello"); Or in pseudo-C: efl_text_set(efl_part(layout, "title"), "hello"); Or in pseudo-script: layout["title"].text = "hello";
⇒ Efl.Canvas.Layout_Part (class) ⇒ Efl.Object (class)
content (get, set) [Overridden from Efl.Content]
Sub-object currently set as this object's single content.
Efl_Gfx_Entity *efl_content_get(const Eo *obj); Eina_Bool efl_content_set(Eo *obj, Efl_Gfx_Entity *content);
content_unset [Overridden from Efl.Content]
Remove the sub-object currently set as content of this object and return it. This object becomes empty.
Efl_Gfx_Entity *efl_content_unset(Eo *obj);
Efl.Canvas.Layout_Part | ||
---|---|---|
drag_dir (get) | ||
drag_page (get, set) | The page step increments. | |
drag_page_move | Moves the draggable by dx ,dy pages. |
|
drag_size (get, set) | The draggable object relative size. | |
drag_step (get, set) | The drag step increment. | |
drag_step_move | Moves the draggable by dx ,dy steps. |
|
drag_value (get, set) | The draggable object relative location. | |
finalize | Implement this method to finish the initialization of your object after all (if any) user-provided configuration methods have been executed. | |
geometry (get, set) | Rectangular geometry that combines both position and size. | |
part_type (get) | ||
state (get) | ||
Efl.Gfx.Entity | ||
position (get, set) | The 2D position of a canvas object. | |
scale (get, set) | The scaling factor of an object. | |
size (get, set) | The 2D size of a canvas object. | |
visible (get, set) | The visibility of a canvas object. | |
Efl.Object | ||
allow_parent_unref (get, set) | Allow an object to be deleted by unref even if it has a parent. | |
children_iterator_new | Get an iterator on all children. | |
comment (get, set) | A human readable comment for the object. | |
composite_attach | Make an object a composite object of another. | |
composite_detach | Detach a composite object from another object. | |
composite_part_is | Check if an object is part of a composite object. | |
constructor | Implement this method to provide optional initialization code for your object. | |
debug_name_override | Build a read-only name for this object used for debugging. | |
destructor | Implement this method to provide deinitialization code for your object if you need it. | |
event_callback_forwarder_del | Remove an event callback forwarder for a specified event and object. | |
event_callback_forwarder_priority_add | Add an event callback forwarder that will make this object emit an event whenever another object (source ) emits it. The event is said to be forwarded from source to this object. |
|
event_callback_stop | Stop the current callback call. | |
event_freeze | Freeze events of this object. | |
event_freeze_count (get) | ||
static | event_global_freeze | Globally freeze events for ALL EFL OBJECTS. |
static | event_global_freeze_count (get) | |
static | event_global_thaw | Globally thaw events for ALL EFL OBJECTS. |
event_thaw | Thaw events of object. | |
finalized (get) | ||
invalidate | Implement this method to perform special actions when your object loses its parent, if you need to. | |
invalidated (get) | ||
invalidating (get) | ||
name (get, set) | The name of the object. | |
name_find | Find a child object with the given name and return it. | |
parent (get, set) | The parent of an object. | |
provider_find | Searches upwards in the object tree for a provider which knows the given class/interface. | |
provider_register | Will register a manager of a specific class to be answered by Efl.Object.provider_find. | |
provider_unregister | Will unregister a manager of a specific class that was previously registered and answered by Efl.Object.provider_find. |
Efl.Content | ||
---|---|---|
content,changed | Sent after the content is set or unset using the current content object. | |
Efl.Gfx.Entity | ||
position,changed | Object was moved, its position during the event is the new one. | |
size,changed | Object was resized, its size during the event is the new one. | |
visibility,changed | Object's visibility state changed, the event value is the new state. | |
Efl.Object | ||
del | Object is being deleted. See Efl.Object.destructor. | |
destruct | Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any reference you keep to the object. | |
invalidate | Object is being invalidated and losing its parent. See Efl.Object.invalidate. | |
noref | Object has lost its last reference, only parent relationship is keeping it alive. Advanced usage. | |
ownership,shared | Object has acquired a second reference. It has multiple owners now. Triggered whenever increasing the refcount from one to two, it will not trigger by further increasing the refcount beyond two. | |
ownership,unique | Object has lost a reference and only one is left. It has just one owner now. Triggered whenever the refcount goes from two to one. |