pub trait ColourDatabaseMethods: WxRustMethods {
// Provided methods
fn add_colour<C: ColourMethods>(&self, colour_name: &str, colour: &C) { ... }
fn find(&self, colour_name: &str) -> Colour { ... }
fn find_name<C: ColourMethods>(&self, colour: &C) -> String { ... }
}Expand description
This trait represents C++ wxColourDatabase class’s methods and inheritance.
See ColourDatabaseIsOwned documentation for the class usage.
Provided Methods§
Sourcefn add_colour<C: ColourMethods>(&self, colour_name: &str, colour: &C)
fn add_colour<C: ColourMethods>(&self, colour_name: &str, colour: &C)
Adds a colour to the database.
Sourcefn find_name<C: ColourMethods>(&self, colour: &C) -> String
fn find_name<C: ColourMethods>(&self, colour: &C) -> String
Finds a colour name given the colour.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.