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: String
The 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: bool
Whether the entity is shown in the visgroup.
visgroup_auto_shown: bool
Whether 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 VmfSerializable for Editor
impl VmfSerializable for Editor
impl Eq for Editor
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.