This documenta- tion describes the current state of development.
Prokee Modules:
GUI Elements:
GUI Interactions:
GUI Layouts:
Games/Demos:
Third Party Libraries:
This documentation describes the Prokee module interface.
Static Methods:int uwin::run(const char *title,int x,int y,int xx,int yy,int32_t(*guiCallbackFunction)(AbsThread *thisThread,AbsMsgItem *msg))AbsThread *uwin::start_thread(const char *title,int x,int y,int xx,int yy,int32_t(*guiCallbackFunction)(AbsThread *thisThread,AbsMsgItem *msg))This module provides minimal window management functions for the X-Window System and for the WinAPI.
How the communication with the window system works:
Module uwin receives window messages and user input events (as provided
by X or by Windows) and postes them to the message queue of the
gui-manager (see module guiman). The gui-manager has its own massage queue
which allowes communication in both directions. Alternatively a callback
function can be provided, to have the gui-manager run on the same thread
as module uwin. (This is required, when building single threaded programs.)
Basic Setup Alternatives:
uwin module.int uwin::main(int argc,char **argv)
| Type | Name | Direction | Description |
| argc | The number of command-line parameters. | ||
| argv | [IN] | The command-line parameters. |
int uwin::run(const char *title,int x,int y,int xx,int yy,int32_t(*guiCallbackFunction)(AbsThread *thisThread,AbsMsgItem *msg))
| Type | Name | Direction | Description | ||||
| title | [IN] | Title of the main window. | |||||
| x | x-position of the main window. | ||||||
| y | y-position of the main window. | ||||||
| xx | Initial width of the main window. | ||||||
| yy | Initial height of the main window. | ||||||
| int32_t(*guiCallbackFunction) ( AbsThread *thisThread, AbsMsgItem *msg ) with typedef
| [IN] |
The callback function of the gui module.
Parameters
thisThread: Pointer to a AbsThread object. msg: Pointer to a AbsMsgItem object.
Return value
Should return 0 on successful execution.
| |||||
AbsThread *uwin::start_thread(const char *title,int x,int y,int xx,int yy,int32_t(*guiCallbackFunction)(AbsThread *thisThread,AbsMsgItem *msg))
| Type | Name | Direction | Description | ||||
| title | [IN] | Title of the main window. | |||||
| x | x-position of the main window. | ||||||
| y | y-position of the main window. | ||||||
| xx | Initial width of the main window. | ||||||
| yy | Initial height of the main window. | ||||||
| int32_t(*guiCallbackFunction) ( AbsThread *thisThread, AbsMsgItem *msg ) with typedef
| [IN] |
The callback function of the gui module.
Parameters
thisThread: Pointer to a AbsThread object. msg: Pointer to a AbsMsgItem object.
Return value
Should return 0 on successful execution.
| |||||
int uwin::start_ex(const char *title,int x,int y,int xx,int yy,AbsThreadMan *tm)
| Type | Name | Direction | Description |
| title | [IN] | Title of the main window. | |
| x | x-position of the main window. | ||
| y | y-position of the main window. | ||
| xx | Initial width of the main window. | ||
| yy | Initial height of the main window. | ||
| tm | [IN/OUT] | Pointer to a AbsThreadMan object. |
int uwin::close()
void uwin::window_redim(uint16_t width,uint16_t height)
| Type | Name | Direction | Description |
| width | width of the window. | ||
| height | height of the window. |
void uwin::InvalidateAll()
void uwin::ResizeWindow(uint16_t width,uint16_t height)
| Type | Name | Direction | Description |
| width | width of the window. | ||
| height | height of the window. |
void uwin::MoveWindow(int16_t posX,int16_t posY)
| Type | Name | Direction | Description |
| posX | x-position of the main window. | ||
| posY | y-position of the main window. |
uint64_t uwin::getWindowDimensions()
uint64_t uwin::getWindowPosition()
ImageData uwin::getImageData()
void uwin::putImage()
void uwin::putImagePadded()
void uwin::putRegion(CRegion *r)
| Type | Name | Direction | Description |
| r | [IN] | The region within the main window, that should be updated. |
void uwin::putImageData(ImageData img)
| Type | Name | Direction | Description |
| img | [IN] | The ImageData. |
uint16_t uwin::getScreenDpiX()
uint16_t uwin::getScreenDpiY()