pub trait IconExt:
IsA<Icon>
+ Sealed
+ 'static {
Show 14 methods
// Provided methods
fn filename(&self) -> Option<GString> { ... }
fn height(&self) -> u32 { ... }
fn kind(&self) -> IconKind { ... }
fn name(&self) -> Option<GString> { ... }
fn scale(&self) -> u32 { ... }
fn url(&self) -> Option<GString> { ... }
fn width(&self) -> u32 { ... }
fn set_filename(&self, filename: &str) { ... }
fn set_height(&self, height: u32) { ... }
fn set_kind(&self, kind: IconKind) { ... }
fn set_name(&self, name: &str) { ... }
fn set_scale(&self, scale: u32) { ... }
fn set_url(&self, url: &str) { ... }
fn set_width(&self, width: u32) { ... }
}
Provided Methods§
sourcefn filename(&self) -> Option<GString>
fn filename(&self) -> Option<GString>
§Returns
The absolute path for the icon on disk.
This is only set for icons of kind IconKind::Local
or
IconKind::Cached
.
sourcefn name(&self) -> Option<GString>
fn name(&self) -> Option<GString>
§Returns
the stock name of the icon. In case the icon is not of kind “stock”, the basename of the icon filename or URL is returned.
sourcefn url(&self) -> Option<GString>
fn url(&self) -> Option<GString>
Gets the icon URL, pointing at a remote location. HTTPS and FTP urls are allowed.
This property is only set for icons of type IconKind::Remote
§Returns
the URL
sourcefn set_filename(&self, filename: &str)
fn set_filename(&self, filename: &str)
sourcefn set_height(&self, height: u32)
fn set_height(&self, height: u32)
Object Safety§
This trait is not object safe.