pub struct Editor {
pub color: String,
pub visgroup_id: Option<i32>,
pub group_id: Option<i32>,
pub visgroup_shown: bool,
pub visgroup_auto_shown: bool,
pub comments: Option<String>,
pub logical_pos: Option<String>,
}Expand description
Represents the editor data of a VMF entity or solid.
Fields§
§color: StringThe color of the entity in the editor, in “R G B” format.
visgroup_id: Option<i32>The ID of the visgroup this entity is in, if any.
group_id: Option<i32>The ID of the group this entity is in, if any.
visgroup_shown: boolWhether the entity is shown in the visgroup.
visgroup_auto_shown: boolWhether the entity should automatically be shown in the visgroup.
comments: Option<String>Comments associated with the entity, if any.
logical_pos: Option<String>The logical position of the entity in the editor, in “[x y]” format.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Editor
impl<'de> Deserialize<'de> for Editor
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 VmfSerializable for Editor
impl VmfSerializable for Editor
Auto Trait Implementations§
impl Freeze for Editor
impl RefUnwindSafe for Editor
impl Send for Editor
impl Sync for Editor
impl Unpin for Editor
impl UnwindSafe for Editor
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