Interface Efl.IContent
Common interface for objects that have a single sub-object as content. This is used for the default content part of widgets, as well as for individual parts through Efl.IPart. (Since EFL 1.22)
Syntax
public interface IContent : IWrapper, IDisposable
Properties
Content
Sub-object currently set as this object's single content.
If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content
is set the object will become empty (it will have no sub-object).
(Since EFL 1.22)
Declaration
IEntity Content { get; set; }
Property Value
Type | Description |
---|---|
Efl.Gfx.IEntity | The sub-object. |
Methods
GetContent()
Sub-object currently set as this object's single content.
If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content
is set the object will become empty (it will have no sub-object).
(Since EFL 1.22)
Declaration
IEntity GetContent()
Returns
Type | Description |
---|---|
Efl.Gfx.IEntity | The sub-object. |
SetContent(IEntity)
Sub-object currently set as this object's single content.
If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content
is set the object will become empty (it will have no sub-object).
(Since EFL 1.22)
Declaration
bool SetContent(IEntity content)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | content | The sub-object. |
Returns
Type | Description |
---|---|
System.Boolean |
|
UnsetContent()
Remove the sub-object currently set as content of this object and return it. This object becomes empty. (Since EFL 1.22)
Declaration
IEntity UnsetContent()
Returns
Type | Description |
---|---|
Efl.Gfx.IEntity | Unswallowed object |
Events
ContentChangedEvent
Sent after the content is set or unset using the current content object. (Since EFL 1.22)
Declaration
event EventHandler<ContentContentChangedEventArgs> ContentChangedEvent
Event Type
Type | Description |
---|---|
System.EventHandler<Efl.ContentContentChangedEventArgs> |