Show / Hide Table of Contents

Class NativeItem

Basic Rockstar-like item.

Inheritance
object
NativeItem
NativeCheckboxItem
NativeSeparatorItem
NativeSlidableItem
NativeSubmenuItem
Implements
IDrawable
Inherited Members
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 NativeItem : IDrawable

Constructors

View Source

NativeItem(string)

Creates a new NativeItem.

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

The title of the item.

View Source

NativeItem(string, string)

Creates a new NativeItem.

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

The title of the item.

string description

The description of the item.

View Source

NativeItem(string, string, string)

Creates a new NativeItem.

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

The title of the item.

string description

The description of the item.

string altTitle

The alternative title of the item, shown on the right.

Fields

View Source

altTitle

The alternate title of the menu.

Declaration
protected ScaledText altTitle
Field Value
Type Description
ScaledText
View Source

badgeLeft

The left badge of the Item.

Declaration
protected I2Dimensional badgeLeft
Field Value
Type Description
I2Dimensional
View Source

badgeRight

The left badge of the Item.

Declaration
protected I2Dimensional badgeRight
Field Value
Type Description
I2Dimensional
View Source

lastPosition

The last known Item Position.

Declaration
protected PointF lastPosition
Field Value
Type Description
PointF
View Source

lastSelected

The last known Item Selection.

Declaration
protected bool lastSelected
Field Value
Type Description
bool
View Source

lastSize

The last known Item Size.

Declaration
protected SizeF lastSize
Field Value
Type Description
SizeF
View Source

title

The title of the object.

Declaration
protected ScaledText title
Field Value
Type Description
ScaledText

Properties

View Source

AltTitle

The alternative title of the item shown on the right.

Declaration
public string AltTitle { get; set; }
Property Value
Type Description
string
View Source

AltTitleFont

The font of alternative title item shown on the right.

Declaration
public Font AltTitleFont { get; set; }
Property Value
Type Description
Font
View Source

Colors

The different colors that change dynamically when the item is used.

Declaration
public ColorSet Colors { get; set; }
Property Value
Type Description
ColorSet
View Source

Description

The description of the item.

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

Enabled

If this item can be used or not.

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

IsHovered

If this item is being hovered.

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

LeftBadge

The Left badge of the Item.

Declaration
public I2Dimensional LeftBadge { get; set; }
Property Value
Type Description
I2Dimensional
View Source

LeftBadgeSet

The Left badge set of the Item.

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

Panel

The Panel associated to this NativeItem.

Declaration
public NativePanel Panel { get; set; }
Property Value
Type Description
NativePanel
View Source

RightBadge

The Right badge of the Item.

Declaration
public I2Dimensional RightBadge { get; set; }
Property Value
Type Description
I2Dimensional
View Source

RightBadgeSet

The Right badge set of the Item.

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

Tag

Object that contains data about this Item.

Declaration
public virtual object Tag { get; set; }
Property Value
Type Description
object
View Source

Title

The title of the item.

Declaration
public string Title { get; set; }
Property Value
Type Description
string
View Source

TitleFont

The font of title item.

Declaration
public Font TitleFont { get; set; }
Property Value
Type Description
Font
View Source

UseCustomBackground

If a custom colored background should be used.

Declaration
public bool UseCustomBackground { get; set; }
Property Value
Type Description
bool

Methods

View Source

Draw()

Draws the item.

Declaration
public virtual void Draw()
View Source

OnActivated(object)

Triggers the Activated event.

Declaration
protected void OnActivated(object sender)
Parameters
Type Name Description
object sender

The source of the event.

View Source

OnSelected(object, SelectedEventArgs)

Triggers the Selected event.

Declaration
protected void OnSelected(object sender, SelectedEventArgs e)
Parameters
Type Name Description
object sender

The source of the event.

SelectedEventArgs e

A SelectedEventArgs with the index information.

View Source

Recalculate()

Recalculates the item with the last known values.

Declaration
protected void Recalculate()
View Source

Recalculate(PointF, SizeF, bool)

Recalculates the item positions and sizes with the specified values.

Declaration
public virtual 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.

View Source

UpdateColors()

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

Declaration
public virtual void UpdateColors()

Events

View Source

Activated

Event triggered when the item is activated.

Declaration
public event EventHandler Activated
Event Type
Type Description
EventHandler
View Source

EnabledChanged

Event triggered when the Enabled property is changed.

Declaration
public event EventHandler EnabledChanged
Event Type
Type Description
EventHandler
View Source

Selected

Event triggered when the item is selected.

Declaration
public event SelectedEventHandler Selected
Event Type
Type Description
SelectedEventHandler

Implements

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