Class VisualBase
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
Sets whether the actor should be focusable by keyboard navigation.
Visuals reuse geometry, shader etc. across controls. They ensure that the renderer and texture sets exist only when control is on window.
Each visual also responds to actor size and color change, and provides clipping at the renderer level.
C#Copypublic class VisualBase : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic VisualBase()
API Level: 3
Properties
Declaration
C#Copypublic PropertyMap Creation { get; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
Declaration
C#Copypublic int DepthIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Declaration
C#Copypublic string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 3
Methods
Declaration
C#Copypublic float GetHeightForWidth(float width)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | The width to use. |
Returns
Type | Description |
---|---|
System.Single | The height based on the width. |
API Level: 3
GetNaturalSize(Size2D)
Returns the natural size of the visual.
Deriving classes stipulate the natural size and by default a visual has a zero natural size.
A visual may not actually have a natural size until it has been placed on window and acquired all it's resources.
Declaration
C#Copypublic void GetNaturalSize(Size2D naturalSize)
Parameters
Type | Name | Description |
---|---|---|
Size2D | naturalSize | The visual's natural size. |
API Level: 3
Declaration
C#Copypublic float GetWidthForHeight(float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | height | The height to use. |
Returns
Type | Description |
---|---|
System.Single | The width based on the height. |
API Level: 3
Declaration
C#Copypublic void SetTransformAndSize(PropertyMap transform, Vector2 controlSize)
Parameters
Type | Name | Description |
---|---|---|
PropertyMap | transform | A property map describing the transform. |
Vector2 | controlSize | The size of the parent control for visuals that need to scale internally. |