Public Attributes | List of all members
drgui_element Struct Reference

#include <dr_gui.h>

Public Attributes

float absolutePosX
 The absolute position of the element on the x axis. A position of 0 is the left side of the surface it is attached to. More...
 
float absolutePosY
 The absolute position of the element on the y axis. A position of 0 is the top of the surface it is attached to. More...
 
drgui_cursor_type cursor
 The cursor. Defaults to drge_cursor_default. More...
 
drgui_rect dirtyRect
 
size_t extraDataSize
 The size of the extra data. More...
 
unsigned int flags
 Boolean flags. More...
 
float height
 The height of the element. More...
 
drgui_on_capture_keyboard_proc onCaptureKeyboard
 The event handler to call when an element receives the keyboard focus. More...
 
drgui_on_capture_mouse_proc onCaptureMouse
 The event handler to call when an element receives the mouse focus. More...
 
drgui_on_dirty_proc onDirty
 The function to call when the element is marked as dirty. More...
 
drgui_on_hittest_proc onHitTest
 The function to call when a hit test needs to be performed. More...
 
drgui_on_key_down_proc onKeyDown
 The function to call when a key on the keyboard is pressed or auto-repeated. More...
 
drgui_on_key_up_proc onKeyUp
 The function to call when a key on the keyboard is released. More...
 
drgui_on_mouse_button_dblclick_proc onMouseButtonDblClick
 The function to call when a mouse button is double-clicked while over the element. More...
 
drgui_on_mouse_button_down_proc onMouseButtonDown
 The function to call when a mouse buttonis pressed while over the element. More...
 
drgui_on_mouse_button_up_proc onMouseButtonUp
 The function to call when a mouse button is released while over the element. More...
 
drgui_on_mouse_enter_proc onMouseEnter
 The function to call when the mouse enters the given element. More...
 
drgui_on_mouse_leave_proc onMouseLeave
 The function to call when the mouse leaves the given element. More...
 
drgui_on_mouse_move_proc onMouseMove
 The function to call when the mouse is moved while over the element. More...
 
drgui_on_mouse_wheel_proc onMouseWheel
 The function to call when the mouse wheel it turned while over the element. More...
 
drgui_on_move_proc onMove
 The function to call when the element's relative position moves. More...
 
drgui_on_paint_proc onPaint
 The function to call when the paint event is received. More...
 
drgui_on_printable_key_down_proc onPrintableKeyDown
 The function to call when a printable character is pressed or auto-repeated. This would be used for text editing. More...
 
drgui_on_release_keyboard_proc onReleaseKeyboard
 The event handler to call when an element loses the keyboard focus. More...
 
drgui_on_release_mouse_proc onReleaseMouse
 The event handler to call when an element loses the mouse focus. More...
 
drgui_on_size_proc onSize
 The function to call when the element's size changes. More...
 
drgui_contextpContext
 A pointer to the context that owns this element. This should never be null for valid elements. More...
 
drgui_byte pExtraData [1]
 A pointer to the extra data. More...
 
drgui_elementpFirstChild
 A pointer to the first child element. More...
 
drgui_elementpLastChild
 A pointer to the last child element. More...
 
drgui_elementpNextDeadElement
 
drgui_elementpNextSibling
 A pointer to the next sibling element. More...
 
drgui_elementpParent
 A pointer to the parent element. This can be null in which case this element is the parent. More...
 
drgui_elementpPrevSibling
 A pointer ot the previous sibing element. More...
 
char type [64]
 
float width
 The width of the element. More...
 

Detailed Description

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

Member Data Documentation

◆ absolutePosX

float drgui_element::absolutePosX

The absolute position of the element on the x axis. A position of 0 is the left side of the surface it is attached to.

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

◆ absolutePosY

float drgui_element::absolutePosY

The absolute position of the element on the y axis. A position of 0 is the top of the surface it is attached to.

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

◆ cursor

drgui_cursor_type drgui_element::cursor

The cursor. Defaults to drge_cursor_default.

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

◆ dirtyRect

drgui_rect drgui_element::dirtyRect

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

◆ extraDataSize

size_t drgui_element::extraDataSize

The size of the extra data.

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

◆ flags

unsigned int drgui_element::flags

Boolean flags.

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

◆ height

float drgui_element::height

The height of the element.

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

◆ onCaptureKeyboard

