Interface Efl.Gfx.IStack
Efl graphics stack interface (Since EFL 1.22)
Syntax
public interface IStack : IWrapper, IDisposable
Properties
Above
Get the Evas object stacked right above this object.
This function will traverse layers in its search, if there are objects on layers above the one obj
is placed at.
See also Efl.Gfx.IStack.Layer and Efl.Gfx.IStack.GetBelow() (Since EFL 1.22)
Declaration
IStack Above { get; }
Property Value
Type | Description |
---|---|
Efl.Gfx.IStack | The Efl.Gfx.IStack object directly below |
Below
The Evas object stacked right below this object.
This function will traverse layers in its search, if there are objects on layers below the one obj
is placed at.
See also Efl.Gfx.IStack.Layer. (Since EFL 1.22)
Declaration
IStack Below { get; }
Property Value
Type | Description |
---|---|
Efl.Gfx.IStack | The Efl.Gfx.IStack object directly below |
Layer
The layer of its canvas that the given object will be part of. If you don't use this property, you'll be dealing with a unique layer of objects (the default one). Additional layers are handy when you don't want a set of objects to interfere with another set with regard to stacking. Two layers are completely disjoint in that matter.
This is a low-level function, which you'd be using when something should be always on top, for example.
Warning: Don't change the layer of smart objects' children. Smart objects have a layer of their own, which should contain all their child objects. (Since EFL 1.22)
Declaration
short Layer { get; set; }
Property Value
Type | Description |
---|---|
System.Int16 | The number of the layer to place the object on. Must be between Efl.Gfx.Constants.StackLayerMin and Efl.Gfx.Constants.StackLayerMax. |
Methods
GetAbove()
Get the Evas object stacked right above this object.
This function will traverse layers in its search, if there are objects on layers above the one obj
is placed at.
See also Efl.Gfx.IStack.Layer and Efl.Gfx.IStack.GetBelow() (Since EFL 1.22)
Declaration
IStack GetAbove()
Returns
Type | Description |
---|---|
Efl.Gfx.IStack | The Efl.Gfx.IStack object directly below |
GetBelow()
The Evas object stacked right below this object.
This function will traverse layers in its search, if there are objects on layers below the one obj
is placed at.
See also Efl.Gfx.IStack.Layer. (Since EFL 1.22)
Declaration
IStack GetBelow()
Returns
Type | Description |
---|---|
Efl.Gfx.IStack | The Efl.Gfx.IStack object directly below |
GetLayer()
The layer of its canvas that the given object will be part of. If you don't use this property, you'll be dealing with a unique layer of objects (the default one). Additional layers are handy when you don't want a set of objects to interfere with another set with regard to stacking. Two layers are completely disjoint in that matter.
This is a low-level function, which you'd be using when something should be always on top, for example.
Warning: Don't change the layer of smart objects' children. Smart objects have a layer of their own, which should contain all their child objects. (Since EFL 1.22)
Declaration
short GetLayer()
Returns
Type | Description |
---|---|
System.Int16 | The number of the layer to place the object on. Must be between Efl.Gfx.Constants.StackLayerMin and Efl.Gfx.Constants.StackLayerMax. |
LowerToBottom()
Lower obj
to the bottom of its layer.
obj
will, then, be the lowest one in the layer it belongs to. Objects on other layers won't get touched.
See also Efl.Gfx.IStack.StackAbove(Efl.Gfx.IStack), Efl.Gfx.IStack.StackBelow(Efl.Gfx.IStack) and Efl.Gfx.IStack.RaiseToTop() (Since EFL 1.22)
Declaration
void LowerToBottom()
RaiseToTop()
Raise obj
to the top of its layer.
obj
will, then, be the highest one in the layer it belongs to. Object on other layers won't get touched.
See also Efl.Gfx.IStack.StackAbove(Efl.Gfx.IStack), Efl.Gfx.IStack.StackBelow(Efl.Gfx.IStack) and Efl.Gfx.IStack.LowerToBottom() (Since EFL 1.22)
Declaration
void RaiseToTop()
SetLayer(Int16)
The layer of its canvas that the given object will be part of. If you don't use this property, you'll be dealing with a unique layer of objects (the default one). Additional layers are handy when you don't want a set of objects to interfere with another set with regard to stacking. Two layers are completely disjoint in that matter.
This is a low-level function, which you'd be using when something should be always on top, for example.
Warning: Don't change the layer of smart objects' children. Smart objects have a layer of their own, which should contain all their child objects. (Since EFL 1.22)
Declaration
void SetLayer(short l)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | l | The number of the layer to place the object on. Must be between Efl.Gfx.Constants.StackLayerMin and Efl.Gfx.Constants.StackLayerMax. |
StackAbove(IStack)
Stack obj
immediately above
Objects, in a given canvas, are stacked in the order they're added. This means that, if they overlap, the highest ones will cover the lowest ones, in that order. This function is a way to change the stacking order for the objects.
Its intended to be used with objects belonging to the same layer in a given canvas, otherwise it will fail (and accomplish nothing).
If you have smart objects on your canvas and obj
is a member of one of them, then above
must also be a member of the same smart object.
Similarly, if obj
is not a member of a smart object, above
must not be either.
See also Efl.Gfx.IStack.GetLayer(), Efl.Gfx.IStack.SetLayer(System.Int16) and Efl.Gfx.IStack.StackBelow(Efl.Gfx.IStack) (Since EFL 1.22)
Declaration
void StackAbove(IStack above)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IStack | above | The object above which to stack |
StackBelow(IStack)
Stack obj
immediately below
Objects, in a given canvas, are stacked in the order they're added. This means that, if they overlap, the highest ones will cover the lowest ones, in that order. This function is a way to change the stacking order for the objects.
Its intended to be used with objects belonging to the same layer in a given canvas, otherwise it will fail (and accomplish nothing).
If you have smart objects on your canvas and obj
is a member of one of them, then below
must also be a member of the same smart object.
Similarly, if obj
is not a member of a smart object, below
must not be either.
See also Efl.Gfx.IStack.GetLayer(), Efl.Gfx.IStack.SetLayer(System.Int16) and Efl.Gfx.IStack.StackBelow(Efl.Gfx.IStack) (Since EFL 1.22)
Declaration
void StackBelow(IStack below)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IStack | below | The object below which to stack |
Events
StackingChangedEvent
Object stacking was changed. (Since EFL 1.22)
Declaration
event EventHandler StackingChangedEvent
Event Type
Type | Description |
---|---|
System.EventHandler |