Show / Hide Table of Contents

Class NativeColorPanel

A Panel that allows you to select a Color.

Inheritance
object
NativePanel
NativeColorPanel
Implements
IEnumerable<NativeColorData>
IEnumerable
Inherited Members
NativePanel.Visible
NativePanel.Background
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 NativeColorPanel : NativePanel, IEnumerable<NativeColorData>, IEnumerable

Constructors

View Source

NativeColorPanel()

Creates a color panel with no Items or Title.

Declaration
public NativeColorPanel()
View Source

NativeColorPanel(string, params NativeColorData[])

Creates a Panel with a specific Title and set of Colors.

Declaration
public NativeColorPanel(string title, params NativeColorData[] colors)
Parameters
Type Name Description
string title

The title of the panel.

NativeColorData[] colors

The colors of the panel.

Fields

View Source

DefaultSound

The default sound used for the Color Navigation.

Declaration
public static readonly Sound DefaultSound
Field Value
Type Description
Sound

Properties

View Source

Clickable

If the item has controls that can be clicked.

Declaration
public override bool Clickable { get; }
Property Value
Type Description
bool
Overrides
NativePanel.Clickable
View Source

Colors

The colors shown on this Panel.

Declaration
public List<NativeColorData> Colors { get; }
Property Value
Type Description
List<NativeColorData>
View Source

MaxItems

THe maximum number of items shown on the screen.

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

Opacity

The opacity value of the color.

Declaration
public int Opacity { get; set; }
Property Value
Type Description
int
Remarks

The value needs to be set between 100 and 0. It will return -1 if ShowOpacity is set to false.

View Source

SelectedColor

The currently selected color.

Declaration
public Color SelectedColor { get; }
Property Value
Type Description
Color
Remarks

If ShowOpacity is set to true.

View Source

SelectedIndex

The index of the currently selected Color.

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

SelectedItem

Returns the currently selected NativeColorData.

Declaration
public NativeColorData SelectedItem { get; }
Property Value
Type Description
NativeColorData
View Source

ShowCount

If the count of items should be shown as part of the title.

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

ShowOpacity

If the Opacity selector should be shown.

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

Sound

The sound played when the item is changed.

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

Title

The Title used for the Panel when TitleStyle is set to Simple.

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

TitleStyle

The style of the Panel Title.

Declaration
public ColorTitleStyle TitleStyle { get; set; }
Property Value
Type Description
ColorTitleStyle

Methods

View Source

Add(NativeColorData)

Adds a color to the Panel.

Declaration
public void Add(NativeColorData color)
Parameters
Type Name Description
NativeColorData color

The color to add.

View Source

Clear()

Removes all of the colors from the Panel.

Declaration
public void Clear()
View Source

Contains(NativeColorData)

Checks if the Color Data is present on this Panel.

Declaration
public void Contains(NativeColorData color)
Parameters
Type Name Description
NativeColorData color

The Color Data to check.

View Source

GetEnumerator()

Declaration
public IEnumerator<NativeColorData> GetEnumerator()
Returns
Type Description
IEnumerator<NativeColorData>
View Source

Next()

Moves to the Next Color.

Declaration
public void Next()
View Source

Previous()

Moves to the Previous Color.

Declaration
public void Previous()
View Source

Process()

Draws the Color Panel.

Declaration
public override void Process()
Overrides
NativePanel.Process()
View Source

Recalculate(PointF, float)

Recalculates the position of the Color Panel.

Declaration
public override void Recalculate(PointF position, float width)
Parameters
Type Name Description
PointF position

The position of the panel.

float width

The width of the menu.

Overrides
NativePanel.Recalculate(PointF, float)
View Source

Remove(NativeColorData)

Removes a color from the panel.

Declaration
public void Remove(NativeColorData color)
Parameters
Type Name Description
NativeColorData color

The color to remove.

View Source

Remove(Func<NativeColorData, bool>)

Removes all of the

Declaration
public void Remove(Func<NativeColorData, bool> func)
Parameters
Type Name Description
Func<NativeColorData, bool> func

Implements

IEnumerable<T>
IEnumerable
  • View Source
In this article
Back to top Generated by DocFX