Struct ClientGuiOptions
pub struct ClientGuiOptions {
pub gui_scale: u32,
pub attack_indicator: u8,
pub main_hand_left: bool,
pub reduced_debug_info: bool,
pub advanced_item_tooltips: bool,
pub high_contrast: bool,
pub show_subtitles: bool,
pub notification_display_time: f32,
pub text_background_opacity: f32,
pub menu_blur: i32,
}Expand description
A snapshot of the client’s GUI and accessibility preferences.
Fields§
§gui_scale: u32Requested GUI scale; 0 means automatic.
attack_indicator: u8Attack indicator: 0 off, 1 crosshair, 2 hotbar.
main_hand_left: boolWhether the main hand is the left one.
reduced_debug_info: boolWhether the debug screen shows reduced information.
advanced_item_tooltips: boolCurrent advancedItemTooltips preference, toggled with F3+H.
This is the user’s preference, independent of a tooltip request’s advanced flag.
high_contrast: boolWhether the high contrast resource pack is on.
show_subtitles: boolWhether subtitles are shown.
notification_display_time: f32Multiplier for how long subtitles and toasts stay.
text_background_opacity: f32Opacity of the background behind text, 0 to 1.
Menu background blur radius.
Trait Implementations§
§impl Clone for ClientGuiOptions
impl Clone for ClientGuiOptions
§fn clone(&self) -> ClientGuiOptions
fn clone(&self) -> ClientGuiOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientGuiOptions
§impl Debug for ClientGuiOptions
impl Debug for ClientGuiOptions
§impl PartialEq for ClientGuiOptions
impl PartialEq for ClientGuiOptions
impl StructuralPartialEq for ClientGuiOptions
Auto Trait Implementations§
impl Freeze for ClientGuiOptions
impl RefUnwindSafe for ClientGuiOptions
impl Send for ClientGuiOptions
impl Sync for ClientGuiOptions
impl Unpin for ClientGuiOptions
impl UnsafeUnpin for ClientGuiOptions
impl UnwindSafe for ClientGuiOptions
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
Mutably borrows from an owned value. Read more