Public Attributes | List of all members
drgui_context Struct Reference

#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_elementpElementUnderMouse
 
drgui_elementpElementWantingKeyboardCapture
 
drgui_elementpElementWithKeyboardCapture
 A pointer to the element with the keyboard focus. More...
 
drgui_elementpElementWithMouseCapture
 A pointer to the element with the mouse capture. More...
 
drgui_elementpFirstDeadElement
 A pointer to the first element that has been marked as dead. Elements marked as dead are stored as a linked list. More...
 
drgui_elementpLastMouseMoveTopLevelElement
 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
 

Detailed Description

Definition at line 766 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

Member Data Documentation

◆ currentCursor

drgui_cursor_type drgui_context::currentCursor

The current cursor.

Definition at line 803 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

◆ dirtyCounter

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.

◆ dirtyElementBufferSize

size_t drgui_context::dirtyElementBufferSize

Definition at line 848 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

◆ dirtyElementCount

size_t drgui_context::dirtyElementCount

Definition at line 851 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

◆ flags

unsigned int drgui_context::flags

Boolean flags.

Definition at line 806 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

◆ inboundEventCounter

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.

◆ lastMouseMovePosX

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.

◆ lastMouseMovePosY

float drgui_context::lastMouseMovePosY

Definition at line 841 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

◆ onChangeCursor

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.

◆ onDeleteElement

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.

◆ onGlobalCaptureKeyboard

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.

◆ onGlobalCaptureMouse

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.

◆ onGlobalDirty

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.

◆ onGlobalReleaseKeyboard

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.

◆ onGlobalReleaseMouse

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.

◆ onLog

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.

◆ outboundEventLockCounter

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.

◆ paintingCallbacks

drgui_painting_callbacks drgui_context::paintingCallbacks

The painting callbacks.

Definition at line 772 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

◆ pElementUnderMouse

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.

◆ pElementWantingKeyboardCapture

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.

◆ pElementWithKeyboardCapture

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.

◆ pElementWithMouseCapture

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.

◆ pFirstDeadElement

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.

◆ pLastMouseMoveTopLevelElement

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.

◆ pPaintingContext

void * drgui_context::pPaintingContext

The paiting context.

Definition at line 769 of file porcupine/demo/c/dr_libs/old/dr_gui.h.

◆ ppDirtyElements

drgui_element ** drgui_context::ppDirtyElements

Definition at line 845 of file porcupine/demo/c/dr_libs/old/dr_gui.h.


The documentation for this struct was generated from the following file:


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:19