pub struct Settings(/* private fields */);
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn get_property_dnd_drag_threshold(&self) -> i32
pub fn get_property_dnd_drag_threshold(&self) -> i32
The default distance that the cursor of a pointer device should travel before a drag operation should start.
Sourcepub fn set_property_dnd_drag_threshold(&self, dnd_drag_threshold: i32)
pub fn set_property_dnd_drag_threshold(&self, dnd_drag_threshold: i32)
The default distance that the cursor of a pointer device should travel before a drag operation should start.
Sourcepub fn get_property_double_click_distance(&self) -> i32
pub fn get_property_double_click_distance(&self) -> i32
The maximum distance, in pixels, between button-press events that determines whether or not to increase the click count by 1.
Sourcepub fn set_property_double_click_distance(&self, double_click_distance: i32)
pub fn set_property_double_click_distance(&self, double_click_distance: i32)
The maximum distance, in pixels, between button-press events that determines whether or not to increase the click count by 1.
Sourcepub fn get_property_double_click_time(&self) -> i32
pub fn get_property_double_click_time(&self) -> i32
The time, in milliseconds, that should elapse between button-press events in order to increase the click count by 1.
Sourcepub fn set_property_double_click_time(&self, double_click_time: i32)
pub fn set_property_double_click_time(&self, double_click_time: i32)
The time, in milliseconds, that should elapse between button-press events in order to increase the click count by 1.
Sourcepub fn get_property_font_antialias(&self) -> i32
pub fn get_property_font_antialias(&self) -> i32
Whether or not to use antialiasing when rendering text; a value of 1 enables it unconditionally; a value of 0 disables it unconditionally; and -1 will use the system’s default.
Sourcepub fn set_property_font_antialias(&self, font_antialias: i32)
pub fn set_property_font_antialias(&self, font_antialias: i32)
Whether or not to use antialiasing when rendering text; a value of 1 enables it unconditionally; a value of 0 disables it unconditionally; and -1 will use the system’s default.
Sourcepub fn get_property_font_dpi(&self) -> i32
pub fn get_property_font_dpi(&self) -> i32
The DPI used when rendering text, as a value of 1024 * dots/inch.
If set to -1, the system’s default will be used instead
Sourcepub fn set_property_font_dpi(&self, font_dpi: i32)
pub fn set_property_font_dpi(&self, font_dpi: i32)
The DPI used when rendering text, as a value of 1024 * dots/inch.
If set to -1, the system’s default will be used instead
Sourcepub fn get_property_font_hint_style(&self) -> Option<GString>
pub fn get_property_font_hint_style(&self) -> Option<GString>
The style of the hinting used when rendering text. Valid values are:
- hintnone
- hintslight
- hintmedium
- hintfull
Sourcepub fn set_property_font_hint_style(&self, font_hint_style: Option<&str>)
pub fn set_property_font_hint_style(&self, font_hint_style: Option<&str>)
The style of the hinting used when rendering text. Valid values are:
- hintnone
- hintslight
- hintmedium
- hintfull
Sourcepub fn get_property_font_hinting(&self) -> i32
pub fn get_property_font_hinting(&self) -> i32
Whether or not to use hinting when rendering text; a value of 1 unconditionally enables it; a value of 0 unconditionally disables it; and a value of -1 will use the system’s default.
Sourcepub fn set_property_font_hinting(&self, font_hinting: i32)
pub fn set_property_font_hinting(&self, font_hinting: i32)
Whether or not to use hinting when rendering text; a value of 1 unconditionally enables it; a value of 0 unconditionally disables it; and a value of -1 will use the system’s default.
Sourcepub fn get_property_font_name(&self) -> Option<GString>
pub fn get_property_font_name(&self) -> Option<GString>
The default font name that should be used by text actors, as
a string that can be passed to pango::FontDescription::from_string
.
Sourcepub fn set_property_font_name(&self, font_name: Option<&str>)
pub fn set_property_font_name(&self, font_name: Option<&str>)
The default font name that should be used by text actors, as
a string that can be passed to pango::FontDescription::from_string
.
Sourcepub fn get_property_font_subpixel_order(&self) -> Option<GString>
pub fn get_property_font_subpixel_order(&self) -> Option<GString>
The type of sub-pixel antialiasing used when rendering text. Valid values are:
- none
- rgb
- bgr
- vrgb
- vbgr
Sourcepub fn set_property_font_subpixel_order(
&self,
font_subpixel_order: Option<&str>,
)
pub fn set_property_font_subpixel_order( &self, font_subpixel_order: Option<&str>, )
The type of sub-pixel antialiasing used when rendering text. Valid values are:
- none
- rgb
- bgr
- vrgb
- vbgr
pub fn set_property_fontconfig_timestamp(&self, fontconfig_timestamp: u32)
Sourcepub fn get_property_long_press_duration(&self) -> i32
pub fn get_property_long_press_duration(&self) -> i32
Sets the minimum duration for a press to be recognized as a long press gesture. The duration is expressed in milliseconds.
See also ClickAction:long-press-duration
.
Sourcepub fn set_property_long_press_duration(&self, long_press_duration: i32)
pub fn set_property_long_press_duration(&self, long_press_duration: i32)
Sets the minimum duration for a press to be recognized as a long press gesture. The duration is expressed in milliseconds.
See also ClickAction:long-press-duration
.
pub fn get_property_password_hint_time(&self) -> u32
pub fn set_property_password_hint_time(&self, password_hint_time: u32)
pub fn set_property_unscaled_font_dpi(&self, unscaled_font_dpi: i32)
pub fn get_property_window_scaling_factor(&self) -> i32
pub fn set_property_window_scaling_factor(&self, window_scaling_factor: i32)
Sourcepub fn get_default() -> Option<Settings>
pub fn get_default() -> Option<Settings>
Retrieves the singleton instance of Settings
§Returns
the instance of Settings
. The
returned object is owned by Clutter and it should not be unreferenced
directly
pub fn connect_property_dnd_drag_threshold_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_double_click_distance_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_double_click_time_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_font_antialias_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_font_dpi_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_font_hint_style_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_font_hinting_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_font_name_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_font_subpixel_order_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_fontconfig_timestamp_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_long_press_duration_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_password_hint_time_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_unscaled_font_dpi_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_window_scaling_factor_notify<F: Fn(&Settings) + 'static>( &self, f: F, ) -> SignalHandlerId
Trait Implementations§
Source§impl Ord for Settings
impl Ord for Settings
Source§impl<T: ObjectType> PartialEq<T> for Settings
impl<T: ObjectType> PartialEq<T> for Settings
Source§impl<T: ObjectType> PartialOrd<T> for Settings
impl<T: ObjectType> PartialOrd<T> for Settings
Source§impl StaticType for Settings
impl StaticType for Settings
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl !Send for Settings
impl !Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
true
if the object is an instance of (can be cast to) T
.