class::hal::DisplayDevice

class hal::DisplayDevice
  : public hal::Display
  : public hal::Device

This class is a display device. It inherits both Display and Dev so that a display found at, for example, “/dev/display0” can be drawn on.

Summary

DisplayDevice()

virtual void clear()

virtual int disable() const

virtual int enable() const

virtual DisplayInfo get_info() const

virtual DisplayPalette get_palette() const

int initialize(

const arg::SourceFilePath & name
)

virtual bool is_busy() const

virtual void refresh() const

int set_mode(

enum mode value
)

int set_window(

const sgfx::Region & region
)

virtual void wait(

const chrono::MicroTime & resolution
) const

enum mode

Members

DisplayDevice()

virtual void clear()

Fill the data with zeros.


virtual int disable() const

Turns the display off.


virtual 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 arg::SourceFilePath & name
)


virtual bool is_busy() const

Returns true if the display is actively copying the video buffer to the display

Returns

True if the LCD is busy


virtual void refresh() const

Refreshes the display.

This method will cause the driver to write the current video memory to the display.


int set_mode(

enum mode value
)


int set_window(

const sgfx::Region & region
)


virtual void wait(

const chrono::MicroTime & resolution
) const

Blocks until the display is not busy anymore.


enum mode
  • PALETTE
  • RAW

X

Thanks for Coming!

Subscribe to news and updates