#include <dr_gui.h>
Public Attributes | |
drgui_cursor_type | currentCursor |
The current cursor. More... | |
unsigned int | dirtyCounter |
size_t | dirtyElementBufferSize |
size_t | dirtyElementCount |
unsigned int | flags |
Boolean flags. More... | |
int | inboundEventCounter |
float | lastMouseMovePosX |
The position of the mouse that was passed in from the last inbound mouse move event. More... | |
float | lastMouseMovePosY |
drgui_on_change_cursor_proc | onChangeCursor |
The global event handler to call when the system cursor needs to change. More... | |
drgui_on_delete_element_proc | onDeleteElement |
The function to call when an element is deleted. More... | |
drgui_on_capture_keyboard_proc | onGlobalCaptureKeyboard |
The global event handler to call when an element captures the keyboard. More... | |
drgui_on_capture_mouse_proc | onGlobalCaptureMouse |
The global event handler to call when an element captures the mouse. More... | |
drgui_on_dirty_proc | onGlobalDirty |
The global event callback to call when an element is marked as dirty. More... | |
drgui_on_release_keyboard_proc | onGlobalReleaseKeyboard |
The global event handler to call when an element releases the keyboard. More... | |
drgui_on_release_mouse_proc | onGlobalReleaseMouse |
The global event handler to call when an element releases the mouse. More... | |
drgui_on_log | onLog |
The function to call when a log message is posted. More... | |
int | outboundEventLockCounter |
drgui_painting_callbacks | paintingCallbacks |
The painting callbacks. More... | |
drgui_element * | pElementUnderMouse |
drgui_element * | pElementWantingKeyboardCapture |
drgui_element * | pElementWithKeyboardCapture |
A pointer to the element with the keyboard focus. More... | |
drgui_element * | pElementWithMouseCapture |
A pointer to the element with the mouse capture. More... | |
drgui_element * | pFirstDeadElement |
A pointer to the first element that has been marked as dead. Elements marked as dead are stored as a linked list. More... | |
drgui_element * | pLastMouseMoveTopLevelElement |
A pointer to the top level element that was passed in from the last inbound mouse move event. More... | |
void * | pPaintingContext |
The paiting context. More... | |
drgui_element ** | ppDirtyElements |
Definition at line 766 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_cursor_type drgui_context::currentCursor |
The current cursor.
Definition at line 803 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
unsigned int drgui_context::dirtyCounter |
The counter to use when determining whether or not an on_dirty event needs to be posted. This is incremented with drgui_begin_auto_dirty() and decremented with drgui_end_auto_dirty(). When the counter is decremented and hits zero, the on_dirty event will be posted.
Definition at line 856 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
size_t drgui_context::dirtyElementBufferSize |
Definition at line 848 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
size_t drgui_context::dirtyElementCount |
Definition at line 851 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
unsigned int drgui_context::flags |
Boolean flags.
Definition at line 806 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
int drgui_context::inboundEventCounter |
The inbound event counter. This is incremented with drgui_begin_inbound_event() and decremented with drgui_end_inbound_event(). We use this to determine whether or not an inbound event is being processed.
Definition at line 777 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
float drgui_context::lastMouseMovePosX |
The position of the mouse that was passed in from the last inbound mouse move event.
Definition at line 840 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
float drgui_context::lastMouseMovePosY |
Definition at line 841 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_change_cursor_proc drgui_context::onChangeCursor |
The global event handler to call when the system cursor needs to change.
Definition at line 825 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_delete_element_proc drgui_context::onDeleteElement |
The function to call when an element is deleted.
Definition at line 828 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_capture_keyboard_proc drgui_context::onGlobalCaptureKeyboard |
The global event handler to call when an element captures the keyboard.
Definition at line 819 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_capture_mouse_proc drgui_context::onGlobalCaptureMouse |
The global event handler to call when an element captures the mouse.
Definition at line 813 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_dirty_proc drgui_context::onGlobalDirty |
The global event callback to call when an element is marked as dirty.
Definition at line 810 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_release_keyboard_proc drgui_context::onGlobalReleaseKeyboard |
The global event handler to call when an element releases the keyboard.
Definition at line 822 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_release_mouse_proc drgui_context::onGlobalReleaseMouse |
The global event handler to call when an element releases the mouse.
Definition at line 816 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_on_log drgui_context::onLog |
The function to call when a log message is posted.
Definition at line 832 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
int drgui_context::outboundEventLockCounter |
The outbound event counter that we use as the "lock" for outbound events. All outbound events are posted from inbound events, and all inbound events are already synchronized so we don't need to use a mutex. This is mainly used as a way to check for erroneous outbound event generation.
Definition at line 782 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_painting_callbacks drgui_context::paintingCallbacks |
The painting callbacks.
Definition at line 772 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_element * drgui_context::pElementUnderMouse |
A pointer to the element that is sitting directly under the mouse. This is updated on every inbound mouse move event and is used for determining when a mouse enter/leave event needs to be posted.
Definition at line 789 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_element * drgui_context::pElementWantingKeyboardCapture |
A pointer to the element that wants the keyboard focus. If for some reason an element isn't able to immediately capture the keyboard (such as while in the middle of a release_keyboard event handler) this will be set to that particular element. This will then be used to capture the keyboard at a later time when it is able.
Definition at line 800 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_element * drgui_context::pElementWithKeyboardCapture |
A pointer to the element with the keyboard focus.
Definition at line 795 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_element * drgui_context::pElementWithMouseCapture |
A pointer to the element with the mouse capture.
Definition at line 792 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_element * drgui_context::pFirstDeadElement |
A pointer to the first element that has been marked as dead. Elements marked as dead are stored as a linked list.
Definition at line 785 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_element * drgui_context::pLastMouseMoveTopLevelElement |
A pointer to the top level element that was passed in from the last inbound mouse move event.
Definition at line 837 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
void * drgui_context::pPaintingContext |
The paiting context.
Definition at line 769 of file porcupine/demo/c/dr_libs/old/dr_gui.h.
drgui_element ** drgui_context::ppDirtyElements |
Definition at line 845 of file porcupine/demo/c/dr_libs/old/dr_gui.h.