pub trait Api: Api + Api + Api {
Show 27 methods // Required method fn video<VApi>(&self) -> VApi where VApi: From<*const playdate_video> + Api; // Provided methods fn clear(&self) -> unsafe extern "C" fn(color: LCDColor) { ... } fn set_background_color(&self) -> unsafe extern "C" fn(color: LCDSolidColor) { ... } fn set_stencil(&self) -> unsafe extern "C" fn(stencil: *mut LCDBitmap) { ... } fn set_draw_mode(&self) -> unsafe extern "C" fn(mode: LCDBitmapDrawMode) { ... } fn set_draw_offset(&self) -> unsafe extern "C" fn(dx: c_int, dy: c_int) { ... } fn set_clip_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int) { ... } fn clear_clip_rect(&self) -> unsafe extern "C" fn() { ... } fn set_line_cap_style( &self ) -> unsafe extern "C" fn(endCapStyle: LCDLineCapStyle) { ... } fn push_context(&self) -> unsafe extern "C" fn(target: *mut LCDBitmap) { ... } fn pop_context(&self) -> unsafe extern "C" fn() { ... } fn draw_line( &self ) -> unsafe extern "C" fn(x1: c_int, y1: c_int, x2: c_int, y2: c_int, width: c_int, color: LCDColor) { ... } fn fill_triangle( &self ) -> unsafe extern "C" fn(x1: c_int, y1: c_int, x2: c_int, y2: c_int, x3: c_int, y3: c_int, color: LCDColor) { ... } fn draw_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, color: LCDColor) { ... } fn fill_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, color: LCDColor) { ... } fn draw_ellipse( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, lineWidth: c_int, startAngle: c_float, endAngle: c_float, color: LCDColor) { ... } fn fill_ellipse( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, startAngle: c_float, endAngle: c_float, color: LCDColor) { ... } fn get_frame(&self) -> unsafe extern "C" fn() -> *mut u8 { ... } fn get_display_frame(&self) -> unsafe extern "C" fn() -> *mut u8 { ... } fn get_debug_bitmap( &self ) -> Option<unsafe extern "C" fn() -> *mut LCDBitmap> { ... } fn copy_frame_buffer_bitmap( &self ) -> unsafe extern "C" fn() -> *mut LCDBitmap { ... } fn mark_updated_rows( &self ) -> unsafe extern "C" fn(start: c_int, end: c_int) { ... } fn display(&self) -> unsafe extern "C" fn() { ... } fn set_screen_clip_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int) { ... } fn fill_polygon( &self ) -> unsafe extern "C" fn(nPoints: c_int, coords: *mut c_int, color: LCDColor, fillrule: LCDPolygonFillRule) { ... } fn get_display_buffer_bitmap( &self ) -> unsafe extern "C" fn() -> *mut LCDBitmap { ... } fn set_stencil_image( &self ) -> unsafe extern "C" fn(stencil: *mut LCDBitmap, tile: c_int) { ... }
}

Required Methods§

source

fn video<VApi>(&self) -> VApiwhere VApi: From<*const playdate_video> + Api,

Provided Methods§

source

fn clear(&self) -> unsafe extern "C" fn(color: LCDColor)

source

fn set_background_color(&self) -> unsafe extern "C" fn(color: LCDSolidColor)

source

fn set_stencil(&self) -> unsafe extern "C" fn(stencil: *mut LCDBitmap)

source

fn set_draw_mode(&self) -> unsafe extern "C" fn(mode: LCDBitmapDrawMode)

source

fn set_draw_offset(&self) -> unsafe extern "C" fn(dx: c_int, dy: c_int)

source

fn set_clip_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int)

source

fn clear_clip_rect(&self) -> unsafe extern "C" fn()

source

fn set_line_cap_style( &self ) -> unsafe extern "C" fn(endCapStyle: LCDLineCapStyle)

source

fn push_context(&self) -> unsafe extern "C" fn(target: *mut LCDBitmap)

source

fn pop_context(&self) -> unsafe extern "C" fn()

source

fn draw_line( &self ) -> unsafe extern "C" fn(x1: c_int, y1: c_int, x2: c_int, y2: c_int, width: c_int, color: LCDColor)

source

fn fill_triangle( &self ) -> unsafe extern "C" fn(x1: c_int, y1: c_int, x2: c_int, y2: c_int, x3: c_int, y3: c_int, color: LCDColor)

source

fn draw_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, color: LCDColor)

source

fn fill_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, color: LCDColor)

source

fn draw_ellipse( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, lineWidth: c_int, startAngle: c_float, endAngle: c_float, color: LCDColor)

source

fn fill_ellipse( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int, startAngle: c_float, endAngle: c_float, color: LCDColor)

source

fn get_frame(&self) -> unsafe extern "C" fn() -> *mut u8

source

fn get_display_frame(&self) -> unsafe extern "C" fn() -> *mut u8

source

fn get_debug_bitmap(&self) -> Option<unsafe extern "C" fn() -> *mut LCDBitmap>

source

fn copy_frame_buffer_bitmap(&self) -> unsafe extern "C" fn() -> *mut LCDBitmap

source

fn mark_updated_rows(&self) -> unsafe extern "C" fn(start: c_int, end: c_int)

source

fn display(&self) -> unsafe extern "C" fn()

source

fn set_screen_clip_rect( &self ) -> unsafe extern "C" fn(x: c_int, y: c_int, width: c_int, height: c_int)

source

fn fill_polygon( &self ) -> unsafe extern "C" fn(nPoints: c_int, coords: *mut c_int, color: LCDColor, fillrule: LCDPolygonFillRule)

source

fn get_display_buffer_bitmap(&self) -> unsafe extern "C" fn() -> *mut LCDBitmap

source

fn set_stencil_image( &self ) -> unsafe extern "C" fn(stencil: *mut LCDBitmap, tile: c_int)

Object Safety§

This trait is not object safe.

Implementors§