class::hal::Display

class hal::Display
  : public sgfx::Bitmap

The Display class is for drawing on a display such as an OLED or LCD.

Members

Display()
Display(

sg_bmap_data_t * mem,
sg_size_t w,
sg_size_t h
)

Display(

sg_size_t w,
sg_size_t h
)

int disable() const
int enable() const
virtual DisplayInfo get_info() const
virtual DisplayPalette get_palette() const
int initialize(

const var::ConstString & name
)

Details

Display()

Constructs a new object with no video memory.


Display(

sg_bmap_data_t * mem,
sg_size_t w,
sg_size_t h
)

Constructs a new object with the provided memory buffer

Parameters

  • mem A pointer to the bitmap memory

  • w The width of the memory area in pixels

  • h The height of the memory area in pixels


Display(

sg_size_t w,
sg_size_t h
)

Constructs a new object and dynamically allocates memory for the buffer.

Parameters

  • w The width of the display

  • h The height of the display


int disable() const

Turns the display off.


int enable() const

Turns the display on.


virtual DisplayInfo get_info() const

Returns a DisplayInfo object that desribes the display.


virtual DisplayPalette get_palette() const

int initialize(

const var::ConstString & name
)

Initializes the display.


X

Thanks for Coming!

Subscribe to news and updates