Show / Hide Table of Contents

Class NativeCheckboxItem

Rockstar-like checkbox item.

Inheritance
object
NativeItem
NativeCheckboxItem
Implements
IDrawable
Inherited Members
NativeItem.title
NativeItem.lastPosition
NativeItem.lastSize
NativeItem.lastSelected
NativeItem.badgeLeft
NativeItem.badgeRight
NativeItem.altTitle
NativeItem.OnSelected(object, SelectedEventArgs)
NativeItem.OnActivated(object)
NativeItem.Recalculate()
NativeItem.Enabled
NativeItem.Tag
NativeItem.Title
NativeItem.AltTitle
NativeItem.TitleFont
NativeItem.AltTitleFont
NativeItem.Description
NativeItem.LeftBadge
NativeItem.LeftBadgeSet
NativeItem.RightBadge
NativeItem.RightBadgeSet
NativeItem.Colors
NativeItem.Panel
NativeItem.UseCustomBackground
NativeItem.IsHovered
NativeItem.Selected
NativeItem.Activated
NativeItem.EnabledChanged
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeCheckboxItem : NativeItem, IDrawable

Constructors

View Source

NativeCheckboxItem(string)

Creates a new NativeCheckboxItem.

Declaration
public NativeCheckboxItem(string title)
Parameters
Type Name Description
string title

The title used for the Item.

View Source

NativeCheckboxItem(string, bool)

Creates a new NativeCheckboxItem.

Declaration
public NativeCheckboxItem(string title, bool check)
Parameters
Type Name Description
string title

The title used for the Item.

bool check

If the checkbox should be enabled or not.

View Source

NativeCheckboxItem(string, string)

Creates a new NativeCheckboxItem.

Declaration
public NativeCheckboxItem(string title, string description)
Parameters
Type Name Description
string title

The title used for the Item.

string description

The description of the Item.

View Source

NativeCheckboxItem(string, string, bool)

Creates a new NativeCheckboxItem.

Declaration
public NativeCheckboxItem(string title, string description, bool check)
Parameters
Type Name Description
string title

The title used for the Item.

string description

The description of the Item.

bool check

If the checkbox should be enabled or not.

Fields

View Source

DefaultCheckedSet

The default checkbox textures when the checkbox is checked.

Declaration
public static readonly BadgeSet DefaultCheckedSet
Field Value
Type Description
BadgeSet
View Source

DefaultUncheckedSet

The default checkbox textures when the checkbox is not checked.

Declaration
public static readonly BadgeSet DefaultUncheckedSet
Field Value
Type Description
BadgeSet
View Source

check

The image shown on the checkbox.

Declaration
protected ScaledTexture check
Field Value
Type Description
ScaledTexture

Properties

View Source

Checked

If this item is checked or not.

Declaration
public bool Checked { get; set; }
Property Value
Type Description
bool
View Source

CheckedSet

The textures used when the checkbox is checked.

Declaration
public BadgeSet CheckedSet { get; set; }
Property Value
Type Description
BadgeSet
View Source

UncheckedSet

The textures used when the checkbox is unchecked.

Declaration
public BadgeSet UncheckedSet { get; set; }
Property Value
Type Description
BadgeSet

Methods

View Source

Draw()

Draws the Checkbox on the screen.

Declaration
public override void Draw()
Overrides
NativeItem.Draw()
View Source

Recalculate(PointF, SizeF, bool)

Recalculates the item positions and sizes with the specified values.

Declaration
public override void Recalculate(PointF pos, SizeF size, bool selected)
Parameters
Type Name Description
PointF pos

The position of the item.

SizeF size

The size of the item.

bool selected

If this item has been selected.

Overrides
NativeItem.Recalculate(PointF, SizeF, bool)
View Source

UpdateColors()

Updates the colors of the LemonUI.Elements from the Colors ColorSet.

Declaration
public override void UpdateColors()
Overrides
NativeItem.UpdateColors()
View Source

UpdateTexture(bool)

Updates the texture of the sprite.

Declaration
protected void UpdateTexture(bool selected)
Parameters
Type Name Description
bool selected

Events

View Source

CheckboxChanged

Event triggered when the checkbox changes.

Declaration
public event EventHandler CheckboxChanged
Event Type
Type Description
EventHandler

Implements

IDrawable
  • View Source
In this article
Back to top Generated by DocFX