pub struct Graphics { /* private fields */ }Implementations§
Source§impl Graphics
impl Graphics
Sourcepub fn draw_rects_ptr(&self) -> *const f32
pub fn draw_rects_ptr(&self) -> *const f32
WARNING: JS Exported Function - not intended for normal use
Sourcepub fn draw_rects_len(&self) -> usize
pub fn draw_rects_len(&self) -> usize
WARNING: JS Exported Function - not intended for normal use
Sourcepub fn draw_action_colors_ptr(&self) -> *const u8
pub fn draw_action_colors_ptr(&self) -> *const u8
WARNING: JS Exported Function - not intended for normal use
Sourcepub fn draw_action_colors_len(&self) -> usize
pub fn draw_action_colors_len(&self) -> usize
WARNING: JS Exported Function - not intended for normal use
Sourcepub fn strings_ptr(&self) -> *const u8
pub fn strings_ptr(&self) -> *const u8
WARNING: JS Exported Function - not intended for normal use
Sourcepub fn string_properties_ptr(&self) -> *const f32
pub fn string_properties_ptr(&self) -> *const f32
WARNING: JS Exported Function - not intended for normal use
Sourcepub fn string_properties_len(&self) -> usize
pub fn string_properties_len(&self) -> usize
WARNING: JS Exported Function - not intended for normal use
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Clearing Graphics for the next frame WARNING: JS Exported Function - not intended for normal use
pub fn draw_rect( &mut self, pos_x: f32, pos_y: f32, width: f32, height: f32, color: Color, )
pub fn draw_string( &mut self, s: &str, pos_x: f32, pos_y: f32, font_size: f32, color: Color, )
Auto Trait Implementations§
impl Freeze for Graphics
impl RefUnwindSafe for Graphics
impl Send for Graphics
impl Sync for Graphics
impl Unpin for Graphics
impl UnsafeUnpin for Graphics
impl UnwindSafe for Graphics
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