IColorPalette
trait · ferroui-controls-color-picker · v0.5.0
trait IColorPalette
Interface to define a color palette.
Members
color_count
fn color_count(self: &Self) -> i32
Gets the total number of colors in this palette. A color is not necessarily a single value and may be composed of several shades.
Represents total columns in a table.
shade_count
fn shade_count(self: &Self) -> i32
Gets the total number of shades for each color in this palette. Shades are usually a variation of the color lightening or darkening it.
Represents total rows in a table.
get_color
fn get_color(self: &Self, color_index: i32, shade_index: i32) -> Color
Gets a color in the palette by index.
color_index is the index of the color in the palette; the index must
be between zero and color_count.
shade_index is the index of the color shade in the palette; the
index must be between zero and shade_count.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.