Class Layer
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
Layers provide a mechanism for overlaying groups of actors on top of each other.
public class Layer : Container, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
-
Tizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementLayer
- Implements
Constructors
View SourceLayer()
Creates a Layer object.
Declaration
public Layer()
API Level: 3
Properties
View SourceBehavior
Layer behavior, type String (Layer.LayerBehavior).
Declaration
public Layer.LayerBehavior Behavior { get; set; }
Property Value
Type | Description |
---|---|
Layer.LayerBehavior |
API Level: 3
View SourceChildCount
Get the number of children held by the layer.
Declaration
public uint ChildCount { get; }
Property Value
Type | Description |
---|---|
UInt32 |
API Level: 3
View SourceDepth
Queries the depth of the layer.
0 is the bottommost layer, higher number is on the top.
Declaration
public uint Depth { get; }
Property Value
Type | Description |
---|---|
UInt32 |
API Level: 3
View SourceName
Gets or sets the layer's name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceOpacity
Retrieves and sets the layer's opacity.
Declaration
public float Opacity { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourceViewport
Sets the viewport (in window coordinates), type rectangle. The contents of the layer will not be visible outside this box, when ViewportEnabled is true.
Declaration
public Rectangle Viewport { get; set; }
Property Value
Type | Description |
---|---|
Rectangle |
API Level: 4
View SourceVisibility
Retrieves and sets the layer's visibility.
Declaration
public bool Visibility { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
Methods
View SourceAdd(View)
Adds a child view to this layer.
Declaration
public override void Add(View child)
Parameters
Type | Name | Description |
---|---|---|
View | child |
Overrides
See Also
API Level: 4
View SourceFindChildById(UInt32)
Search through this layer's hierarchy for a view with the given unique ID.
Declaration
public View FindChildById(uint id)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | id | The id of the child to find |
Returns
Type | Description |
---|---|
View | A handle to the view if found, or an empty handle if not. |
Remarks
The actor itself is also considered in the search.
API Level: 3
Precondition: This layer (the parent) has been initialized.
View SourceGetChildAt(UInt32)
Retrieves a child view by the index.
Declaration
public override View GetChildAt(uint index)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | The index of the child to retrieve. |
Returns
Type | Description |
---|---|
View | The view for the given index or empty handle if children not initialized. |
Overrides
API Level: 4
Precondition: The view has been initialized.
View SourceGetChildCount()
Get the child count of the layer.
Declaration
public override uint GetChildCount()
Returns
Type | Description |
---|---|
UInt32 | The child count of the layer. |
Overrides
API Level: 4
View SourceGetParent()
Get parent of the layer.
Declaration
public override Container GetParent()
Returns
Type | Description |
---|---|
Container | The view's container |
Overrides
API Level: 4
View SourceLower()
Decrements the depth of the layer.
Declaration
public void Lower()
API Level: 3
View SourceLowerToBottom()
Lowers the layer to the bottom.
Declaration
public void LowerToBottom()
API Level: 3
View SourceMoveAbove(Layer)
Moves the layer directly above the given layer.
After the call, this layer's depth will be immediately above target.
Declaration
public void MoveAbove(Layer target)
Parameters
Type | Name | Description |
---|---|---|
Layer | target | The layer to get on top of. |
API Level: 3
View SourceMoveBelow(Layer)
Moves the layer directly below the given layer.
After the call, this layer's depth will be immediately below target.
Declaration
public void MoveBelow(Layer target)
Parameters
Type | Name | Description |
---|---|---|
Layer | target | The layer to get below of. |
API Level: 3
View SourceRaise()
Increments the depth of the layer.
Declaration
public void Raise()
API Level: 3
View SourceRaiseToTop()
Raises the layer to the top.
Declaration
public void RaiseToTop()
API Level: 3
View SourceRemove(View)
Removes a child view from this layer. If the view was not a child of this layer, this is a no-op.
Declaration
public override void Remove(View child)
Parameters
Type | Name | Description |
---|---|---|
View | child |