class::hal::DisplayInfo

class hal::DisplayInfo
  : public api::InfoObject

Summary

[DisplayInfo](#classhal_1_1_display_info_1acac8d32bdb509de7392180a8255ea112)()

[DisplayInfo](#classhal_1_1_display_info_1a1d7ba86c321115c53e5a26145ea1a780)(  

const display_info_t & info
)

u16 bits_per_pixel() const

u16 columns() const

u32 frequency() const

sg_size_t height() const

bool is_valid() const

sg_size_t margin_bottom() const

sg_size_t margin_left() const

sg_size_t margin_right() const

sg_size_t margin_top() const

u32 memory_size() const

u16 rows() const

sg_size_t width() const

Members

DisplayInfo()

DisplayInfo(

const display_info_t & info
)


u16 bits_per_pixel() const

u16 columns() const

u32 frequency() const

Returns the maximum update frequency of the display.


sg_size_t height() const

Returns the height of the display.


bool is_valid() const

Returns true if this object is valid.

DisplayInfo info;
Display display;

info = display.get_info();
if( info.is_valid() ){
  //info was successfully retrieved
}

sg_size_t margin_bottom() const

Returns the bottom margin of the display.


sg_size_t margin_left() const

Returns the left margin of the display.


sg_size_t margin_right() const

Returns the right margin of the display.


sg_size_t margin_top() const

Returns the top margin of the display.


u32 memory_size() const

Returns the number of bytes needed for video memory for the entire display.


u16 rows() const

sg_size_t width() const

Returns the width of the display.


X

Thanks for Coming!

Subscribe to news and updates