56 #ifndef SYSTEM_CORE_INC_GUI_OC_SCREEN_H_ 57 #define SYSTEM_CORE_INC_GUI_OC_SCREEN_H_ 59 #include <oc_errors.h> 68 #define _________________________________________TYPES______________________________________________________________________________________ 90 #undef _________________________________________TYPES______________________________________________________________________________________ 97 #define _________________________________________FUNCTION_SECTION___________________________________________________________________________ 106 extern oC_ErrorCode_t
oC_Screen_ReadResolution( oC_Screen_t Screen , oC_Pixel_ResolutionUInt_t * outWidth , oC_Pixel_ResolutionUInt_t * outHeight );
110 #undef _________________________________________FUNCTION_SECTION___________________________________________________________________________
const char * oC_Screen_GetName(oC_Screen_t Screen)
returns name of the screen
char Name[30]
Name of the screen - useful for screen identification.
oC_Screen_t oC_Screen_New(oC_Driver_t Driver, const void *Config, const char *Name)
creates new screen object
bool oC_Screen_Delete(oC_Screen_t *Screen)
Destroys the Screen object.
struct Screen_t * oC_Screen_t
Screen object pointer.
oC_ErrorCode_t oC_Screen_ReadResolution(oC_Screen_t Screen, oC_Pixel_ResolutionUInt_t *outWidth, oC_Pixel_ResolutionUInt_t *outHeight)
reads resolution of the screen
stores screen object data
oC_Driver_t Driver
Pointer to the graphic driver that handles the screen.
bool oC_Screen_IsConfigured(oC_Screen_t Screen)
checks if the screen is configured to work
oC_ErrorCode_t oC_Screen_Configure(oC_Screen_t Screen)
configures graphics driver to work
oC_Driver_t oC_Screen_GetDriver(oC_Screen_t Screen)
returns driver associated with the screen
The file with drivers manager interface.
bool oC_Screen_IsCorrect(oC_Screen_t Screen)
checks if the Screen object is correct
oC_ErrorCode_t oC_Screen_ReadColorMap(oC_Screen_t Screen, oC_ColorMap_t **outColorMap)
reads pointer to the color map
void * Config
Pointer to the screen configuration.
oC_ErrorCode_t oC_Screen_Unconfigure(oC_Screen_t Screen)
unconfigures graphics driver