|
Gateware Libraries
R6.5A
Beta Build
|
The namespace to which all Gateware library interfaces must belong. More...
Classes | |
| class | GBufferedInput |
| A Multi-threaded buffered input library. More... | |
| struct | GBUFFEREDINPUT_EVENT_DATA |
| Ensure identical binary padding for structures on all platforms. More... | |
| class | GController |
| A multi-threaded controller input library. More... | |
| struct | GCONTROLLER_EVENT_DATA |
| Ensure identical binary padding for structures on all platforms. More... | |
| class | GFile |
| Cross platform FileIO/Directory handling. More... | |
| class | GInput |
| A single threaded input library. More... | |
| class | GLog |
| Cross platform threadsafe logger. More... | |
| class | GWindow |
| A thread-safe window creation and management library. More... | |
| struct | GWINDOW_EVENT_DATA |
| Ensure identical binary padding for structures on all platforms. More... | |
| struct | LINUX_WINDOW |
| The structure used to pass into Input libraries on Linux. More... | |
Enumerations | |
| enum | GBufferedInputEvents { KEYPRESSED, KEYRELEASED, BUTTONPRESSED, BUTTONRELEASED, MOUSESCROLL } |
| GBufferedInputEvents holds the possible events that can be sent from GBufferedInput. More... | |
| enum | GControllerEvents { CONTROLLERBUTTONVALUECHANGED, CONTROLLERAXISVALUECHANGED, CONTROLLERCONNECTED, CONTROLLERDISCONNECTED } |
| GControllerEvents holds the possible events that can be sent from GController. More... | |
| enum | GControllerDeadzoneTypes { DEADZONESQUARE, DEADZONECIRCLE } |
| GControllerDeadzoneTypes holds the diffrent type of deadzone calculations. More... | |
| enum | GWindowStyle { WINDOWEDBORDERED, WINDOWEDBORDERLESS, FULLSCREENBORDERED, FULLSCREENBORDERLESS, MINIMIZED } |
| GWindowStyle holds the possible types of window GWindow can create. | |
| enum | GWindowInputEvents { NOTIFY, MINIMIZE, MAXIMIZE, RESIZE, MOVE, DESTROY } |
| GWindowInputEvents holds the possible events a GWindow window can broadcast. | |
Functions | |
| GATEWARE_EXPORT_IMPLICIT GReturn | CreateGBufferedInput (void *_windowHandle, unsigned int _handleSize, GBufferedInput **_outBufferedInput) |
| Creates a GBufferedInput Object. More... | |
| GATEWARE_EXPORT_IMPLICIT GReturn | CreateGController (int _controllerType, GController **_outController) |
| Creates a new GController object. | |
| GATEWARE_EXPORT_IMPLICIT GReturn | CreateGFile (GFile **_outFile) |
| Creates a GFile Object. More... | |
| GATEWARE_EXPORT_IMPLICIT GReturn | CreateGInput (void *_windowHandle, unsigned int _handleSize, GInput **_outInput) |
| Creates a GInput Object. More... | |
| GATEWARE_EXPORT_IMPLICIT GReturn | CreateGLog (const char *const _fileName, GLog **_outLog) |
| Creates a GLog object. More... | |
| GATEWARE_EXPORT_IMPLICIT GReturn | CreateGLogCustom (GFile *_file, GLog **_outLog) |
| Creates a GLog object. More... | |
| GATEWARE_EXPORT_IMPLICIT GReturn | CreateGWindow (int _x, int _y, int _width, int _height, GWindowStyle _style, GWindow **_outWindow) |
| Creates and outputs a new GWindow object. More... | |
The namespace to which all Gateware library interfaces must belong.
GBufferedInputEvents holds the possible events that can be sent from GBufferedInput.
GControllerEvents holds the possible events that can be sent from GController.
| GATEWARE_EXPORT_IMPLICIT GReturn GW::SYSTEM::CreateGBufferedInput | ( | void * | _windowHandle, |
| unsigned int | _handleSize, | ||
| GBufferedInput ** | _outBufferedInput | ||
| ) |
Creates a GBufferedInput Object.
Initializes a handle to a window based on the void* data passed in. The created GBufferedInput object will have its reference count initialized to one.
| [in] | _windowHandle | (Windows) The handle to the window (HWND). |
| [in] | _windowHandle | (Linux) LINUX_WINDOW data. |
| [in] | _windowHandle | (Mac) NSWindow data. |
| [in] | _handleSize | The size of the handle to the window in bytes. |
| [out] | _outBufferedInput | Will contain the GBufferedInput object if successfully created. |
| SUCCESS | no problems found. |
| FAILURE | could not make an BufferedInput Object. |
| INVALID_ARGUMENT | _outInput and or _windowHandle is nullptr. |
Creates a GFile Object.
The GFile created by this function will have its current working directory defaulted to the directory where the program was ran from. Call SetCurrentWorkingDirectory to change it. No file will be opened in creation of GFile. Call an Open function to open one. Created GFile object will have its reference count initialized to one.
| [out] | _outFile | Will contain the GFile object if successfully created. |
| SUCCESS | Gfile successfully created. |
| FAILURE | GFile could not be created. |
| INVALID_ARGUMENT | A nullptr was passed in. |
| GATEWARE_EXPORT_IMPLICIT GReturn GW::SYSTEM::CreateGInput | ( | void * | _windowHandle, |
| unsigned int | _handleSize, | ||
| GInput ** | _outInput | ||
| ) |
Creates a GInput Object.
Initializes a handle to a window based on the void* data passed in. The
created GInput object will have its reference count initialized to one.
| [in] | _windowHandle | (Windows) The handle to the window (HWND). |
| [in] | _windowHandle | (Linux) LINUX_WINDOW data. |
| [in] | _windowHandle | (Mac) NSWindow data. |
| [in] | _handleSize | The size of the handle to the window in bytes. |
| [out] | _outInput | Will contain the GInput object if successfully created. |
| SUCCESS | no problems found. |
| FAILURE | could not make an Input Object. |
| INVALID_ARGUMENT | _outInput and or _windowHandle is nullptr. |
| GATEWARE_EXPORT_IMPLICIT GReturn GW::SYSTEM::CreateGLog | ( | const char *const | _fileName, |
| GLog ** | _outLog | ||
| ) |
Creates a GLog object.
This function will create a GLog object with the log file being created in the directory the program was ran from. If you want to control where the log file is going to be created then use the custom function below to pass in a GFile* that is pre set the way you want it. Reference count of created object is initialized to one.
| [in] | _fileName | The name of the log file. |
| [out] | _outLog | Will contain the GLog if successfully created. |
Creates a GLog object.
This function will create a GLog object with the GFile object that was passed in. This is so you can have more control over your log by setting up a GFile in advance. The GFile object should already have a file open for text writing. Created GLog object will have its reference count initialized to one.
| GATEWARE_EXPORT_IMPLICIT GReturn GW::SYSTEM::CreateGWindow | ( | int | _x, |
| int | _y, | ||
| int | _width, | ||
| int | _height, | ||
| GWindowStyle | _style, | ||
| GWindow ** | _outWindow | ||
| ) |
Creates and outputs a new GWindow object.
Initializes a handle to a GWindow object with the parameters specified. Created GWindow object will have its reference count initialized to one.
| [in] | _x | The x position of the window on the screen. |
| [in] | _y | The y position of the window on the screen. |
| [in] | _width | The width of the window. |
| [in] | _height | The height of the window. |
| [in] | _style | The style of the window. (see GWindowStyle for style options) |
| [out] | _outWindow | Will contain the GWindow object if successfully created. |