Class Button3d
A button control that is drawn with a shadow.
Inherited Members
Namespace: SadConsole.UI.Controls
Assembly: SadConsole.dll
Syntax
[DataContract]
public class Button3d : ButtonBase
Constructors
Button3d(int, int)
Creates an instance of the button control with the specified width and height.
Declaration
public Button3d(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
int | width | Width of the control. |
int | height | Height of the control (default is 1). |
Methods
CreateControlSurface()
Generates the surface to be used by this control. This method is called internally to assign the Surface property a value.
Declaration
protected override ICellSurface CreateControlSurface()
Returns
Type | Description |
---|---|
ICellSurface | A surface that should be assigned to the Surface property. |
Overrides
RefreshThemeStateColors(Colors)
Updates the ThemeState by calling RefreshTheme(Colors) with the provided colors. Override this method to adjust how colors are used by the ThemeState.
Declaration
protected override void RefreshThemeStateColors(Colors colors)
Parameters
Type | Name | Description |
---|---|---|
Colors | colors | The colors to apply to the theme state. |
Overrides
UpdateAndRedraw(TimeSpan)
Redraws the control if applicable.
Declaration
public override void UpdateAndRedraw(TimeSpan time)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | time | The duration of thecurrent frame. |