drgui_on_capture_keyboard_proc drgui_element::onCaptureKeyboard

The event handler to call when an element receives the keyboard focus.

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

◆ onCaptureMouse

drgui_on_capture_mouse_proc drgui_element::onCaptureMouse

The event handler to call when an element receives the mouse focus.

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

◆ onDirty

drgui_on_dirty_proc drgui_element::onDirty

The function to call when the element is marked as dirty.

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

◆ onHitTest

drgui_on_hittest_proc drgui_element::onHitTest

The function to call when a hit test needs to be performed.

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

◆ onKeyDown

drgui_on_key_down_proc drgui_element::onKeyDown

The function to call when a key on the keyboard is pressed or auto-repeated.

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

◆ onKeyUp

drgui_on_key_up_proc drgui_element::onKeyUp

The function to call when a key on the keyboard is released.

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

◆ onMouseButtonDblClick

drgui_on_mouse_button_dblclick_proc drgui_element::onMouseButtonDblClick

The function to call when a mouse button is double-clicked while over the element.

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

◆ onMouseButtonDown

drgui_on_mouse_button_down_proc drgui_element::onMouseButtonDown

The function to call when a mouse buttonis pressed while over the element.

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

◆ onMouseButtonUp

drgui_on_mouse_button_up_proc drgui_element::onMouseButtonUp

The function to call when a mouse button is released while over the element.

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

◆ onMouseEnter

drgui_on_mouse_enter_proc drgui_element::onMouseEnter

The function to call when the mouse enters the given element.

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

◆ onMouseLeave

drgui_on_mouse_leave_proc drgui_element::onMouseLeave

The function to call when the mouse leaves the given element.

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

◆ onMouseMove

drgui_on_mouse_move_proc drgui_element::onMouseMove

The function to call when the mouse is moved while over the element.

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

◆ onMouseWheel

drgui_on_mouse_wheel_proc drgui_element::onMouseWheel

The function to call when the mouse wheel it turned while over the element.

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

◆ onMove

drgui_on_move_proc drgui_element::onMove

The function to call when the element's relative position moves.

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

◆ onPaint

drgui_on_paint_proc drgui_element::onPaint

The function to call when the paint event is received.

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

◆ onPrintableKeyDown

drgui_on_printable_key_down_proc drgui_element::onPrintableKeyDown

The function to call when a printable character is pressed or auto-repeated. This would be used for text editing.

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

◆ onReleaseKeyboard

drgui_on_release_keyboard_proc drgui_element::onReleaseKeyboard

The event handler to call when an element loses the keyboard focus.

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

◆ onReleaseMouse

drgui_on_release_mouse_proc drgui_element::onReleaseMouse

The event handler to call when an element loses the mouse focus.

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

◆ onSize

drgui_on_size_proc drgui_element::onSize

The function to call when the element's size changes.

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

◆ pContext

drgui_context * drgui_element::pContext

A pointer to the context that owns this element. This should never be null for valid elements.

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

◆ pExtraData

drgui_byte drgui_element::pExtraData

A pointer to the extra data.

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

◆ pFirstChild

drgui_element * drgui_element::pFirstChild

A pointer to the first child element.

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

◆ pLastChild

drgui_element * drgui_element::pLastChild

A pointer to the last child element.

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

◆ pNextDeadElement

drgui_element * drgui_element::pNextDeadElement

A pointer to the next dead element. When an element is deleted during an event handler it is not deleted straight away but rather at the end of the current batch of event processing. Dead elements are stored in a linked list, with this pointer acting as the link between items. This will be null if the element is the last in the list, or is not marked as dead. Note that this should not be used to check if the element is marked as dead - use the IS_ELEMENT_DEAD flag instead.

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

◆ pNextSibling

drgui_element * drgui_element::pNextSibling

A pointer to the next sibling element.

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

◆ pParent

drgui_element * drgui_element::pParent

A pointer to the parent element. This can be null in which case this element is the parent.

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

◆ pPrevSibling

drgui_element * drgui_element::pPrevSibling

A pointer ot the previous sibing element.

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

◆ type

char drgui_element::type

The type of the element, as a string. This is only every used by the host application, and is intended to be used as way to selectively perform certain operations on specific types of GUI elements.

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

◆ width

float drgui_element::width

The width of the element.

Definition at line 685 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