Class Texture2DHelper
Implements helper classes for arrow and check box texture generator
Inheritance
System.Object
Texture2DHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public static class Texture2DHelper
Methods
GenerateArrow(Single, ArrowDirection, Single)
Generates the arrow texture - special usage for scroll bar buttons or combo box
Declaration
public static TextureBase GenerateArrow(float size, ArrowDirection direction, float dpiScale)
Parameters
Type | Name | Description |
---|---|---|
System.Single | size | The size. |
EmptyKeys.UserInterface.Media.ArrowDirection | direction | The direction. |
System.Single | dpiScale | The dpi scale. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Media.TextureBase |
GenerateCheckbox(Single, Single)
Generates the check box texture
Declaration
public static TextureBase GenerateCheckbox(float size, float dpiScale)
Parameters
Type | Name | Description |
---|---|---|
System.Single | size | The size. |
System.Single | dpiScale | The dpi scale. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Media.TextureBase |