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: boolWhether snapping to the grid is enabled.
show_grid: boolWhether the grid is shown in the editor.
show_logical_grid: boolWhether the logical grid is shown in the editor.
grid_spacing: u16The grid spacing.
show_3d_grid: boolWhether 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 copy 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§fn default() -> ViewSettings
fn default() -> ViewSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViewSettings
impl<'de> Deserialize<'de> for ViewSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<VmfBlock> for ViewSettings
impl Into<VmfBlock> for ViewSettings
Source§impl Serialize for ViewSettings
impl Serialize for ViewSettings
Source§impl TryFrom<VmfBlock> for ViewSettings
impl TryFrom<VmfBlock> for ViewSettings
Source§impl VmfSerializable for ViewSettings
impl VmfSerializable 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