pub trait IconBundleMethods: GDIObjectMethods {
// Provided methods
fn add_icon<I: IconMethods>(&self, icon: &I) { ... }
fn get_icon_size<S: SizeMethods>(&self, size: &S, flags: c_int) -> Icon { ... }
fn get_icon_coord(&self, size: c_int, flags: c_int) -> Icon { ... }
fn get_icon_of_exact_size<S: SizeMethods>(&self, size: &S) -> Icon { ... }
fn get_icon_count(&self) -> usize { ... }
fn get_icon_by_index(&self, n: usize) -> Icon { ... }
fn is_empty(&self) -> bool { ... }
}
Expand description
This trait represents C++ wxIconBundle
class’s methods and inheritance.
See IconBundleIsOwned
documentation for the class usage.
Provided Methods§
Sourcefn add_icon<I: IconMethods>(&self, icon: &I)
fn add_icon<I: IconMethods>(&self, icon: &I)
Adds the icon to the collection; if the collection already contains an icon with the same width and height, it is replaced by the new one.
Sourcefn get_icon_size<S: SizeMethods>(&self, size: &S, flags: c_int) -> Icon
fn get_icon_size<S: SizeMethods>(&self, size: &S, flags: c_int) -> Icon
Returns the icon with the given size.
Sourcefn get_icon_coord(&self, size: c_int, flags: c_int) -> Icon
fn get_icon_coord(&self, size: c_int, flags: c_int) -> Icon
Same as.
Sourcefn get_icon_of_exact_size<S: SizeMethods>(&self, size: &S) -> Icon
fn get_icon_of_exact_size<S: SizeMethods>(&self, size: &S) -> Icon
Returns the icon with exactly the given size or wxNullIcon if this size is not available.
Sourcefn get_icon_count(&self) -> usize
fn get_icon_count(&self) -> usize
return the number of available icons
Sourcefn get_icon_by_index(&self, n: usize) -> Icon
fn get_icon_by_index(&self, n: usize) -> Icon
return the icon at index (must be < GetIconCount())
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.