Struct gtk4::builders::SettingsBuilder
source · [−]pub struct SettingsBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Settings
objects.
Implementations
sourceimpl SettingsBuilder
impl SettingsBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SettingsBuilder
.
pub fn gtk_alternative_sort_arrows(
self,
gtk_alternative_sort_arrows: bool
) -> Self
pub fn gtk_application_prefer_dark_theme(
self,
gtk_application_prefer_dark_theme: bool
) -> Self
pub fn gtk_cursor_aspect_ratio(self, gtk_cursor_aspect_ratio: f64) -> Self
pub fn gtk_cursor_blink(self, gtk_cursor_blink: bool) -> Self
pub fn gtk_cursor_blink_time(self, gtk_cursor_blink_time: i32) -> Self
pub fn gtk_cursor_blink_timeout(self, gtk_cursor_blink_timeout: i32) -> Self
pub fn gtk_cursor_theme_name(self, gtk_cursor_theme_name: &str) -> Self
pub fn gtk_cursor_theme_size(self, gtk_cursor_theme_size: i32) -> Self
pub fn gtk_decoration_layout(self, gtk_decoration_layout: &str) -> Self
pub fn gtk_dialogs_use_header(self, gtk_dialogs_use_header: bool) -> Self
pub fn gtk_dnd_drag_threshold(self, gtk_dnd_drag_threshold: i32) -> Self
pub fn gtk_double_click_distance(self, gtk_double_click_distance: i32) -> Self
pub fn gtk_double_click_time(self, gtk_double_click_time: i32) -> Self
pub fn gtk_enable_accels(self, gtk_enable_accels: bool) -> Self
pub fn gtk_enable_animations(self, gtk_enable_animations: bool) -> Self
pub fn gtk_enable_event_sounds(self, gtk_enable_event_sounds: bool) -> Self
pub fn gtk_enable_input_feedback_sounds(
self,
gtk_enable_input_feedback_sounds: bool
) -> Self
pub fn gtk_enable_primary_paste(self, gtk_enable_primary_paste: bool) -> Self
pub fn gtk_entry_password_hint_timeout(
self,
gtk_entry_password_hint_timeout: u32
) -> Self
pub fn gtk_entry_select_on_focus(self, gtk_entry_select_on_focus: bool) -> Self
pub fn gtk_error_bell(self, gtk_error_bell: bool) -> Self
pub fn gtk_font_name(self, gtk_font_name: &str) -> Self
pub fn gtk_fontconfig_timestamp(self, gtk_fontconfig_timestamp: u32) -> Self
pub fn gtk_hint_font_metrics(self, gtk_hint_font_metrics: bool) -> Self
Available on crate feature
v4_6
only.pub fn gtk_icon_theme_name(self, gtk_icon_theme_name: &str) -> Self
pub fn gtk_im_module(self, gtk_im_module: &str) -> Self
pub fn gtk_label_select_on_focus(self, gtk_label_select_on_focus: bool) -> Self
pub fn gtk_long_press_time(self, gtk_long_press_time: u32) -> Self
pub fn gtk_overlay_scrolling(self, gtk_overlay_scrolling: bool) -> Self
pub fn gtk_print_backends(self, gtk_print_backends: &str) -> Self
pub fn gtk_print_preview_command(self, gtk_print_preview_command: &str) -> Self
pub fn gtk_recent_files_enabled(self, gtk_recent_files_enabled: bool) -> Self
pub fn gtk_recent_files_max_age(self, gtk_recent_files_max_age: i32) -> Self
pub fn gtk_shell_shows_desktop(self, gtk_shell_shows_desktop: bool) -> Self
pub fn gtk_sound_theme_name(self, gtk_sound_theme_name: &str) -> Self
pub fn gtk_split_cursor(self, gtk_split_cursor: bool) -> Self
pub fn gtk_theme_name(self, gtk_theme_name: &str) -> Self
pub fn gtk_titlebar_double_click(self, gtk_titlebar_double_click: &str) -> Self
pub fn gtk_titlebar_middle_click(self, gtk_titlebar_middle_click: &str) -> Self
pub fn gtk_titlebar_right_click(self, gtk_titlebar_right_click: &str) -> Self
pub fn gtk_xft_antialias(self, gtk_xft_antialias: i32) -> Self
pub fn gtk_xft_dpi(self, gtk_xft_dpi: i32) -> Self
pub fn gtk_xft_hinting(self, gtk_xft_hinting: i32) -> Self
pub fn gtk_xft_hintstyle(self, gtk_xft_hintstyle: &str) -> Self
pub fn gtk_xft_rgba(self, gtk_xft_rgba: &str) -> Self
Trait Implementations
sourceimpl Clone for SettingsBuilder
impl Clone for SettingsBuilder
sourcefn clone(&self) -> SettingsBuilder
fn clone(&self) -> SettingsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SettingsBuilder
impl Default for SettingsBuilder
sourcefn default() -> SettingsBuilder
fn default() -> SettingsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SettingsBuilder
impl Send for SettingsBuilder
impl Sync for SettingsBuilder
impl Unpin for SettingsBuilder
impl UnwindSafe for SettingsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more