1 // This file was generated by gir (https://github.com/gtk-rs/gir) 2 // from gir-files (https://github.com/gtk-rs/gir-files) 3 // DO NOT EDIT 4 5 use crate::StyleProvider; 6 use glib::object::Cast; 7 use glib::object::IsA; 8 use glib::signal::connect_raw; 9 use glib::signal::SignalHandlerId; 10 use glib::translate::*; 11 use glib::StaticType; 12 use glib::ToValue; 13 use std::boxed::Box as Box_; 14 use std::fmt; 15 use std::mem::transmute; 16 17 glib::wrapper! { 18 #[doc(alias = "GtkSettings")] 19 pub struct Settings(Object<ffi::GtkSettings, ffi::GtkSettingsClass>) @implements StyleProvider; 20 21 match fn { 22 type_ => || ffi::gtk_settings_get_type(), 23 } 24 } 25 26 impl Settings { 27 #[doc(alias = "gtk_settings_get_default")] 28 #[doc(alias = "get_default")] default() -> Option<Settings>29 pub fn default() -> Option<Settings> { 30 assert_initialized_main_thread!(); 31 unsafe { from_glib_none(ffi::gtk_settings_get_default()) } 32 } 33 34 #[doc(alias = "gtk_settings_get_for_screen")] 35 #[doc(alias = "get_for_screen")] for_screen(screen: &gdk::Screen) -> Option<Settings>36 pub fn for_screen(screen: &gdk::Screen) -> Option<Settings> { 37 assert_initialized_main_thread!(); 38 unsafe { from_glib_none(ffi::gtk_settings_get_for_screen(screen.to_glib_none().0)) } 39 } 40 } 41 42 pub const NONE_SETTINGS: Option<&Settings> = None; 43 44 pub trait SettingsExt: 'static { 45 #[cfg(any(feature = "v3_20", feature = "dox"))] 46 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] 47 #[doc(alias = "gtk_settings_reset_property")] reset_property(&self, name: &str)48 fn reset_property(&self, name: &str); 49 50 #[doc(alias = "gtk-alternative-button-order")] is_gtk_alternative_button_order(&self) -> bool51 fn is_gtk_alternative_button_order(&self) -> bool; 52 53 #[doc(alias = "gtk-alternative-button-order")] set_gtk_alternative_button_order(&self, gtk_alternative_button_order: bool)54 fn set_gtk_alternative_button_order(&self, gtk_alternative_button_order: bool); 55 56 #[doc(alias = "gtk-alternative-sort-arrows")] is_gtk_alternative_sort_arrows(&self) -> bool57 fn is_gtk_alternative_sort_arrows(&self) -> bool; 58 59 #[doc(alias = "gtk-alternative-sort-arrows")] set_gtk_alternative_sort_arrows(&self, gtk_alternative_sort_arrows: bool)60 fn set_gtk_alternative_sort_arrows(&self, gtk_alternative_sort_arrows: bool); 61 62 #[doc(alias = "gtk-application-prefer-dark-theme")] is_gtk_application_prefer_dark_theme(&self) -> bool63 fn is_gtk_application_prefer_dark_theme(&self) -> bool; 64 65 #[doc(alias = "gtk-application-prefer-dark-theme")] set_gtk_application_prefer_dark_theme(&self, gtk_application_prefer_dark_theme: bool)66 fn set_gtk_application_prefer_dark_theme(&self, gtk_application_prefer_dark_theme: bool); 67 68 #[cfg(any(feature = "v3_24", feature = "dox"))] 69 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24")))] 70 #[doc(alias = "gtk-cursor-aspect-ratio")] gtk_cursor_aspect_ratio(&self) -> f3271 fn gtk_cursor_aspect_ratio(&self) -> f32; 72 73 #[cfg(any(feature = "v3_24", feature = "dox"))] 74 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24")))] 75 #[doc(alias = "gtk-cursor-aspect-ratio")] set_gtk_cursor_aspect_ratio(&self, gtk_cursor_aspect_ratio: f32)76 fn set_gtk_cursor_aspect_ratio(&self, gtk_cursor_aspect_ratio: f32); 77 78 #[doc(alias = "gtk-cursor-blink")] is_gtk_cursor_blink(&self) -> bool79 fn is_gtk_cursor_blink(&self) -> bool; 80 81 #[doc(alias = "gtk-cursor-blink")] set_gtk_cursor_blink(&self, gtk_cursor_blink: bool)82 fn set_gtk_cursor_blink(&self, gtk_cursor_blink: bool); 83 84 #[doc(alias = "gtk-cursor-blink-time")] gtk_cursor_blink_time(&self) -> i3285 fn gtk_cursor_blink_time(&self) -> i32; 86 87 #[doc(alias = "gtk-cursor-blink-time")] set_gtk_cursor_blink_time(&self, gtk_cursor_blink_time: i32)88 fn set_gtk_cursor_blink_time(&self, gtk_cursor_blink_time: i32); 89 90 #[doc(alias = "gtk-cursor-blink-timeout")] gtk_cursor_blink_timeout(&self) -> i3291 fn gtk_cursor_blink_timeout(&self) -> i32; 92 93 #[doc(alias = "gtk-cursor-blink-timeout")] set_gtk_cursor_blink_timeout(&self, gtk_cursor_blink_timeout: i32)94 fn set_gtk_cursor_blink_timeout(&self, gtk_cursor_blink_timeout: i32); 95 96 #[doc(alias = "gtk-cursor-theme-name")] gtk_cursor_theme_name(&self) -> Option<glib::GString>97 fn gtk_cursor_theme_name(&self) -> Option<glib::GString>; 98 99 #[doc(alias = "gtk-cursor-theme-name")] set_gtk_cursor_theme_name(&self, gtk_cursor_theme_name: Option<&str>)100 fn set_gtk_cursor_theme_name(&self, gtk_cursor_theme_name: Option<&str>); 101 102 #[doc(alias = "gtk-cursor-theme-size")] gtk_cursor_theme_size(&self) -> i32103 fn gtk_cursor_theme_size(&self) -> i32; 104 105 #[doc(alias = "gtk-cursor-theme-size")] set_gtk_cursor_theme_size(&self, gtk_cursor_theme_size: i32)106 fn set_gtk_cursor_theme_size(&self, gtk_cursor_theme_size: i32); 107 108 #[doc(alias = "gtk-decoration-layout")] gtk_decoration_layout(&self) -> Option<glib::GString>109 fn gtk_decoration_layout(&self) -> Option<glib::GString>; 110 111 #[doc(alias = "gtk-decoration-layout")] set_gtk_decoration_layout(&self, gtk_decoration_layout: Option<&str>)112 fn set_gtk_decoration_layout(&self, gtk_decoration_layout: Option<&str>); 113 114 #[doc(alias = "gtk-dialogs-use-header")] is_gtk_dialogs_use_header(&self) -> bool115 fn is_gtk_dialogs_use_header(&self) -> bool; 116 117 #[doc(alias = "gtk-dialogs-use-header")] set_gtk_dialogs_use_header(&self, gtk_dialogs_use_header: bool)118 fn set_gtk_dialogs_use_header(&self, gtk_dialogs_use_header: bool); 119 120 #[doc(alias = "gtk-dnd-drag-threshold")] gtk_dnd_drag_threshold(&self) -> i32121 fn gtk_dnd_drag_threshold(&self) -> i32; 122 123 #[doc(alias = "gtk-dnd-drag-threshold")] set_gtk_dnd_drag_threshold(&self, gtk_dnd_drag_threshold: i32)124 fn set_gtk_dnd_drag_threshold(&self, gtk_dnd_drag_threshold: i32); 125 126 #[doc(alias = "gtk-double-click-distance")] gtk_double_click_distance(&self) -> i32127 fn gtk_double_click_distance(&self) -> i32; 128 129 #[doc(alias = "gtk-double-click-distance")] set_gtk_double_click_distance(&self, gtk_double_click_distance: i32)130 fn set_gtk_double_click_distance(&self, gtk_double_click_distance: i32); 131 132 #[doc(alias = "gtk-double-click-time")] gtk_double_click_time(&self) -> i32133 fn gtk_double_click_time(&self) -> i32; 134 135 #[doc(alias = "gtk-double-click-time")] set_gtk_double_click_time(&self, gtk_double_click_time: i32)136 fn set_gtk_double_click_time(&self, gtk_double_click_time: i32); 137 138 #[doc(alias = "gtk-enable-accels")] is_gtk_enable_accels(&self) -> bool139 fn is_gtk_enable_accels(&self) -> bool; 140 141 #[doc(alias = "gtk-enable-accels")] set_gtk_enable_accels(&self, gtk_enable_accels: bool)142 fn set_gtk_enable_accels(&self, gtk_enable_accels: bool); 143 144 #[doc(alias = "gtk-enable-animations")] is_gtk_enable_animations(&self) -> bool145 fn is_gtk_enable_animations(&self) -> bool; 146 147 #[doc(alias = "gtk-enable-animations")] set_gtk_enable_animations(&self, gtk_enable_animations: bool)148 fn set_gtk_enable_animations(&self, gtk_enable_animations: bool); 149 150 #[doc(alias = "gtk-enable-event-sounds")] is_gtk_enable_event_sounds(&self) -> bool151 fn is_gtk_enable_event_sounds(&self) -> bool; 152 153 #[doc(alias = "gtk-enable-event-sounds")] set_gtk_enable_event_sounds(&self, gtk_enable_event_sounds: bool)154 fn set_gtk_enable_event_sounds(&self, gtk_enable_event_sounds: bool); 155 156 #[doc(alias = "gtk-enable-input-feedback-sounds")] is_gtk_enable_input_feedback_sounds(&self) -> bool157 fn is_gtk_enable_input_feedback_sounds(&self) -> bool; 158 159 #[doc(alias = "gtk-enable-input-feedback-sounds")] set_gtk_enable_input_feedback_sounds(&self, gtk_enable_input_feedback_sounds: bool)160 fn set_gtk_enable_input_feedback_sounds(&self, gtk_enable_input_feedback_sounds: bool); 161 162 #[doc(alias = "gtk-enable-primary-paste")] is_gtk_enable_primary_paste(&self) -> bool163 fn is_gtk_enable_primary_paste(&self) -> bool; 164 165 #[doc(alias = "gtk-enable-primary-paste")] set_gtk_enable_primary_paste(&self, gtk_enable_primary_paste: bool)166 fn set_gtk_enable_primary_paste(&self, gtk_enable_primary_paste: bool); 167 168 #[doc(alias = "gtk-entry-password-hint-timeout")] gtk_entry_password_hint_timeout(&self) -> u32169 fn gtk_entry_password_hint_timeout(&self) -> u32; 170 171 #[doc(alias = "gtk-entry-password-hint-timeout")] set_gtk_entry_password_hint_timeout(&self, gtk_entry_password_hint_timeout: u32)172 fn set_gtk_entry_password_hint_timeout(&self, gtk_entry_password_hint_timeout: u32); 173 174 #[doc(alias = "gtk-entry-select-on-focus")] is_gtk_entry_select_on_focus(&self) -> bool175 fn is_gtk_entry_select_on_focus(&self) -> bool; 176 177 #[doc(alias = "gtk-entry-select-on-focus")] set_gtk_entry_select_on_focus(&self, gtk_entry_select_on_focus: bool)178 fn set_gtk_entry_select_on_focus(&self, gtk_entry_select_on_focus: bool); 179 180 #[doc(alias = "gtk-error-bell")] is_gtk_error_bell(&self) -> bool181 fn is_gtk_error_bell(&self) -> bool; 182 183 #[doc(alias = "gtk-error-bell")] set_gtk_error_bell(&self, gtk_error_bell: bool)184 fn set_gtk_error_bell(&self, gtk_error_bell: bool); 185 186 #[doc(alias = "gtk-font-name")] gtk_font_name(&self) -> Option<glib::GString>187 fn gtk_font_name(&self) -> Option<glib::GString>; 188 189 #[doc(alias = "gtk-font-name")] set_gtk_font_name(&self, gtk_font_name: Option<&str>)190 fn set_gtk_font_name(&self, gtk_font_name: Option<&str>); 191 192 #[doc(alias = "gtk-fontconfig-timestamp")] gtk_fontconfig_timestamp(&self) -> u32193 fn gtk_fontconfig_timestamp(&self) -> u32; 194 195 #[doc(alias = "gtk-fontconfig-timestamp")] set_gtk_fontconfig_timestamp(&self, gtk_fontconfig_timestamp: u32)196 fn set_gtk_fontconfig_timestamp(&self, gtk_fontconfig_timestamp: u32); 197 198 #[doc(alias = "gtk-icon-theme-name")] gtk_icon_theme_name(&self) -> Option<glib::GString>199 fn gtk_icon_theme_name(&self) -> Option<glib::GString>; 200 201 #[doc(alias = "gtk-icon-theme-name")] set_gtk_icon_theme_name(&self, gtk_icon_theme_name: Option<&str>)202 fn set_gtk_icon_theme_name(&self, gtk_icon_theme_name: Option<&str>); 203 204 #[doc(alias = "gtk-im-module")] gtk_im_module(&self) -> Option<glib::GString>205 fn gtk_im_module(&self) -> Option<glib::GString>; 206 207 #[doc(alias = "gtk-im-module")] set_gtk_im_module(&self, gtk_im_module: Option<&str>)208 fn set_gtk_im_module(&self, gtk_im_module: Option<&str>); 209 210 #[doc(alias = "gtk-key-theme-name")] gtk_key_theme_name(&self) -> Option<glib::GString>211 fn gtk_key_theme_name(&self) -> Option<glib::GString>; 212 213 #[doc(alias = "gtk-key-theme-name")] set_gtk_key_theme_name(&self, gtk_key_theme_name: Option<&str>)214 fn set_gtk_key_theme_name(&self, gtk_key_theme_name: Option<&str>); 215 216 #[cfg(any(feature = "v3_20", feature = "dox"))] 217 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] 218 #[doc(alias = "gtk-keynav-use-caret")] is_gtk_keynav_use_caret(&self) -> bool219 fn is_gtk_keynav_use_caret(&self) -> bool; 220 221 #[cfg(any(feature = "v3_20", feature = "dox"))] 222 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] 223 #[doc(alias = "gtk-keynav-use-caret")] set_gtk_keynav_use_caret(&self, gtk_keynav_use_caret: bool)224 fn set_gtk_keynav_use_caret(&self, gtk_keynav_use_caret: bool); 225 226 #[doc(alias = "gtk-label-select-on-focus")] is_gtk_label_select_on_focus(&self) -> bool227 fn is_gtk_label_select_on_focus(&self) -> bool; 228 229 #[doc(alias = "gtk-label-select-on-focus")] set_gtk_label_select_on_focus(&self, gtk_label_select_on_focus: bool)230 fn set_gtk_label_select_on_focus(&self, gtk_label_select_on_focus: bool); 231 232 #[doc(alias = "gtk-long-press-time")] gtk_long_press_time(&self) -> u32233 fn gtk_long_press_time(&self) -> u32; 234 235 #[doc(alias = "gtk-long-press-time")] set_gtk_long_press_time(&self, gtk_long_press_time: u32)236 fn set_gtk_long_press_time(&self, gtk_long_press_time: u32); 237 238 #[doc(alias = "gtk-modules")] gtk_modules(&self) -> Option<glib::GString>239 fn gtk_modules(&self) -> Option<glib::GString>; 240 241 #[doc(alias = "gtk-modules")] set_gtk_modules(&self, gtk_modules: Option<&str>)242 fn set_gtk_modules(&self, gtk_modules: Option<&str>); 243 244 #[cfg(any(feature = "v3_24_9", feature = "dox"))] 245 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24_9")))] 246 #[doc(alias = "gtk-overlay-scrolling")] is_gtk_overlay_scrolling(&self) -> bool247 fn is_gtk_overlay_scrolling(&self) -> bool; 248 249 #[cfg(any(feature = "v3_24_9", feature = "dox"))] 250 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24_9")))] 251 #[doc(alias = "gtk-overlay-scrolling")] set_gtk_overlay_scrolling(&self, gtk_overlay_scrolling: bool)252 fn set_gtk_overlay_scrolling(&self, gtk_overlay_scrolling: bool); 253 254 #[doc(alias = "gtk-primary-button-warps-slider")] is_gtk_primary_button_warps_slider(&self) -> bool255 fn is_gtk_primary_button_warps_slider(&self) -> bool; 256 257 #[doc(alias = "gtk-primary-button-warps-slider")] set_gtk_primary_button_warps_slider(&self, gtk_primary_button_warps_slider: bool)258 fn set_gtk_primary_button_warps_slider(&self, gtk_primary_button_warps_slider: bool); 259 260 #[doc(alias = "gtk-print-backends")] gtk_print_backends(&self) -> Option<glib::GString>261 fn gtk_print_backends(&self) -> Option<glib::GString>; 262 263 #[doc(alias = "gtk-print-backends")] set_gtk_print_backends(&self, gtk_print_backends: Option<&str>)264 fn set_gtk_print_backends(&self, gtk_print_backends: Option<&str>); 265 266 #[doc(alias = "gtk-print-preview-command")] gtk_print_preview_command(&self) -> Option<glib::GString>267 fn gtk_print_preview_command(&self) -> Option<glib::GString>; 268 269 #[doc(alias = "gtk-print-preview-command")] set_gtk_print_preview_command(&self, gtk_print_preview_command: Option<&str>)270 fn set_gtk_print_preview_command(&self, gtk_print_preview_command: Option<&str>); 271 272 #[doc(alias = "gtk-recent-files-enabled")] is_gtk_recent_files_enabled(&self) -> bool273 fn is_gtk_recent_files_enabled(&self) -> bool; 274 275 #[doc(alias = "gtk-recent-files-enabled")] set_gtk_recent_files_enabled(&self, gtk_recent_files_enabled: bool)276 fn set_gtk_recent_files_enabled(&self, gtk_recent_files_enabled: bool); 277 278 #[doc(alias = "gtk-recent-files-max-age")] gtk_recent_files_max_age(&self) -> i32279 fn gtk_recent_files_max_age(&self) -> i32; 280 281 #[doc(alias = "gtk-recent-files-max-age")] set_gtk_recent_files_max_age(&self, gtk_recent_files_max_age: i32)282 fn set_gtk_recent_files_max_age(&self, gtk_recent_files_max_age: i32); 283 284 #[doc(alias = "gtk-shell-shows-app-menu")] is_gtk_shell_shows_app_menu(&self) -> bool285 fn is_gtk_shell_shows_app_menu(&self) -> bool; 286 287 #[doc(alias = "gtk-shell-shows-app-menu")] set_gtk_shell_shows_app_menu(&self, gtk_shell_shows_app_menu: bool)288 fn set_gtk_shell_shows_app_menu(&self, gtk_shell_shows_app_menu: bool); 289 290 #[doc(alias = "gtk-shell-shows-desktop")] is_gtk_shell_shows_desktop(&self) -> bool291 fn is_gtk_shell_shows_desktop(&self) -> bool; 292 293 #[doc(alias = "gtk-shell-shows-desktop")] set_gtk_shell_shows_desktop(&self, gtk_shell_shows_desktop: bool)294 fn set_gtk_shell_shows_desktop(&self, gtk_shell_shows_desktop: bool); 295 296 #[doc(alias = "gtk-shell-shows-menubar")] is_gtk_shell_shows_menubar(&self) -> bool297 fn is_gtk_shell_shows_menubar(&self) -> bool; 298 299 #[doc(alias = "gtk-shell-shows-menubar")] set_gtk_shell_shows_menubar(&self, gtk_shell_shows_menubar: bool)300 fn set_gtk_shell_shows_menubar(&self, gtk_shell_shows_menubar: bool); 301 302 #[doc(alias = "gtk-sound-theme-name")] gtk_sound_theme_name(&self) -> Option<glib::GString>303 fn gtk_sound_theme_name(&self) -> Option<glib::GString>; 304 305 #[doc(alias = "gtk-sound-theme-name")] set_gtk_sound_theme_name(&self, gtk_sound_theme_name: Option<&str>)306 fn set_gtk_sound_theme_name(&self, gtk_sound_theme_name: Option<&str>); 307 308 #[doc(alias = "gtk-split-cursor")] is_gtk_split_cursor(&self) -> bool309 fn is_gtk_split_cursor(&self) -> bool; 310 311 #[doc(alias = "gtk-split-cursor")] set_gtk_split_cursor(&self, gtk_split_cursor: bool)312 fn set_gtk_split_cursor(&self, gtk_split_cursor: bool); 313 314 #[doc(alias = "gtk-theme-name")] gtk_theme_name(&self) -> Option<glib::GString>315 fn gtk_theme_name(&self) -> Option<glib::GString>; 316 317 #[doc(alias = "gtk-theme-name")] set_gtk_theme_name(&self, gtk_theme_name: Option<&str>)318 fn set_gtk_theme_name(&self, gtk_theme_name: Option<&str>); 319 320 #[doc(alias = "gtk-titlebar-double-click")] gtk_titlebar_double_click(&self) -> Option<glib::GString>321 fn gtk_titlebar_double_click(&self) -> Option<glib::GString>; 322 323 #[doc(alias = "gtk-titlebar-double-click")] set_gtk_titlebar_double_click(&self, gtk_titlebar_double_click: Option<&str>)324 fn set_gtk_titlebar_double_click(&self, gtk_titlebar_double_click: Option<&str>); 325 326 #[doc(alias = "gtk-titlebar-middle-click")] gtk_titlebar_middle_click(&self) -> Option<glib::GString>327 fn gtk_titlebar_middle_click(&self) -> Option<glib::GString>; 328 329 #[doc(alias = "gtk-titlebar-middle-click")] set_gtk_titlebar_middle_click(&self, gtk_titlebar_middle_click: Option<&str>)330 fn set_gtk_titlebar_middle_click(&self, gtk_titlebar_middle_click: Option<&str>); 331 332 #[doc(alias = "gtk-titlebar-right-click")] gtk_titlebar_right_click(&self) -> Option<glib::GString>333 fn gtk_titlebar_right_click(&self) -> Option<glib::GString>; 334 335 #[doc(alias = "gtk-titlebar-right-click")] set_gtk_titlebar_right_click(&self, gtk_titlebar_right_click: Option<&str>)336 fn set_gtk_titlebar_right_click(&self, gtk_titlebar_right_click: Option<&str>); 337 338 #[doc(alias = "gtk-xft-antialias")] gtk_xft_antialias(&self) -> i32339 fn gtk_xft_antialias(&self) -> i32; 340 341 #[doc(alias = "gtk-xft-antialias")] set_gtk_xft_antialias(&self, gtk_xft_antialias: i32)342 fn set_gtk_xft_antialias(&self, gtk_xft_antialias: i32); 343 344 #[doc(alias = "gtk-xft-dpi")] gtk_xft_dpi(&self) -> i32345 fn gtk_xft_dpi(&self) -> i32; 346 347 #[doc(alias = "gtk-xft-dpi")] set_gtk_xft_dpi(&self, gtk_xft_dpi: i32)348 fn set_gtk_xft_dpi(&self, gtk_xft_dpi: i32); 349 350 #[doc(alias = "gtk-xft-hinting")] gtk_xft_hinting(&self) -> i32351 fn gtk_xft_hinting(&self) -> i32; 352 353 #[doc(alias = "gtk-xft-hinting")] set_gtk_xft_hinting(&self, gtk_xft_hinting: i32)354 fn set_gtk_xft_hinting(&self, gtk_xft_hinting: i32); 355 356 #[doc(alias = "gtk-xft-hintstyle")] gtk_xft_hintstyle(&self) -> Option<glib::GString>357 fn gtk_xft_hintstyle(&self) -> Option<glib::GString>; 358 359 #[doc(alias = "gtk-xft-hintstyle")] set_gtk_xft_hintstyle(&self, gtk_xft_hintstyle: Option<&str>)360 fn set_gtk_xft_hintstyle(&self, gtk_xft_hintstyle: Option<&str>); 361 362 #[doc(alias = "gtk-xft-rgba")] gtk_xft_rgba(&self) -> Option<glib::GString>363 fn gtk_xft_rgba(&self) -> Option<glib::GString>; 364 365 #[doc(alias = "gtk-xft-rgba")] set_gtk_xft_rgba(&self, gtk_xft_rgba: Option<&str>)366 fn set_gtk_xft_rgba(&self, gtk_xft_rgba: Option<&str>); 367 368 #[doc(alias = "gtk-alternative-button-order")] connect_gtk_alternative_button_order_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId369 fn connect_gtk_alternative_button_order_notify<F: Fn(&Self) + 'static>( 370 &self, 371 f: F, 372 ) -> SignalHandlerId; 373 374 #[doc(alias = "gtk-alternative-sort-arrows")] connect_gtk_alternative_sort_arrows_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId375 fn connect_gtk_alternative_sort_arrows_notify<F: Fn(&Self) + 'static>( 376 &self, 377 f: F, 378 ) -> SignalHandlerId; 379 380 #[doc(alias = "gtk-application-prefer-dark-theme")] connect_gtk_application_prefer_dark_theme_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId381 fn connect_gtk_application_prefer_dark_theme_notify<F: Fn(&Self) + 'static>( 382 &self, 383 f: F, 384 ) -> SignalHandlerId; 385 386 #[cfg(any(feature = "v3_24", feature = "dox"))] 387 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24")))] 388 #[doc(alias = "gtk-cursor-aspect-ratio")] connect_gtk_cursor_aspect_ratio_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId389 fn connect_gtk_cursor_aspect_ratio_notify<F: Fn(&Self) + 'static>( 390 &self, 391 f: F, 392 ) -> SignalHandlerId; 393 394 #[doc(alias = "gtk-cursor-blink")] connect_gtk_cursor_blink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId395 fn connect_gtk_cursor_blink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 396 397 #[doc(alias = "gtk-cursor-blink-time")] connect_gtk_cursor_blink_time_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId398 fn connect_gtk_cursor_blink_time_notify<F: Fn(&Self) + 'static>(&self, f: F) 399 -> SignalHandlerId; 400 401 #[doc(alias = "gtk-cursor-blink-timeout")] connect_gtk_cursor_blink_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId402 fn connect_gtk_cursor_blink_timeout_notify<F: Fn(&Self) + 'static>( 403 &self, 404 f: F, 405 ) -> SignalHandlerId; 406 407 #[doc(alias = "gtk-cursor-theme-name")] connect_gtk_cursor_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId408 fn connect_gtk_cursor_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) 409 -> SignalHandlerId; 410 411 #[doc(alias = "gtk-cursor-theme-size")] connect_gtk_cursor_theme_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId412 fn connect_gtk_cursor_theme_size_notify<F: Fn(&Self) + 'static>(&self, f: F) 413 -> SignalHandlerId; 414 415 #[doc(alias = "gtk-decoration-layout")] connect_gtk_decoration_layout_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId416 fn connect_gtk_decoration_layout_notify<F: Fn(&Self) + 'static>(&self, f: F) 417 -> SignalHandlerId; 418 419 #[doc(alias = "gtk-dialogs-use-header")] connect_gtk_dialogs_use_header_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId420 fn connect_gtk_dialogs_use_header_notify<F: Fn(&Self) + 'static>( 421 &self, 422 f: F, 423 ) -> SignalHandlerId; 424 425 #[doc(alias = "gtk-dnd-drag-threshold")] connect_gtk_dnd_drag_threshold_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId426 fn connect_gtk_dnd_drag_threshold_notify<F: Fn(&Self) + 'static>( 427 &self, 428 f: F, 429 ) -> SignalHandlerId; 430 431 #[doc(alias = "gtk-double-click-distance")] connect_gtk_double_click_distance_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId432 fn connect_gtk_double_click_distance_notify<F: Fn(&Self) + 'static>( 433 &self, 434 f: F, 435 ) -> SignalHandlerId; 436 437 #[doc(alias = "gtk-double-click-time")] connect_gtk_double_click_time_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId438 fn connect_gtk_double_click_time_notify<F: Fn(&Self) + 'static>(&self, f: F) 439 -> SignalHandlerId; 440 441 #[doc(alias = "gtk-enable-accels")] connect_gtk_enable_accels_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId442 fn connect_gtk_enable_accels_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 443 444 #[doc(alias = "gtk-enable-animations")] connect_gtk_enable_animations_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId445 fn connect_gtk_enable_animations_notify<F: Fn(&Self) + 'static>(&self, f: F) 446 -> SignalHandlerId; 447 448 #[doc(alias = "gtk-enable-event-sounds")] connect_gtk_enable_event_sounds_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId449 fn connect_gtk_enable_event_sounds_notify<F: Fn(&Self) + 'static>( 450 &self, 451 f: F, 452 ) -> SignalHandlerId; 453 454 #[doc(alias = "gtk-enable-input-feedback-sounds")] connect_gtk_enable_input_feedback_sounds_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId455 fn connect_gtk_enable_input_feedback_sounds_notify<F: Fn(&Self) + 'static>( 456 &self, 457 f: F, 458 ) -> SignalHandlerId; 459 460 #[doc(alias = "gtk-enable-primary-paste")] connect_gtk_enable_primary_paste_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId461 fn connect_gtk_enable_primary_paste_notify<F: Fn(&Self) + 'static>( 462 &self, 463 f: F, 464 ) -> SignalHandlerId; 465 466 #[doc(alias = "gtk-entry-password-hint-timeout")] connect_gtk_entry_password_hint_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId467 fn connect_gtk_entry_password_hint_timeout_notify<F: Fn(&Self) + 'static>( 468 &self, 469 f: F, 470 ) -> SignalHandlerId; 471 472 #[doc(alias = "gtk-entry-select-on-focus")] connect_gtk_entry_select_on_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId473 fn connect_gtk_entry_select_on_focus_notify<F: Fn(&Self) + 'static>( 474 &self, 475 f: F, 476 ) -> SignalHandlerId; 477 478 #[doc(alias = "gtk-error-bell")] connect_gtk_error_bell_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId479 fn connect_gtk_error_bell_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 480 481 #[doc(alias = "gtk-font-name")] connect_gtk_font_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId482 fn connect_gtk_font_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 483 484 #[doc(alias = "gtk-fontconfig-timestamp")] connect_gtk_fontconfig_timestamp_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId485 fn connect_gtk_fontconfig_timestamp_notify<F: Fn(&Self) + 'static>( 486 &self, 487 f: F, 488 ) -> SignalHandlerId; 489 490 #[doc(alias = "gtk-icon-theme-name")] connect_gtk_icon_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId491 fn connect_gtk_icon_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 492 493 #[doc(alias = "gtk-im-module")] connect_gtk_im_module_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId494 fn connect_gtk_im_module_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 495 496 #[doc(alias = "gtk-key-theme-name")] connect_gtk_key_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId497 fn connect_gtk_key_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 498 499 #[cfg(any(feature = "v3_20", feature = "dox"))] 500 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] 501 #[doc(alias = "gtk-keynav-use-caret")] connect_gtk_keynav_use_caret_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId502 fn connect_gtk_keynav_use_caret_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 503 504 #[doc(alias = "gtk-label-select-on-focus")] connect_gtk_label_select_on_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId505 fn connect_gtk_label_select_on_focus_notify<F: Fn(&Self) + 'static>( 506 &self, 507 f: F, 508 ) -> SignalHandlerId; 509 510 #[doc(alias = "gtk-long-press-time")] connect_gtk_long_press_time_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId511 fn connect_gtk_long_press_time_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 512 513 #[doc(alias = "gtk-modules")] connect_gtk_modules_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId514 fn connect_gtk_modules_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 515 516 #[cfg(any(feature = "v3_24_9", feature = "dox"))] 517 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24_9")))] 518 #[doc(alias = "gtk-overlay-scrolling")] connect_gtk_overlay_scrolling_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId519 fn connect_gtk_overlay_scrolling_notify<F: Fn(&Self) + 'static>(&self, f: F) 520 -> SignalHandlerId; 521 522 #[doc(alias = "gtk-primary-button-warps-slider")] connect_gtk_primary_button_warps_slider_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId523 fn connect_gtk_primary_button_warps_slider_notify<F: Fn(&Self) + 'static>( 524 &self, 525 f: F, 526 ) -> SignalHandlerId; 527 528 #[doc(alias = "gtk-print-backends")] connect_gtk_print_backends_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId529 fn connect_gtk_print_backends_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 530 531 #[doc(alias = "gtk-print-preview-command")] connect_gtk_print_preview_command_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId532 fn connect_gtk_print_preview_command_notify<F: Fn(&Self) + 'static>( 533 &self, 534 f: F, 535 ) -> SignalHandlerId; 536 537 #[doc(alias = "gtk-recent-files-enabled")] connect_gtk_recent_files_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId538 fn connect_gtk_recent_files_enabled_notify<F: Fn(&Self) + 'static>( 539 &self, 540 f: F, 541 ) -> SignalHandlerId; 542 543 #[doc(alias = "gtk-recent-files-max-age")] connect_gtk_recent_files_max_age_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId544 fn connect_gtk_recent_files_max_age_notify<F: Fn(&Self) + 'static>( 545 &self, 546 f: F, 547 ) -> SignalHandlerId; 548 549 #[doc(alias = "gtk-shell-shows-app-menu")] connect_gtk_shell_shows_app_menu_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId550 fn connect_gtk_shell_shows_app_menu_notify<F: Fn(&Self) + 'static>( 551 &self, 552 f: F, 553 ) -> SignalHandlerId; 554 555 #[doc(alias = "gtk-shell-shows-desktop")] connect_gtk_shell_shows_desktop_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId556 fn connect_gtk_shell_shows_desktop_notify<F: Fn(&Self) + 'static>( 557 &self, 558 f: F, 559 ) -> SignalHandlerId; 560 561 #[doc(alias = "gtk-shell-shows-menubar")] connect_gtk_shell_shows_menubar_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId562 fn connect_gtk_shell_shows_menubar_notify<F: Fn(&Self) + 'static>( 563 &self, 564 f: F, 565 ) -> SignalHandlerId; 566 567 #[doc(alias = "gtk-sound-theme-name")] connect_gtk_sound_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId568 fn connect_gtk_sound_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 569 570 #[doc(alias = "gtk-split-cursor")] connect_gtk_split_cursor_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId571 fn connect_gtk_split_cursor_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 572 573 #[doc(alias = "gtk-theme-name")] connect_gtk_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId574 fn connect_gtk_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 575 576 #[doc(alias = "gtk-titlebar-double-click")] connect_gtk_titlebar_double_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId577 fn connect_gtk_titlebar_double_click_notify<F: Fn(&Self) + 'static>( 578 &self, 579 f: F, 580 ) -> SignalHandlerId; 581 582 #[doc(alias = "gtk-titlebar-middle-click")] connect_gtk_titlebar_middle_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId583 fn connect_gtk_titlebar_middle_click_notify<F: Fn(&Self) + 'static>( 584 &self, 585 f: F, 586 ) -> SignalHandlerId; 587 588 #[doc(alias = "gtk-titlebar-right-click")] connect_gtk_titlebar_right_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId589 fn connect_gtk_titlebar_right_click_notify<F: Fn(&Self) + 'static>( 590 &self, 591 f: F, 592 ) -> SignalHandlerId; 593 594 #[doc(alias = "gtk-xft-antialias")] connect_gtk_xft_antialias_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId595 fn connect_gtk_xft_antialias_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 596 597 #[doc(alias = "gtk-xft-dpi")] connect_gtk_xft_dpi_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId598 fn connect_gtk_xft_dpi_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 599 600 #[doc(alias = "gtk-xft-hinting")] connect_gtk_xft_hinting_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId601 fn connect_gtk_xft_hinting_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 602 603 #[doc(alias = "gtk-xft-hintstyle")] connect_gtk_xft_hintstyle_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId604 fn connect_gtk_xft_hintstyle_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 605 606 #[doc(alias = "gtk-xft-rgba")] connect_gtk_xft_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId607 fn connect_gtk_xft_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 608 } 609 610 impl<O: IsA<Settings>> SettingsExt for O { 611 #[cfg(any(feature = "v3_20", feature = "dox"))] 612 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] reset_property(&self, name: &str)613 fn reset_property(&self, name: &str) { 614 unsafe { 615 ffi::gtk_settings_reset_property(self.as_ref().to_glib_none().0, name.to_glib_none().0); 616 } 617 } 618 is_gtk_alternative_button_order(&self) -> bool619 fn is_gtk_alternative_button_order(&self) -> bool { 620 unsafe { 621 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 622 glib::gobject_ffi::g_object_get_property( 623 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 624 b"gtk-alternative-button-order\0".as_ptr() as *const _, 625 value.to_glib_none_mut().0, 626 ); 627 value 628 .get() 629 .expect("Return Value for property `gtk-alternative-button-order` getter") 630 } 631 } 632 set_gtk_alternative_button_order(&self, gtk_alternative_button_order: bool)633 fn set_gtk_alternative_button_order(&self, gtk_alternative_button_order: bool) { 634 unsafe { 635 glib::gobject_ffi::g_object_set_property( 636 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 637 b"gtk-alternative-button-order\0".as_ptr() as *const _, 638 gtk_alternative_button_order.to_value().to_glib_none().0, 639 ); 640 } 641 } 642 is_gtk_alternative_sort_arrows(&self) -> bool643 fn is_gtk_alternative_sort_arrows(&self) -> bool { 644 unsafe { 645 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 646 glib::gobject_ffi::g_object_get_property( 647 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 648 b"gtk-alternative-sort-arrows\0".as_ptr() as *const _, 649 value.to_glib_none_mut().0, 650 ); 651 value 652 .get() 653 .expect("Return Value for property `gtk-alternative-sort-arrows` getter") 654 } 655 } 656 set_gtk_alternative_sort_arrows(&self, gtk_alternative_sort_arrows: bool)657 fn set_gtk_alternative_sort_arrows(&self, gtk_alternative_sort_arrows: bool) { 658 unsafe { 659 glib::gobject_ffi::g_object_set_property( 660 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 661 b"gtk-alternative-sort-arrows\0".as_ptr() as *const _, 662 gtk_alternative_sort_arrows.to_value().to_glib_none().0, 663 ); 664 } 665 } 666 is_gtk_application_prefer_dark_theme(&self) -> bool667 fn is_gtk_application_prefer_dark_theme(&self) -> bool { 668 unsafe { 669 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 670 glib::gobject_ffi::g_object_get_property( 671 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 672 b"gtk-application-prefer-dark-theme\0".as_ptr() as *const _, 673 value.to_glib_none_mut().0, 674 ); 675 value 676 .get() 677 .expect("Return Value for property `gtk-application-prefer-dark-theme` getter") 678 } 679 } 680 set_gtk_application_prefer_dark_theme(&self, gtk_application_prefer_dark_theme: bool)681 fn set_gtk_application_prefer_dark_theme(&self, gtk_application_prefer_dark_theme: bool) { 682 unsafe { 683 glib::gobject_ffi::g_object_set_property( 684 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 685 b"gtk-application-prefer-dark-theme\0".as_ptr() as *const _, 686 gtk_application_prefer_dark_theme 687 .to_value() 688 .to_glib_none() 689 .0, 690 ); 691 } 692 } 693 694 #[cfg(any(feature = "v3_24", feature = "dox"))] 695 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24")))] gtk_cursor_aspect_ratio(&self) -> f32696 fn gtk_cursor_aspect_ratio(&self) -> f32 { 697 unsafe { 698 let mut value = glib::Value::from_type(<f32 as StaticType>::static_type()); 699 glib::gobject_ffi::g_object_get_property( 700 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 701 b"gtk-cursor-aspect-ratio\0".as_ptr() as *const _, 702 value.to_glib_none_mut().0, 703 ); 704 value 705 .get() 706 .expect("Return Value for property `gtk-cursor-aspect-ratio` getter") 707 } 708 } 709 710 #[cfg(any(feature = "v3_24", feature = "dox"))] 711 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24")))] set_gtk_cursor_aspect_ratio(&self, gtk_cursor_aspect_ratio: f32)712 fn set_gtk_cursor_aspect_ratio(&self, gtk_cursor_aspect_ratio: f32) { 713 unsafe { 714 glib::gobject_ffi::g_object_set_property( 715 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 716 b"gtk-cursor-aspect-ratio\0".as_ptr() as *const _, 717 gtk_cursor_aspect_ratio.to_value().to_glib_none().0, 718 ); 719 } 720 } 721 is_gtk_cursor_blink(&self) -> bool722 fn is_gtk_cursor_blink(&self) -> bool { 723 unsafe { 724 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 725 glib::gobject_ffi::g_object_get_property( 726 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 727 b"gtk-cursor-blink\0".as_ptr() as *const _, 728 value.to_glib_none_mut().0, 729 ); 730 value 731 .get() 732 .expect("Return Value for property `gtk-cursor-blink` getter") 733 } 734 } 735 set_gtk_cursor_blink(&self, gtk_cursor_blink: bool)736 fn set_gtk_cursor_blink(&self, gtk_cursor_blink: bool) { 737 unsafe { 738 glib::gobject_ffi::g_object_set_property( 739 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 740 b"gtk-cursor-blink\0".as_ptr() as *const _, 741 gtk_cursor_blink.to_value().to_glib_none().0, 742 ); 743 } 744 } 745 gtk_cursor_blink_time(&self) -> i32746 fn gtk_cursor_blink_time(&self) -> i32 { 747 unsafe { 748 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 749 glib::gobject_ffi::g_object_get_property( 750 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 751 b"gtk-cursor-blink-time\0".as_ptr() as *const _, 752 value.to_glib_none_mut().0, 753 ); 754 value 755 .get() 756 .expect("Return Value for property `gtk-cursor-blink-time` getter") 757 } 758 } 759 set_gtk_cursor_blink_time(&self, gtk_cursor_blink_time: i32)760 fn set_gtk_cursor_blink_time(&self, gtk_cursor_blink_time: i32) { 761 unsafe { 762 glib::gobject_ffi::g_object_set_property( 763 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 764 b"gtk-cursor-blink-time\0".as_ptr() as *const _, 765 gtk_cursor_blink_time.to_value().to_glib_none().0, 766 ); 767 } 768 } 769 gtk_cursor_blink_timeout(&self) -> i32770 fn gtk_cursor_blink_timeout(&self) -> i32 { 771 unsafe { 772 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 773 glib::gobject_ffi::g_object_get_property( 774 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 775 b"gtk-cursor-blink-timeout\0".as_ptr() as *const _, 776 value.to_glib_none_mut().0, 777 ); 778 value 779 .get() 780 .expect("Return Value for property `gtk-cursor-blink-timeout` getter") 781 } 782 } 783 set_gtk_cursor_blink_timeout(&self, gtk_cursor_blink_timeout: i32)784 fn set_gtk_cursor_blink_timeout(&self, gtk_cursor_blink_timeout: i32) { 785 unsafe { 786 glib::gobject_ffi::g_object_set_property( 787 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 788 b"gtk-cursor-blink-timeout\0".as_ptr() as *const _, 789 gtk_cursor_blink_timeout.to_value().to_glib_none().0, 790 ); 791 } 792 } 793 gtk_cursor_theme_name(&self) -> Option<glib::GString>794 fn gtk_cursor_theme_name(&self) -> Option<glib::GString> { 795 unsafe { 796 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 797 glib::gobject_ffi::g_object_get_property( 798 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 799 b"gtk-cursor-theme-name\0".as_ptr() as *const _, 800 value.to_glib_none_mut().0, 801 ); 802 value 803 .get() 804 .expect("Return Value for property `gtk-cursor-theme-name` getter") 805 } 806 } 807 set_gtk_cursor_theme_name(&self, gtk_cursor_theme_name: Option<&str>)808 fn set_gtk_cursor_theme_name(&self, gtk_cursor_theme_name: Option<&str>) { 809 unsafe { 810 glib::gobject_ffi::g_object_set_property( 811 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 812 b"gtk-cursor-theme-name\0".as_ptr() as *const _, 813 gtk_cursor_theme_name.to_value().to_glib_none().0, 814 ); 815 } 816 } 817 gtk_cursor_theme_size(&self) -> i32818 fn gtk_cursor_theme_size(&self) -> i32 { 819 unsafe { 820 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 821 glib::gobject_ffi::g_object_get_property( 822 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 823 b"gtk-cursor-theme-size\0".as_ptr() as *const _, 824 value.to_glib_none_mut().0, 825 ); 826 value 827 .get() 828 .expect("Return Value for property `gtk-cursor-theme-size` getter") 829 } 830 } 831 set_gtk_cursor_theme_size(&self, gtk_cursor_theme_size: i32)832 fn set_gtk_cursor_theme_size(&self, gtk_cursor_theme_size: i32) { 833 unsafe { 834 glib::gobject_ffi::g_object_set_property( 835 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 836 b"gtk-cursor-theme-size\0".as_ptr() as *const _, 837 gtk_cursor_theme_size.to_value().to_glib_none().0, 838 ); 839 } 840 } 841 gtk_decoration_layout(&self) -> Option<glib::GString>842 fn gtk_decoration_layout(&self) -> Option<glib::GString> { 843 unsafe { 844 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 845 glib::gobject_ffi::g_object_get_property( 846 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 847 b"gtk-decoration-layout\0".as_ptr() as *const _, 848 value.to_glib_none_mut().0, 849 ); 850 value 851 .get() 852 .expect("Return Value for property `gtk-decoration-layout` getter") 853 } 854 } 855 set_gtk_decoration_layout(&self, gtk_decoration_layout: Option<&str>)856 fn set_gtk_decoration_layout(&self, gtk_decoration_layout: Option<&str>) { 857 unsafe { 858 glib::gobject_ffi::g_object_set_property( 859 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 860 b"gtk-decoration-layout\0".as_ptr() as *const _, 861 gtk_decoration_layout.to_value().to_glib_none().0, 862 ); 863 } 864 } 865 is_gtk_dialogs_use_header(&self) -> bool866 fn is_gtk_dialogs_use_header(&self) -> bool { 867 unsafe { 868 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 869 glib::gobject_ffi::g_object_get_property( 870 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 871 b"gtk-dialogs-use-header\0".as_ptr() as *const _, 872 value.to_glib_none_mut().0, 873 ); 874 value 875 .get() 876 .expect("Return Value for property `gtk-dialogs-use-header` getter") 877 } 878 } 879 set_gtk_dialogs_use_header(&self, gtk_dialogs_use_header: bool)880 fn set_gtk_dialogs_use_header(&self, gtk_dialogs_use_header: bool) { 881 unsafe { 882 glib::gobject_ffi::g_object_set_property( 883 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 884 b"gtk-dialogs-use-header\0".as_ptr() as *const _, 885 gtk_dialogs_use_header.to_value().to_glib_none().0, 886 ); 887 } 888 } 889 gtk_dnd_drag_threshold(&self) -> i32890 fn gtk_dnd_drag_threshold(&self) -> i32 { 891 unsafe { 892 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 893 glib::gobject_ffi::g_object_get_property( 894 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 895 b"gtk-dnd-drag-threshold\0".as_ptr() as *const _, 896 value.to_glib_none_mut().0, 897 ); 898 value 899 .get() 900 .expect("Return Value for property `gtk-dnd-drag-threshold` getter") 901 } 902 } 903 set_gtk_dnd_drag_threshold(&self, gtk_dnd_drag_threshold: i32)904 fn set_gtk_dnd_drag_threshold(&self, gtk_dnd_drag_threshold: i32) { 905 unsafe { 906 glib::gobject_ffi::g_object_set_property( 907 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 908 b"gtk-dnd-drag-threshold\0".as_ptr() as *const _, 909 gtk_dnd_drag_threshold.to_value().to_glib_none().0, 910 ); 911 } 912 } 913 gtk_double_click_distance(&self) -> i32914 fn gtk_double_click_distance(&self) -> i32 { 915 unsafe { 916 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 917 glib::gobject_ffi::g_object_get_property( 918 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 919 b"gtk-double-click-distance\0".as_ptr() as *const _, 920 value.to_glib_none_mut().0, 921 ); 922 value 923 .get() 924 .expect("Return Value for property `gtk-double-click-distance` getter") 925 } 926 } 927 set_gtk_double_click_distance(&self, gtk_double_click_distance: i32)928 fn set_gtk_double_click_distance(&self, gtk_double_click_distance: i32) { 929 unsafe { 930 glib::gobject_ffi::g_object_set_property( 931 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 932 b"gtk-double-click-distance\0".as_ptr() as *const _, 933 gtk_double_click_distance.to_value().to_glib_none().0, 934 ); 935 } 936 } 937 gtk_double_click_time(&self) -> i32938 fn gtk_double_click_time(&self) -> i32 { 939 unsafe { 940 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 941 glib::gobject_ffi::g_object_get_property( 942 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 943 b"gtk-double-click-time\0".as_ptr() as *const _, 944 value.to_glib_none_mut().0, 945 ); 946 value 947 .get() 948 .expect("Return Value for property `gtk-double-click-time` getter") 949 } 950 } 951 set_gtk_double_click_time(&self, gtk_double_click_time: i32)952 fn set_gtk_double_click_time(&self, gtk_double_click_time: i32) { 953 unsafe { 954 glib::gobject_ffi::g_object_set_property( 955 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 956 b"gtk-double-click-time\0".as_ptr() as *const _, 957 gtk_double_click_time.to_value().to_glib_none().0, 958 ); 959 } 960 } 961 is_gtk_enable_accels(&self) -> bool962 fn is_gtk_enable_accels(&self) -> bool { 963 unsafe { 964 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 965 glib::gobject_ffi::g_object_get_property( 966 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 967 b"gtk-enable-accels\0".as_ptr() as *const _, 968 value.to_glib_none_mut().0, 969 ); 970 value 971 .get() 972 .expect("Return Value for property `gtk-enable-accels` getter") 973 } 974 } 975 set_gtk_enable_accels(&self, gtk_enable_accels: bool)976 fn set_gtk_enable_accels(&self, gtk_enable_accels: bool) { 977 unsafe { 978 glib::gobject_ffi::g_object_set_property( 979 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 980 b"gtk-enable-accels\0".as_ptr() as *const _, 981 gtk_enable_accels.to_value().to_glib_none().0, 982 ); 983 } 984 } 985 is_gtk_enable_animations(&self) -> bool986 fn is_gtk_enable_animations(&self) -> bool { 987 unsafe { 988 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 989 glib::gobject_ffi::g_object_get_property( 990 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 991 b"gtk-enable-animations\0".as_ptr() as *const _, 992 value.to_glib_none_mut().0, 993 ); 994 value 995 .get() 996 .expect("Return Value for property `gtk-enable-animations` getter") 997 } 998 } 999 set_gtk_enable_animations(&self, gtk_enable_animations: bool)1000 fn set_gtk_enable_animations(&self, gtk_enable_animations: bool) { 1001 unsafe { 1002 glib::gobject_ffi::g_object_set_property( 1003 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1004 b"gtk-enable-animations\0".as_ptr() as *const _, 1005 gtk_enable_animations.to_value().to_glib_none().0, 1006 ); 1007 } 1008 } 1009 is_gtk_enable_event_sounds(&self) -> bool1010 fn is_gtk_enable_event_sounds(&self) -> bool { 1011 unsafe { 1012 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1013 glib::gobject_ffi::g_object_get_property( 1014 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1015 b"gtk-enable-event-sounds\0".as_ptr() as *const _, 1016 value.to_glib_none_mut().0, 1017 ); 1018 value 1019 .get() 1020 .expect("Return Value for property `gtk-enable-event-sounds` getter") 1021 } 1022 } 1023 set_gtk_enable_event_sounds(&self, gtk_enable_event_sounds: bool)1024 fn set_gtk_enable_event_sounds(&self, gtk_enable_event_sounds: bool) { 1025 unsafe { 1026 glib::gobject_ffi::g_object_set_property( 1027 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1028 b"gtk-enable-event-sounds\0".as_ptr() as *const _, 1029 gtk_enable_event_sounds.to_value().to_glib_none().0, 1030 ); 1031 } 1032 } 1033 is_gtk_enable_input_feedback_sounds(&self) -> bool1034 fn is_gtk_enable_input_feedback_sounds(&self) -> bool { 1035 unsafe { 1036 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1037 glib::gobject_ffi::g_object_get_property( 1038 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1039 b"gtk-enable-input-feedback-sounds\0".as_ptr() as *const _, 1040 value.to_glib_none_mut().0, 1041 ); 1042 value 1043 .get() 1044 .expect("Return Value for property `gtk-enable-input-feedback-sounds` getter") 1045 } 1046 } 1047 set_gtk_enable_input_feedback_sounds(&self, gtk_enable_input_feedback_sounds: bool)1048 fn set_gtk_enable_input_feedback_sounds(&self, gtk_enable_input_feedback_sounds: bool) { 1049 unsafe { 1050 glib::gobject_ffi::g_object_set_property( 1051 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1052 b"gtk-enable-input-feedback-sounds\0".as_ptr() as *const _, 1053 gtk_enable_input_feedback_sounds.to_value().to_glib_none().0, 1054 ); 1055 } 1056 } 1057 is_gtk_enable_primary_paste(&self) -> bool1058 fn is_gtk_enable_primary_paste(&self) -> bool { 1059 unsafe { 1060 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1061 glib::gobject_ffi::g_object_get_property( 1062 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1063 b"gtk-enable-primary-paste\0".as_ptr() as *const _, 1064 value.to_glib_none_mut().0, 1065 ); 1066 value 1067 .get() 1068 .expect("Return Value for property `gtk-enable-primary-paste` getter") 1069 } 1070 } 1071 set_gtk_enable_primary_paste(&self, gtk_enable_primary_paste: bool)1072 fn set_gtk_enable_primary_paste(&self, gtk_enable_primary_paste: bool) { 1073 unsafe { 1074 glib::gobject_ffi::g_object_set_property( 1075 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1076 b"gtk-enable-primary-paste\0".as_ptr() as *const _, 1077 gtk_enable_primary_paste.to_value().to_glib_none().0, 1078 ); 1079 } 1080 } 1081 gtk_entry_password_hint_timeout(&self) -> u321082 fn gtk_entry_password_hint_timeout(&self) -> u32 { 1083 unsafe { 1084 let mut value = glib::Value::from_type(<u32 as StaticType>::static_type()); 1085 glib::gobject_ffi::g_object_get_property( 1086 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1087 b"gtk-entry-password-hint-timeout\0".as_ptr() as *const _, 1088 value.to_glib_none_mut().0, 1089 ); 1090 value 1091 .get() 1092 .expect("Return Value for property `gtk-entry-password-hint-timeout` getter") 1093 } 1094 } 1095 set_gtk_entry_password_hint_timeout(&self, gtk_entry_password_hint_timeout: u32)1096 fn set_gtk_entry_password_hint_timeout(&self, gtk_entry_password_hint_timeout: u32) { 1097 unsafe { 1098 glib::gobject_ffi::g_object_set_property( 1099 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1100 b"gtk-entry-password-hint-timeout\0".as_ptr() as *const _, 1101 gtk_entry_password_hint_timeout.to_value().to_glib_none().0, 1102 ); 1103 } 1104 } 1105 is_gtk_entry_select_on_focus(&self) -> bool1106 fn is_gtk_entry_select_on_focus(&self) -> bool { 1107 unsafe { 1108 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1109 glib::gobject_ffi::g_object_get_property( 1110 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1111 b"gtk-entry-select-on-focus\0".as_ptr() as *const _, 1112 value.to_glib_none_mut().0, 1113 ); 1114 value 1115 .get() 1116 .expect("Return Value for property `gtk-entry-select-on-focus` getter") 1117 } 1118 } 1119 set_gtk_entry_select_on_focus(&self, gtk_entry_select_on_focus: bool)1120 fn set_gtk_entry_select_on_focus(&self, gtk_entry_select_on_focus: bool) { 1121 unsafe { 1122 glib::gobject_ffi::g_object_set_property( 1123 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1124 b"gtk-entry-select-on-focus\0".as_ptr() as *const _, 1125 gtk_entry_select_on_focus.to_value().to_glib_none().0, 1126 ); 1127 } 1128 } 1129 is_gtk_error_bell(&self) -> bool1130 fn is_gtk_error_bell(&self) -> bool { 1131 unsafe { 1132 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1133 glib::gobject_ffi::g_object_get_property( 1134 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1135 b"gtk-error-bell\0".as_ptr() as *const _, 1136 value.to_glib_none_mut().0, 1137 ); 1138 value 1139 .get() 1140 .expect("Return Value for property `gtk-error-bell` getter") 1141 } 1142 } 1143 set_gtk_error_bell(&self, gtk_error_bell: bool)1144 fn set_gtk_error_bell(&self, gtk_error_bell: bool) { 1145 unsafe { 1146 glib::gobject_ffi::g_object_set_property( 1147 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1148 b"gtk-error-bell\0".as_ptr() as *const _, 1149 gtk_error_bell.to_value().to_glib_none().0, 1150 ); 1151 } 1152 } 1153 gtk_font_name(&self) -> Option<glib::GString>1154 fn gtk_font_name(&self) -> Option<glib::GString> { 1155 unsafe { 1156 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1157 glib::gobject_ffi::g_object_get_property( 1158 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1159 b"gtk-font-name\0".as_ptr() as *const _, 1160 value.to_glib_none_mut().0, 1161 ); 1162 value 1163 .get() 1164 .expect("Return Value for property `gtk-font-name` getter") 1165 } 1166 } 1167 set_gtk_font_name(&self, gtk_font_name: Option<&str>)1168 fn set_gtk_font_name(&self, gtk_font_name: Option<&str>) { 1169 unsafe { 1170 glib::gobject_ffi::g_object_set_property( 1171 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1172 b"gtk-font-name\0".as_ptr() as *const _, 1173 gtk_font_name.to_value().to_glib_none().0, 1174 ); 1175 } 1176 } 1177 gtk_fontconfig_timestamp(&self) -> u321178 fn gtk_fontconfig_timestamp(&self) -> u32 { 1179 unsafe { 1180 let mut value = glib::Value::from_type(<u32 as StaticType>::static_type()); 1181 glib::gobject_ffi::g_object_get_property( 1182 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1183 b"gtk-fontconfig-timestamp\0".as_ptr() as *const _, 1184 value.to_glib_none_mut().0, 1185 ); 1186 value 1187 .get() 1188 .expect("Return Value for property `gtk-fontconfig-timestamp` getter") 1189 } 1190 } 1191 set_gtk_fontconfig_timestamp(&self, gtk_fontconfig_timestamp: u32)1192 fn set_gtk_fontconfig_timestamp(&self, gtk_fontconfig_timestamp: u32) { 1193 unsafe { 1194 glib::gobject_ffi::g_object_set_property( 1195 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1196 b"gtk-fontconfig-timestamp\0".as_ptr() as *const _, 1197 gtk_fontconfig_timestamp.to_value().to_glib_none().0, 1198 ); 1199 } 1200 } 1201 gtk_icon_theme_name(&self) -> Option<glib::GString>1202 fn gtk_icon_theme_name(&self) -> Option<glib::GString> { 1203 unsafe { 1204 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1205 glib::gobject_ffi::g_object_get_property( 1206 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1207 b"gtk-icon-theme-name\0".as_ptr() as *const _, 1208 value.to_glib_none_mut().0, 1209 ); 1210 value 1211 .get() 1212 .expect("Return Value for property `gtk-icon-theme-name` getter") 1213 } 1214 } 1215 set_gtk_icon_theme_name(&self, gtk_icon_theme_name: Option<&str>)1216 fn set_gtk_icon_theme_name(&self, gtk_icon_theme_name: Option<&str>) { 1217 unsafe { 1218 glib::gobject_ffi::g_object_set_property( 1219 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1220 b"gtk-icon-theme-name\0".as_ptr() as *const _, 1221 gtk_icon_theme_name.to_value().to_glib_none().0, 1222 ); 1223 } 1224 } 1225 gtk_im_module(&self) -> Option<glib::GString>1226 fn gtk_im_module(&self) -> Option<glib::GString> { 1227 unsafe { 1228 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1229 glib::gobject_ffi::g_object_get_property( 1230 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1231 b"gtk-im-module\0".as_ptr() as *const _, 1232 value.to_glib_none_mut().0, 1233 ); 1234 value 1235 .get() 1236 .expect("Return Value for property `gtk-im-module` getter") 1237 } 1238 } 1239 set_gtk_im_module(&self, gtk_im_module: Option<&str>)1240 fn set_gtk_im_module(&self, gtk_im_module: Option<&str>) { 1241 unsafe { 1242 glib::gobject_ffi::g_object_set_property( 1243 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1244 b"gtk-im-module\0".as_ptr() as *const _, 1245 gtk_im_module.to_value().to_glib_none().0, 1246 ); 1247 } 1248 } 1249 gtk_key_theme_name(&self) -> Option<glib::GString>1250 fn gtk_key_theme_name(&self) -> Option<glib::GString> { 1251 unsafe { 1252 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1253 glib::gobject_ffi::g_object_get_property( 1254 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1255 b"gtk-key-theme-name\0".as_ptr() as *const _, 1256 value.to_glib_none_mut().0, 1257 ); 1258 value 1259 .get() 1260 .expect("Return Value for property `gtk-key-theme-name` getter") 1261 } 1262 } 1263 set_gtk_key_theme_name(&self, gtk_key_theme_name: Option<&str>)1264 fn set_gtk_key_theme_name(&self, gtk_key_theme_name: Option<&str>) { 1265 unsafe { 1266 glib::gobject_ffi::g_object_set_property( 1267 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1268 b"gtk-key-theme-name\0".as_ptr() as *const _, 1269 gtk_key_theme_name.to_value().to_glib_none().0, 1270 ); 1271 } 1272 } 1273 1274 #[cfg(any(feature = "v3_20", feature = "dox"))] 1275 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] is_gtk_keynav_use_caret(&self) -> bool1276 fn is_gtk_keynav_use_caret(&self) -> bool { 1277 unsafe { 1278 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1279 glib::gobject_ffi::g_object_get_property( 1280 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1281 b"gtk-keynav-use-caret\0".as_ptr() as *const _, 1282 value.to_glib_none_mut().0, 1283 ); 1284 value 1285 .get() 1286 .expect("Return Value for property `gtk-keynav-use-caret` getter") 1287 } 1288 } 1289 1290 #[cfg(any(feature = "v3_20", feature = "dox"))] 1291 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] set_gtk_keynav_use_caret(&self, gtk_keynav_use_caret: bool)1292 fn set_gtk_keynav_use_caret(&self, gtk_keynav_use_caret: bool) { 1293 unsafe { 1294 glib::gobject_ffi::g_object_set_property( 1295 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1296 b"gtk-keynav-use-caret\0".as_ptr() as *const _, 1297 gtk_keynav_use_caret.to_value().to_glib_none().0, 1298 ); 1299 } 1300 } 1301 is_gtk_label_select_on_focus(&self) -> bool1302 fn is_gtk_label_select_on_focus(&self) -> bool { 1303 unsafe { 1304 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1305 glib::gobject_ffi::g_object_get_property( 1306 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1307 b"gtk-label-select-on-focus\0".as_ptr() as *const _, 1308 value.to_glib_none_mut().0, 1309 ); 1310 value 1311 .get() 1312 .expect("Return Value for property `gtk-label-select-on-focus` getter") 1313 } 1314 } 1315 set_gtk_label_select_on_focus(&self, gtk_label_select_on_focus: bool)1316 fn set_gtk_label_select_on_focus(&self, gtk_label_select_on_focus: bool) { 1317 unsafe { 1318 glib::gobject_ffi::g_object_set_property( 1319 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1320 b"gtk-label-select-on-focus\0".as_ptr() as *const _, 1321 gtk_label_select_on_focus.to_value().to_glib_none().0, 1322 ); 1323 } 1324 } 1325 gtk_long_press_time(&self) -> u321326 fn gtk_long_press_time(&self) -> u32 { 1327 unsafe { 1328 let mut value = glib::Value::from_type(<u32 as StaticType>::static_type()); 1329 glib::gobject_ffi::g_object_get_property( 1330 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1331 b"gtk-long-press-time\0".as_ptr() as *const _, 1332 value.to_glib_none_mut().0, 1333 ); 1334 value 1335 .get() 1336 .expect("Return Value for property `gtk-long-press-time` getter") 1337 } 1338 } 1339 set_gtk_long_press_time(&self, gtk_long_press_time: u32)1340 fn set_gtk_long_press_time(&self, gtk_long_press_time: u32) { 1341 unsafe { 1342 glib::gobject_ffi::g_object_set_property( 1343 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1344 b"gtk-long-press-time\0".as_ptr() as *const _, 1345 gtk_long_press_time.to_value().to_glib_none().0, 1346 ); 1347 } 1348 } 1349 gtk_modules(&self) -> Option<glib::GString>1350 fn gtk_modules(&self) -> Option<glib::GString> { 1351 unsafe { 1352 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1353 glib::gobject_ffi::g_object_get_property( 1354 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1355 b"gtk-modules\0".as_ptr() as *const _, 1356 value.to_glib_none_mut().0, 1357 ); 1358 value 1359 .get() 1360 .expect("Return Value for property `gtk-modules` getter") 1361 } 1362 } 1363 set_gtk_modules(&self, gtk_modules: Option<&str>)1364 fn set_gtk_modules(&self, gtk_modules: Option<&str>) { 1365 unsafe { 1366 glib::gobject_ffi::g_object_set_property( 1367 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1368 b"gtk-modules\0".as_ptr() as *const _, 1369 gtk_modules.to_value().to_glib_none().0, 1370 ); 1371 } 1372 } 1373 1374 #[cfg(any(feature = "v3_24_9", feature = "dox"))] 1375 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24_9")))] is_gtk_overlay_scrolling(&self) -> bool1376 fn is_gtk_overlay_scrolling(&self) -> bool { 1377 unsafe { 1378 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1379 glib::gobject_ffi::g_object_get_property( 1380 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1381 b"gtk-overlay-scrolling\0".as_ptr() as *const _, 1382 value.to_glib_none_mut().0, 1383 ); 1384 value 1385 .get() 1386 .expect("Return Value for property `gtk-overlay-scrolling` getter") 1387 } 1388 } 1389 1390 #[cfg(any(feature = "v3_24_9", feature = "dox"))] 1391 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24_9")))] set_gtk_overlay_scrolling(&self, gtk_overlay_scrolling: bool)1392 fn set_gtk_overlay_scrolling(&self, gtk_overlay_scrolling: bool) { 1393 unsafe { 1394 glib::gobject_ffi::g_object_set_property( 1395 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1396 b"gtk-overlay-scrolling\0".as_ptr() as *const _, 1397 gtk_overlay_scrolling.to_value().to_glib_none().0, 1398 ); 1399 } 1400 } 1401 is_gtk_primary_button_warps_slider(&self) -> bool1402 fn is_gtk_primary_button_warps_slider(&self) -> bool { 1403 unsafe { 1404 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1405 glib::gobject_ffi::g_object_get_property( 1406 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1407 b"gtk-primary-button-warps-slider\0".as_ptr() as *const _, 1408 value.to_glib_none_mut().0, 1409 ); 1410 value 1411 .get() 1412 .expect("Return Value for property `gtk-primary-button-warps-slider` getter") 1413 } 1414 } 1415 set_gtk_primary_button_warps_slider(&self, gtk_primary_button_warps_slider: bool)1416 fn set_gtk_primary_button_warps_slider(&self, gtk_primary_button_warps_slider: bool) { 1417 unsafe { 1418 glib::gobject_ffi::g_object_set_property( 1419 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1420 b"gtk-primary-button-warps-slider\0".as_ptr() as *const _, 1421 gtk_primary_button_warps_slider.to_value().to_glib_none().0, 1422 ); 1423 } 1424 } 1425 gtk_print_backends(&self) -> Option<glib::GString>1426 fn gtk_print_backends(&self) -> Option<glib::GString> { 1427 unsafe { 1428 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1429 glib::gobject_ffi::g_object_get_property( 1430 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1431 b"gtk-print-backends\0".as_ptr() as *const _, 1432 value.to_glib_none_mut().0, 1433 ); 1434 value 1435 .get() 1436 .expect("Return Value for property `gtk-print-backends` getter") 1437 } 1438 } 1439 set_gtk_print_backends(&self, gtk_print_backends: Option<&str>)1440 fn set_gtk_print_backends(&self, gtk_print_backends: Option<&str>) { 1441 unsafe { 1442 glib::gobject_ffi::g_object_set_property( 1443 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1444 b"gtk-print-backends\0".as_ptr() as *const _, 1445 gtk_print_backends.to_value().to_glib_none().0, 1446 ); 1447 } 1448 } 1449 gtk_print_preview_command(&self) -> Option<glib::GString>1450 fn gtk_print_preview_command(&self) -> Option<glib::GString> { 1451 unsafe { 1452 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1453 glib::gobject_ffi::g_object_get_property( 1454 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1455 b"gtk-print-preview-command\0".as_ptr() as *const _, 1456 value.to_glib_none_mut().0, 1457 ); 1458 value 1459 .get() 1460 .expect("Return Value for property `gtk-print-preview-command` getter") 1461 } 1462 } 1463 set_gtk_print_preview_command(&self, gtk_print_preview_command: Option<&str>)1464 fn set_gtk_print_preview_command(&self, gtk_print_preview_command: Option<&str>) { 1465 unsafe { 1466 glib::gobject_ffi::g_object_set_property( 1467 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1468 b"gtk-print-preview-command\0".as_ptr() as *const _, 1469 gtk_print_preview_command.to_value().to_glib_none().0, 1470 ); 1471 } 1472 } 1473 is_gtk_recent_files_enabled(&self) -> bool1474 fn is_gtk_recent_files_enabled(&self) -> bool { 1475 unsafe { 1476 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1477 glib::gobject_ffi::g_object_get_property( 1478 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1479 b"gtk-recent-files-enabled\0".as_ptr() as *const _, 1480 value.to_glib_none_mut().0, 1481 ); 1482 value 1483 .get() 1484 .expect("Return Value for property `gtk-recent-files-enabled` getter") 1485 } 1486 } 1487 set_gtk_recent_files_enabled(&self, gtk_recent_files_enabled: bool)1488 fn set_gtk_recent_files_enabled(&self, gtk_recent_files_enabled: bool) { 1489 unsafe { 1490 glib::gobject_ffi::g_object_set_property( 1491 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1492 b"gtk-recent-files-enabled\0".as_ptr() as *const _, 1493 gtk_recent_files_enabled.to_value().to_glib_none().0, 1494 ); 1495 } 1496 } 1497 gtk_recent_files_max_age(&self) -> i321498 fn gtk_recent_files_max_age(&self) -> i32 { 1499 unsafe { 1500 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1501 glib::gobject_ffi::g_object_get_property( 1502 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1503 b"gtk-recent-files-max-age\0".as_ptr() as *const _, 1504 value.to_glib_none_mut().0, 1505 ); 1506 value 1507 .get() 1508 .expect("Return Value for property `gtk-recent-files-max-age` getter") 1509 } 1510 } 1511 set_gtk_recent_files_max_age(&self, gtk_recent_files_max_age: i32)1512 fn set_gtk_recent_files_max_age(&self, gtk_recent_files_max_age: i32) { 1513 unsafe { 1514 glib::gobject_ffi::g_object_set_property( 1515 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1516 b"gtk-recent-files-max-age\0".as_ptr() as *const _, 1517 gtk_recent_files_max_age.to_value().to_glib_none().0, 1518 ); 1519 } 1520 } 1521 is_gtk_shell_shows_app_menu(&self) -> bool1522 fn is_gtk_shell_shows_app_menu(&self) -> bool { 1523 unsafe { 1524 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1525 glib::gobject_ffi::g_object_get_property( 1526 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1527 b"gtk-shell-shows-app-menu\0".as_ptr() as *const _, 1528 value.to_glib_none_mut().0, 1529 ); 1530 value 1531 .get() 1532 .expect("Return Value for property `gtk-shell-shows-app-menu` getter") 1533 } 1534 } 1535 set_gtk_shell_shows_app_menu(&self, gtk_shell_shows_app_menu: bool)1536 fn set_gtk_shell_shows_app_menu(&self, gtk_shell_shows_app_menu: bool) { 1537 unsafe { 1538 glib::gobject_ffi::g_object_set_property( 1539 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1540 b"gtk-shell-shows-app-menu\0".as_ptr() as *const _, 1541 gtk_shell_shows_app_menu.to_value().to_glib_none().0, 1542 ); 1543 } 1544 } 1545 is_gtk_shell_shows_desktop(&self) -> bool1546 fn is_gtk_shell_shows_desktop(&self) -> bool { 1547 unsafe { 1548 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1549 glib::gobject_ffi::g_object_get_property( 1550 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1551 b"gtk-shell-shows-desktop\0".as_ptr() as *const _, 1552 value.to_glib_none_mut().0, 1553 ); 1554 value 1555 .get() 1556 .expect("Return Value for property `gtk-shell-shows-desktop` getter") 1557 } 1558 } 1559 set_gtk_shell_shows_desktop(&self, gtk_shell_shows_desktop: bool)1560 fn set_gtk_shell_shows_desktop(&self, gtk_shell_shows_desktop: bool) { 1561 unsafe { 1562 glib::gobject_ffi::g_object_set_property( 1563 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1564 b"gtk-shell-shows-desktop\0".as_ptr() as *const _, 1565 gtk_shell_shows_desktop.to_value().to_glib_none().0, 1566 ); 1567 } 1568 } 1569 is_gtk_shell_shows_menubar(&self) -> bool1570 fn is_gtk_shell_shows_menubar(&self) -> bool { 1571 unsafe { 1572 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1573 glib::gobject_ffi::g_object_get_property( 1574 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1575 b"gtk-shell-shows-menubar\0".as_ptr() as *const _, 1576 value.to_glib_none_mut().0, 1577 ); 1578 value 1579 .get() 1580 .expect("Return Value for property `gtk-shell-shows-menubar` getter") 1581 } 1582 } 1583 set_gtk_shell_shows_menubar(&self, gtk_shell_shows_menubar: bool)1584 fn set_gtk_shell_shows_menubar(&self, gtk_shell_shows_menubar: bool) { 1585 unsafe { 1586 glib::gobject_ffi::g_object_set_property( 1587 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1588 b"gtk-shell-shows-menubar\0".as_ptr() as *const _, 1589 gtk_shell_shows_menubar.to_value().to_glib_none().0, 1590 ); 1591 } 1592 } 1593 gtk_sound_theme_name(&self) -> Option<glib::GString>1594 fn gtk_sound_theme_name(&self) -> Option<glib::GString> { 1595 unsafe { 1596 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1597 glib::gobject_ffi::g_object_get_property( 1598 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1599 b"gtk-sound-theme-name\0".as_ptr() as *const _, 1600 value.to_glib_none_mut().0, 1601 ); 1602 value 1603 .get() 1604 .expect("Return Value for property `gtk-sound-theme-name` getter") 1605 } 1606 } 1607 set_gtk_sound_theme_name(&self, gtk_sound_theme_name: Option<&str>)1608 fn set_gtk_sound_theme_name(&self, gtk_sound_theme_name: Option<&str>) { 1609 unsafe { 1610 glib::gobject_ffi::g_object_set_property( 1611 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1612 b"gtk-sound-theme-name\0".as_ptr() as *const _, 1613 gtk_sound_theme_name.to_value().to_glib_none().0, 1614 ); 1615 } 1616 } 1617 is_gtk_split_cursor(&self) -> bool1618 fn is_gtk_split_cursor(&self) -> bool { 1619 unsafe { 1620 let mut value = glib::Value::from_type(<bool as StaticType>::static_type()); 1621 glib::gobject_ffi::g_object_get_property( 1622 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1623 b"gtk-split-cursor\0".as_ptr() as *const _, 1624 value.to_glib_none_mut().0, 1625 ); 1626 value 1627 .get() 1628 .expect("Return Value for property `gtk-split-cursor` getter") 1629 } 1630 } 1631 set_gtk_split_cursor(&self, gtk_split_cursor: bool)1632 fn set_gtk_split_cursor(&self, gtk_split_cursor: bool) { 1633 unsafe { 1634 glib::gobject_ffi::g_object_set_property( 1635 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1636 b"gtk-split-cursor\0".as_ptr() as *const _, 1637 gtk_split_cursor.to_value().to_glib_none().0, 1638 ); 1639 } 1640 } 1641 gtk_theme_name(&self) -> Option<glib::GString>1642 fn gtk_theme_name(&self) -> Option<glib::GString> { 1643 unsafe { 1644 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1645 glib::gobject_ffi::g_object_get_property( 1646 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1647 b"gtk-theme-name\0".as_ptr() as *const _, 1648 value.to_glib_none_mut().0, 1649 ); 1650 value 1651 .get() 1652 .expect("Return Value for property `gtk-theme-name` getter") 1653 } 1654 } 1655 set_gtk_theme_name(&self, gtk_theme_name: Option<&str>)1656 fn set_gtk_theme_name(&self, gtk_theme_name: Option<&str>) { 1657 unsafe { 1658 glib::gobject_ffi::g_object_set_property( 1659 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1660 b"gtk-theme-name\0".as_ptr() as *const _, 1661 gtk_theme_name.to_value().to_glib_none().0, 1662 ); 1663 } 1664 } 1665 gtk_titlebar_double_click(&self) -> Option<glib::GString>1666 fn gtk_titlebar_double_click(&self) -> Option<glib::GString> { 1667 unsafe { 1668 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1669 glib::gobject_ffi::g_object_get_property( 1670 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1671 b"gtk-titlebar-double-click\0".as_ptr() as *const _, 1672 value.to_glib_none_mut().0, 1673 ); 1674 value 1675 .get() 1676 .expect("Return Value for property `gtk-titlebar-double-click` getter") 1677 } 1678 } 1679 set_gtk_titlebar_double_click(&self, gtk_titlebar_double_click: Option<&str>)1680 fn set_gtk_titlebar_double_click(&self, gtk_titlebar_double_click: Option<&str>) { 1681 unsafe { 1682 glib::gobject_ffi::g_object_set_property( 1683 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1684 b"gtk-titlebar-double-click\0".as_ptr() as *const _, 1685 gtk_titlebar_double_click.to_value().to_glib_none().0, 1686 ); 1687 } 1688 } 1689 gtk_titlebar_middle_click(&self) -> Option<glib::GString>1690 fn gtk_titlebar_middle_click(&self) -> Option<glib::GString> { 1691 unsafe { 1692 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1693 glib::gobject_ffi::g_object_get_property( 1694 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1695 b"gtk-titlebar-middle-click\0".as_ptr() as *const _, 1696 value.to_glib_none_mut().0, 1697 ); 1698 value 1699 .get() 1700 .expect("Return Value for property `gtk-titlebar-middle-click` getter") 1701 } 1702 } 1703 set_gtk_titlebar_middle_click(&self, gtk_titlebar_middle_click: Option<&str>)1704 fn set_gtk_titlebar_middle_click(&self, gtk_titlebar_middle_click: Option<&str>) { 1705 unsafe { 1706 glib::gobject_ffi::g_object_set_property( 1707 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1708 b"gtk-titlebar-middle-click\0".as_ptr() as *const _, 1709 gtk_titlebar_middle_click.to_value().to_glib_none().0, 1710 ); 1711 } 1712 } 1713 gtk_titlebar_right_click(&self) -> Option<glib::GString>1714 fn gtk_titlebar_right_click(&self) -> Option<glib::GString> { 1715 unsafe { 1716 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1717 glib::gobject_ffi::g_object_get_property( 1718 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1719 b"gtk-titlebar-right-click\0".as_ptr() as *const _, 1720 value.to_glib_none_mut().0, 1721 ); 1722 value 1723 .get() 1724 .expect("Return Value for property `gtk-titlebar-right-click` getter") 1725 } 1726 } 1727 set_gtk_titlebar_right_click(&self, gtk_titlebar_right_click: Option<&str>)1728 fn set_gtk_titlebar_right_click(&self, gtk_titlebar_right_click: Option<&str>) { 1729 unsafe { 1730 glib::gobject_ffi::g_object_set_property( 1731 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1732 b"gtk-titlebar-right-click\0".as_ptr() as *const _, 1733 gtk_titlebar_right_click.to_value().to_glib_none().0, 1734 ); 1735 } 1736 } 1737 gtk_xft_antialias(&self) -> i321738 fn gtk_xft_antialias(&self) -> i32 { 1739 unsafe { 1740 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1741 glib::gobject_ffi::g_object_get_property( 1742 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1743 b"gtk-xft-antialias\0".as_ptr() as *const _, 1744 value.to_glib_none_mut().0, 1745 ); 1746 value 1747 .get() 1748 .expect("Return Value for property `gtk-xft-antialias` getter") 1749 } 1750 } 1751 set_gtk_xft_antialias(&self, gtk_xft_antialias: i32)1752 fn set_gtk_xft_antialias(&self, gtk_xft_antialias: i32) { 1753 unsafe { 1754 glib::gobject_ffi::g_object_set_property( 1755 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1756 b"gtk-xft-antialias\0".as_ptr() as *const _, 1757 gtk_xft_antialias.to_value().to_glib_none().0, 1758 ); 1759 } 1760 } 1761 gtk_xft_dpi(&self) -> i321762 fn gtk_xft_dpi(&self) -> i32 { 1763 unsafe { 1764 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1765 glib::gobject_ffi::g_object_get_property( 1766 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1767 b"gtk-xft-dpi\0".as_ptr() as *const _, 1768 value.to_glib_none_mut().0, 1769 ); 1770 value 1771 .get() 1772 .expect("Return Value for property `gtk-xft-dpi` getter") 1773 } 1774 } 1775 set_gtk_xft_dpi(&self, gtk_xft_dpi: i32)1776 fn set_gtk_xft_dpi(&self, gtk_xft_dpi: i32) { 1777 unsafe { 1778 glib::gobject_ffi::g_object_set_property( 1779 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1780 b"gtk-xft-dpi\0".as_ptr() as *const _, 1781 gtk_xft_dpi.to_value().to_glib_none().0, 1782 ); 1783 } 1784 } 1785 gtk_xft_hinting(&self) -> i321786 fn gtk_xft_hinting(&self) -> i32 { 1787 unsafe { 1788 let mut value = glib::Value::from_type(<i32 as StaticType>::static_type()); 1789 glib::gobject_ffi::g_object_get_property( 1790 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1791 b"gtk-xft-hinting\0".as_ptr() as *const _, 1792 value.to_glib_none_mut().0, 1793 ); 1794 value 1795 .get() 1796 .expect("Return Value for property `gtk-xft-hinting` getter") 1797 } 1798 } 1799 set_gtk_xft_hinting(&self, gtk_xft_hinting: i32)1800 fn set_gtk_xft_hinting(&self, gtk_xft_hinting: i32) { 1801 unsafe { 1802 glib::gobject_ffi::g_object_set_property( 1803 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1804 b"gtk-xft-hinting\0".as_ptr() as *const _, 1805 gtk_xft_hinting.to_value().to_glib_none().0, 1806 ); 1807 } 1808 } 1809 gtk_xft_hintstyle(&self) -> Option<glib::GString>1810 fn gtk_xft_hintstyle(&self) -> Option<glib::GString> { 1811 unsafe { 1812 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1813 glib::gobject_ffi::g_object_get_property( 1814 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1815 b"gtk-xft-hintstyle\0".as_ptr() as *const _, 1816 value.to_glib_none_mut().0, 1817 ); 1818 value 1819 .get() 1820 .expect("Return Value for property `gtk-xft-hintstyle` getter") 1821 } 1822 } 1823 set_gtk_xft_hintstyle(&self, gtk_xft_hintstyle: Option<&str>)1824 fn set_gtk_xft_hintstyle(&self, gtk_xft_hintstyle: Option<&str>) { 1825 unsafe { 1826 glib::gobject_ffi::g_object_set_property( 1827 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1828 b"gtk-xft-hintstyle\0".as_ptr() as *const _, 1829 gtk_xft_hintstyle.to_value().to_glib_none().0, 1830 ); 1831 } 1832 } 1833 gtk_xft_rgba(&self) -> Option<glib::GString>1834 fn gtk_xft_rgba(&self) -> Option<glib::GString> { 1835 unsafe { 1836 let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type()); 1837 glib::gobject_ffi::g_object_get_property( 1838 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1839 b"gtk-xft-rgba\0".as_ptr() as *const _, 1840 value.to_glib_none_mut().0, 1841 ); 1842 value 1843 .get() 1844 .expect("Return Value for property `gtk-xft-rgba` getter") 1845 } 1846 } 1847 set_gtk_xft_rgba(&self, gtk_xft_rgba: Option<&str>)1848 fn set_gtk_xft_rgba(&self, gtk_xft_rgba: Option<&str>) { 1849 unsafe { 1850 glib::gobject_ffi::g_object_set_property( 1851 self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, 1852 b"gtk-xft-rgba\0".as_ptr() as *const _, 1853 gtk_xft_rgba.to_value().to_glib_none().0, 1854 ); 1855 } 1856 } 1857 connect_gtk_alternative_button_order_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1858 fn connect_gtk_alternative_button_order_notify<F: Fn(&Self) + 'static>( 1859 &self, 1860 f: F, 1861 ) -> SignalHandlerId { 1862 unsafe extern "C" fn notify_gtk_alternative_button_order_trampoline< 1863 P: IsA<Settings>, 1864 F: Fn(&P) + 'static, 1865 >( 1866 this: *mut ffi::GtkSettings, 1867 _param_spec: glib::ffi::gpointer, 1868 f: glib::ffi::gpointer, 1869 ) { 1870 let f: &F = &*(f as *const F); 1871 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 1872 } 1873 unsafe { 1874 let f: Box_<F> = Box_::new(f); 1875 connect_raw( 1876 self.as_ptr() as *mut _, 1877 b"notify::gtk-alternative-button-order\0".as_ptr() as *const _, 1878 Some(transmute::<_, unsafe extern "C" fn()>( 1879 notify_gtk_alternative_button_order_trampoline::<Self, F> as *const (), 1880 )), 1881 Box_::into_raw(f), 1882 ) 1883 } 1884 } 1885 connect_gtk_alternative_sort_arrows_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1886 fn connect_gtk_alternative_sort_arrows_notify<F: Fn(&Self) + 'static>( 1887 &self, 1888 f: F, 1889 ) -> SignalHandlerId { 1890 unsafe extern "C" fn notify_gtk_alternative_sort_arrows_trampoline< 1891 P: IsA<Settings>, 1892 F: Fn(&P) + 'static, 1893 >( 1894 this: *mut ffi::GtkSettings, 1895 _param_spec: glib::ffi::gpointer, 1896 f: glib::ffi::gpointer, 1897 ) { 1898 let f: &F = &*(f as *const F); 1899 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 1900 } 1901 unsafe { 1902 let f: Box_<F> = Box_::new(f); 1903 connect_raw( 1904 self.as_ptr() as *mut _, 1905 b"notify::gtk-alternative-sort-arrows\0".as_ptr() as *const _, 1906 Some(transmute::<_, unsafe extern "C" fn()>( 1907 notify_gtk_alternative_sort_arrows_trampoline::<Self, F> as *const (), 1908 )), 1909 Box_::into_raw(f), 1910 ) 1911 } 1912 } 1913 connect_gtk_application_prefer_dark_theme_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1914 fn connect_gtk_application_prefer_dark_theme_notify<F: Fn(&Self) + 'static>( 1915 &self, 1916 f: F, 1917 ) -> SignalHandlerId { 1918 unsafe extern "C" fn notify_gtk_application_prefer_dark_theme_trampoline< 1919 P: IsA<Settings>, 1920 F: Fn(&P) + 'static, 1921 >( 1922 this: *mut ffi::GtkSettings, 1923 _param_spec: glib::ffi::gpointer, 1924 f: glib::ffi::gpointer, 1925 ) { 1926 let f: &F = &*(f as *const F); 1927 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 1928 } 1929 unsafe { 1930 let f: Box_<F> = Box_::new(f); 1931 connect_raw( 1932 self.as_ptr() as *mut _, 1933 b"notify::gtk-application-prefer-dark-theme\0".as_ptr() as *const _, 1934 Some(transmute::<_, unsafe extern "C" fn()>( 1935 notify_gtk_application_prefer_dark_theme_trampoline::<Self, F> as *const (), 1936 )), 1937 Box_::into_raw(f), 1938 ) 1939 } 1940 } 1941 1942 #[cfg(any(feature = "v3_24", feature = "dox"))] 1943 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24")))] connect_gtk_cursor_aspect_ratio_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1944 fn connect_gtk_cursor_aspect_ratio_notify<F: Fn(&Self) + 'static>( 1945 &self, 1946 f: F, 1947 ) -> SignalHandlerId { 1948 unsafe extern "C" fn notify_gtk_cursor_aspect_ratio_trampoline< 1949 P: IsA<Settings>, 1950 F: Fn(&P) + 'static, 1951 >( 1952 this: *mut ffi::GtkSettings, 1953 _param_spec: glib::ffi::gpointer, 1954 f: glib::ffi::gpointer, 1955 ) { 1956 let f: &F = &*(f as *const F); 1957 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 1958 } 1959 unsafe { 1960 let f: Box_<F> = Box_::new(f); 1961 connect_raw( 1962 self.as_ptr() as *mut _, 1963 b"notify::gtk-cursor-aspect-ratio\0".as_ptr() as *const _, 1964 Some(transmute::<_, unsafe extern "C" fn()>( 1965 notify_gtk_cursor_aspect_ratio_trampoline::<Self, F> as *const (), 1966 )), 1967 Box_::into_raw(f), 1968 ) 1969 } 1970 } 1971 connect_gtk_cursor_blink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId1972 fn connect_gtk_cursor_blink_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 1973 unsafe extern "C" fn notify_gtk_cursor_blink_trampoline< 1974 P: IsA<Settings>, 1975 F: Fn(&P) + 'static, 1976 >( 1977 this: *mut ffi::GtkSettings, 1978 _param_spec: glib::ffi::gpointer, 1979 f: glib::ffi::gpointer, 1980 ) { 1981 let f: &F = &*(f as *const F); 1982 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 1983 } 1984 unsafe { 1985 let f: Box_<F> = Box_::new(f); 1986 connect_raw( 1987 self.as_ptr() as *mut _, 1988 b"notify::gtk-cursor-blink\0".as_ptr() as *const _, 1989 Some(transmute::<_, unsafe extern "C" fn()>( 1990 notify_gtk_cursor_blink_trampoline::<Self, F> as *const (), 1991 )), 1992 Box_::into_raw(f), 1993 ) 1994 } 1995 } 1996 connect_gtk_cursor_blink_time_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId1997 fn connect_gtk_cursor_blink_time_notify<F: Fn(&Self) + 'static>( 1998 &self, 1999 f: F, 2000 ) -> SignalHandlerId { 2001 unsafe extern "C" fn notify_gtk_cursor_blink_time_trampoline< 2002 P: IsA<Settings>, 2003 F: Fn(&P) + 'static, 2004 >( 2005 this: *mut ffi::GtkSettings, 2006 _param_spec: glib::ffi::gpointer, 2007 f: glib::ffi::gpointer, 2008 ) { 2009 let f: &F = &*(f as *const F); 2010 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2011 } 2012 unsafe { 2013 let f: Box_<F> = Box_::new(f); 2014 connect_raw( 2015 self.as_ptr() as *mut _, 2016 b"notify::gtk-cursor-blink-time\0".as_ptr() as *const _, 2017 Some(transmute::<_, unsafe extern "C" fn()>( 2018 notify_gtk_cursor_blink_time_trampoline::<Self, F> as *const (), 2019 )), 2020 Box_::into_raw(f), 2021 ) 2022 } 2023 } 2024 connect_gtk_cursor_blink_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2025 fn connect_gtk_cursor_blink_timeout_notify<F: Fn(&Self) + 'static>( 2026 &self, 2027 f: F, 2028 ) -> SignalHandlerId { 2029 unsafe extern "C" fn notify_gtk_cursor_blink_timeout_trampoline< 2030 P: IsA<Settings>, 2031 F: Fn(&P) + 'static, 2032 >( 2033 this: *mut ffi::GtkSettings, 2034 _param_spec: glib::ffi::gpointer, 2035 f: glib::ffi::gpointer, 2036 ) { 2037 let f: &F = &*(f as *const F); 2038 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2039 } 2040 unsafe { 2041 let f: Box_<F> = Box_::new(f); 2042 connect_raw( 2043 self.as_ptr() as *mut _, 2044 b"notify::gtk-cursor-blink-timeout\0".as_ptr() as *const _, 2045 Some(transmute::<_, unsafe extern "C" fn()>( 2046 notify_gtk_cursor_blink_timeout_trampoline::<Self, F> as *const (), 2047 )), 2048 Box_::into_raw(f), 2049 ) 2050 } 2051 } 2052 connect_gtk_cursor_theme_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2053 fn connect_gtk_cursor_theme_name_notify<F: Fn(&Self) + 'static>( 2054 &self, 2055 f: F, 2056 ) -> SignalHandlerId { 2057 unsafe extern "C" fn notify_gtk_cursor_theme_name_trampoline< 2058 P: IsA<Settings>, 2059 F: Fn(&P) + 'static, 2060 >( 2061 this: *mut ffi::GtkSettings, 2062 _param_spec: glib::ffi::gpointer, 2063 f: glib::ffi::gpointer, 2064 ) { 2065 let f: &F = &*(f as *const F); 2066 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2067 } 2068 unsafe { 2069 let f: Box_<F> = Box_::new(f); 2070 connect_raw( 2071 self.as_ptr() as *mut _, 2072 b"notify::gtk-cursor-theme-name\0".as_ptr() as *const _, 2073 Some(transmute::<_, unsafe extern "C" fn()>( 2074 notify_gtk_cursor_theme_name_trampoline::<Self, F> as *const (), 2075 )), 2076 Box_::into_raw(f), 2077 ) 2078 } 2079 } 2080 connect_gtk_cursor_theme_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2081 fn connect_gtk_cursor_theme_size_notify<F: Fn(&Self) + 'static>( 2082 &self, 2083 f: F, 2084 ) -> SignalHandlerId { 2085 unsafe extern "C" fn notify_gtk_cursor_theme_size_trampoline< 2086 P: IsA<Settings>, 2087 F: Fn(&P) + 'static, 2088 >( 2089 this: *mut ffi::GtkSettings, 2090 _param_spec: glib::ffi::gpointer, 2091 f: glib::ffi::gpointer, 2092 ) { 2093 let f: &F = &*(f as *const F); 2094 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2095 } 2096 unsafe { 2097 let f: Box_<F> = Box_::new(f); 2098 connect_raw( 2099 self.as_ptr() as *mut _, 2100 b"notify::gtk-cursor-theme-size\0".as_ptr() as *const _, 2101 Some(transmute::<_, unsafe extern "C" fn()>( 2102 notify_gtk_cursor_theme_size_trampoline::<Self, F> as *const (), 2103 )), 2104 Box_::into_raw(f), 2105 ) 2106 } 2107 } 2108 connect_gtk_decoration_layout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2109 fn connect_gtk_decoration_layout_notify<F: Fn(&Self) + 'static>( 2110 &self, 2111 f: F, 2112 ) -> SignalHandlerId { 2113 unsafe extern "C" fn notify_gtk_decoration_layout_trampoline< 2114 P: IsA<Settings>, 2115 F: Fn(&P) + 'static, 2116 >( 2117 this: *mut ffi::GtkSettings, 2118 _param_spec: glib::ffi::gpointer, 2119 f: glib::ffi::gpointer, 2120 ) { 2121 let f: &F = &*(f as *const F); 2122 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2123 } 2124 unsafe { 2125 let f: Box_<F> = Box_::new(f); 2126 connect_raw( 2127 self.as_ptr() as *mut _, 2128 b"notify::gtk-decoration-layout\0".as_ptr() as *const _, 2129 Some(transmute::<_, unsafe extern "C" fn()>( 2130 notify_gtk_decoration_layout_trampoline::<Self, F> as *const (), 2131 )), 2132 Box_::into_raw(f), 2133 ) 2134 } 2135 } 2136 connect_gtk_dialogs_use_header_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2137 fn connect_gtk_dialogs_use_header_notify<F: Fn(&Self) + 'static>( 2138 &self, 2139 f: F, 2140 ) -> SignalHandlerId { 2141 unsafe extern "C" fn notify_gtk_dialogs_use_header_trampoline< 2142 P: IsA<Settings>, 2143 F: Fn(&P) + 'static, 2144 >( 2145 this: *mut ffi::GtkSettings, 2146 _param_spec: glib::ffi::gpointer, 2147 f: glib::ffi::gpointer, 2148 ) { 2149 let f: &F = &*(f as *const F); 2150 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2151 } 2152 unsafe { 2153 let f: Box_<F> = Box_::new(f); 2154 connect_raw( 2155 self.as_ptr() as *mut _, 2156 b"notify::gtk-dialogs-use-header\0".as_ptr() as *const _, 2157 Some(transmute::<_, unsafe extern "C" fn()>( 2158 notify_gtk_dialogs_use_header_trampoline::<Self, F> as *const (), 2159 )), 2160 Box_::into_raw(f), 2161 ) 2162 } 2163 } 2164 connect_gtk_dnd_drag_threshold_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2165 fn connect_gtk_dnd_drag_threshold_notify<F: Fn(&Self) + 'static>( 2166 &self, 2167 f: F, 2168 ) -> SignalHandlerId { 2169 unsafe extern "C" fn notify_gtk_dnd_drag_threshold_trampoline< 2170 P: IsA<Settings>, 2171 F: Fn(&P) + 'static, 2172 >( 2173 this: *mut ffi::GtkSettings, 2174 _param_spec: glib::ffi::gpointer, 2175 f: glib::ffi::gpointer, 2176 ) { 2177 let f: &F = &*(f as *const F); 2178 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2179 } 2180 unsafe { 2181 let f: Box_<F> = Box_::new(f); 2182 connect_raw( 2183 self.as_ptr() as *mut _, 2184 b"notify::gtk-dnd-drag-threshold\0".as_ptr() as *const _, 2185 Some(transmute::<_, unsafe extern "C" fn()>( 2186 notify_gtk_dnd_drag_threshold_trampoline::<Self, F> as *const (), 2187 )), 2188 Box_::into_raw(f), 2189 ) 2190 } 2191 } 2192 connect_gtk_double_click_distance_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2193 fn connect_gtk_double_click_distance_notify<F: Fn(&Self) + 'static>( 2194 &self, 2195 f: F, 2196 ) -> SignalHandlerId { 2197 unsafe extern "C" fn notify_gtk_double_click_distance_trampoline< 2198 P: IsA<Settings>, 2199 F: Fn(&P) + 'static, 2200 >( 2201 this: *mut ffi::GtkSettings, 2202 _param_spec: glib::ffi::gpointer, 2203 f: glib::ffi::gpointer, 2204 ) { 2205 let f: &F = &*(f as *const F); 2206 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2207 } 2208 unsafe { 2209 let f: Box_<F> = Box_::new(f); 2210 connect_raw( 2211 self.as_ptr() as *mut _, 2212 b"notify::gtk-double-click-distance\0".as_ptr() as *const _, 2213 Some(transmute::<_, unsafe extern "C" fn()>( 2214 notify_gtk_double_click_distance_trampoline::<Self, F> as *const (), 2215 )), 2216 Box_::into_raw(f), 2217 ) 2218 } 2219 } 2220 connect_gtk_double_click_time_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2221 fn connect_gtk_double_click_time_notify<F: Fn(&Self) + 'static>( 2222 &self, 2223 f: F, 2224 ) -> SignalHandlerId { 2225 unsafe extern "C" fn notify_gtk_double_click_time_trampoline< 2226 P: IsA<Settings>, 2227 F: Fn(&P) + 'static, 2228 >( 2229 this: *mut ffi::GtkSettings, 2230 _param_spec: glib::ffi::gpointer, 2231 f: glib::ffi::gpointer, 2232 ) { 2233 let f: &F = &*(f as *const F); 2234 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2235 } 2236 unsafe { 2237 let f: Box_<F> = Box_::new(f); 2238 connect_raw( 2239 self.as_ptr() as *mut _, 2240 b"notify::gtk-double-click-time\0".as_ptr() as *const _, 2241 Some(transmute::<_, unsafe extern "C" fn()>( 2242 notify_gtk_double_click_time_trampoline::<Self, F> as *const (), 2243 )), 2244 Box_::into_raw(f), 2245 ) 2246 } 2247 } 2248 connect_gtk_enable_accels_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2249 fn connect_gtk_enable_accels_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2250 unsafe extern "C" fn notify_gtk_enable_accels_trampoline< 2251 P: IsA<Settings>, 2252 F: Fn(&P) + 'static, 2253 >( 2254 this: *mut ffi::GtkSettings, 2255 _param_spec: glib::ffi::gpointer, 2256 f: glib::ffi::gpointer, 2257 ) { 2258 let f: &F = &*(f as *const F); 2259 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2260 } 2261 unsafe { 2262 let f: Box_<F> = Box_::new(f); 2263 connect_raw( 2264 self.as_ptr() as *mut _, 2265 b"notify::gtk-enable-accels\0".as_ptr() as *const _, 2266 Some(transmute::<_, unsafe extern "C" fn()>( 2267 notify_gtk_enable_accels_trampoline::<Self, F> as *const (), 2268 )), 2269 Box_::into_raw(f), 2270 ) 2271 } 2272 } 2273 connect_gtk_enable_animations_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2274 fn connect_gtk_enable_animations_notify<F: Fn(&Self) + 'static>( 2275 &self, 2276 f: F, 2277 ) -> SignalHandlerId { 2278 unsafe extern "C" fn notify_gtk_enable_animations_trampoline< 2279 P: IsA<Settings>, 2280 F: Fn(&P) + 'static, 2281 >( 2282 this: *mut ffi::GtkSettings, 2283 _param_spec: glib::ffi::gpointer, 2284 f: glib::ffi::gpointer, 2285 ) { 2286 let f: &F = &*(f as *const F); 2287 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2288 } 2289 unsafe { 2290 let f: Box_<F> = Box_::new(f); 2291 connect_raw( 2292 self.as_ptr() as *mut _, 2293 b"notify::gtk-enable-animations\0".as_ptr() as *const _, 2294 Some(transmute::<_, unsafe extern "C" fn()>( 2295 notify_gtk_enable_animations_trampoline::<Self, F> as *const (), 2296 )), 2297 Box_::into_raw(f), 2298 ) 2299 } 2300 } 2301 connect_gtk_enable_event_sounds_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2302 fn connect_gtk_enable_event_sounds_notify<F: Fn(&Self) + 'static>( 2303 &self, 2304 f: F, 2305 ) -> SignalHandlerId { 2306 unsafe extern "C" fn notify_gtk_enable_event_sounds_trampoline< 2307 P: IsA<Settings>, 2308 F: Fn(&P) + 'static, 2309 >( 2310 this: *mut ffi::GtkSettings, 2311 _param_spec: glib::ffi::gpointer, 2312 f: glib::ffi::gpointer, 2313 ) { 2314 let f: &F = &*(f as *const F); 2315 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2316 } 2317 unsafe { 2318 let f: Box_<F> = Box_::new(f); 2319 connect_raw( 2320 self.as_ptr() as *mut _, 2321 b"notify::gtk-enable-event-sounds\0".as_ptr() as *const _, 2322 Some(transmute::<_, unsafe extern "C" fn()>( 2323 notify_gtk_enable_event_sounds_trampoline::<Self, F> as *const (), 2324 )), 2325 Box_::into_raw(f), 2326 ) 2327 } 2328 } 2329 connect_gtk_enable_input_feedback_sounds_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2330 fn connect_gtk_enable_input_feedback_sounds_notify<F: Fn(&Self) + 'static>( 2331 &self, 2332 f: F, 2333 ) -> SignalHandlerId { 2334 unsafe extern "C" fn notify_gtk_enable_input_feedback_sounds_trampoline< 2335 P: IsA<Settings>, 2336 F: Fn(&P) + 'static, 2337 >( 2338 this: *mut ffi::GtkSettings, 2339 _param_spec: glib::ffi::gpointer, 2340 f: glib::ffi::gpointer, 2341 ) { 2342 let f: &F = &*(f as *const F); 2343 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2344 } 2345 unsafe { 2346 let f: Box_<F> = Box_::new(f); 2347 connect_raw( 2348 self.as_ptr() as *mut _, 2349 b"notify::gtk-enable-input-feedback-sounds\0".as_ptr() as *const _, 2350 Some(transmute::<_, unsafe extern "C" fn()>( 2351 notify_gtk_enable_input_feedback_sounds_trampoline::<Self, F> as *const (), 2352 )), 2353 Box_::into_raw(f), 2354 ) 2355 } 2356 } 2357 connect_gtk_enable_primary_paste_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2358 fn connect_gtk_enable_primary_paste_notify<F: Fn(&Self) + 'static>( 2359 &self, 2360 f: F, 2361 ) -> SignalHandlerId { 2362 unsafe extern "C" fn notify_gtk_enable_primary_paste_trampoline< 2363 P: IsA<Settings>, 2364 F: Fn(&P) + 'static, 2365 >( 2366 this: *mut ffi::GtkSettings, 2367 _param_spec: glib::ffi::gpointer, 2368 f: glib::ffi::gpointer, 2369 ) { 2370 let f: &F = &*(f as *const F); 2371 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2372 } 2373 unsafe { 2374 let f: Box_<F> = Box_::new(f); 2375 connect_raw( 2376 self.as_ptr() as *mut _, 2377 b"notify::gtk-enable-primary-paste\0".as_ptr() as *const _, 2378 Some(transmute::<_, unsafe extern "C" fn()>( 2379 notify_gtk_enable_primary_paste_trampoline::<Self, F> as *const (), 2380 )), 2381 Box_::into_raw(f), 2382 ) 2383 } 2384 } 2385 connect_gtk_entry_password_hint_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2386 fn connect_gtk_entry_password_hint_timeout_notify<F: Fn(&Self) + 'static>( 2387 &self, 2388 f: F, 2389 ) -> SignalHandlerId { 2390 unsafe extern "C" fn notify_gtk_entry_password_hint_timeout_trampoline< 2391 P: IsA<Settings>, 2392 F: Fn(&P) + 'static, 2393 >( 2394 this: *mut ffi::GtkSettings, 2395 _param_spec: glib::ffi::gpointer, 2396 f: glib::ffi::gpointer, 2397 ) { 2398 let f: &F = &*(f as *const F); 2399 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2400 } 2401 unsafe { 2402 let f: Box_<F> = Box_::new(f); 2403 connect_raw( 2404 self.as_ptr() as *mut _, 2405 b"notify::gtk-entry-password-hint-timeout\0".as_ptr() as *const _, 2406 Some(transmute::<_, unsafe extern "C" fn()>( 2407 notify_gtk_entry_password_hint_timeout_trampoline::<Self, F> as *const (), 2408 )), 2409 Box_::into_raw(f), 2410 ) 2411 } 2412 } 2413 connect_gtk_entry_select_on_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2414 fn connect_gtk_entry_select_on_focus_notify<F: Fn(&Self) + 'static>( 2415 &self, 2416 f: F, 2417 ) -> SignalHandlerId { 2418 unsafe extern "C" fn notify_gtk_entry_select_on_focus_trampoline< 2419 P: IsA<Settings>, 2420 F: Fn(&P) + 'static, 2421 >( 2422 this: *mut ffi::GtkSettings, 2423 _param_spec: glib::ffi::gpointer, 2424 f: glib::ffi::gpointer, 2425 ) { 2426 let f: &F = &*(f as *const F); 2427 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2428 } 2429 unsafe { 2430 let f: Box_<F> = Box_::new(f); 2431 connect_raw( 2432 self.as_ptr() as *mut _, 2433 b"notify::gtk-entry-select-on-focus\0".as_ptr() as *const _, 2434 Some(transmute::<_, unsafe extern "C" fn()>( 2435 notify_gtk_entry_select_on_focus_trampoline::<Self, F> as *const (), 2436 )), 2437 Box_::into_raw(f), 2438 ) 2439 } 2440 } 2441 connect_gtk_error_bell_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2442 fn connect_gtk_error_bell_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2443 unsafe extern "C" fn notify_gtk_error_bell_trampoline< 2444 P: IsA<Settings>, 2445 F: Fn(&P) + 'static, 2446 >( 2447 this: *mut ffi::GtkSettings, 2448 _param_spec: glib::ffi::gpointer, 2449 f: glib::ffi::gpointer, 2450 ) { 2451 let f: &F = &*(f as *const F); 2452 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2453 } 2454 unsafe { 2455 let f: Box_<F> = Box_::new(f); 2456 connect_raw( 2457 self.as_ptr() as *mut _, 2458 b"notify::gtk-error-bell\0".as_ptr() as *const _, 2459 Some(transmute::<_, unsafe extern "C" fn()>( 2460 notify_gtk_error_bell_trampoline::<Self, F> as *const (), 2461 )), 2462 Box_::into_raw(f), 2463 ) 2464 } 2465 } 2466 connect_gtk_font_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2467 fn connect_gtk_font_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2468 unsafe extern "C" fn notify_gtk_font_name_trampoline< 2469 P: IsA<Settings>, 2470 F: Fn(&P) + 'static, 2471 >( 2472 this: *mut ffi::GtkSettings, 2473 _param_spec: glib::ffi::gpointer, 2474 f: glib::ffi::gpointer, 2475 ) { 2476 let f: &F = &*(f as *const F); 2477 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2478 } 2479 unsafe { 2480 let f: Box_<F> = Box_::new(f); 2481 connect_raw( 2482 self.as_ptr() as *mut _, 2483 b"notify::gtk-font-name\0".as_ptr() as *const _, 2484 Some(transmute::<_, unsafe extern "C" fn()>( 2485 notify_gtk_font_name_trampoline::<Self, F> as *const (), 2486 )), 2487 Box_::into_raw(f), 2488 ) 2489 } 2490 } 2491 connect_gtk_fontconfig_timestamp_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2492 fn connect_gtk_fontconfig_timestamp_notify<F: Fn(&Self) + 'static>( 2493 &self, 2494 f: F, 2495 ) -> SignalHandlerId { 2496 unsafe extern "C" fn notify_gtk_fontconfig_timestamp_trampoline< 2497 P: IsA<Settings>, 2498 F: Fn(&P) + 'static, 2499 >( 2500 this: *mut ffi::GtkSettings, 2501 _param_spec: glib::ffi::gpointer, 2502 f: glib::ffi::gpointer, 2503 ) { 2504 let f: &F = &*(f as *const F); 2505 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2506 } 2507 unsafe { 2508 let f: Box_<F> = Box_::new(f); 2509 connect_raw( 2510 self.as_ptr() as *mut _, 2511 b"notify::gtk-fontconfig-timestamp\0".as_ptr() as *const _, 2512 Some(transmute::<_, unsafe extern "C" fn()>( 2513 notify_gtk_fontconfig_timestamp_trampoline::<Self, F> as *const (), 2514 )), 2515 Box_::into_raw(f), 2516 ) 2517 } 2518 } 2519 connect_gtk_icon_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2520 fn connect_gtk_icon_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2521 unsafe extern "C" fn notify_gtk_icon_theme_name_trampoline< 2522 P: IsA<Settings>, 2523 F: Fn(&P) + 'static, 2524 >( 2525 this: *mut ffi::GtkSettings, 2526 _param_spec: glib::ffi::gpointer, 2527 f: glib::ffi::gpointer, 2528 ) { 2529 let f: &F = &*(f as *const F); 2530 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2531 } 2532 unsafe { 2533 let f: Box_<F> = Box_::new(f); 2534 connect_raw( 2535 self.as_ptr() as *mut _, 2536 b"notify::gtk-icon-theme-name\0".as_ptr() as *const _, 2537 Some(transmute::<_, unsafe extern "C" fn()>( 2538 notify_gtk_icon_theme_name_trampoline::<Self, F> as *const (), 2539 )), 2540 Box_::into_raw(f), 2541 ) 2542 } 2543 } 2544 connect_gtk_im_module_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2545 fn connect_gtk_im_module_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2546 unsafe extern "C" fn notify_gtk_im_module_trampoline< 2547 P: IsA<Settings>, 2548 F: Fn(&P) + 'static, 2549 >( 2550 this: *mut ffi::GtkSettings, 2551 _param_spec: glib::ffi::gpointer, 2552 f: glib::ffi::gpointer, 2553 ) { 2554 let f: &F = &*(f as *const F); 2555 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2556 } 2557 unsafe { 2558 let f: Box_<F> = Box_::new(f); 2559 connect_raw( 2560 self.as_ptr() as *mut _, 2561 b"notify::gtk-im-module\0".as_ptr() as *const _, 2562 Some(transmute::<_, unsafe extern "C" fn()>( 2563 notify_gtk_im_module_trampoline::<Self, F> as *const (), 2564 )), 2565 Box_::into_raw(f), 2566 ) 2567 } 2568 } 2569 connect_gtk_key_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2570 fn connect_gtk_key_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2571 unsafe extern "C" fn notify_gtk_key_theme_name_trampoline< 2572 P: IsA<Settings>, 2573 F: Fn(&P) + 'static, 2574 >( 2575 this: *mut ffi::GtkSettings, 2576 _param_spec: glib::ffi::gpointer, 2577 f: glib::ffi::gpointer, 2578 ) { 2579 let f: &F = &*(f as *const F); 2580 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2581 } 2582 unsafe { 2583 let f: Box_<F> = Box_::new(f); 2584 connect_raw( 2585 self.as_ptr() as *mut _, 2586 b"notify::gtk-key-theme-name\0".as_ptr() as *const _, 2587 Some(transmute::<_, unsafe extern "C" fn()>( 2588 notify_gtk_key_theme_name_trampoline::<Self, F> as *const (), 2589 )), 2590 Box_::into_raw(f), 2591 ) 2592 } 2593 } 2594 2595 #[cfg(any(feature = "v3_20", feature = "dox"))] 2596 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_20")))] connect_gtk_keynav_use_caret_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2597 fn connect_gtk_keynav_use_caret_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2598 unsafe extern "C" fn notify_gtk_keynav_use_caret_trampoline< 2599 P: IsA<Settings>, 2600 F: Fn(&P) + 'static, 2601 >( 2602 this: *mut ffi::GtkSettings, 2603 _param_spec: glib::ffi::gpointer, 2604 f: glib::ffi::gpointer, 2605 ) { 2606 let f: &F = &*(f as *const F); 2607 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2608 } 2609 unsafe { 2610 let f: Box_<F> = Box_::new(f); 2611 connect_raw( 2612 self.as_ptr() as *mut _, 2613 b"notify::gtk-keynav-use-caret\0".as_ptr() as *const _, 2614 Some(transmute::<_, unsafe extern "C" fn()>( 2615 notify_gtk_keynav_use_caret_trampoline::<Self, F> as *const (), 2616 )), 2617 Box_::into_raw(f), 2618 ) 2619 } 2620 } 2621 connect_gtk_label_select_on_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2622 fn connect_gtk_label_select_on_focus_notify<F: Fn(&Self) + 'static>( 2623 &self, 2624 f: F, 2625 ) -> SignalHandlerId { 2626 unsafe extern "C" fn notify_gtk_label_select_on_focus_trampoline< 2627 P: IsA<Settings>, 2628 F: Fn(&P) + 'static, 2629 >( 2630 this: *mut ffi::GtkSettings, 2631 _param_spec: glib::ffi::gpointer, 2632 f: glib::ffi::gpointer, 2633 ) { 2634 let f: &F = &*(f as *const F); 2635 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2636 } 2637 unsafe { 2638 let f: Box_<F> = Box_::new(f); 2639 connect_raw( 2640 self.as_ptr() as *mut _, 2641 b"notify::gtk-label-select-on-focus\0".as_ptr() as *const _, 2642 Some(transmute::<_, unsafe extern "C" fn()>( 2643 notify_gtk_label_select_on_focus_trampoline::<Self, F> as *const (), 2644 )), 2645 Box_::into_raw(f), 2646 ) 2647 } 2648 } 2649 connect_gtk_long_press_time_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2650 fn connect_gtk_long_press_time_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2651 unsafe extern "C" fn notify_gtk_long_press_time_trampoline< 2652 P: IsA<Settings>, 2653 F: Fn(&P) + 'static, 2654 >( 2655 this: *mut ffi::GtkSettings, 2656 _param_spec: glib::ffi::gpointer, 2657 f: glib::ffi::gpointer, 2658 ) { 2659 let f: &F = &*(f as *const F); 2660 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2661 } 2662 unsafe { 2663 let f: Box_<F> = Box_::new(f); 2664 connect_raw( 2665 self.as_ptr() as *mut _, 2666 b"notify::gtk-long-press-time\0".as_ptr() as *const _, 2667 Some(transmute::<_, unsafe extern "C" fn()>( 2668 notify_gtk_long_press_time_trampoline::<Self, F> as *const (), 2669 )), 2670 Box_::into_raw(f), 2671 ) 2672 } 2673 } 2674 connect_gtk_modules_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2675 fn connect_gtk_modules_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2676 unsafe extern "C" fn notify_gtk_modules_trampoline< 2677 P: IsA<Settings>, 2678 F: Fn(&P) + 'static, 2679 >( 2680 this: *mut ffi::GtkSettings, 2681 _param_spec: glib::ffi::gpointer, 2682 f: glib::ffi::gpointer, 2683 ) { 2684 let f: &F = &*(f as *const F); 2685 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2686 } 2687 unsafe { 2688 let f: Box_<F> = Box_::new(f); 2689 connect_raw( 2690 self.as_ptr() as *mut _, 2691 b"notify::gtk-modules\0".as_ptr() as *const _, 2692 Some(transmute::<_, unsafe extern "C" fn()>( 2693 notify_gtk_modules_trampoline::<Self, F> as *const (), 2694 )), 2695 Box_::into_raw(f), 2696 ) 2697 } 2698 } 2699 2700 #[cfg(any(feature = "v3_24_9", feature = "dox"))] 2701 #[cfg_attr(feature = "dox", doc(cfg(feature = "v3_24_9")))] connect_gtk_overlay_scrolling_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2702 fn connect_gtk_overlay_scrolling_notify<F: Fn(&Self) + 'static>( 2703 &self, 2704 f: F, 2705 ) -> SignalHandlerId { 2706 unsafe extern "C" fn notify_gtk_overlay_scrolling_trampoline< 2707 P: IsA<Settings>, 2708 F: Fn(&P) + 'static, 2709 >( 2710 this: *mut ffi::GtkSettings, 2711 _param_spec: glib::ffi::gpointer, 2712 f: glib::ffi::gpointer, 2713 ) { 2714 let f: &F = &*(f as *const F); 2715 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2716 } 2717 unsafe { 2718 let f: Box_<F> = Box_::new(f); 2719 connect_raw( 2720 self.as_ptr() as *mut _, 2721 b"notify::gtk-overlay-scrolling\0".as_ptr() as *const _, 2722 Some(transmute::<_, unsafe extern "C" fn()>( 2723 notify_gtk_overlay_scrolling_trampoline::<Self, F> as *const (), 2724 )), 2725 Box_::into_raw(f), 2726 ) 2727 } 2728 } 2729 connect_gtk_primary_button_warps_slider_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2730 fn connect_gtk_primary_button_warps_slider_notify<F: Fn(&Self) + 'static>( 2731 &self, 2732 f: F, 2733 ) -> SignalHandlerId { 2734 unsafe extern "C" fn notify_gtk_primary_button_warps_slider_trampoline< 2735 P: IsA<Settings>, 2736 F: Fn(&P) + 'static, 2737 >( 2738 this: *mut ffi::GtkSettings, 2739 _param_spec: glib::ffi::gpointer, 2740 f: glib::ffi::gpointer, 2741 ) { 2742 let f: &F = &*(f as *const F); 2743 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2744 } 2745 unsafe { 2746 let f: Box_<F> = Box_::new(f); 2747 connect_raw( 2748 self.as_ptr() as *mut _, 2749 b"notify::gtk-primary-button-warps-slider\0".as_ptr() as *const _, 2750 Some(transmute::<_, unsafe extern "C" fn()>( 2751 notify_gtk_primary_button_warps_slider_trampoline::<Self, F> as *const (), 2752 )), 2753 Box_::into_raw(f), 2754 ) 2755 } 2756 } 2757 connect_gtk_print_backends_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2758 fn connect_gtk_print_backends_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2759 unsafe extern "C" fn notify_gtk_print_backends_trampoline< 2760 P: IsA<Settings>, 2761 F: Fn(&P) + 'static, 2762 >( 2763 this: *mut ffi::GtkSettings, 2764 _param_spec: glib::ffi::gpointer, 2765 f: glib::ffi::gpointer, 2766 ) { 2767 let f: &F = &*(f as *const F); 2768 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2769 } 2770 unsafe { 2771 let f: Box_<F> = Box_::new(f); 2772 connect_raw( 2773 self.as_ptr() as *mut _, 2774 b"notify::gtk-print-backends\0".as_ptr() as *const _, 2775 Some(transmute::<_, unsafe extern "C" fn()>( 2776 notify_gtk_print_backends_trampoline::<Self, F> as *const (), 2777 )), 2778 Box_::into_raw(f), 2779 ) 2780 } 2781 } 2782 connect_gtk_print_preview_command_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2783 fn connect_gtk_print_preview_command_notify<F: Fn(&Self) + 'static>( 2784 &self, 2785 f: F, 2786 ) -> SignalHandlerId { 2787 unsafe extern "C" fn notify_gtk_print_preview_command_trampoline< 2788 P: IsA<Settings>, 2789 F: Fn(&P) + 'static, 2790 >( 2791 this: *mut ffi::GtkSettings, 2792 _param_spec: glib::ffi::gpointer, 2793 f: glib::ffi::gpointer, 2794 ) { 2795 let f: &F = &*(f as *const F); 2796 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2797 } 2798 unsafe { 2799 let f: Box_<F> = Box_::new(f); 2800 connect_raw( 2801 self.as_ptr() as *mut _, 2802 b"notify::gtk-print-preview-command\0".as_ptr() as *const _, 2803 Some(transmute::<_, unsafe extern "C" fn()>( 2804 notify_gtk_print_preview_command_trampoline::<Self, F> as *const (), 2805 )), 2806 Box_::into_raw(f), 2807 ) 2808 } 2809 } 2810 connect_gtk_recent_files_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2811 fn connect_gtk_recent_files_enabled_notify<F: Fn(&Self) + 'static>( 2812 &self, 2813 f: F, 2814 ) -> SignalHandlerId { 2815 unsafe extern "C" fn notify_gtk_recent_files_enabled_trampoline< 2816 P: IsA<Settings>, 2817 F: Fn(&P) + 'static, 2818 >( 2819 this: *mut ffi::GtkSettings, 2820 _param_spec: glib::ffi::gpointer, 2821 f: glib::ffi::gpointer, 2822 ) { 2823 let f: &F = &*(f as *const F); 2824 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2825 } 2826 unsafe { 2827 let f: Box_<F> = Box_::new(f); 2828 connect_raw( 2829 self.as_ptr() as *mut _, 2830 b"notify::gtk-recent-files-enabled\0".as_ptr() as *const _, 2831 Some(transmute::<_, unsafe extern "C" fn()>( 2832 notify_gtk_recent_files_enabled_trampoline::<Self, F> as *const (), 2833 )), 2834 Box_::into_raw(f), 2835 ) 2836 } 2837 } 2838 connect_gtk_recent_files_max_age_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2839 fn connect_gtk_recent_files_max_age_notify<F: Fn(&Self) + 'static>( 2840 &self, 2841 f: F, 2842 ) -> SignalHandlerId { 2843 unsafe extern "C" fn notify_gtk_recent_files_max_age_trampoline< 2844 P: IsA<Settings>, 2845 F: Fn(&P) + 'static, 2846 >( 2847 this: *mut ffi::GtkSettings, 2848 _param_spec: glib::ffi::gpointer, 2849 f: glib::ffi::gpointer, 2850 ) { 2851 let f: &F = &*(f as *const F); 2852 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2853 } 2854 unsafe { 2855 let f: Box_<F> = Box_::new(f); 2856 connect_raw( 2857 self.as_ptr() as *mut _, 2858 b"notify::gtk-recent-files-max-age\0".as_ptr() as *const _, 2859 Some(transmute::<_, unsafe extern "C" fn()>( 2860 notify_gtk_recent_files_max_age_trampoline::<Self, F> as *const (), 2861 )), 2862 Box_::into_raw(f), 2863 ) 2864 } 2865 } 2866 connect_gtk_shell_shows_app_menu_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2867 fn connect_gtk_shell_shows_app_menu_notify<F: Fn(&Self) + 'static>( 2868 &self, 2869 f: F, 2870 ) -> SignalHandlerId { 2871 unsafe extern "C" fn notify_gtk_shell_shows_app_menu_trampoline< 2872 P: IsA<Settings>, 2873 F: Fn(&P) + 'static, 2874 >( 2875 this: *mut ffi::GtkSettings, 2876 _param_spec: glib::ffi::gpointer, 2877 f: glib::ffi::gpointer, 2878 ) { 2879 let f: &F = &*(f as *const F); 2880 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2881 } 2882 unsafe { 2883 let f: Box_<F> = Box_::new(f); 2884 connect_raw( 2885 self.as_ptr() as *mut _, 2886 b"notify::gtk-shell-shows-app-menu\0".as_ptr() as *const _, 2887 Some(transmute::<_, unsafe extern "C" fn()>( 2888 notify_gtk_shell_shows_app_menu_trampoline::<Self, F> as *const (), 2889 )), 2890 Box_::into_raw(f), 2891 ) 2892 } 2893 } 2894 connect_gtk_shell_shows_desktop_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2895 fn connect_gtk_shell_shows_desktop_notify<F: Fn(&Self) + 'static>( 2896 &self, 2897 f: F, 2898 ) -> SignalHandlerId { 2899 unsafe extern "C" fn notify_gtk_shell_shows_desktop_trampoline< 2900 P: IsA<Settings>, 2901 F: Fn(&P) + 'static, 2902 >( 2903 this: *mut ffi::GtkSettings, 2904 _param_spec: glib::ffi::gpointer, 2905 f: glib::ffi::gpointer, 2906 ) { 2907 let f: &F = &*(f as *const F); 2908 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2909 } 2910 unsafe { 2911 let f: Box_<F> = Box_::new(f); 2912 connect_raw( 2913 self.as_ptr() as *mut _, 2914 b"notify::gtk-shell-shows-desktop\0".as_ptr() as *const _, 2915 Some(transmute::<_, unsafe extern "C" fn()>( 2916 notify_gtk_shell_shows_desktop_trampoline::<Self, F> as *const (), 2917 )), 2918 Box_::into_raw(f), 2919 ) 2920 } 2921 } 2922 connect_gtk_shell_shows_menubar_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId2923 fn connect_gtk_shell_shows_menubar_notify<F: Fn(&Self) + 'static>( 2924 &self, 2925 f: F, 2926 ) -> SignalHandlerId { 2927 unsafe extern "C" fn notify_gtk_shell_shows_menubar_trampoline< 2928 P: IsA<Settings>, 2929 F: Fn(&P) + 'static, 2930 >( 2931 this: *mut ffi::GtkSettings, 2932 _param_spec: glib::ffi::gpointer, 2933 f: glib::ffi::gpointer, 2934 ) { 2935 let f: &F = &*(f as *const F); 2936 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2937 } 2938 unsafe { 2939 let f: Box_<F> = Box_::new(f); 2940 connect_raw( 2941 self.as_ptr() as *mut _, 2942 b"notify::gtk-shell-shows-menubar\0".as_ptr() as *const _, 2943 Some(transmute::<_, unsafe extern "C" fn()>( 2944 notify_gtk_shell_shows_menubar_trampoline::<Self, F> as *const (), 2945 )), 2946 Box_::into_raw(f), 2947 ) 2948 } 2949 } 2950 connect_gtk_sound_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2951 fn connect_gtk_sound_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2952 unsafe extern "C" fn notify_gtk_sound_theme_name_trampoline< 2953 P: IsA<Settings>, 2954 F: Fn(&P) + 'static, 2955 >( 2956 this: *mut ffi::GtkSettings, 2957 _param_spec: glib::ffi::gpointer, 2958 f: glib::ffi::gpointer, 2959 ) { 2960 let f: &F = &*(f as *const F); 2961 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2962 } 2963 unsafe { 2964 let f: Box_<F> = Box_::new(f); 2965 connect_raw( 2966 self.as_ptr() as *mut _, 2967 b"notify::gtk-sound-theme-name\0".as_ptr() as *const _, 2968 Some(transmute::<_, unsafe extern "C" fn()>( 2969 notify_gtk_sound_theme_name_trampoline::<Self, F> as *const (), 2970 )), 2971 Box_::into_raw(f), 2972 ) 2973 } 2974 } 2975 connect_gtk_split_cursor_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId2976 fn connect_gtk_split_cursor_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 2977 unsafe extern "C" fn notify_gtk_split_cursor_trampoline< 2978 P: IsA<Settings>, 2979 F: Fn(&P) + 'static, 2980 >( 2981 this: *mut ffi::GtkSettings, 2982 _param_spec: glib::ffi::gpointer, 2983 f: glib::ffi::gpointer, 2984 ) { 2985 let f: &F = &*(f as *const F); 2986 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 2987 } 2988 unsafe { 2989 let f: Box_<F> = Box_::new(f); 2990 connect_raw( 2991 self.as_ptr() as *mut _, 2992 b"notify::gtk-split-cursor\0".as_ptr() as *const _, 2993 Some(transmute::<_, unsafe extern "C" fn()>( 2994 notify_gtk_split_cursor_trampoline::<Self, F> as *const (), 2995 )), 2996 Box_::into_raw(f), 2997 ) 2998 } 2999 } 3000 connect_gtk_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3001 fn connect_gtk_theme_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3002 unsafe extern "C" fn notify_gtk_theme_name_trampoline< 3003 P: IsA<Settings>, 3004 F: Fn(&P) + 'static, 3005 >( 3006 this: *mut ffi::GtkSettings, 3007 _param_spec: glib::ffi::gpointer, 3008 f: glib::ffi::gpointer, 3009 ) { 3010 let f: &F = &*(f as *const F); 3011 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3012 } 3013 unsafe { 3014 let f: Box_<F> = Box_::new(f); 3015 connect_raw( 3016 self.as_ptr() as *mut _, 3017 b"notify::gtk-theme-name\0".as_ptr() as *const _, 3018 Some(transmute::<_, unsafe extern "C" fn()>( 3019 notify_gtk_theme_name_trampoline::<Self, F> as *const (), 3020 )), 3021 Box_::into_raw(f), 3022 ) 3023 } 3024 } 3025 connect_gtk_titlebar_double_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3026 fn connect_gtk_titlebar_double_click_notify<F: Fn(&Self) + 'static>( 3027 &self, 3028 f: F, 3029 ) -> SignalHandlerId { 3030 unsafe extern "C" fn notify_gtk_titlebar_double_click_trampoline< 3031 P: IsA<Settings>, 3032 F: Fn(&P) + 'static, 3033 >( 3034 this: *mut ffi::GtkSettings, 3035 _param_spec: glib::ffi::gpointer, 3036 f: glib::ffi::gpointer, 3037 ) { 3038 let f: &F = &*(f as *const F); 3039 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3040 } 3041 unsafe { 3042 let f: Box_<F> = Box_::new(f); 3043 connect_raw( 3044 self.as_ptr() as *mut _, 3045 b"notify::gtk-titlebar-double-click\0".as_ptr() as *const _, 3046 Some(transmute::<_, unsafe extern "C" fn()>( 3047 notify_gtk_titlebar_double_click_trampoline::<Self, F> as *const (), 3048 )), 3049 Box_::into_raw(f), 3050 ) 3051 } 3052 } 3053 connect_gtk_titlebar_middle_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3054 fn connect_gtk_titlebar_middle_click_notify<F: Fn(&Self) + 'static>( 3055 &self, 3056 f: F, 3057 ) -> SignalHandlerId { 3058 unsafe extern "C" fn notify_gtk_titlebar_middle_click_trampoline< 3059 P: IsA<Settings>, 3060 F: Fn(&P) + 'static, 3061 >( 3062 this: *mut ffi::GtkSettings, 3063 _param_spec: glib::ffi::gpointer, 3064 f: glib::ffi::gpointer, 3065 ) { 3066 let f: &F = &*(f as *const F); 3067 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3068 } 3069 unsafe { 3070 let f: Box_<F> = Box_::new(f); 3071 connect_raw( 3072 self.as_ptr() as *mut _, 3073 b"notify::gtk-titlebar-middle-click\0".as_ptr() as *const _, 3074 Some(transmute::<_, unsafe extern "C" fn()>( 3075 notify_gtk_titlebar_middle_click_trampoline::<Self, F> as *const (), 3076 )), 3077 Box_::into_raw(f), 3078 ) 3079 } 3080 } 3081 connect_gtk_titlebar_right_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId3082 fn connect_gtk_titlebar_right_click_notify<F: Fn(&Self) + 'static>( 3083 &self, 3084 f: F, 3085 ) -> SignalHandlerId { 3086 unsafe extern "C" fn notify_gtk_titlebar_right_click_trampoline< 3087 P: IsA<Settings>, 3088 F: Fn(&P) + 'static, 3089 >( 3090 this: *mut ffi::GtkSettings, 3091 _param_spec: glib::ffi::gpointer, 3092 f: glib::ffi::gpointer, 3093 ) { 3094 let f: &F = &*(f as *const F); 3095 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3096 } 3097 unsafe { 3098 let f: Box_<F> = Box_::new(f); 3099 connect_raw( 3100 self.as_ptr() as *mut _, 3101 b"notify::gtk-titlebar-right-click\0".as_ptr() as *const _, 3102 Some(transmute::<_, unsafe extern "C" fn()>( 3103 notify_gtk_titlebar_right_click_trampoline::<Self, F> as *const (), 3104 )), 3105 Box_::into_raw(f), 3106 ) 3107 } 3108 } 3109 connect_gtk_xft_antialias_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3110 fn connect_gtk_xft_antialias_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3111 unsafe extern "C" fn notify_gtk_xft_antialias_trampoline< 3112 P: IsA<Settings>, 3113 F: Fn(&P) + 'static, 3114 >( 3115 this: *mut ffi::GtkSettings, 3116 _param_spec: glib::ffi::gpointer, 3117 f: glib::ffi::gpointer, 3118 ) { 3119 let f: &F = &*(f as *const F); 3120 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3121 } 3122 unsafe { 3123 let f: Box_<F> = Box_::new(f); 3124 connect_raw( 3125 self.as_ptr() as *mut _, 3126 b"notify::gtk-xft-antialias\0".as_ptr() as *const _, 3127 Some(transmute::<_, unsafe extern "C" fn()>( 3128 notify_gtk_xft_antialias_trampoline::<Self, F> as *const (), 3129 )), 3130 Box_::into_raw(f), 3131 ) 3132 } 3133 } 3134 connect_gtk_xft_dpi_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3135 fn connect_gtk_xft_dpi_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3136 unsafe extern "C" fn notify_gtk_xft_dpi_trampoline< 3137 P: IsA<Settings>, 3138 F: Fn(&P) + 'static, 3139 >( 3140 this: *mut ffi::GtkSettings, 3141 _param_spec: glib::ffi::gpointer, 3142 f: glib::ffi::gpointer, 3143 ) { 3144 let f: &F = &*(f as *const F); 3145 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3146 } 3147 unsafe { 3148 let f: Box_<F> = Box_::new(f); 3149 connect_raw( 3150 self.as_ptr() as *mut _, 3151 b"notify::gtk-xft-dpi\0".as_ptr() as *const _, 3152 Some(transmute::<_, unsafe extern "C" fn()>( 3153 notify_gtk_xft_dpi_trampoline::<Self, F> as *const (), 3154 )), 3155 Box_::into_raw(f), 3156 ) 3157 } 3158 } 3159 connect_gtk_xft_hinting_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3160 fn connect_gtk_xft_hinting_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3161 unsafe extern "C" fn notify_gtk_xft_hinting_trampoline< 3162 P: IsA<Settings>, 3163 F: Fn(&P) + 'static, 3164 >( 3165 this: *mut ffi::GtkSettings, 3166 _param_spec: glib::ffi::gpointer, 3167 f: glib::ffi::gpointer, 3168 ) { 3169 let f: &F = &*(f as *const F); 3170 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3171 } 3172 unsafe { 3173 let f: Box_<F> = Box_::new(f); 3174 connect_raw( 3175 self.as_ptr() as *mut _, 3176 b"notify::gtk-xft-hinting\0".as_ptr() as *const _, 3177 Some(transmute::<_, unsafe extern "C" fn()>( 3178 notify_gtk_xft_hinting_trampoline::<Self, F> as *const (), 3179 )), 3180 Box_::into_raw(f), 3181 ) 3182 } 3183 } 3184 connect_gtk_xft_hintstyle_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3185 fn connect_gtk_xft_hintstyle_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3186 unsafe extern "C" fn notify_gtk_xft_hintstyle_trampoline< 3187 P: IsA<Settings>, 3188 F: Fn(&P) + 'static, 3189 >( 3190 this: *mut ffi::GtkSettings, 3191 _param_spec: glib::ffi::gpointer, 3192 f: glib::ffi::gpointer, 3193 ) { 3194 let f: &F = &*(f as *const F); 3195 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3196 } 3197 unsafe { 3198 let f: Box_<F> = Box_::new(f); 3199 connect_raw( 3200 self.as_ptr() as *mut _, 3201 b"notify::gtk-xft-hintstyle\0".as_ptr() as *const _, 3202 Some(transmute::<_, unsafe extern "C" fn()>( 3203 notify_gtk_xft_hintstyle_trampoline::<Self, F> as *const (), 3204 )), 3205 Box_::into_raw(f), 3206 ) 3207 } 3208 } 3209 connect_gtk_xft_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId3210 fn connect_gtk_xft_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 3211 unsafe extern "C" fn notify_gtk_xft_rgba_trampoline< 3212 P: IsA<Settings>, 3213 F: Fn(&P) + 'static, 3214 >( 3215 this: *mut ffi::GtkSettings, 3216 _param_spec: glib::ffi::gpointer, 3217 f: glib::ffi::gpointer, 3218 ) { 3219 let f: &F = &*(f as *const F); 3220 f(Settings::from_glib_borrow(this).unsafe_cast_ref()) 3221 } 3222 unsafe { 3223 let f: Box_<F> = Box_::new(f); 3224 connect_raw( 3225 self.as_ptr() as *mut _, 3226 b"notify::gtk-xft-rgba\0".as_ptr() as *const _, 3227 Some(transmute::<_, unsafe extern "C" fn()>( 3228 notify_gtk_xft_rgba_trampoline::<Self, F> as *const (), 3229 )), 3230 Box_::into_raw(f), 3231 ) 3232 } 3233 } 3234 } 3235 3236 impl fmt::Display for Settings { fmt(&self, f: &mut fmt::Formatter) -> fmt::Result3237 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 3238 f.write_str("Settings") 3239 } 3240 } 3241