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,
pub extra: Extras,
}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.
extra: ExtrasKeys and blocks this struct does not model.
Trait Implementations§
Source§impl Clone for ViewSettings
impl Clone for ViewSettings
Source§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 FromBlock for ViewSettings
impl FromBlock for ViewSettings
Source§fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
Parses
block, substituting defaults and logging warnings for missing or invalid values.Source§impl PartialEq for ViewSettings
impl PartialEq for ViewSettings
impl StructuralPartialEq 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 UnsafeUnpin 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