pub struct ViewSettings {
pub snap_to_grid: bool,
pub show_grid: bool,
pub show_logical_grid: bool,
pub grid_spacing: u16,
pub show_3d_grid: bool,
}
Expand description
Represents the view settings of a VMF file.
Fields§
§snap_to_grid: bool
Whether snapping to the grid is enabled.
show_grid: bool
Whether the grid is shown in the editor.
show_logical_grid: bool
Whether the logical grid is shown in the editor.
grid_spacing: u16
The grid spacing.
show_3d_grid: bool
Whether the 3D grid is shown in the editor.
Trait Implementations§
Source§impl Clone for ViewSettings
impl Clone for ViewSettings
Source§fn clone(&self) -> ViewSettings
fn clone(&self) -> ViewSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ViewSettings
impl Debug for ViewSettings
Source§impl Default for ViewSettings
impl Default for ViewSettings
Source§impl From<ViewSettings> for VmfBlock
impl From<ViewSettings> for VmfBlock
Source§fn from(val: ViewSettings) -> Self
fn from(val: ViewSettings) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ViewSettings
impl PartialEq for ViewSettings
Source§impl TryFrom<VmfBlock> for ViewSettings
impl TryFrom<VmfBlock> for ViewSettings
Source§impl VmfSerializable for ViewSettings
impl VmfSerializable for ViewSettings
impl StructuralPartialEq for ViewSettings
Auto Trait Implementations§
impl Freeze for ViewSettings
impl RefUnwindSafe for ViewSettings
impl Send for ViewSettings
impl Sync for ViewSettings
impl Unpin for ViewSettings
impl UnwindSafe for ViewSettings
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