Interface Efl.IPack
Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime.
Syntax
public interface IPack : IContainer, IWrapper, IDisposable
Methods
ClearPack()
Removes all packed sub-objects and unreferences them.
Declaration
bool ClearPack()
Returns
Type | Description |
---|---|
System.Boolean |
|
Pack(IEntity)
Adds a sub-object to this container. Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part.
When this container is deleted, it will request deletion of the given subobj
. Use Efl.IPack.Unpack(Efl.Gfx.IEntity) to remove subobj
from this container without deleting it.
Declaration
bool Pack(IEntity subobj)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | subobj | The object to pack. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Unpack(IEntity)
Removes an existing sub-object from the container without deleting it.
Declaration
bool Unpack(IEntity subobj)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | subobj | The sub-object to unpack. |
Returns
Type | Description |
---|---|
System.Boolean |
|
UnpackAll()
Removes all packed sub-objects without unreferencing them. Use with caution.
Declaration
bool UnpackAll()
Returns
Type | Description |
---|---|
System.Boolean |
|