Class VisualBase
Definition
- Assembly:
- Tizen.NUI.dll
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.
public class VisualBase : BaseHandle, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceVisualBase()
Creates an empty visual handle.
Declaration
public VisualBase()
Properties
View SourceCreation
Creates the property map representing this visual.
Declaration
public PropertyMap Creation { get; }
Property Value
Type | Description |
---|---|
PropertyMap |
DepthIndex
The depth index of this visual.
Declaration
public int DepthIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
The name of the visual.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceDispose(DisposeTypes)
Dispose.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | The dispose type |
Overrides
View SourceGetHeightForWidth(float)
Returns the height for a given width.
Declaration
public float GetHeightForWidth(float width)
Parameters
Type | Name | Description |
---|---|---|
float | width | The width to use. |
Returns
Type | Description |
---|---|
float | The height based on the width. |
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
public void GetNaturalSize(Size2D naturalSize)
Parameters
Type | Name | Description |
---|---|---|
Size2D | naturalSize | The visual's natural size. |
GetWidthForHeight(float)
Returns the width for a given height.
Declaration
public float GetWidthForHeight(float height)
Parameters
Type | Name | Description |
---|---|---|
float | height | The height to use. |
Returns
Type | Description |
---|---|
float | The width based on the height. |
SetTransformAndSize(PropertyMap, Vector2)
Sets the transform and the control size.
Declaration
public 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. |