pub struct GDObject {
pub id: u16,
pub x: f32,
pub y: f32,
pub group_id: Vec<u16>,
pub rotation: f32,
pub scalex: f32,
pub scaley: f32,
pub props: HashMap<String, String>,
}Fields§
§id: u16§x: f32§y: f32§group_id: Vec<u16>§rotation: f32§scalex: f32§scaley: f32§props: HashMap<String, String>Implementations§
Source§impl GDObject
impl GDObject
pub fn as_string(&self) -> String
pub fn partial_get_prop<V: GDProperty>(&self, key: &str) -> Option<V>
pub fn set_prop<V>(&mut self, key: &str, value: V) -> Option<String>where
V: GDProperty,
pub fn get_prop<V: GDProperty>(&self, key: &str, def: &str) -> V
pub fn get_raw_prop(&self, key: &str, def: &str) -> String
pub fn set_raw_prop(&mut self, k: &str, v: String) -> Option<String>
Trait Implementations§
impl StructuralPartialEq for GDObject
Auto Trait Implementations§
impl Freeze for GDObject
impl RefUnwindSafe for GDObject
impl Send for GDObject
impl Sync for GDObject
impl Unpin for GDObject
impl UnwindSafe for GDObject
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