• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Class Button

Inheritance
System.Object
Control
Button
Inherited Members
Control.Position
Control.Width
Control.Height
Control.Bounds
Control.ForeColor
Control.BackColor
Control.BorderColor
Control.BorderWidth
Control.State
Control.Background
Control.TabIndex
Control.TextFont
Control.Text
Control.OnTextChanged
Control.HighlightOnHover
Control.UIOffset
Control.Draw(Renderer)
Control.Update()
Control.ControlClicked
Control.ControlHovered
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno.UI.Controls
Assembly: Inferno.Desktop.dll
Syntax
public class Button : Control

Constructors

| Improve this Doc View Source

Button(Vector2, String, Font, Color, Color, Color, Int32, Sprite, Boolean)

Create a new Button

Declaration
public Button(Vector2 position, string text, Font font, Color textColor, Color backgroundColor, Color borderColor, int borderWidth = 1, Sprite backgroundImage = null, bool highlightOnHover = true)
Parameters
Type Name Description
Vector2 position
System.String text
Font font
Color textColor
Color backgroundColor
Color borderColor
System.Int32 borderWidth
Sprite backgroundImage
System.Boolean highlightOnHover
| Improve this Doc View Source

Button(Vector2, String, Font, Color, Boolean)

Create a new Button without a background or border

Declaration
public Button(Vector2 position, string text, Font font, Color textColor, bool highlightOnHover = true)
Parameters
Type Name Description
Vector2 position
System.String text
Font font
Color textColor
System.Boolean highlightOnHover
| Improve this Doc View Source

Button(Vector2, String, Font, Boolean)

Create a new Button without a background or border and with a default font color of black

Declaration
public Button(Vector2 position, string text, Font font, bool highlightOnHover = true)
Parameters
Type Name Description
Vector2 position
System.String text
Font font
System.Boolean highlightOnHover
  • Improve this Doc
  • View Source
Back to top Generated by DocFX