pub struct D2 {
pub background: Color,
pub objects: HashMap<String, GObject>,
/* private fields */
}Fields§
§background: Color§objects: HashMap<String, GObject>Implementations§
Source§impl D2
impl D2
pub fn new(w: f32, h: f32) -> Self
pub fn update(&mut self)
pub fn draw(&mut self)
pub fn is_touch_pressed(&self, name: &str) -> Option<Vec2>
pub fn is_touch_released(&mut self, name: &str) -> bool
pub fn is_touch_down(&self, name: &str) -> Option<Vec2>
pub fn anim(&mut self, name: &str, curve: f32, x: f32, y: f32, time: f64)
pub fn add(&mut self, name: &str, obj: GObject)
pub fn del(&mut self, name: &str)
Auto Trait Implementations§
impl Freeze for D2
impl RefUnwindSafe for D2
impl Send for D2
impl Sync for D2
impl Unpin for D2
impl UnwindSafe for D2
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