Struct gtk4::builders::IconThemeBuilder
source · pub struct IconThemeBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct IconTheme
objects.
Implementations§
source§impl IconThemeBuilder
impl IconThemeBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new IconThemeBuilder
.
sourcepub fn display(self, display: &impl IsA<Display>) -> Self
pub fn display(self, display: &impl IsA<Display>) -> Self
The display that this icon theme object is attached to.
sourcepub fn resource_path(self, resource_path: Vec<String>) -> Self
pub fn resource_path(self, resource_path: Vec<String>) -> Self
Resource paths that will be looked at when looking for icons, similar to search paths.
The resources are considered as part of the hicolor icon theme
and must be located in subdirectories that are defined in the
hicolor icon theme, such as @path/16x16/actions/run.png
.
Icons that are directly placed in the resource path instead
of a subdirectory are also considered as ultimate fallback.
sourcepub fn search_path(self, search_path: Vec<String>) -> Self
pub fn search_path(self, search_path: Vec<String>) -> Self
The search path for this icon theme.
When looking for icons, GTK will search for a subdirectory of one or more of the directories in the search path with the same name as the icon theme containing an index.theme file. (Themes from multiple of the path elements are combined to allow themes to be extended by adding icons in the user’s home directory.)
sourcepub fn theme_name(self, theme_name: &str) -> Self
pub fn theme_name(self, theme_name: &str) -> Self
The name of the icon theme that is being used.
Unless set to a different value, this will be the value of
the GtkSettings:gtk-icon-theme-name
property of the Settings
object associated to the display of the icontheme object.
Trait Implementations§
source§impl Clone for IconThemeBuilder
impl Clone for IconThemeBuilder
source§fn clone(&self) -> IconThemeBuilder
fn clone(&self) -> IconThemeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more