pub struct SettingsBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct Settings objects.

Implementations§

source§

impl SettingsBuilder

source

pub fn gtk_alternative_button_order( self, gtk_alternative_button_order: bool ) -> Self

source

pub fn gtk_alternative_sort_arrows( self, gtk_alternative_sort_arrows: bool ) -> Self

source

pub fn gtk_application_prefer_dark_theme( self, gtk_application_prefer_dark_theme: bool ) -> Self

source

pub fn gtk_cursor_aspect_ratio(self, gtk_cursor_aspect_ratio: f64) -> Self

source

pub fn gtk_cursor_theme_name( self, gtk_cursor_theme_name: impl Into<GString> ) -> Self

source

pub fn gtk_cursor_theme_size(self, gtk_cursor_theme_size: i32) -> Self

source

pub fn gtk_decoration_layout( self, gtk_decoration_layout: impl Into<GString> ) -> Self

source

pub fn gtk_dialogs_use_header(self, gtk_dialogs_use_header: bool) -> Self

source

pub fn gtk_dnd_drag_threshold(self, gtk_dnd_drag_threshold: i32) -> Self

source

pub fn gtk_double_click_distance(self, gtk_double_click_distance: i32) -> Self

source

pub fn gtk_double_click_time(self, gtk_double_click_time: i32) -> Self

source

pub fn gtk_enable_accels(self, gtk_enable_accels: bool) -> Self

source

pub fn gtk_enable_animations(self, gtk_enable_animations: bool) -> Self

source

pub fn gtk_enable_event_sounds(self, gtk_enable_event_sounds: bool) -> Self

source

pub fn gtk_enable_input_feedback_sounds( self, gtk_enable_input_feedback_sounds: bool ) -> Self

source

pub fn gtk_enable_primary_paste(self, gtk_enable_primary_paste: bool) -> Self

source

pub fn gtk_entry_password_hint_timeout( self, gtk_entry_password_hint_timeout: u32 ) -> Self

source

pub fn gtk_entry_select_on_focus(self, gtk_entry_select_on_focus: bool) -> Self

source

pub fn gtk_error_bell(self, gtk_error_bell: bool) -> Self

source

pub fn gtk_font_name(self, gtk_font_name: impl Into<GString>) -> Self

source

pub fn gtk_fontconfig_timestamp(self, gtk_fontconfig_timestamp: u32) -> Self

source

pub fn gtk_icon_theme_name( self, gtk_icon_theme_name: impl Into<GString> ) -> Self

source

pub fn gtk_im_module(self, gtk_im_module: impl Into<GString>) -> Self

source

pub fn gtk_keynav_use_caret(self, gtk_keynav_use_caret: bool) -> Self

source

pub fn gtk_label_select_on_focus(self, gtk_label_select_on_focus: bool) -> Self

source

pub fn gtk_long_press_time(self, gtk_long_press_time: u32) -> Self

source

pub fn gtk_overlay_scrolling(self, gtk_overlay_scrolling: bool) -> Self

source

pub fn gtk_primary_button_warps_slider( self, gtk_primary_button_warps_slider: bool ) -> Self

source

pub fn gtk_print_backends(self, gtk_print_backends: impl Into<GString>) -> Self

source

pub fn gtk_print_preview_command( self, gtk_print_preview_command: impl Into<GString> ) -> Self

source

pub fn gtk_recent_files_enabled(self, gtk_recent_files_enabled: bool) -> Self

source

pub fn gtk_recent_files_max_age(self, gtk_recent_files_max_age: i32) -> Self

source

pub fn gtk_shell_shows_app_menu(self, gtk_shell_shows_app_menu: bool) -> Self

source

pub fn gtk_shell_shows_desktop(self, gtk_shell_shows_desktop: bool) -> Self

source

pub fn gtk_shell_shows_menubar(self, gtk_shell_shows_menubar: bool) -> Self

source

pub fn gtk_sound_theme_name( self, gtk_sound_theme_name: impl Into<GString> ) -> Self

source

pub fn gtk_split_cursor(self, gtk_split_cursor: bool) -> Self

source

pub fn gtk_theme_name(self, gtk_theme_name: impl Into<GString>) -> Self

source

pub fn gtk_titlebar_double_click( self, gtk_titlebar_double_click: impl Into<GString> ) -> Self

source

pub fn gtk_titlebar_middle_click( self, gtk_titlebar_middle_click: impl Into<GString> ) -> Self

source

pub fn gtk_titlebar_right_click( self, gtk_titlebar_right_click: impl Into<GString> ) -> Self

source

pub fn gtk_xft_antialias(self, gtk_xft_antialias: i32) -> Self

source

pub fn gtk_xft_dpi(self, gtk_xft_dpi: i32) -> Self

source

pub fn gtk_xft_hinting(self, gtk_xft_hinting: i32) -> Self

source

pub fn gtk_xft_hintstyle(self, gtk_xft_hintstyle: impl Into<GString>) -> Self

source

pub fn gtk_xft_rgba(self, gtk_xft_rgba: impl Into<GString>) -> Self

source

pub fn build(self) -> Settings

Build the Settings.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.