Go to the source code of this file.
Classes | |
struct | drgui_color |
Structure representing an RGBA color. Color components are specified in the range of 0 - 255. More... | |
struct | drgui_context |
struct | drgui_draw_image_args |
struct | drgui_element |
struct | drgui_font |
struct | drgui_font_metrics |
Font metrics. More... | |
struct | drgui_glyph_metrics |
Glyph metrics. More... | |
struct | drgui_image |
struct | drgui_painting_callbacks |
Structure containing callbacks for painting routines. More... | |
struct | drgui_rect |
Structure representing a rectangle. More... | |
struct | drgui_text_run |
Typedefs | |
typedef unsigned char | drgui_byte |
typedef void(* | drgui_callback) () |
typedef struct drgui_color | drgui_color |
typedef struct drgui_context | drgui_context |
typedef drgui_resource(* | drgui_create_font_proc) (void *pPaintingContext, const char *family, unsigned int size, drgui_font_weight weight, drgui_font_slant slant, float rotation, unsigned int flags) |
typedef drgui_resource(* | drgui_create_image_proc) (void *pPaintingContext, unsigned int width, unsigned int height, drgui_image_format format, unsigned int stride, const void *pImageData) |
typedef void(* | drgui_delete_font_proc) (drgui_resource font) |
typedef void(* | drgui_delete_image_proc) (drgui_resource image) |
typedef void(* | drgui_draw_begin_proc) (void *pPaintData) |
typedef void(* | drgui_draw_end_proc) (void *pPaintData) |
typedef void(* | drgui_draw_image_proc) (drgui_resource image, drgui_draw_image_args *pArgs, void *pPaintData) |
typedef void(* | drgui_draw_line_proc) (float startX, float startY, float endX, float endY, float width, drgui_color color, void *pPaintData) |
typedef void(* | drgui_draw_rect_outline_proc) (drgui_rect relativeRect, drgui_color color, float outlineWidth, void *pPaintData) |
typedef void(* | drgui_draw_rect_proc) (drgui_rect relativeRect, drgui_color color, void *pPaintData) |
typedef void(* | drgui_draw_rect_with_outline_proc) (drgui_rect relativeRect, drgui_color color, float outlineWidth, drgui_color outlineColor, void *pPaintData) |
typedef void(* | drgui_draw_round_rect_outline_proc) (drgui_rect relativeRect, drgui_color color, float radius, float outlineWidth, void *pPaintData) |
typedef void(* | drgui_draw_round_rect_proc) (drgui_rect relativeRect, drgui_color color, float radius, void *pPaintData) |
typedef void(* | drgui_draw_round_rect_with_outline_proc) (drgui_rect relativeRect, drgui_color color, float radius, float outlineWidth, drgui_color outlineColor, void *pPaintData) |
typedef void(* | drgui_draw_text_proc) (drgui_resource font, const char *text, int textLengthInBytes, float posX, float posY, drgui_color color, drgui_color backgroundColor, void *pPaintData) |
typedef struct drgui_element | drgui_element |
typedef struct drgui_font | drgui_font |
typedef struct drgui_font_metrics | drgui_font_metrics |
typedef void(* | drgui_get_clip_proc) (drgui_rect *pRectOut, void *pPaintData) |
typedef bool(* | drgui_get_font_metrics_proc) (drgui_resource font, drgui_font_metrics *pMetricsOut) |
typedef unsigned int(* | drgui_get_font_size_proc) (drgui_resource font) |
typedef bool(* | drgui_get_glyph_metrics_proc) (drgui_resource font, unsigned int utf32, drgui_glyph_metrics *pMetricsOut) |
typedef void(* | drgui_get_image_size_proc) (drgui_resource image, unsigned int *pWidthOut, unsigned int *pHeightOut) |
typedef drgui_image_format(* | drgui_get_optimal_image_format_proc) (void *pPaintingContext) |
typedef bool(* | drgui_get_text_cursor_position_from_char_proc) (drgui_resource font, const char *text, size_t characterIndex, float *pTextCursorPosXOut) |
typedef bool(* | drgui_get_text_cursor_position_from_point_proc) (drgui_resource font, const char *text, size_t textSizeInBytes, float maxWidth, float inputPosX, float *pTextCursorPosXOut, size_t *pCharacterIndexOut) |
typedef struct drgui_glyph_metrics | drgui_glyph_metrics |
typedef struct drgui_image | drgui_image |
typedef unsigned int | drgui_key |
typedef void *(* | drgui_map_image_data_proc) (drgui_resource image, unsigned int accessFlags) |
typedef bool(* | drgui_measure_string_proc) (drgui_resource font, const char *text, size_t textSizeInBytes, float *pWidthOut, float *pHeightOut) |
typedef void(* | drgui_on_capture_keyboard_proc) (drgui_element *pElement, drgui_element *pPrevCapturedElement) |
typedef void(* | drgui_on_capture_mouse_proc) (drgui_element *pElement) |
typedef void(* | drgui_on_change_cursor_proc) (drgui_element *pElement, drgui_cursor_type cursor) |
typedef void(* | drgui_on_delete_element_proc) (drgui_element *pElement) |
typedef void(* | drgui_on_dirty_proc) (drgui_element *pElement, drgui_rect relativeRect) |
typedef bool(* | drgui_on_hittest_proc) (drgui_element *pElement, float relativePosX, float relativePosY) |
typedef void(* | drgui_on_key_down_proc) (drgui_element *pElement, drgui_key key, int stateFlags) |
typedef void(* | drgui_on_key_up_proc) (drgui_element *pElement, drgui_key key, int stateFlags) |
typedef void(* | drgui_on_log) (drgui_context *pContext, const char *message) |
typedef void(* | drgui_on_mouse_button_dblclick_proc) (drgui_element *pElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
typedef void(* | drgui_on_mouse_button_down_proc) (drgui_element *pElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
typedef void(* | drgui_on_mouse_button_up_proc) (drgui_element *pElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
typedef void(* | drgui_on_mouse_enter_proc) (drgui_element *pElement) |
typedef void(* | drgui_on_mouse_leave_proc) (drgui_element *pElement) |
typedef void(* | drgui_on_mouse_move_proc) (drgui_element *pElement, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
typedef void(* | drgui_on_mouse_wheel_proc) (drgui_element *pElement, int delta, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
typedef void(* | drgui_on_move_proc) (drgui_element *pElement, float newRelativePosX, float newRelativePosY) |
typedef void(* | drgui_on_paint_proc) (drgui_element *pElement, drgui_rect relativeRect, void *pPaintData) |
typedef void(* | drgui_on_printable_key_down_proc) (drgui_element *pElement, unsigned int character, int stateFlags) |
typedef void(* | drgui_on_release_keyboard_proc) (drgui_element *pElement, drgui_element *pNewCapturedElement) |
typedef void(* | drgui_on_release_mouse_proc) (drgui_element *pElement) |
typedef void(* | drgui_on_size_proc) (drgui_element *pElement, float newWidth, float newHeight) |
typedef struct drgui_painting_callbacks | drgui_painting_callbacks |
typedef struct drgui_rect | drgui_rect |
typedef void * | drgui_resource |
typedef void(* | drgui_sb_on_scroll_proc) (drgui_element *pSBElement, int scrollPos) |
typedef void(* | drgui_set_clip_proc) (drgui_rect relativeRect, void *pPaintData) |
typedef struct drgui_tab | drgui_tab |
typedef void(* | drgui_tabbar_on_measure_tab_proc) (drgui_element *pTBElement, drgui_tab *pTab, float *pWidthOut, float *pHeightOut) |
typedef void(* | drgui_tabbar_on_paint_tab_proc) (drgui_element *pTBElement, drgui_tab *pTab, drgui_rect relativeClippingRect, float offsetX, float offsetY, float width, float height, void *pPaintData) |
typedef void(* | drgui_tabbar_on_tab_activated_proc) (drgui_element *pTBElement, drgui_tab *pTab, drgui_tab *pOldActiveTab) |
typedef void(* | drgui_tabbar_on_tab_close_proc) (drgui_element *pTBElement, drgui_tab *pTab) |
typedef void(* | drgui_tabbar_on_tab_deactivated_proc) (drgui_element *pTBElement, drgui_tab *pTab, drgui_tab *pNewActiveTab) |
typedef void(* | drgui_tabbar_on_tab_mouse_button_up_proc) (drgui_element *pTBElement, drgui_tab *pTab, int mouseButton, int mouseRelativePosX, int mouseRelativePosY, int stateFlags) |
typedef struct drgui_text_engine | drgui_text_engine |
typedef void(* | drgui_text_engine_on_cursor_move_proc) (drgui_text_engine *pTL) |
typedef void(* | drgui_text_engine_on_dirty_proc) (drgui_text_engine *pTL, drgui_rect rect) |
typedef void(* | drgui_text_engine_on_paint_rect_proc) (drgui_text_engine *pTL, drgui_rect rect, drgui_color color, drgui_element *pElement, void *pPaintData) |
typedef void(* | drgui_text_engine_on_paint_text_proc) (drgui_text_engine *pTL, drgui_text_run *pRun, drgui_element *pElement, void *pPaintData) |
typedef void(* | drgui_text_engine_on_text_changed_proc) (drgui_text_engine *pTL) |
typedef void(* | drgui_text_engine_on_undo_point_changed_proc) (drgui_text_engine *pTL, unsigned int iUndoPoint) |
typedef void(* | drgui_textbox_on_cursor_move_proc) (drgui_element *pTBElement) |
typedef void(* | drgui_textbox_on_undo_point_changed_proc) (drgui_element *pTBElement, unsigned int iUndoPoint) |
typedef struct drgui_tree_view_item | drgui_tree_view_item |
typedef void(* | drgui_tvi_measure_proc) (drgui_tree_view_item *pItem, float *pWidthOut, float *pHeightOut) |
typedef void(* | drgui_tvi_on_mouse_leave_proc) (drgui_tree_view_item *pItem) |
typedef void(* | drgui_tvi_on_mouse_move_proc) (drgui_tree_view_item *pItem, int relativeMousePosX, int relativeMousePosY, bool *pIsOverArrow) |
typedef void(* | drgui_tvi_on_paint_proc) (drgui_element *pTVElement, drgui_tree_view_item *pItem, drgui_rect relativeClippingRect, drgui_color backgroundColor, float offsetX, float offsetY, float width, float height, void *pPaintData) |
typedef void(* | drgui_tvi_on_picked_proc) (drgui_tree_view_item *pItem) |
typedef void(* | drgui_unmap_image_data_proc) (drgui_resource image) |
typedef bool(* | drgui_visible_iteration_proc) (drgui_element *pElement, drgui_rect *pRelativeRect, void *pUserData) |
Functions | |
void | drgui_append (drgui_element *pChildElement, drgui_element *pParentElement) |
Attaches the given element as a child of the given parent element, and appends it to the end of the children list. More... | |
void | drgui_append_sibling (drgui_element *pElementToAppend, drgui_element *pElementToAppendTo) |
Appends the given element to the given sibling. More... | |
drgui_element * | drgui_begin_dirty (drgui_element *pElement) |
void | drgui_capture_keyboard (drgui_element *pElement) |
void | drgui_capture_mouse (drgui_element *pElement) |
drgui_rect | drgui_clamp_rect (drgui_rect rect, drgui_rect other) |
Clamps the given rectangle to another. More... | |
bool | drgui_clamp_rect_to_element (const drgui_element *pElement, drgui_rect *pRelativeRect) |
Clamps the given rectangle to the given element and returns whether or not any of it is contained within the element's rectangle. More... | |
drgui_context * | drgui_create_context () |
Creates a context. More... | |
drgui_context * | drgui_create_context_dr_2d (dr2d_context *pDrawingContext) |
drgui_element * | drgui_create_element (drgui_context *pContext, drgui_element *pParent, size_t extraDataSize, const void *pExtraData) |
Creates an element. More... | |
drgui_font * | drgui_create_font (drgui_context *pContext, const char *family, unsigned int size, drgui_font_weight weight, drgui_font_slant slant, float rotation, unsigned int flags) |
Creates a font resource. More... | |
drgui_image * | drgui_create_image (drgui_context *pContext, unsigned int width, unsigned int height, drgui_image_format format, unsigned int stride, const void *pData) |
drgui_element * | drgui_create_scrollbar (drgui_context *pContext, drgui_element *pParent, drgui_sb_orientation orientation, size_t extraDataSize, const void *pExtraData) |
Creates a scrollbar element. More... | |
drgui_element * | drgui_create_tab_bar (drgui_context *pContext, drgui_element *pParent, drgui_tabbar_orientation orientation, size_t extraDataSize, const void *pExtraData) |
Creates a new tab bar control. More... | |
drgui_text_engine * | drgui_create_text_engine (drgui_context *pContext, size_t extraDataSize, void *pExtraData) |
Creates a new text engine object. More... | |
drgui_element * | drgui_create_textbox (drgui_context *pContext, drgui_element *pParent, size_t extraDataSize, const void *pExtraData) |
Creates a new text box control. More... | |
drgui_element * | drgui_create_tree_view (drgui_context *pContext, drgui_element *pParent, size_t extraDataSize, const void *pExtraData) |
Creates a tree-view control. More... | |
void | drgui_delete_context (drgui_context *pContext) |
Deletes a context and everything that it created. More... | |
void | drgui_delete_element (drgui_element *pElement) |
Deletes and element. More... | |
void | drgui_delete_font (drgui_font *pFont) |
Deletes a font resource. More... | |
void | drgui_delete_image (drgui_image *pImage) |
Deletes the given image. More... | |
void | drgui_delete_scrollbar (drgui_element *pSBElement) |
Deletes the given scrollbar element. More... | |
void | drgui_delete_tab_bar (drgui_element *pTBElement) |
Deletes the given tab bar control. More... | |
void | drgui_delete_text_engine (drgui_text_engine *pTL) |
Deletes the given text engine. More... | |
void | drgui_delete_textbox (drgui_element *pTBElement) |
Deletest the given text box control. More... | |
void | drgui_delete_tree_view (drgui_element *pTVElement) |
Deletes the given tree-view control. More... | |
void | drgui_detach (drgui_element *pChildElement) |
Detaches the given element from it's parent. More... | |
void | drgui_dirty (drgui_element *pElement, drgui_rect relativeRect) |
void | drgui_disable_auto_dirty (drgui_context *pContext) |
Disable's automatic dirtying of elements. More... | |
void | drgui_disable_clipping (drgui_element *pElement) |
Disables clipping against the parent for the given element. More... | |
void | drgui_draw (drgui_element *pElement, drgui_rect relativeRect, void *pPaintData) |
void | drgui_draw_border (drgui_element *pElement, float borderWidth, drgui_color color, void *pUserData) |
Draws a border around the given element. More... | |
void | drgui_draw_image (drgui_element *pElement, drgui_image *pImage, drgui_draw_image_args *pArgs, void *pPaintData) |
Draws an image. More... | |
void | drgui_draw_rect (drgui_element *pElement, drgui_rect relativeRect, drgui_color color, void *pPaintData) |
Draws a rectangle on the given element. More... | |
void | drgui_draw_rect_outline (drgui_element *pElement, drgui_rect relativeRect, drgui_color color, float outlineWidth, void *pPaintData) |
Draws the outline of a rectangle on the given element. More... | |
void | drgui_draw_rect_with_outline (drgui_element *pElement, drgui_rect relativeRect, drgui_color color, float outlineWidth, drgui_color outlineColor, void *pPaintData) |
Draws a filled rectangle with an outline on the given element. More... | |
void | drgui_draw_round_rect (drgui_element *pElement, drgui_rect relativeRect, drgui_color color, float radius, void *pPaintData) |
Draws a rectangle with rounded corners on the given element. More... | |
void | drgui_draw_round_rect_outline (drgui_element *pElement, drgui_rect relativeRect, drgui_color color, float radius, float outlineWidth, void *pPaintData) |
Draws the outline of a rectangle with rounded corners on the given element. More... | |
void | drgui_draw_round_rect_with_outline (drgui_element *pElement, drgui_rect relativeRect, drgui_color color, float radius, float outlineWidth, drgui_color outlineColor, void *pPaintData) |
Draws a filled rectangle and it's outline with rounded corners on the given element. More... | |
void | drgui_draw_text (drgui_element *pElement, drgui_font *pFont, const char *text, int textLengthInBytes, float posX, float posY, drgui_color color, drgui_color backgroundColor, void *pPaintData) |
void | drgui_enable_auto_dirty (drgui_context *pContext) |
Enable's automatic dirtying of elements. More... | |
void | drgui_enable_clipping (drgui_element *pElement) |
Enables clipping against the parent for the given element. More... | |
void | drgui_end_dirty (drgui_element *pElement) |
Ends accumulating a dirty rectangle, and requests a redraw from the backend if the counter reaches zero. More... | |
drgui_element * | drgui_find_element_under_point (drgui_element *pTopLevelElement, float absolutePosX, float absolutePosY) |
Finds the element under the given point taking mouse pass-through and hit testing into account. More... | |
drgui_element * | drgui_find_top_level_element (drgui_element *pElement) |
void | drgui_get_absolute_position (const drgui_element *pElement, float *positionXOut, float *positionYOut) |
Retrieves the absolute position of the given element. More... | |
float | drgui_get_absolute_position_x (const drgui_element *pElement) |
float | drgui_get_absolute_position_y (const drgui_element *pElement) |
drgui_rect | drgui_get_absolute_rect (const drgui_element *pElement) |
Retrieves the absolute rectangle for the given element. More... | |
void | drgui_get_clip (drgui_element *pElement, drgui_rect *pRelativeRect, void *pPaintData) |
Retrieves the current clipping rectangle. More... | |
drgui_cursor_type | drgui_get_cursor (drgui_element *pElement) |
Retrieves the cursor to use when the mouse enters the given GUI element. More... | |
drgui_element * | drgui_get_element_with_keyboard_capture (drgui_context *pContext) |
Retrieves a pointer to the element with the keyboard capture. More... | |
drgui_element * | drgui_get_element_with_mouse_capture (drgui_context *pContext) |
Retrieves a pointer to the element with the mouse capture. More... | |
void * | drgui_get_extra_data (drgui_element *pElement) |
Retrieves a pointer to the extra data of the given element. More... | |
size_t | drgui_get_extra_data_size (drgui_element *pElement) |
Retrieves the size of the extra data of the given element, in bytes. More... | |
bool | drgui_get_font_metrics (drgui_font *pFont, drgui_font_metrics *pMetricsOut) |
Retrieves the metrics of the given font. More... | |
bool | drgui_get_glyph_metrics (drgui_font *pFont, unsigned int utf32, drgui_glyph_metrics *pMetricsOut) |
Retrieves the metrics of the glyph for the given character when rendered with the given font. More... | |
float | drgui_get_height (const drgui_element *pElement) |
void | drgui_get_image_size (drgui_image *pImage, unsigned int *pWidthOut, unsigned int *pHeightOut) |
Retrieves the size of the given image. More... | |
drgui_rect | drgui_get_local_rect (const drgui_element *pElement) |
drgui_image_format | drgui_get_optimal_image_format (drgui_context *pContext) |
Retrieves the optimal image format for the given context. More... | |
drgui_element * | drgui_get_parent (drgui_element *pChildElement) |
void | drgui_get_relative_position (const drgui_element *pElement, float *relativePosXOut, float *relativePosYOut) |
Retrieves the relative position of the given element. More... | |
float | drgui_get_relative_position_x (const drgui_element *pElement) |
float | drgui_get_relative_position_y (const drgui_element *pElement) |
drgui_rect | drgui_get_relative_rect (const drgui_element *pElement) |
Retrieves the relative rectangle for the given element. More... | |
void | drgui_get_size (const drgui_element *pElement, float *widthOut, float *heightOut) |
Retrieves the size of the given element. More... | |
bool | drgui_get_text_cursor_position_from_char (drgui_font *pFont, const char *text, size_t characterIndex, float *pTextCursorPosXOut) |
Retrieves the position to palce a text cursor based on the character at the given index for the given string when drawn with the given font. More... | |
bool | drgui_get_text_cursor_position_from_point (drgui_font *pFont, const char *text, size_t textSizeInBytes, float maxWidth, float inputPosX, float *pTextCursorPosXOut, size_t *pCharacterIndexOut) |
Retrieves the position to place a text cursor based on the given point for the given string when drawn with the given font. More... | |
const char * | drgui_get_type (drgui_element *pElement) |
Retrieves the type fo the element. More... | |
float | drgui_get_width (const drgui_element *pElement) |
drgui_rect | drgui_grow_rect (drgui_rect rect, float amount) |
bool | drgui_has_keyboard_capture (drgui_element *pElement) |
Determines whether or not the given element has the keyboard capture. More... | |
bool | drgui_has_mouse_capture (drgui_element *pElement) |
Determines whether or not the given element has the mouse capture. More... | |
void | drgui_hide (drgui_element *pElement) |
Hides the given element. More... | |
bool | drgui_is_ancestor (drgui_element *pAncestorElement, drgui_element *pChildElement) |
Determines whether or not the given element is an ancestor of the other. More... | |
bool | drgui_is_auto_dirty_enabled (drgui_context *pContext) |
Determines whether or not automatic dirtying is enabled. More... | |
bool | drgui_is_child (drgui_element *pChildElement, drgui_element *pParentElement) |
bool | drgui_is_clipping_enabled (const drgui_element *pElement) |
Determines whether or not clipping is enabled for the given element. More... | |
bool | drgui_is_descendant (drgui_element *pChildElement, drgui_element *pAncestorElement) |
Determines whether or not the given element is a descendant of the other. More... | |
bool | drgui_is_element_under_mouse (drgui_element *pTopLevelElement) |
Determines whether or not the given element is currently sitting directly under the mouse. More... | |
bool | drgui_is_of_type (drgui_element *pElement, const char *type) |
Determines whether or not the given element is of the given type. More... | |
bool | drgui_is_parent (drgui_element *pParentElement, drgui_element *pChildElement) |
bool | drgui_is_point_inside_element (drgui_element *pElement, float absolutePosX, float absolutePosY) |
bool | drgui_is_point_inside_element_bounds (const drgui_element *pElement, float absolutePosX, float absolutePosY) |
bool | drgui_is_self_or_ancestor (drgui_element *pAncestorElement, drgui_element *pChildElement) |
Determines whether or not the given element is itself or a descendant. More... | |
bool | drgui_is_self_or_descendant (drgui_element *pChildElement, drgui_element *pAncestorElement) |
Determines whether or not the given element is itself or a descendant. More... | |
bool | drgui_is_visible (const drgui_element *pElement) |
bool | drgui_is_visible_recursive (const drgui_element *pElement) |
Recursively determines whether or not the element is marked as visible. More... | |
bool | drgui_iterate_visible_elements (drgui_element *pParentElement, drgui_rect relativeRect, drgui_visible_iteration_proc callback, void *pUserData) |
static drgui_key | drgui_key_parse (const char *str) |
static size_t | drgui_key_to_string (drgui_key key, char *strOut, size_t strOutSize) |
drgui_rect | drgui_make_inside_out_rect () |
void | drgui_make_point_absolute (const drgui_element *pElement, float *positionX, float *positionY) |
Converts the given point from relative to absolute based on the given element. More... | |
void | drgui_make_point_relative (const drgui_element *pElement, float *positionX, float *positionY) |
Converts the given point from absolute to relative to the given element. More... | |
drgui_rect | drgui_make_rect (float left, float top, float right, float bottom) |
Creates a drgui_rect object. More... | |
drgui_rect | drgui_make_rect_absolute (const drgui_element *pElement, drgui_rect *pRect) |
Converts the given rectangle from relative to absolute based on the given element. More... | |
drgui_rect | drgui_make_rect_relative (const drgui_element *pElement, drgui_rect *pRect) |
Converts the given rectangle from absolute to relative to the given element. More... | |
void * | drgui_map_image_data (drgui_image *pImage, unsigned int accessFlags) |
bool | drgui_measure_string (drgui_font *pFont, const char *text, size_t textLengthInBytes, float *pWidthOut, float *pHeightOut) |
drgui_rect | drgui_offset_rect (drgui_rect rect, float offsetX, float offsetY) |
Offsets the given rectangle. More... | |
void | drgui_on_size_fit_children_to_parent (drgui_element *pElement, float newWidth, float newHeight) |
An on_size event callback that resizes every child element to that of the parent. More... | |
bool | drgui_pass_through_hit_test (drgui_element *pElement, float mousePosX, float mousePosY) |
An on_hit_test event callback that can be used to always fail the mouse hit test. More... | |
void | drgui_post_inbound_event_key_down (drgui_context *pContext, drgui_key key, int stateFlags) |
Posts a key down inbound event. More... | |
void | drgui_post_inbound_event_key_up (drgui_context *pContext, drgui_key key, int stateFlags) |
Posts a key up inbound event. More... | |
void | drgui_post_inbound_event_mouse_button_dblclick (drgui_element *pTopLevelElement, int mouseButton, int mousePosX, int mousePosY, int stateFlags) |
Posts a mouse button double-clicked inbound event. More... | |
void | drgui_post_inbound_event_mouse_button_down (drgui_element *pTopLevelElement, int mouseButton, int mousePosX, int mousePosY, int stateFlags) |
Posts a mouse button down inbound event. More... | |
void | drgui_post_inbound_event_mouse_button_up (drgui_element *pTopLevelElement, int mouseButton, int mousePosX, int mousePosY, int stateFlags) |
Posts a mouse button up inbound event. More... | |
void | drgui_post_inbound_event_mouse_leave (drgui_element *pTopLevelElement) |
void | drgui_post_inbound_event_mouse_move (drgui_element *pTopLevelElement, int mousePosX, int mousePosY, int stateFlags) |
Posts a mouse move inbound event. More... | |
void | drgui_post_inbound_event_mouse_wheel (drgui_element *pTopLevelElement, int mouseButton, int mousePosX, int mousePosY, int stateFlags) |
Posts a mouse wheel inbound event. More... | |
void | drgui_post_inbound_event_printable_key_down (drgui_context *pContext, unsigned int character, int stateFlags) |
void | drgui_prepend (drgui_element *pChildElement, drgui_element *pParentElement) |
Attaches the given element as a child of the given parent element, and prepends it to the end of the children list. More... | |
void | drgui_prepend_sibling (drgui_element *pElementToPrepend, drgui_element *pElementToPrependTo) |
Prepends the given element to the given sibling. More... | |
bool | drgui_rect_contains_point (drgui_rect rect, float posX, float posY) |
bool | drgui_rect_equal (drgui_rect rect0, drgui_rect rect1) |
Determines whether or not two rectangles are equal. More... | |
bool | drgui_rect_has_volume (drgui_rect rect) |
Determines whether or not the given rectangle has any volume (width and height > 0). More... | |
drgui_rect | drgui_rect_union (drgui_rect rect0, drgui_rect rect1) |
Creates a rectangle that contains both of the given rectangles. More... | |
void | drgui_register_dr_2d_callbacks (drgui_context *pContext, dr2d_context *pDrawingContext) |
bool | drgui_register_painting_callbacks (drgui_context *pContext, void *pPaintingContext, drgui_painting_callbacks callbacks) |
void | drgui_release_keyboard (drgui_context *pContext) |
Releases the keyboard capture. More... | |
void | drgui_release_keyboard_no_global_notify (drgui_context *pContext) |
Releases the keyboard capture without posting the global-scoped event. Should only be used in very specific cases, usually in combination with awkward interop with the window system. More... | |
void | drgui_release_mouse (drgui_context *pContext) |
Releases the mouse capture. More... | |
void | drgui_release_mouse_no_global_notify (drgui_context *pContext) |
Releases the mouse capture without posting the global-scoped event. Should only be used in very specific cases, usually in combination with awkward interop with the window system. More... | |
drgui_color | drgui_rgb (drgui_byte r, drgui_byte g, drgui_byte b) |
Creates a color object from a set of RGB color components. More... | |
drgui_color | drgui_rgba (drgui_byte r, drgui_byte g, drgui_byte b, drgui_byte a) |
Creates a color object from a set of RGBA color components. More... | |
void | drgui_sb_disable_thumb_auto_hide (drgui_element *pSBElement) |
Disables auto-hiding of the thumb. More... | |
void | drgui_sb_enable_thumb_auto_hide (drgui_element *pSBElement) |
Enables auto-hiding of the thumb. More... | |
void * | drgui_sb_get_extra_data (drgui_element *pSBElement) |
Retrieves a pointer to the extra data associated with the scrollbar. More... | |
size_t | drgui_sb_get_extra_data_size (drgui_element *pSBElement) |
Retrieves the size of the extra data associated with the scrollbar. More... | |
int | drgui_sb_get_mouse_wheel_scale (drgui_element *pSBElement) |
Retrieves the mouse wheel scale. More... | |
drgui_sb_on_scroll_proc | drgui_sb_get_on_scroll (drgui_element *pSBElement) |
Retrieves the function call when the given scrollbar is scrolled. More... | |
drgui_sb_orientation | drgui_sb_get_orientation (drgui_element *pSBElement) |
Retrieves the orientation of the given scrollbar. More... | |
int | drgui_sb_get_page_size (drgui_element *pSBElement) |
Retrieves the page size of the given scrollbar's page. More... | |
void | drgui_sb_get_range (drgui_element *pSBElement, int *pRangeMinOut, int *pRangeMaxOut) |
Retrieves the given scrollbar's range. More... | |
int | drgui_sb_get_scroll_position (drgui_element *pSBElement) |
Retrieves the scroll position. More... | |
drgui_rect | drgui_sb_get_thumb_rect (drgui_element *pSBElement) |
Calculates the relative rectangle of the given scrollbar's thumb. More... | |
bool | drgui_sb_is_thumb_auto_hide_enabled (drgui_element *pSBElement) |
Determines whether or not thumb auto-hiding is enabled. More... | |
bool | drgui_sb_is_thumb_visible (drgui_element *pSBElement) |
void | drgui_sb_on_mouse_button_down (drgui_element *pSBElement, int button, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse button down event needs to be processed for the given scrollbar. More... | |
void | drgui_sb_on_mouse_button_up (drgui_element *pSBElement, int button, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse button up event needs to be processed for the given scrollbar. More... | |
void | drgui_sb_on_mouse_leave (drgui_element *pSBElement) |
Called when the mouse leave event needs to be processed for the given scrollbar. More... | |
void | drgui_sb_on_mouse_move (drgui_element *pSBElement, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse move event needs to be processed for the given scrollbar. More... | |
void | drgui_sb_on_mouse_wheel (drgui_element *pSBElement, int delta, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse wheel event needs to be processed for the given scrollbar. More... | |
void | drgui_sb_on_paint (drgui_element *pSBElement, drgui_rect relativeClippingRect, void *pPaintData) |
Called when the paint event needs to be processed. More... | |
void | drgui_sb_on_size (drgui_element *pSBElement, float newWidth, float newHeight) |
Called when the size event needs to be processed for the given scrollbar. More... | |
void | drgui_sb_scroll (drgui_element *pSBElement, int offset) |
void | drgui_sb_scroll_to (drgui_element *pSBElement, int newScrollPos) |
void | drgui_sb_set_default_thumb_color (drgui_element *pSBElement, drgui_color color) |
Sets the default color of the thumb. More... | |
void | drgui_sb_set_hovered_thumb_color (drgui_element *pSBElement, drgui_color color) |
Sets the hovered color of the thumb. More... | |
void | drgui_sb_set_mouse_wheel_scele (drgui_element *pSBElement, int scale) |
void | drgui_sb_set_on_scroll (drgui_element *pSBElement, drgui_sb_on_scroll_proc onScroll) |
Sets the function to call when the given scrollbar is scrolled. More... | |
void | drgui_sb_set_page_size (drgui_element *pSBElement, int pageSize) |
Sets the page size of the given scrollbar's page. More... | |
void | drgui_sb_set_pressed_thumb_color (drgui_element *pSBElement, drgui_color color) |
Sets the pressed color of the thumb. More... | |
void | drgui_sb_set_range (drgui_element *pSBElement, int rangeMin, int rangeMax) |
Sets the given scrollbar's range. More... | |
void | drgui_sb_set_range_and_page_size (drgui_element *pSBElement, int rangeMin, int rangeMax, int pageSize) |
void | drgui_sb_set_scroll_position (drgui_element *pSBElement, int position) |
void | drgui_sb_set_track_color (drgui_element *pSBElement, drgui_color color) |
Sets the color of the track. More... | |
drgui_rect | drgui_scale_rect (drgui_rect rect, float scaleX, float scaleY) |
void | drgui_set_absolute_position (drgui_element *pElement, float positionX, float positionY) |
Sets the absolute position of the given element. More... | |
void | drgui_set_clip (drgui_element *pElement, drgui_rect relativeRect, void *pPaintData) |
Sets the clipping rectangle to apply to all future draw operations on this element. More... | |
void | drgui_set_cursor (drgui_element *pElement, drgui_cursor_type cursor) |
Sets the cursor to use when the mouse enters the given GUI element. More... | |
void | drgui_set_global_on_capture_keyboard (drgui_context *pContext, drgui_on_capture_keyboard_proc onCaptureKeyboard) |
void | drgui_set_global_on_capture_mouse (drgui_context *pContext, drgui_on_capture_mouse_proc onCaptureMouse) |
void | drgui_set_global_on_change_cursor (drgui_context *pContext, drgui_on_change_cursor_proc onChangeCursor) |
void | drgui_set_global_on_dirty (drgui_context *pContext, drgui_on_dirty_proc onDirty) |
void | drgui_set_global_on_release_keyboard (drgui_context *pContext, drgui_on_capture_keyboard_proc onReleaseKeyboard) |
void | drgui_set_global_on_release_mouse (drgui_context *pContext, drgui_on_release_mouse_proc onReleaseMouse) |
void | drgui_set_on_capture_keyboard (drgui_element *pElement, drgui_on_capture_keyboard_proc callback) |
Registers the on_capture_keyboard event callback. More... | |
void | drgui_set_on_capture_mouse (drgui_element *pElement, drgui_on_capture_mouse_proc callback) |
Registers the on_capture_mouse event callback. More... | |
void | drgui_set_on_delete_element (drgui_context *pContext, drgui_on_delete_element_proc onDeleteElement) |
Sets the function to call when an element is deleted. More... | |
void | drgui_set_on_dirty (drgui_element *pElement, drgui_on_dirty_proc callback) |
Registers the on_dirty event callback. More... | |
void | drgui_set_on_hittest (drgui_element *pElement, drgui_on_hittest_proc callback) |
Registers the on_hittest event callback. More... | |
void | drgui_set_on_key_down (drgui_element *pElement, drgui_on_key_down_proc callback) |
Registers the on_key_down event callback. More... | |
void | drgui_set_on_key_up (drgui_element *pElement, drgui_on_key_up_proc callback) |
Registers the on_key_up event callback. More... | |
void | drgui_set_on_log (drgui_context *pContext, drgui_on_log onLog) |
Registers the callback to call when a log message is posted. More... | |
void | drgui_set_on_mouse_button_dblclick (drgui_element *pElement, drgui_on_mouse_button_dblclick_proc callback) |
Registers the on_mouse_button_down event callback. More... | |
void | drgui_set_on_mouse_button_down (drgui_element *pElement, drgui_on_mouse_button_down_proc callback) |
Registers the on_mouse_button_down event callback. More... | |
void | drgui_set_on_mouse_button_up (drgui_element *pElement, drgui_on_mouse_button_up_proc callback) |
Registers the on_mouse_button_up event callback. More... | |
void | drgui_set_on_mouse_enter (drgui_element *pElement, drgui_on_mouse_enter_proc callback) |
Registers the on_mouse_enter event callback. More... | |
void | drgui_set_on_mouse_leave (drgui_element *pElement, drgui_on_mouse_leave_proc callback) |
Registers the on_mouse_leave event callback. More... | |
void | drgui_set_on_mouse_move (drgui_element *pElement, drgui_on_mouse_move_proc callback) |
Registers the on_mouse_move event callback. More... | |
void | drgui_set_on_mouse_wheel (drgui_element *pElement, drgui_on_mouse_wheel_proc callback) |
Registers the on_mouse_wheel event callback. More... | |
void | drgui_set_on_move (drgui_element *pElement, drgui_on_move_proc callback) |
Registers the on_move event callback. More... | |
void | drgui_set_on_paint (drgui_element *pElement, drgui_on_paint_proc callback) |
Registers the on_paint event callback. More... | |
void | drgui_set_on_printable_key_down (drgui_element *pElement, drgui_on_printable_key_down_proc callback) |
Registers the on_printable_key_down event callback. More... | |
void | drgui_set_on_release_keyboard (drgui_element *pElement, drgui_on_release_keyboard_proc callback) |
Registers the on_release_keyboard event callback. More... | |
void | drgui_set_on_release_mouse (drgui_element *pElement, drgui_on_release_mouse_proc callback) |
Registers the on_release_mouse event callback. More... | |
void | drgui_set_on_size (drgui_element *pElement, drgui_on_size_proc callback) |
Registers the on_size event callback. More... | |
void | drgui_set_relative_position (drgui_element *pElement, float relativePosX, float relativePosY) |
Sets the relative position of the given element. More... | |
void | drgui_set_size (drgui_element *pElement, float width, float height) |
Sets the size of the given element. More... | |
bool | drgui_set_type (drgui_element *pElement, const char *type) |
void | drgui_show (drgui_element *pElement) |
Shows the given element. More... | |
static size_t | drgui_strcpy (char *dst, size_t dstSize, const char *src) |
void | drgui_tab_delete (drgui_tab *pTab) |
Recursively deletes a tree view item. More... | |
void * | drgui_tab_get_extra_data (drgui_tab *pTab) |
Retrieves a pointer to the extra data associated with the given tree-view item. More... | |
size_t | drgui_tab_get_extra_data_size (drgui_tab *pTab) |
Retrieves the size of the extra data associated with the given tree-view item. More... | |
drgui_tab * | drgui_tab_get_next_tab (drgui_tab *pTab) |
Retrieves a pointer to the next tab in the tab bar. More... | |
drgui_tab * | drgui_tab_get_prev_tab (drgui_tab *pTab) |
Retrieves a pointer to the previous tab in the tab bar. More... | |
drgui_element * | drgui_tab_get_tab_bar_element (drgui_tab *pTab) |
Retrieves the tab bar GUI element that owns the given item. More... | |
const char * | drgui_tab_get_text (drgui_tab *pTab) |
Retrieves the text of the given tab bar item. More... | |
bool | drgui_tab_is_in_view (drgui_tab *pTab) |
Determines whether or not the given tab is in view. More... | |
void | drgui_tab_move_into_view (drgui_tab *pTab) |
void | drgui_tab_move_to_front (drgui_tab *pTab) |
Moves the given tab to the front of the tab bar that owns it. More... | |
void | drgui_tab_set_text (drgui_tab *pTab, const char *text) |
Sets the text of the given tab bar item. More... | |
void | drgui_tabbar_activate_next_tab (drgui_element *pTBElement) |
void | drgui_tabbar_activate_prev_tab (drgui_element *pTBElement) |
void | drgui_tabbar_activate_tab (drgui_element *pTBElement, drgui_tab *pTab) |
Activates the given tab. More... | |
drgui_tab * | drgui_tabbar_create_and_append_tab (drgui_element *pTBElement, const char *text, size_t extraDataSize, const void *pExtraData) |
Creates and appends a tab. More... | |
drgui_tab * | drgui_tabbar_create_and_prepend_tab (drgui_element *pTBElement, const char *text, size_t extraDataSize, const void *pExtraData) |
Creates and prepends a tab. More... | |
void | drgui_tabbar_disable_auto_size (drgui_element *pTBElement) |
Disables auto-resizing based on tabs. More... | |
void | drgui_tabbar_disable_close_on_middle_click (drgui_element *pTBElement) |
Disables the on_close event on middle click. More... | |
void | drgui_tabbar_enable_auto_size (drgui_element *pTBElement) |
void | drgui_tabbar_enable_close_on_middle_click (drgui_element *pTBElement) |
Enables the on_close event on middle click. More... | |
drgui_tab * | drgui_tabbar_get_active_tab (drgui_element *pTBElement) |
Retrieves a pointer to the currently active tab. More... | |
drgui_image * | drgui_tabbar_get_close_button_image (drgui_element *pTBElement) |
Retrieves the image being used for the close buttons. More... | |
float | drgui_tabbar_get_close_button_left_padding (drgui_element *pTBElement) |
void * | drgui_tabbar_get_extra_data (drgui_element *pTBElement) |
Retrieves a pointer to the extra data associated with the scrollbar. More... | |
size_t | drgui_tabbar_get_extra_data_size (drgui_element *pTBElement) |
Retrieves the size of the extra data associated with the scrollbar. More... | |
drgui_tab * | drgui_tabbar_get_first_tab (drgui_element *pTBElement) |
drgui_font * | drgui_tabbar_get_font (drgui_element *pTBElement) |
Retrieves the default font to use for tabs. More... | |
drgui_tab * | drgui_tabbar_get_last_tab (drgui_element *pTBElement) |
drgui_tab * | drgui_tabbar_get_next_tab (drgui_element *pTBElement, drgui_tab *pTab) |
drgui_tabbar_orientation | drgui_tabbar_get_orientation (drgui_element *pTBElement) |
Retrieves the orientation of the given scrollbar. More... | |
drgui_tab * | drgui_tabbar_get_prev_tab (drgui_element *pTBElement, drgui_tab *pTab) |
drgui_color | drgui_tabbar_get_tab_background_color (drgui_element *pTBElement) |
drgui_color | drgui_tabbar_get_tab_background_color_actived (drgui_element *pTBElement) |
drgui_color | drgui_tabbar_get_tab_background_color_hovered (drgui_element *pTBElement) |
float | drgui_tabbar_get_tab_padding (drgui_element *pTBElement) |
drgui_color | drgui_tabbar_get_text_color (drgui_element *pTBElement) |
void | drgui_tabbar_hide_close_buttons (drgui_element *pTBElement) |
Hides the close buttons on each tab. More... | |
bool | drgui_tabbar_is_auto_size_enabled (drgui_element *pTBElement) |
Determines whether or not auto-sizing is enabled. More... | |
bool | drgui_tabbar_is_close_on_middle_click_enabled (drgui_element *pTBElement) |
Determines whether or not close-on-middle-click is enabled. More... | |
bool | drgui_tabbar_is_tab_in_view (drgui_element *pTBElement, drgui_tab *pTab) |
Determines whether or not the given tab is in view. More... | |
void | drgui_tabbar_measure_tab (drgui_element *pTBElement, drgui_tab *pTab, float *pWidthOut, float *pHeightOut) |
Measures the given tab. More... | |
void | drgui_tabbar_on_mouse_button_down (drgui_element *pTBElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse button down event needs to be processed for the given tab bar control. More... | |
void | drgui_tabbar_on_mouse_button_up (drgui_element *pTBElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse button up event needs to be processed for the given tab bar control. More... | |
void | drgui_tabbar_on_mouse_leave (drgui_element *pTBElement) |
Called when the mouse leave event needs to be processed for the given tab bar control. More... | |
void | drgui_tabbar_on_mouse_move (drgui_element *pTBElement, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse move event needs to be processed for the given tab bar control. More... | |
void | drgui_tabbar_on_paint (drgui_element *pTBElement, drgui_rect relativeClippingRect, void *pPaintData) |
Called when the paint event needs to be processed for the given tab control. More... | |
void | drgui_tabbar_paint_tab (drgui_element *pTBElement, drgui_tab *pTab, drgui_rect relativeClippingRect, float offsetX, float offsetY, float width, float height, void *pPaintData) |
Paints the given tab. More... | |
void | drgui_tabbar_resize_by_tabs (drgui_element *pTBElement) |
void | drgui_tabbar_set_close_button_color (drgui_element *pTBElement, drgui_color color) |
void | drgui_tabbar_set_close_button_image (drgui_element *pTBElement, drgui_image *pImage) |
Sets the image to use for close buttons. More... | |
void | drgui_tabbar_set_close_button_left_padding (drgui_element *pTBElement, float padding) |
void | drgui_tabbar_set_font (drgui_element *pTBElement, drgui_font *pFont) |
Sets the default font to use for tabs. More... | |
void | drgui_tabbar_set_on_measure_tab (drgui_element *pTBElement, drgui_tabbar_on_measure_tab_proc proc) |
Sets the function to call when a tab needs to be measured. More... | |
void | drgui_tabbar_set_on_paint_tab (drgui_element *pTBElement, drgui_tabbar_on_paint_tab_proc proc) |
Sets the function to call when a tab needs to be painted. More... | |
void | drgui_tabbar_set_on_tab_activated (drgui_element *pTBElement, drgui_tabbar_on_tab_activated_proc proc) |
Sets the function to call when a tab is activated. More... | |
void | drgui_tabbar_set_on_tab_closed (drgui_element *pTBElement, drgui_tabbar_on_tab_close_proc proc) |
Sets the function to call when a tab is closed with the close button. More... | |
void | drgui_tabbar_set_on_tab_deactivated (drgui_element *pTBElement, drgui_tabbar_on_tab_deactivated_proc proc) |
Sets the function to call when a tab is deactivated. More... | |
void | drgui_tabbar_set_on_tab_mouse_button_up (drgui_element *pTBElement, drgui_tabbar_on_tab_mouse_button_up_proc proc) |
void | drgui_tabbar_set_tab_background_color (drgui_element *pTBElement, drgui_color color) |
void | drgui_tabbar_set_tab_background_color_active (drgui_element *pTBElement, drgui_color color) |
void | drgui_tabbar_set_tab_background_color_hovered (drgui_element *pTBElement, drgui_color color) |
void | drgui_tabbar_set_tab_padding (drgui_element *pTBElement, float padding) |
void | drgui_tabbar_set_text_color (drgui_element *pTBElement, drgui_color color) |
void | drgui_tabbar_set_text_color_active (drgui_element *pTBElement, drgui_color color) |
void | drgui_tabbar_set_text_color_hovered (drgui_element *pTBElement, drgui_color color) |
void | drgui_tabbar_show_close_buttons (drgui_element *pTBElement) |
Shows the close buttons on each tab. More... | |
void | drgui_text_engine_clear_undo_stack (drgui_text_engine *pTL) |
Clears the undo stack. More... | |
bool | drgui_text_engine_commit_undo_point (drgui_text_engine *pTL) |
Creates a snapshot of the current state of the text engine and pushes it to the top of the undo/redo stack. More... | |
bool | drgui_text_engine_delete_character_to_left_of_cursor (drgui_text_engine *pTL) |
bool | drgui_text_engine_delete_character_to_right_of_cursor (drgui_text_engine *pTL) |
bool | drgui_text_engine_delete_selected_text (drgui_text_engine *pTL) |
bool | drgui_text_engine_delete_text_range (drgui_text_engine *pTL, size_t iFirstCh, size_t iLastChPlus1) |
void | drgui_text_engine_deselect_all (drgui_text_engine *pTL) |
Deselects everything in the given text engine. More... | |
void | drgui_text_engine_enter_selection_mode (drgui_text_engine *pTL) |
bool | drgui_text_engine_find_next (drgui_text_engine *pTL, const char *text, size_t *pSelectionStartOut, size_t *pSelectionEndOut) |
Finds the given string starting from the cursor and then looping back. More... | |
bool | drgui_text_engine_find_next_no_loop (drgui_text_engine *pTL, const char *text, size_t *pSelectionStartOut, size_t *pSelectionEndOut) |
Finds the given string starting from the cursor, but does not loop back. More... | |
drgui_color | drgui_text_engine_get_active_line_bg_color (drgui_text_engine *pTL) |
Retrieves the background color of the line the cursor is sitting on. More... | |
float | drgui_text_engine_get_container_height (drgui_text_engine *pTL) |
Retrieves the height of the container. More... | |
void | drgui_text_engine_get_container_size (drgui_text_engine *pTL, float *pContainerWidthOut, float *pContainerHeightOut) |
Retrieves the size of the container. More... | |
float | drgui_text_engine_get_container_width (drgui_text_engine *pTL) |
Retrieves the width of the container. More... | |
unsigned int | drgui_text_engine_get_cursor_blink_rate (drgui_text_engine *pTL) |
Retrieves the blink rate of the cursor in milliseconds. More... | |
size_t | drgui_text_engine_get_cursor_character (drgui_text_engine *pTL) |
Retrieves the index of the character the cursor is currently sitting on. More... | |
drgui_color | drgui_text_engine_get_cursor_color (drgui_text_engine *pTL) |
Retrieves the color of the text cursor. More... | |
size_t | drgui_text_engine_get_cursor_column (drgui_text_engine *pTL) |
Retrieves the index of the column the cursor is currently sitting on. More... | |
size_t | drgui_text_engine_get_cursor_line (drgui_text_engine *pTL) |
Retrieves the index of the line the cursor is currently sitting on. More... | |
void | drgui_text_engine_get_cursor_position (drgui_text_engine *pTL, float *pPosXOut, float *pPosYOut) |
Retrieves the position of the cursor, relative to the container. More... | |
drgui_rect | drgui_text_engine_get_cursor_rect (drgui_text_engine *pTL) |
Retrieves the rectangle of the cursor, relative to the container. More... | |
float | drgui_text_engine_get_cursor_width (drgui_text_engine *pTL) |
Retrieves the width of the text cursor. More... | |
drgui_color | drgui_text_engine_get_default_bg_color (drgui_text_engine *pTL) |
Retrieves the default background color of the given text engine. More... | |
drgui_font * | drgui_text_engine_get_default_font (drgui_text_engine *pTL) |
Retrieves the default font to use for text runs. More... | |
drgui_color | drgui_text_engine_get_default_text_color (drgui_text_engine *pTL) |
Retrieves the default text color of the given text engine. More... | |
void * | drgui_text_engine_get_extra_data (drgui_text_engine *pTL) |
Retrieves a pointer to the extra data associated with the given text engine. More... | |
size_t | drgui_text_engine_get_extra_data_size (drgui_text_engine *pTL) |
Retrieves the size of the extra data associated with the given text engine. More... | |
drgui_text_engine_alignment | drgui_text_engine_get_horizontal_align (drgui_text_engine *pTL) |
Retrieves the horizontal aligment of the given text engine. More... | |
void | drgui_text_engine_get_inner_offset (drgui_text_engine *pTL, float *pInnerOffsetX, float *pInnerOffsetY) |
Retrieves the inner offset of the given text engine. More... | |
float | drgui_text_engine_get_inner_offset_x (drgui_text_engine *pTL) |
Retrieves the inner offset of the given text engine on the x axis. More... | |
float | drgui_text_engine_get_inner_offset_y (drgui_text_engine *pTL) |
Retrieves the inner offset of the given text engine on the x axis. More... | |
size_t | drgui_text_engine_get_line_at_pos_y (drgui_text_engine *pTL, float posY) |
Finds the line under the given point on the y axis relative to the container. More... | |
void | drgui_text_engine_get_line_character_range (drgui_text_engine *pTL, size_t iLine, size_t *pCharStartOut, size_t *pCharEndOut) |
Retrieves teh index of the first and last character of the line at the given index. More... | |
size_t | drgui_text_engine_get_line_count (drgui_text_engine *pTL) |
Retrieves the number of lines in the given text engine. More... | |
size_t | drgui_text_engine_get_line_first_character (drgui_text_engine *pTL, size_t iLine) |
Retrieves the index of the first character of the line at the given index. More... | |
size_t | drgui_text_engine_get_line_last_character (drgui_text_engine *pTL, size_t iLine) |
Retrieves the index of the last character of the line at the given index. More... | |
float | drgui_text_engine_get_line_pos_y (drgui_text_engine *pTL, size_t iLine) |
unsigned int | drgui_text_engine_get_redo_points_remaining_count (drgui_text_engine *pTL) |
Retrieves the number of redo points remaining in the stack. More... | |
size_t | drgui_text_engine_get_selected_text (drgui_text_engine *pTL, char *textOut, size_t textOutLength) |
size_t | drgui_text_engine_get_selection_anchor_line (drgui_text_engine *pTL) |
Retrieves the line the selection anchor is sitting on. More... | |
drgui_color | drgui_text_engine_get_selection_bg_color (drgui_text_engine *pTL) |
Retrieves the background color of selected text. More... | |
size_t | drgui_text_engine_get_selection_first_line (drgui_text_engine *pTL) |
Retrieves the index of the first line of the current selection. More... | |
size_t | drgui_text_engine_get_selection_last_line (drgui_text_engine *pTL) |
Retrieves the index of the last line of the current selection. More... | |
unsigned int | drgui_text_engine_get_tab_size (drgui_text_engine *pTL) |
Retrieves the size of a tab in spaces. More... | |
size_t | drgui_text_engine_get_text (drgui_text_engine *pTL, char *textOut, size_t textOutSize) |
drgui_rect | drgui_text_engine_get_text_rect_relative_to_bounds (drgui_text_engine *pTL) |
Retrieves the rectangle of the text relative to the bounds, taking alignment into account. More... | |
unsigned int | drgui_text_engine_get_undo_points_remaining_count (drgui_text_engine *pTL) |
Retrieves the number of undo points remaining in the stack. More... | |
drgui_text_engine_alignment | drgui_text_engine_get_vertical_align (drgui_text_engine *pTL) |
Retrieves the vertical aligment of the given text engine. More... | |
size_t | drgui_text_engine_get_visible_line_count_starting_at (drgui_text_engine *pTL, size_t iFirstLine) |
void | drgui_text_engine_hide_cursor (drgui_text_engine *pTL) |
Hides the cursor. More... | |
bool | drgui_text_engine_insert_character (drgui_text_engine *pTL, unsigned int character, size_t insertIndex) |
bool | drgui_text_engine_insert_character_at_cursor (drgui_text_engine *pTL, unsigned int character) |
bool | drgui_text_engine_insert_text (drgui_text_engine *pTL, const char *text, size_t insertIndex) |
bool | drgui_text_engine_insert_text_at_cursor (drgui_text_engine *pTL, const char *text) |
bool | drgui_text_engine_is_anything_selected (drgui_text_engine *pTL) |
Determines whether or not anything is selected in the given text engine. More... | |
bool | drgui_text_engine_is_cursor_at_end_of_selection (drgui_text_engine *pTL) |
Determines whether or not the cursor is sitting at the end fo the selection. More... | |
bool | drgui_text_engine_is_cursor_at_start_of_selection (drgui_text_engine *pTL) |
Determines whether or not the cursor is sitting at the start of the selection. More... | |
bool | drgui_text_engine_is_in_selection_mode (drgui_text_engine *pTL) |
Determines whether or not the given text engine is in selection mode. More... | |
bool | drgui_text_engine_is_showing_cursor (drgui_text_engine *pTL) |
Determines whether or not the cursor is visible. More... | |
void | drgui_text_engine_leave_selection_mode (drgui_text_engine *pTL) |
bool | drgui_text_engine_move_cursor_down (drgui_text_engine *pTL) |
Moves the cursor of the given text engine down one line. More... | |
bool | drgui_text_engine_move_cursor_left (drgui_text_engine *pTL) |
Moves the cursor of the given text engine to the left by one character. More... | |
bool | drgui_text_engine_move_cursor_right (drgui_text_engine *pTL) |
Moves the cursor of the given text engine to the right by one character. More... | |
void | drgui_text_engine_move_cursor_to_character (drgui_text_engine *pTL, size_t characterIndex) |
Moves the cursor to the given character index. More... | |
bool | drgui_text_engine_move_cursor_to_end_of_line (drgui_text_engine *pTL) |
Moves the cursor of the given text engine to the end of the line. More... | |
bool | drgui_text_engine_move_cursor_to_end_of_line_by_index (drgui_text_engine *pTL, size_t iLine) |
Moves the cursor of the given text engine to the end of the line at the given index. More... | |
void | drgui_text_engine_move_cursor_to_end_of_selection (drgui_text_engine *pTL) |
Moves the cursor to the end of the selected text. More... | |
bool | drgui_text_engine_move_cursor_to_end_of_text (drgui_text_engine *pTL) |
Moves the cursor of the given text engine to the end of the text. More... | |
void | drgui_text_engine_move_cursor_to_point (drgui_text_engine *pTL, float posX, float posY) |
Moves the cursor to the closest character based on the given input position. More... | |
bool | drgui_text_engine_move_cursor_to_start_of_line (drgui_text_engine *pTL) |
Moves the cursor of the given text engine to the start of the line. More... | |
bool | drgui_text_engine_move_cursor_to_start_of_line_by_index (drgui_text_engine *pTL, size_t iLine) |
Moves the cursor of the given text engine to the start of the line at the given index. More... | |
void | drgui_text_engine_move_cursor_to_start_of_selection (drgui_text_engine *pTL) |
Moves the cursor to the start of the selected text. More... | |
bool | drgui_text_engine_move_cursor_to_start_of_text (drgui_text_engine *pTL) |
Moves the cursor of the given text engine to the end of the text. More... | |
bool | drgui_text_engine_move_cursor_up (drgui_text_engine *pTL) |
Moves the cursor of the given text engine up one line. More... | |
bool | drgui_text_engine_move_cursor_y (drgui_text_engine *pTL, int amount) |
Moves the cursor up or down the given number of lines. More... | |
void | drgui_text_engine_move_selection_anchor_to_end_of_line (drgui_text_engine *pTL, size_t iLine) |
Moves the selection anchor to the end of the given line. More... | |
void | drgui_text_engine_move_selection_anchor_to_start_of_line (drgui_text_engine *pTL, size_t iLine) |
Moves the selection anchor to the start of the given line. More... | |
void | drgui_text_engine_paint (drgui_text_engine *pTL, drgui_rect rect, drgui_element *pElement, void *pPaintData) |
void | drgui_text_engine_paint_line_numbers (drgui_text_engine *pTL, float lineNumbersWidth, float lineNumbersHeight, drgui_color textColor, drgui_color backgroundColor, drgui_text_engine_on_paint_text_proc onPaintText, drgui_text_engine_on_paint_rect_proc onPaintRect, drgui_element *pElement, void *pPaintData) |
Calls the given painting callbacks for the line numbers of the given text engine. More... | |
bool | drgui_text_engine_prepare_undo_point (drgui_text_engine *pTL) |
bool | drgui_text_engine_redo (drgui_text_engine *pTL) |
Performs a redo operation. More... | |
void | drgui_text_engine_refresh_markers (drgui_text_engine *pTL) |
Refreshes the cursor and selection marker positions. More... | |
void | drgui_text_engine_select (drgui_text_engine *pTL, size_t firstCharacter, size_t lastCharacter) |
Selects the given range of text. More... | |
void | drgui_text_engine_select_all (drgui_text_engine *pTL) |
Selects everything in the given text engine. More... | |
void | drgui_text_engine_set_active_line_bg_color (drgui_text_engine *pTL, drgui_color color) |
Sets the background color of the line the cursor is sitting on. More... | |
void | drgui_text_engine_set_container_size (drgui_text_engine *pTL, float containerWidth, float containerHeight) |
Sets the size of the container. More... | |
void | drgui_text_engine_set_cursor_blink_rate (drgui_text_engine *pTL, unsigned int blinkRateInMilliseconds) |
Sets the blink rate of the cursor in milliseconds. More... | |
void | drgui_text_engine_set_cursor_color (drgui_text_engine *pTL, drgui_color cursorColor) |
Sets the color of the text cursor. More... | |
void | drgui_text_engine_set_cursor_width (drgui_text_engine *pTL, float cursorWidth) |
Sets the width of the text cursor. More... | |
void | drgui_text_engine_set_default_bg_color (drgui_text_engine *pTL, drgui_color color) |
Sets the default background color of the given text engine. More... | |
void | drgui_text_engine_set_default_font (drgui_text_engine *pTL, drgui_font *pFont) |
Sets the default font to use for text runs. More... | |
void | drgui_text_engine_set_default_text_color (drgui_text_engine *pTL, drgui_color color) |
Sets the default text color of the given text engine. More... | |
void | drgui_text_engine_set_horizontal_align (drgui_text_engine *pTL, drgui_text_engine_alignment alignment) |
Sets the horizontal alignment of the given text engine. More... | |
void | drgui_text_engine_set_inner_offset (drgui_text_engine *pTL, float innerOffsetX, float innerOffsetY) |
Sets the inner offset of the given text engine. More... | |
void | drgui_text_engine_set_inner_offset_x (drgui_text_engine *pTL, float innerOffsetX) |
Sets the inner offset of the given text engine on the x axis. More... | |
void | drgui_text_engine_set_inner_offset_y (drgui_text_engine *pTL, float innerOffsetY) |
Sets the inner offset of the given text engine on the y axis. More... | |
void | drgui_text_engine_set_on_cursor_move (drgui_text_engine *pTL, drgui_text_engine_on_cursor_move_proc proc) |
Sets the function to call when the cursor in the given text engine is mvoed. More... | |
void | drgui_text_engine_set_on_dirty (drgui_text_engine *pTL, drgui_text_engine_on_dirty_proc proc) |
Sets the function to call when a region of the text engine needs to be redrawn. More... | |
void | drgui_text_engine_set_on_paint_rect (drgui_text_engine *pTL, drgui_text_engine_on_paint_rect_proc proc) |
Sets the function to call when a quad needs to the be painted for the given text engine. More... | |
void | drgui_text_engine_set_on_paint_text (drgui_text_engine *pTL, drgui_text_engine_on_paint_text_proc proc) |
Sets the function to call when a run of text needs to be painted for the given text engine. More... | |
void | drgui_text_engine_set_on_text_changed (drgui_text_engine *pTL, drgui_text_engine_on_text_changed_proc proc) |
Sets the function to call when the content of the given text engine has changed. More... | |
void | drgui_text_engine_set_on_undo_point_changed (drgui_text_engine *pTL, drgui_text_engine_on_undo_point_changed_proc proc) |
Sets the function to call when the content of the given text engine's current undo point has moved. More... | |
void | drgui_text_engine_set_selection_bg_color (drgui_text_engine *pTL, drgui_color color) |
Sets the background color of selected text. More... | |
void | drgui_text_engine_set_tab_size (drgui_text_engine *pTL, unsigned int sizeInSpaces) |
Sets the size of a tab in spaces. More... | |
void | drgui_text_engine_set_text (drgui_text_engine *pTL, const char *text) |
Sets the given text engine's text. More... | |
void | drgui_text_engine_set_vertical_align (drgui_text_engine *pTL, drgui_text_engine_alignment alignment) |
Sets the vertical alignment of the given text engine. More... | |
void | drgui_text_engine_show_cursor (drgui_text_engine *pTL) |
Shows the cursor. More... | |
void | drgui_text_engine_step (drgui_text_engine *pTL, unsigned int milliseconds) |
void | drgui_text_engine_swap_selection_markers (drgui_text_engine *pTL) |
Swaps the position of the cursor based on the current selection. More... | |
bool | drgui_text_engine_undo (drgui_text_engine *pTL) |
Performs an undo operation. More... | |
void | drgui_textbox_clear_undo_stack (drgui_element *pTBElement) |
Clears the undo/redo stack. More... | |
bool | drgui_textbox_delete_character_to_right_of_cursor (drgui_element *pTBElement) |
bool | drgui_textbox_delete_selected_text (drgui_element *pTBElement) |
void | drgui_textbox_deselect_all (drgui_element *pTBElement) |
Deselect everything. More... | |
void | drgui_textbox_disable_horizontal_scrollbar (drgui_element *pTBElement) |
Disables the horizontal scrollbar. More... | |
void | drgui_textbox_disable_vertical_scrollbar (drgui_element *pTBElement) |
Disables the vertical scrollbar. More... | |
void | drgui_textbox_enable_horizontal_scrollbar (drgui_element *pTBElement) |
Enables the horizontal scrollbar. More... | |
void | drgui_textbox_enable_vertical_scrollbar (drgui_element *pTBElement) |
Enables the vertical scrollbar. More... | |
bool | drgui_textbox_find_and_replace_all (drgui_element *pTBElement, const char *text, const char *replacement) |
Finds every occurance of the given string and replaces it with another. More... | |
bool | drgui_textbox_find_and_replace_next (drgui_element *pTBElement, const char *text, const char *replacement) |
Finds the next occurance of the given string and replaces it with another. More... | |
bool | drgui_textbox_find_and_select_next (drgui_element *pTBElement, const char *text) |
Finds and selects the next occurance of the given string, starting from the cursor and looping back to the start. More... | |
size_t | drgui_textbox_get_cursor_column (drgui_element *pTBElement) |
Retrieves the index of the column the cursor is current sitting on. More... | |
size_t | drgui_textbox_get_cursor_line (drgui_element *pTBElement) |
Retrieves the index of the line the cursor is current sitting on. More... | |
float | drgui_textbox_get_cursor_width (drgui_element *pTBElement) |
Retrieves the width of the text cursor. More... | |
void * | drgui_textbox_get_extra_data (drgui_element *pTBElement) |
Retrieves a pointer to the extra data associated with the given text box. More... | |
size_t | drgui_textbox_get_extra_data_size (drgui_element *pTBElement) |
Retrieves the size of the extra data associated with the given text box. More... | |
drgui_font * | drgui_textbox_get_font (drgui_element *pTBElement) |
Retrieves the font being used with the given text box. More... | |
drgui_element * | drgui_textbox_get_horizontal_scrollbar (drgui_element *pTBElement) |
size_t | drgui_textbox_get_line_count (drgui_element *pTBElement) |
Retrieves the number of lines in the given text box. More... | |
drgui_color | drgui_textbox_get_line_numbers_background_color (drgui_element *pTBElement) |
drgui_color | drgui_textbox_get_line_numbers_color (drgui_element *pTBElement) |
float | drgui_textbox_get_line_numbers_padding (drgui_element *pTBElement) |
float | drgui_textbox_get_line_numbers_width (drgui_element *pTBElement) |
float | drgui_textbox_get_padding_horz (drgui_element *pTBElement) |
Retrieves the amound of horizontal padding to apply to the given text box. More... | |
float | drgui_textbox_get_padding_vert (drgui_element *pTBElement) |
Retrieves the amound of vertical padding to apply to the given text box. More... | |
unsigned int | drgui_textbox_get_redo_points_remaining_count (drgui_element *pTBElement) |
Retrieves the number of redo points remaining. More... | |
size_t | drgui_textbox_get_selected_text (drgui_element *pTBElement, char *textOut, size_t textOutLength) |
drgui_color | drgui_textbox_get_selection_background_color (drgui_element *pTBElement) |
Retrieves the background color of selected text. More... | |
size_t | drgui_textbox_get_text (drgui_element *pTBElement, char *pTextOut, size_t textOutSize) |
Retrieves the text of the given text box. More... | |
unsigned int | drgui_textbox_get_undo_points_remaining_count (drgui_element *pTBElement) |
Retrieves the number of undo points remaining. More... | |
drgui_element * | drgui_textbox_get_vertical_scrollbar (drgui_element *pTBElement) |
void | drgui_textbox_hide_line_numbers (drgui_element *pTBElement) |
Hides the line numbers. More... | |
bool | drgui_textbox_insert_text_at_cursor (drgui_element *pTBElement, const char *text) |
bool | drgui_textbox_is_anything_selected (drgui_element *pTBElement) |
Determines whether or not anything is selected in the given text box. More... | |
void | drgui_textbox_move_cursor_to_end_of_text (drgui_element *pTBElement) |
Moves the caret to the end of the text. More... | |
void | drgui_textbox_move_cursor_to_start_of_line_by_index (drgui_element *pTBElement, size_t iLine) |
Moves the caret to the beginning of the line at the given index. More... | |
void | drgui_textbox_on_capture_keyboard (drgui_element *pTBElement, drgui_element *pPrevCapturedElement) |
on_capture_keyboard More... | |
void | drgui_textbox_on_capture_mouse (drgui_element *pTBElement) |
on_capture_mouse More... | |
void | drgui_textbox_on_key_down (drgui_element *pTBElement, drgui_key key, int stateFlags) |
on_key_down. More... | |
void | drgui_textbox_on_key_up (drgui_element *pTBElement, drgui_key key, int stateFlags) |
on_key_up. More... | |
void | drgui_textbox_on_mouse_button_dblclick (drgui_element *pTBElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
on_mouse_button_dblclick. More... | |
void | drgui_textbox_on_mouse_button_down (drgui_element *pTBElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
on_mouse_button_down. More... | |
void | drgui_textbox_on_mouse_button_up (drgui_element *pTBElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
on_mouse_button_up. More... | |
void | drgui_textbox_on_mouse_move (drgui_element *pTBElement, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
on_mouse_move. More... | |
void | drgui_textbox_on_mouse_wheel (drgui_element *pTBElement, int delta, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
on_mouse_wheel More... | |
void | drgui_textbox_on_paint (drgui_element *pTBElement, drgui_rect relativeRect, void *pPaintData) |
on_paint. More... | |
void | drgui_textbox_on_printable_key_down (drgui_element *pTBElement, unsigned int utf32, int stateFlags) |
on_printable_key_down. More... | |
void | drgui_textbox_on_release_keyboard (drgui_element *pTBElement, drgui_element *pNewCapturedElement) |
on_release_keyboard More... | |
void | drgui_textbox_on_release_mouse (drgui_element *pTBElement) |
on_release_mouse More... | |
void | drgui_textbox_on_size (drgui_element *pTBElement, float newWidth, float newHeight) |
on_size. More... | |
bool | drgui_textbox_redo (drgui_element *pTBElement) |
Performs a redo operation. More... | |
void | drgui_textbox_select_all (drgui_element *pTBElement) |
Selects all of the text inside the text box. More... | |
void | drgui_textbox_set_active_line_background_color (drgui_element *pTBElement, drgui_color color) |
Sets the background color for the line the caret is currently sitting on. More... | |
void | drgui_textbox_set_background_color (drgui_element *pTBElement, drgui_color color) |
Sets the background color of the given text box. More... | |
void | drgui_textbox_set_border_color (drgui_element *pTBElement, drgui_color color) |
Sets the border color of the given text box. More... | |
void | drgui_textbox_set_border_width (drgui_element *pTBElement, float borderWidth) |
Sets the border width of the given text box. More... | |
void | drgui_textbox_set_cursor_blink_rate (drgui_element *pTBElement, unsigned int blinkRateInMilliseconds) |
Sets the blink rate of the cursor in milliseconds. More... | |
void | drgui_textbox_set_cursor_color (drgui_element *pTBElement, drgui_color color) |
Sets the color of the cursor of the given text box. More... | |
void | drgui_textbox_set_cursor_width (drgui_element *pTBElement, float cursorWidth) |
Sets the width of the text cursor. More... | |
void | drgui_textbox_set_font (drgui_element *pTBElement, drgui_font *pFont) |
Sets the font to use with the given text box. More... | |
void | drgui_textbox_set_horizontal_align (drgui_element *pTBElement, drgui_text_engine_alignment align) |
Sets the horizontal alignment of the given text box. More... | |
void | drgui_textbox_set_line_numbers_background_color (drgui_element *pTBElement, drgui_color color) |
void | drgui_textbox_set_line_numbers_color (drgui_element *pTBElement, drgui_color color) |
void | drgui_textbox_set_line_numbers_padding (drgui_element *pTBElement, float lineNumbersPadding) |
void | drgui_textbox_set_line_numbers_width (drgui_element *pTBElement, float lineNumbersWidth) |
void | drgui_textbox_set_on_cursor_move (drgui_element *pTBElement, drgui_textbox_on_cursor_move_proc proc) |
Sets the function to call when the cursor moves. More... | |
void | drgui_textbox_set_on_undo_point_changed (drgui_element *pTBElement, drgui_textbox_on_undo_point_changed_proc proc) |
Sets the function to call when the undo point changes. More... | |
void | drgui_textbox_set_padding (drgui_element *pTBElement, float padding) |
Sets the amount of padding to apply to given text box. More... | |
void | drgui_textbox_set_scrollbar_size (drgui_element *pTBElement, float size) |
void | drgui_textbox_set_selection_background_color (drgui_element *pTBElement, drgui_color color) |
Sets the background color of selected text. More... | |
void | drgui_textbox_set_text (drgui_element *pTBElement, const char *text) |
Sets the text of the given text box. More... | |
void | drgui_textbox_set_text_color (drgui_element *pTBElement, drgui_color color) |
Sets the color of the text in teh given text box. More... | |
void | drgui_textbox_set_vertical_align (drgui_element *pTBElement, drgui_text_engine_alignment align) |
Sets the vertical alignment of the given text box. More... | |
void | drgui_textbox_show_line_numbers (drgui_element *pTBElement) |
Shows the line numbers. More... | |
void | drgui_textbox_step (drgui_element *pTBElement, unsigned int milliseconds) |
Steps the text box to allow it to blink the cursor. More... | |
bool | drgui_textbox_undo (drgui_element *pTBElement) |
Performs an undo operation. More... | |
drgui_tree_view_item * | drgui_tv_create_item (drgui_element *pTVElement, drgui_tree_view_item *pParent, size_t extraDataSize, const void *pExtraData) |
void | drgui_tv_deselect_all_items (drgui_element *pTVElement) |
Deselects every tree-view item. More... | |
void | drgui_tv_disable_multi_select (drgui_element *pTVElement) |
Disables multi-select. More... | |
void | drgui_tv_enable_multi_select (drgui_element *pTVElement) |
float | drgui_tv_get_child_offset_x (drgui_element *pTVElement) |
Retrieves the amount of indentation to apply to each child item in the given tree-view. More... | |
drgui_color | drgui_tv_get_default_background_color (drgui_element *pTVElement) |
Retrieves the default background color. More... | |
void * | drgui_tv_get_extra_data (drgui_element *pTVElement) |
Retrieves a pointer to the buffer containing the given tree-view's extra data. More... | |
size_t | drgui_tv_get_extra_data_size (drgui_element *pTVElement) |
Retrieves the size of the extra data associated with the given tree-view control. More... | |
drgui_tree_view_item * | drgui_tv_get_first_selected_item (drgui_element *pTVElement) |
drgui_element * | drgui_tv_get_horizontal_scrollbar (drgui_element *pTVElement) |
Retrieves a pointer to the horizontal scrollbar. More... | |
drgui_color | drgui_tv_get_hovered_background_color (drgui_element *pTVElement) |
Retrieves the default background color of hovered items. More... | |
drgui_tree_view_item * | drgui_tv_get_next_selected_item (drgui_element *pTVElement, drgui_tree_view_item *pItem) |
drgui_tree_view_item * | drgui_tv_get_root_item (drgui_element *pTVElement) |
Retrieves a pointer to the root element of the given tree view control. More... | |
drgui_color | drgui_tv_get_selected_background_color (drgui_element *pTVElement) |
Retrieves the default background color of selected items. More... | |
drgui_element * | drgui_tv_get_vertical_scrollbar (drgui_element *pTVElement) |
Retrieves a pointer to the vertical scrollbar. More... | |
bool | drgui_tv_is_multi_select_enabled (drgui_element *pTVElement) |
Determines whether or not multi-select is enabled. More... | |
bool | drgui_tv_measure_item (drgui_element *pTVElement, drgui_tree_view_item *pItem, float *pWidthOut, float *pHeightOut) |
Measures the given item. More... | |
void | drgui_tv_on_mouse_button_dblclick (drgui_element *pTVElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse button double-click event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_on_mouse_button_down (drgui_element *pTVElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse button down event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_on_mouse_button_up (drgui_element *pTVElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse button up event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_on_mouse_leave (drgui_element *pTVElement) |
Called when the mouse leave event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_on_mouse_move (drgui_element *pTVElement, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse move event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_on_mouse_wheel (drgui_element *pTVElement, int delta, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Called when the mouse wheel event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_on_paint (drgui_element *pTVElement, drgui_rect relativeClippingRect, void *pPaintData) |
Called when the paint event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_on_size (drgui_element *pTVElement, float newWidth, float newHeight) |
Called when the size event needs to be processed for the given tree-view control. More... | |
void | drgui_tv_set_child_offset_x (drgui_element *pTVElement, float childOffsetX) |
Sets the amount of indentation to apply to each child item in the given tree-view. More... | |
void | drgui_tv_set_default_background_color (drgui_element *pTVElement, drgui_color color) |
Sets the default background color. More... | |
void | drgui_tv_set_hovered_background_color (drgui_element *pTVElement, drgui_color color) |
Sets the default background color of hovered items. More... | |
void | drgui_tv_set_on_item_measure (drgui_element *pTVElement, drgui_tvi_measure_proc proc) |
Sets the function to call when a tree-view item needs to be measured. More... | |
void | drgui_tv_set_on_item_mouse_leave (drgui_element *pTVElement, drgui_tvi_on_mouse_leave_proc proc) |
Sets the function call when the mouse leaves a tree-view item. More... | |
void | drgui_tv_set_on_item_mouse_move (drgui_element *pTVElement, drgui_tvi_on_mouse_move_proc proc) |
Sets the function to call when the mouse is moved while over a tree-view item. More... | |
void | drgui_tv_set_on_item_paint (drgui_element *pTVElement, drgui_tvi_on_paint_proc proc) |
Sets the function to call when a tree-view item needs to be drawn. More... | |
void | drgui_tv_set_on_item_picked (drgui_element *pTVElement, drgui_tvi_on_picked_proc proc) |
void | drgui_tv_set_selected_background_color (drgui_element *pTVElement, drgui_color color) |
Sets the default background color of selected items. More... | |
void | drgui_tvi_append (drgui_tree_view_item *pItem, drgui_tree_view_item *pParent) |
Appends a tree view item as a child of the given parent item. More... | |
void | drgui_tvi_append_sibling (drgui_tree_view_item *pItemToAppend, drgui_tree_view_item *pItemToAppendTo) |
Appends the given tree view item to the given sibling. More... | |
void | drgui_tvi_collapse (drgui_tree_view_item *pItem) |
Collapses the given item. More... | |
void | drgui_tvi_delete (drgui_tree_view_item *pItem) |
Recursively deletes a tree view item. More... | |
void | drgui_tvi_deselect (drgui_tree_view_item *pItem) |
Deselects the given item. More... | |
void | drgui_tvi_expand (drgui_tree_view_item *pItem) |
Expands the given item. More... | |
int | drgui_tvi_get_depth (drgui_tree_view_item *pItem) |
void * | drgui_tvi_get_extra_data (drgui_tree_view_item *pItem) |
Retrieves a pointer to the extra data associated with the given tree-view item. More... | |
size_t | drgui_tvi_get_extra_data_size (drgui_tree_view_item *pItem) |
Retrieves the size of the extra data associated with the given tree-view item. More... | |
drgui_tree_view_item * | drgui_tvi_get_first_child (drgui_tree_view_item *pItem) |
Retrieves a pointer to the first child of the given tree-view item. More... | |
drgui_tree_view_item * | drgui_tvi_get_last_child (drgui_tree_view_item *pItem) |
Retrieves a pointer to the last child of the given tree-view item. More... | |
drgui_tree_view_item * | drgui_tvi_get_next_sibling (drgui_tree_view_item *pItem) |
Retrieves a pointer to the next sibling of the given tree-view item. More... | |
drgui_tree_view_item * | drgui_tvi_get_parent (drgui_tree_view_item *pItem) |
Retrieves the parent tree-view item. More... | |
drgui_tree_view_item * | drgui_tvi_get_prev_sibling (drgui_tree_view_item *pItem) |
Retrieves a pointer to the previous sibling of the given tree-view item. More... | |
drgui_element * | drgui_tvi_get_tree_view_element (drgui_tree_view_item *pItem) |
Retrieves the tree-view GUI element that owns the given item. More... | |
bool | drgui_tvi_has_children (drgui_tree_view_item *pItem) |
Determines whether or not the given item has any children. More... | |
bool | drgui_tvi_is_expanded (drgui_tree_view_item *pItem) |
Determines whether or not the given item is expanded. More... | |
bool | drgui_tvi_is_selected (drgui_tree_view_item *pItem) |
Determines whether or not the given tree view item is selected. More... | |
drgui_tree_view_item * | drgui_tvi_next_visible_non_child (drgui_tree_view_item *pItem, int *pDepthInOut) |
void | drgui_tvi_prepend (drgui_tree_view_item *pItem, drgui_tree_view_item *pParent) |
Prepends a tree view item as a child of the given parent item. More... | |
void | drgui_tvi_prepend_sibling (drgui_tree_view_item *pItemToPrepend, drgui_tree_view_item *pItemToPrependTo) |
Prepends the given tree view item to the given sibling. More... | |
void | drgui_tvi_select (drgui_tree_view_item *pItem) |
Selects the given item. More... | |
void | drgui_unmap_image_data (drgui_image *pImage) |
Unmaps the given image data. More... | |
#define DRGUI_ARROW_DOWN 0x8fe |
Definition at line 441 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_ARROW_LEFT 0x8fb |
Definition at line 438 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_ARROW_RIGHT 0x8fd |
Definition at line 440 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_ARROW_UP 0x8fc |
Definition at line 439 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_BACKSPACE 0xff08 |
Definition at line 431 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_DELETE 0xffff |
Definition at line 442 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_END 0xff57 |
Definition at line 436 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_ESCAPE 0xff1b |
Definition at line 433 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F1 0xffbe |
Definition at line 443 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F10 0xffc7 |
Definition at line 452 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F11 0xffc8 |
Definition at line 453 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F12 0xffc9 |
Definition at line 454 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F2 0xffbf |
Definition at line 444 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F3 0xffc0 |
Definition at line 445 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F4 0xffc1 |
Definition at line 446 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F5 0xffc2 |
Definition at line 447 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F6 0xffc3 |
Definition at line 448 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F7 0xffc4 |
Definition at line 449 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F8 0xffc5 |
Definition at line 450 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_F9 0xffc6 |
Definition at line 451 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_FONT_NO_CLEARTYPE (1 << 0) |
Definition at line 296 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_HOME 0xff50 |
Definition at line 437 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_IMAGE_ALIGN_CENTER (1 << 4) |
Definition at line 291 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_IMAGE_CLIP_BOUNDS (1 << 3) |
Definition at line 290 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_IMAGE_DRAW_BACKGROUND (1 << 0) |
Definition at line 287 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_IMAGE_DRAW_BOUNDS (1 << 2) |
Definition at line 289 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_IMAGE_HINT_NO_ALPHA (1 << 1) |
Definition at line 288 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_KEY_STATE_ALT_DOWN (1 << 7) |
Definition at line 422 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_KEY_STATE_AUTO_REPEATED (1 << 31) |
Definition at line 423 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_KEY_STATE_CTRL_DOWN (1 << 6) |
Definition at line 421 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_KEY_STATE_SHIFT_DOWN (1 << 5) |
Definition at line 420 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MAX_FONT_FAMILY_LENGTH 128 |
Definition at line 172 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MAX_TAB_TEXT_LENGTH 256 |
Definition at line 11131 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_4_DOWN (1 << 3) |
Definition at line 418 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_5_DOWN (1 << 4) |
Definition at line 419 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_LEFT 1 |
Definition at line 426 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_LEFT_DOWN (1 << 0) |
Definition at line 415 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_MIDDLE 3 |
Definition at line 428 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_MIDDLE_DOWN (1 << 2) |
Definition at line 417 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_RIGHT 2 |
Definition at line 427 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_MOUSE_BUTTON_RIGHT_DOWN (1 << 1) |
Definition at line 416 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_PAGE_DOWN 0xff56 |
Definition at line 435 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_PAGE_UP 0xff55 |
Definition at line 434 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_READ (1 << 0) |
Definition at line 293 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define drgui_scrollbar_h |
Definition at line 10130 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_SHIFT 0xff10 |
Definition at line 432 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define drgui_tab_bar_h |
Definition at line 11125 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define drgui_text_engine_h |
Definition at line 5250 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define drgui_textbox_h |
Definition at line 12988 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define drgui_tree_view_h |
Definition at line 15220 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define DRGUI_WRITE (1 << 1) |
Definition at line 294 of file rhino/demo/c/dr_libs/old/dr_gui.h.
#define EG_MAX_TREE_VIEW_ITEM_TEXT_LENGTH 256 |
Definition at line 15226 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef unsigned char drgui_byte |
Definition at line 190 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_callback) () |
Definition at line 356 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_color drgui_color |
Definition at line 182 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_context drgui_context |
Definition at line 180 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef drgui_resource(* drgui_create_font_proc) (void *pPaintingContext, const char *family, unsigned int size, drgui_font_weight weight, drgui_font_slant slant, float rotation, unsigned int flags) |
Definition at line 395 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef drgui_resource(* drgui_create_image_proc) (void *pPaintingContext, unsigned int width, unsigned int height, drgui_image_format format, unsigned int stride, const void *pImageData) |
Definition at line 404 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_delete_font_proc) (drgui_resource font) |
Definition at line 396 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_delete_image_proc) (drgui_resource image) |
Definition at line 405 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_begin_proc) (void *pPaintData) |
Definition at line 381 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_end_proc) (void *pPaintData) |
Definition at line 382 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_image_proc) (drgui_resource image, drgui_draw_image_args *pArgs, void *pPaintData) |
Definition at line 393 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_line_proc) (float startX, float startY, float endX, float endY, float width, drgui_color color, void *pPaintData) |
Definition at line 385 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_rect_outline_proc) (drgui_rect relativeRect, drgui_color color, float outlineWidth, void *pPaintData) |
Definition at line 387 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_rect_proc) (drgui_rect relativeRect, drgui_color color, void *pPaintData) |
Definition at line 386 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_rect_with_outline_proc) (drgui_rect relativeRect, drgui_color color, float outlineWidth, drgui_color outlineColor, void *pPaintData) |
Definition at line 388 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_round_rect_outline_proc) (drgui_rect relativeRect, drgui_color color, float radius, float outlineWidth, void *pPaintData) |
Definition at line 390 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_round_rect_proc) (drgui_rect relativeRect, drgui_color color, float radius, void *pPaintData) |
Definition at line 389 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_round_rect_with_outline_proc) (drgui_rect relativeRect, drgui_color color, float radius, float outlineWidth, drgui_color outlineColor, void *pPaintData) |
Definition at line 391 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_draw_text_proc) (drgui_resource font, const char *text, int textLengthInBytes, float posX, float posY, drgui_color color, drgui_color backgroundColor, void *pPaintData) |
Definition at line 392 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_element drgui_element |
Definition at line 181 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_font drgui_font |
Definition at line 185 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_font_metrics drgui_font_metrics |
Definition at line 187 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_get_clip_proc) (drgui_rect *pRectOut, void *pPaintData) |
Definition at line 384 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef bool(* drgui_get_font_metrics_proc) (drgui_resource font, drgui_font_metrics *pMetricsOut) |
Definition at line 398 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef unsigned int(* drgui_get_font_size_proc) (drgui_resource font) |
Definition at line 397 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef bool(* drgui_get_glyph_metrics_proc) (drgui_resource font, unsigned int utf32, drgui_glyph_metrics *pMetricsOut) |
Definition at line 399 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_get_image_size_proc) (drgui_resource image, unsigned int *pWidthOut, unsigned int *pHeightOut) |
Definition at line 407 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef drgui_image_format(* drgui_get_optimal_image_format_proc) (void *pPaintingContext) |
Definition at line 406 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef bool(* drgui_get_text_cursor_position_from_char_proc) (drgui_resource font, const char *text, size_t characterIndex, float *pTextCursorPosXOut) |
Definition at line 402 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef bool(* drgui_get_text_cursor_position_from_point_proc) (drgui_resource font, const char *text, size_t textSizeInBytes, float maxWidth, float inputPosX, float *pTextCursorPosXOut, size_t *pCharacterIndexOut) |
Definition at line 401 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_glyph_metrics drgui_glyph_metrics |
Definition at line 188 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_image drgui_image |
Definition at line 186 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef unsigned int drgui_key |
Definition at line 191 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void*(* drgui_map_image_data_proc) (drgui_resource image, unsigned int accessFlags) |
Definition at line 408 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef bool(* drgui_measure_string_proc) (drgui_resource font, const char *text, size_t textSizeInBytes, float *pWidthOut, float *pHeightOut) |
Definition at line 400 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_capture_keyboard_proc) (drgui_element *pElement, drgui_element *pPrevCapturedElement) |
Definition at line 375 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_capture_mouse_proc) (drgui_element *pElement) |
Definition at line 373 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_change_cursor_proc) (drgui_element *pElement, drgui_cursor_type cursor) |
Definition at line 377 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_delete_element_proc) (drgui_element *pElement) |
Definition at line 378 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_dirty_proc) (drgui_element *pElement, drgui_rect relativeRect) |
Definition at line 371 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef bool(* drgui_on_hittest_proc) (drgui_element *pElement, float relativePosX, float relativePosY) |
Definition at line 372 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_key_down_proc) (drgui_element *pElement, drgui_key key, int stateFlags) |
Definition at line 367 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_key_up_proc) (drgui_element *pElement, drgui_key key, int stateFlags) |
Definition at line 368 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_log) (drgui_context *pContext, const char *message) |
Definition at line 379 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_mouse_button_dblclick_proc) (drgui_element *pElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Definition at line 365 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_mouse_button_down_proc) (drgui_element *pElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Definition at line 363 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_mouse_button_up_proc) (drgui_element *pElement, int mouseButton, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Definition at line 364 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_mouse_enter_proc) (drgui_element *pElement) |
Definition at line 360 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_mouse_leave_proc) (drgui_element *pElement) |
Definition at line 361 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_mouse_move_proc) (drgui_element *pElement, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Definition at line 362 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_mouse_wheel_proc) (drgui_element *pElement, int delta, int relativeMousePosX, int relativeMousePosY, int stateFlags) |
Definition at line 366 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_move_proc) (drgui_element *pElement, float newRelativePosX, float newRelativePosY) |
Definition at line 358 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_paint_proc) (drgui_element *pElement, drgui_rect relativeRect, void *pPaintData) |
Definition at line 370 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_printable_key_down_proc) (drgui_element *pElement, unsigned int character, int stateFlags) |
Definition at line 369 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_release_keyboard_proc) (drgui_element *pElement, drgui_element *pNewCapturedElement) |
Definition at line 376 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_release_mouse_proc) (drgui_element *pElement) |
Definition at line 374 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_on_size_proc) (drgui_element *pElement, float newWidth, float newHeight) |
Definition at line 359 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_painting_callbacks drgui_painting_callbacks |
Definition at line 184 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_rect drgui_rect |
Definition at line 183 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void* drgui_resource |
Definition at line 193 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_sb_on_scroll_proc) (drgui_element *pSBElement, int scrollPos) |
Definition at line 10144 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_set_clip_proc) (drgui_rect relativeRect, void *pPaintData) |
Definition at line 383 of file rhino/demo/c/dr_libs/old/dr_gui.h.
Definition at line 11141 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tabbar_on_measure_tab_proc) (drgui_element *pTBElement, drgui_tab *pTab, float *pWidthOut, float *pHeightOut) |
Definition at line 11143 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tabbar_on_paint_tab_proc) (drgui_element *pTBElement, drgui_tab *pTab, drgui_rect relativeClippingRect, float offsetX, float offsetY, float width, float height, void *pPaintData) |
Definition at line 11144 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tabbar_on_tab_activated_proc) (drgui_element *pTBElement, drgui_tab *pTab, drgui_tab *pOldActiveTab) |
Definition at line 11145 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tabbar_on_tab_close_proc) (drgui_element *pTBElement, drgui_tab *pTab) |
Definition at line 11147 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tabbar_on_tab_deactivated_proc) (drgui_element *pTBElement, drgui_tab *pTab, drgui_tab *pNewActiveTab) |
Definition at line 11146 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tabbar_on_tab_mouse_button_up_proc) (drgui_element *pTBElement, drgui_tab *pTab, int mouseButton, int mouseRelativePosX, int mouseRelativePosY, int stateFlags) |
Definition at line 11148 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_text_engine drgui_text_engine |
Definition at line 5256 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_text_engine_on_cursor_move_proc) (drgui_text_engine *pTL) |
Definition at line 5315 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_text_engine_on_dirty_proc) (drgui_text_engine *pTL, drgui_rect rect) |
Definition at line 5316 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_text_engine_on_paint_rect_proc) (drgui_text_engine *pTL, drgui_rect rect, drgui_color color, drgui_element *pElement, void *pPaintData) |
Definition at line 5314 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_text_engine_on_paint_text_proc) (drgui_text_engine *pTL, drgui_text_run *pRun, drgui_element *pElement, void *pPaintData) |
Definition at line 5313 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_text_engine_on_text_changed_proc) (drgui_text_engine *pTL) |
Definition at line 5317 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_text_engine_on_undo_point_changed_proc) (drgui_text_engine *pTL, unsigned int iUndoPoint) |
Definition at line 5318 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_textbox_on_cursor_move_proc) (drgui_element *pTBElement) |
Definition at line 12994 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_textbox_on_undo_point_changed_proc) (drgui_element *pTBElement, unsigned int iUndoPoint) |
Definition at line 12995 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef struct drgui_tree_view_item drgui_tree_view_item |
Definition at line 15228 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tvi_measure_proc) (drgui_tree_view_item *pItem, float *pWidthOut, float *pHeightOut) |
Definition at line 15233 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tvi_on_mouse_leave_proc) (drgui_tree_view_item *pItem) |
Definition at line 15231 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tvi_on_mouse_move_proc) (drgui_tree_view_item *pItem, int relativeMousePosX, int relativeMousePosY, bool *pIsOverArrow) |
Definition at line 15230 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tvi_on_paint_proc) (drgui_element *pTVElement, drgui_tree_view_item *pItem, drgui_rect relativeClippingRect, drgui_color backgroundColor, float offsetX, float offsetY, float width, float height, void *pPaintData) |
Definition at line 15232 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_tvi_on_picked_proc) (drgui_tree_view_item *pItem) |
Definition at line 15234 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef void(* drgui_unmap_image_data_proc) (drgui_resource image) |
Definition at line 409 of file rhino/demo/c/dr_libs/old/dr_gui.h.
typedef bool(* drgui_visible_iteration_proc) (drgui_element *pElement, drgui_rect *pRelativeRect, void *pUserData) |
Definition at line 411 of file rhino/demo/c/dr_libs/old/dr_gui.h.
enum drgui_cursor_type |
Common system cursors.
Definition at line 196 of file rhino/demo/c/dr_libs/old/dr_gui.h.
enum drgui_font_slant |
Font slants.
Enumerator | |
---|---|
drgui_font_slant_none | |
drgui_font_slant_italic | |
drgui_font_slant_oblique | |
drgui_font_slant_none | |
drgui_font_slant_italic | |
drgui_font_slant_oblique |
Definition at line 230 of file rhino/demo/c/dr_libs/old/dr_gui.h.
enum drgui_font_weight |
Font weights.
Definition at line 210 of file rhino/demo/c/dr_libs/old/dr_gui.h.
enum drgui_image_format |
Image formats.
Enumerator | |
---|---|
drgui_image_format_rgba8 | |
drgui_image_format_bgra8 | |
drgui_image_format_argb8 | |
drgui_image_format_rgba8 | |
drgui_image_format_bgra8 | |
drgui_image_format_argb8 |
Definition at line 239 of file rhino/demo/c/dr_libs/old/dr_gui.h.
enum drgui_sb_orientation |
Enumerator | |
---|---|
drgui_sb_orientation_none | |
drgui_sb_orientation_vertical | |
drgui_sb_orientation_horizontal | |
drgui_sb_orientation_none | |
drgui_sb_orientation_vertical | |
drgui_sb_orientation_horizontal |
Definition at line 10136 of file rhino/demo/c/dr_libs/old/dr_gui.h.
Definition at line 11133 of file rhino/demo/c/dr_libs/old/dr_gui.h.
Definition at line 5258 of file rhino/demo/c/dr_libs/old/dr_gui.h.
void drgui_append | ( | drgui_element * | pChildElement, |
drgui_element * | pParentElement | ||
) |
Attaches the given element as a child of the given parent element, and appends it to the end of the children list.
void drgui_append_sibling | ( | drgui_element * | pElementToAppend, |
drgui_element * | pElementToAppendTo | ||
) |
Appends the given element to the given sibling.
drgui_element* drgui_begin_dirty | ( | drgui_element * | pElement | ) |
Begins accumulating a dirty rectangle.
Returns a pointer to the top level element that was made dirty.
void drgui_capture_keyboard | ( | drgui_element * | pElement | ) |
Sets the element that should receive all future keyboard related events.
void drgui_capture_mouse | ( | drgui_element * | pElement | ) |
Sets the element that should receive all future mouse related events.
drgui_rect drgui_clamp_rect | ( | drgui_rect | rect, |
drgui_rect | other | ||
) |
Clamps the given rectangle to another.
bool drgui_clamp_rect_to_element | ( | const drgui_element * | pElement, |
drgui_rect * | pRelativeRect | ||
) |
Clamps the given rectangle to the given element and returns whether or not any of it is contained within the element's rectangle.
drgui_context* drgui_create_context | ( | ) |
Creates a context.
drgui_context* drgui_create_context_dr_2d | ( | dr2d_context * | pDrawingContext | ) |
A covenience function for creating a new context and registering the easy_draw painting callbacks.
drgui_element* drgui_create_element | ( | drgui_context * | pContext, |
drgui_element * | pParent, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates an element.
drgui_font* drgui_create_font | ( | drgui_context * | pContext, |
const char * | family, | ||
unsigned int | size, | ||
drgui_font_weight | weight, | ||
drgui_font_slant | slant, | ||
float | rotation, | ||
unsigned int | flags | ||
) |
Creates a font resource.
drgui_image* drgui_create_image | ( | drgui_context * | pContext, |
unsigned int | width, | ||
unsigned int | height, | ||
drgui_image_format | format, | ||
unsigned int | stride, | ||
const void * | pData | ||
) |
Creates an image that can be passed to drgui_draw_image().
drgui_element* drgui_create_scrollbar | ( | drgui_context * | pContext, |
drgui_element * | pParent, | ||
drgui_sb_orientation | orientation, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates a scrollbar element.
drgui_element* drgui_create_tab_bar | ( | drgui_context * | pContext, |
drgui_element * | pParent, | ||
drgui_tabbar_orientation | orientation, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates a new tab bar control.
drgui_text_engine* drgui_create_text_engine | ( | drgui_context * | pContext, |
size_t | extraDataSize, | ||
void * | pExtraData | ||
) |
Creates a new text engine object.
drgui_element* drgui_create_textbox | ( | drgui_context * | pContext, |
drgui_element * | pParent, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates a new text box control.
drgui_element* drgui_create_tree_view | ( | drgui_context * | pContext, |
drgui_element * | pParent, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates a tree-view control.
void drgui_delete_context | ( | drgui_context * | pContext | ) |
Deletes a context and everything that it created.
void drgui_delete_element | ( | drgui_element * | pElement | ) |
Deletes and element.
void drgui_delete_font | ( | drgui_font * | pFont | ) |
Deletes a font resource.
void drgui_delete_image | ( | drgui_image * | pImage | ) |
Deletes the given image.
void drgui_delete_scrollbar | ( | drgui_element * | pSBElement | ) |
Deletes the given scrollbar element.
void drgui_delete_tab_bar | ( | drgui_element * | pTBElement | ) |
Deletes the given tab bar control.
void drgui_delete_text_engine | ( | drgui_text_engine * | pTL | ) |
Deletes the given text engine.
void drgui_delete_textbox | ( | drgui_element * | pTBElement | ) |
Deletest the given text box control.
void drgui_delete_tree_view | ( | drgui_element * | pTVElement | ) |
Deletes the given tree-view control.
void drgui_detach | ( | drgui_element * | pChildElement | ) |
Detaches the given element from it's parent.
void drgui_dirty | ( | drgui_element * | pElement, |
drgui_rect | relativeRect | ||
) |
Marks a region of the given element as dirty.
void drgui_disable_auto_dirty | ( | drgui_context * | pContext | ) |
Disable's automatic dirtying of elements.
void drgui_disable_clipping | ( | drgui_element * | pElement | ) |
Disables clipping against the parent for the given element.
void drgui_draw | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
void * | pPaintData | ||
) |
Draws the given element.
void drgui_draw_border | ( | drgui_element * | pElement, |
float | borderWidth, | ||
drgui_color | color, | ||
void * | pUserData | ||
) |
Draws a border around the given element.
void drgui_draw_image | ( | drgui_element * | pElement, |
drgui_image * | pImage, | ||
drgui_draw_image_args * | pArgs, | ||
void * | pPaintData | ||
) |
Draws an image.
void drgui_draw_rect | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
drgui_color | color, | ||
void * | pPaintData | ||
) |
Draws a rectangle on the given element.
void drgui_draw_rect_outline | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
drgui_color | color, | ||
float | outlineWidth, | ||
void * | pPaintData | ||
) |
Draws the outline of a rectangle on the given element.
void drgui_draw_rect_with_outline | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
drgui_color | color, | ||
float | outlineWidth, | ||
drgui_color | outlineColor, | ||
void * | pPaintData | ||
) |
Draws a filled rectangle with an outline on the given element.
void drgui_draw_round_rect | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
drgui_color | color, | ||
float | radius, | ||
void * | pPaintData | ||
) |
Draws a rectangle with rounded corners on the given element.
void drgui_draw_round_rect_outline | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
drgui_color | color, | ||
float | radius, | ||
float | outlineWidth, | ||
void * | pPaintData | ||
) |
Draws the outline of a rectangle with rounded corners on the given element.
void drgui_draw_round_rect_with_outline | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
drgui_color | color, | ||
float | radius, | ||
float | outlineWidth, | ||
drgui_color | outlineColor, | ||
void * | pPaintData | ||
) |
Draws a filled rectangle and it's outline with rounded corners on the given element.
void drgui_draw_text | ( | drgui_element * | pElement, |
drgui_font * | pFont, | ||
const char * | text, | ||
int | textLengthInBytes, | ||
float | posX, | ||
float | posY, | ||
drgui_color | color, | ||
drgui_color | backgroundColor, | ||
void * | pPaintData | ||
) |
Draws a run of text on the given element.
textSizeInBytes
can be -1 in which case the text string is treated as null terminated. void drgui_enable_auto_dirty | ( | drgui_context * | pContext | ) |
Enable's automatic dirtying of elements.
void drgui_enable_clipping | ( | drgui_element * | pElement | ) |
Enables clipping against the parent for the given element.
void drgui_end_dirty | ( | drgui_element * | pElement | ) |
Ends accumulating a dirty rectangle, and requests a redraw from the backend if the counter reaches zero.
drgui_element* drgui_find_element_under_point | ( | drgui_element * | pTopLevelElement, |
float | absolutePosX, | ||
float | absolutePosY | ||
) |
Finds the element under the given point taking mouse pass-through and hit testing into account.
drgui_element* drgui_find_top_level_element | ( | drgui_element * | pElement | ) |
Retrieves a pointer to the given element's top-level ancestor.
void drgui_get_absolute_position | ( | const drgui_element * | pElement, |
float * | positionXOut, | ||
float * | positionYOut | ||
) |
Retrieves the absolute position of the given element.
float drgui_get_absolute_position_x | ( | const drgui_element * | pElement | ) |
float drgui_get_absolute_position_y | ( | const drgui_element * | pElement | ) |
drgui_rect drgui_get_absolute_rect | ( | const drgui_element * | pElement | ) |
Retrieves the absolute rectangle for the given element.
void drgui_get_clip | ( | drgui_element * | pElement, |
drgui_rect * | pRelativeRect, | ||
void * | pPaintData | ||
) |
Retrieves the current clipping rectangle.
drgui_cursor_type drgui_get_cursor | ( | drgui_element * | pElement | ) |
Retrieves the cursor to use when the mouse enters the given GUI element.
drgui_element* drgui_get_element_with_keyboard_capture | ( | drgui_context * | pContext | ) |
Retrieves a pointer to the element with the keyboard capture.
drgui_element* drgui_get_element_with_mouse_capture | ( | drgui_context * | pContext | ) |
Retrieves a pointer to the element with the mouse capture.
void* drgui_get_extra_data | ( | drgui_element * | pElement | ) |
Retrieves a pointer to the extra data of the given element.
size_t drgui_get_extra_data_size | ( | drgui_element * | pElement | ) |
Retrieves the size of the extra data of the given element, in bytes.
bool drgui_get_font_metrics | ( | drgui_font * | pFont, |
drgui_font_metrics * | pMetricsOut | ||
) |
Retrieves the metrics of the given font.
bool drgui_get_glyph_metrics | ( | drgui_font * | pFont, |
unsigned int | utf32, | ||
drgui_glyph_metrics * | pMetricsOut | ||
) |
Retrieves the metrics of the glyph for the given character when rendered with the given font.
float drgui_get_height | ( | const drgui_element * | pElement | ) |
void drgui_get_image_size | ( | drgui_image * | pImage, |
unsigned int * | pWidthOut, | ||
unsigned int * | pHeightOut | ||
) |
Retrieves the size of the given image.
drgui_rect drgui_get_local_rect | ( | const drgui_element * | pElement | ) |
Retrieves the local rectangle for the given element.
drgui_image_format drgui_get_optimal_image_format | ( | drgui_context * | pContext | ) |
Retrieves the optimal image format for the given context.
drgui_element* drgui_get_parent | ( | drgui_element * | pChildElement | ) |
void drgui_get_relative_position | ( | const drgui_element * | pElement, |
float * | relativePosXOut, | ||
float * | relativePosYOut | ||
) |
Retrieves the relative position of the given element.
float drgui_get_relative_position_x | ( | const drgui_element * | pElement | ) |
float drgui_get_relative_position_y | ( | const drgui_element * | pElement | ) |
drgui_rect drgui_get_relative_rect | ( | const drgui_element * | pElement | ) |
Retrieves the relative rectangle for the given element.
void drgui_get_size | ( | const drgui_element * | pElement, |
float * | widthOut, | ||
float * | heightOut | ||
) |
Retrieves the size of the given element.
bool drgui_get_text_cursor_position_from_char | ( | drgui_font * | pFont, |
const char * | text, | ||
size_t | characterIndex, | ||
float * | pTextCursorPosXOut | ||
) |
Retrieves the position to palce a text cursor based on the character at the given index for the given string when drawn with the given font.
bool drgui_get_text_cursor_position_from_point | ( | drgui_font * | pFont, |
const char * | text, | ||
size_t | textSizeInBytes, | ||
float | maxWidth, | ||
float | inputPosX, | ||
float * | pTextCursorPosXOut, | ||
size_t * | pCharacterIndexOut | ||
) |
Retrieves the position to place a text cursor based on the given point for the given string when drawn with the given font.
const char* drgui_get_type | ( | drgui_element * | pElement | ) |
Retrieves the type fo the element.
float drgui_get_width | ( | const drgui_element * | pElement | ) |
drgui_rect drgui_grow_rect | ( | drgui_rect | rect, |
float | amount | ||
) |
Expands the given rectangle on all sides by the given amount.
bool drgui_has_keyboard_capture | ( | drgui_element * | pElement | ) |
Determines whether or not the given element has the keyboard capture.
bool drgui_has_mouse_capture | ( | drgui_element * | pElement | ) |
Determines whether or not the given element has the mouse capture.
void drgui_hide | ( | drgui_element * | pElement | ) |
Hides the given element.
bool drgui_is_ancestor | ( | drgui_element * | pAncestorElement, |
drgui_element * | pChildElement | ||
) |
Determines whether or not the given element is an ancestor of the other.
bool drgui_is_auto_dirty_enabled | ( | drgui_context * | pContext | ) |
Determines whether or not automatic dirtying is enabled.
bool drgui_is_child | ( | drgui_element * | pChildElement, |
drgui_element * | pParentElement | ||
) |
Determines whether or not the given element is a child of the other.
bool drgui_is_clipping_enabled | ( | const drgui_element * | pElement | ) |
Determines whether or not clipping is enabled for the given element.
bool drgui_is_descendant | ( | drgui_element * | pChildElement, |
drgui_element * | pAncestorElement | ||
) |
Determines whether or not the given element is a descendant of the other.
bool drgui_is_element_under_mouse | ( | drgui_element * | pTopLevelElement | ) |
Determines whether or not the given element is currently sitting directly under the mouse.
bool drgui_is_of_type | ( | drgui_element * | pElement, |
const char * | type | ||
) |
Determines whether or not the given element is of the given type.
bool drgui_is_parent | ( | drgui_element * | pParentElement, |
drgui_element * | pChildElement | ||
) |
Determines whether or not the given element is the parent of the other.
bool drgui_is_point_inside_element | ( | drgui_element * | pElement, |
float | absolutePosX, | ||
float | absolutePosY | ||
) |
Determines whether or not the given point is inside the given element.
bool drgui_is_point_inside_element_bounds | ( | const drgui_element * | pElement, |
float | absolutePosX, | ||
float | absolutePosY | ||
) |
Determines whether or not the given point is inside the bounds of the given element.
bool drgui_is_self_or_ancestor | ( | drgui_element * | pAncestorElement, |
drgui_element * | pChildElement | ||
) |
Determines whether or not the given element is itself or a descendant.
bool drgui_is_self_or_descendant | ( | drgui_element * | pChildElement, |
drgui_element * | pAncestorElement | ||
) |
Determines whether or not the given element is itself or a descendant.
bool drgui_is_visible | ( | const drgui_element * | pElement | ) |
Determines whether or not the element is marked as visible.
bool drgui_is_visible_recursive | ( | const drgui_element * | pElement | ) |
Recursively determines whether or not the element is marked as visible.
bool drgui_iterate_visible_elements | ( | drgui_element * | pParentElement, |
drgui_rect | relativeRect, | ||
drgui_visible_iteration_proc | callback, | ||
void * | pUserData | ||
) |
Performs a recursive traversal of all visible elements in the given rectangle.
pParentElement | [in] A pointer to the element to iterate. |
|
inlinestatic |
Definition at line 515 of file rhino/demo/c/dr_libs/old/dr_gui.h.
|
inlinestatic |
Definition at line 465 of file rhino/demo/c/dr_libs/old/dr_gui.h.
drgui_rect drgui_make_inside_out_rect | ( | ) |
Creates an inside-out rectangle.
void drgui_make_point_absolute | ( | const drgui_element * | pElement, |
float * | positionX, | ||
float * | positionY | ||
) |
Converts the given point from relative to absolute based on the given element.
void drgui_make_point_relative | ( | const drgui_element * | pElement, |
float * | positionX, | ||
float * | positionY | ||
) |
Converts the given point from absolute to relative to the given element.
drgui_rect drgui_make_rect | ( | float | left, |
float | top, | ||
float | right, | ||
float | bottom | ||
) |
Creates a drgui_rect object.
drgui_rect drgui_make_rect_absolute | ( | const drgui_element * | pElement, |
drgui_rect * | pRect | ||
) |
Converts the given rectangle from relative to absolute based on the given element.
drgui_rect drgui_make_rect_relative | ( | const drgui_element * | pElement, |
drgui_rect * | pRect | ||
) |
Converts the given rectangle from absolute to relative to the given element.
void* drgui_map_image_data | ( | drgui_image * | pImage, |
unsigned int | accessFlags | ||
) |
Retrieves a pointer to a buffer representing the given image's data.
Call drgui_unmap_image_data() when you are done with this function.
Use this function to access an image's data. The returned pointer does not necessarilly point to the image's actual data, so when writing to this pointer, nothing is actually updated until drgui_unmap_image_data() is called.
The returned data will contain the image data at the time of the mapping.
bool drgui_measure_string | ( | drgui_font * | pFont, |
const char * | text, | ||
size_t | textLengthInBytes, | ||
float * | pWidthOut, | ||
float * | pHeightOut | ||
) |
Retrieves the dimensions of the given string when drawn with the given font.
drgui_rect drgui_offset_rect | ( | drgui_rect | rect, |
float | offsetX, | ||
float | offsetY | ||
) |
Offsets the given rectangle.
void drgui_on_size_fit_children_to_parent | ( | drgui_element * | pElement, |
float | newWidth, | ||
float | newHeight | ||
) |
An on_size event callback that resizes every child element to that of the parent.
bool drgui_pass_through_hit_test | ( | drgui_element * | pElement, |
float | mousePosX, | ||
float | mousePosY | ||
) |
An on_hit_test event callback that can be used to always fail the mouse hit test.
void drgui_post_inbound_event_key_down | ( | drgui_context * | pContext, |
drgui_key | key, | ||
int | stateFlags | ||
) |
Posts a key down inbound event.
void drgui_post_inbound_event_key_up | ( | drgui_context * | pContext, |
drgui_key | key, | ||
int | stateFlags | ||
) |
Posts a key up inbound event.
void drgui_post_inbound_event_mouse_button_dblclick | ( | drgui_element * | pTopLevelElement, |
int | mouseButton, | ||
int | mousePosX, | ||
int | mousePosY, | ||
int | stateFlags | ||
) |
Posts a mouse button double-clicked inbound event.
void drgui_post_inbound_event_mouse_button_down | ( | drgui_element * | pTopLevelElement, |
int | mouseButton, | ||
int | mousePosX, | ||
int | mousePosY, | ||
int | stateFlags | ||
) |
Posts a mouse button down inbound event.
void drgui_post_inbound_event_mouse_button_up | ( | drgui_element * | pTopLevelElement, |
int | mouseButton, | ||
int | mousePosX, | ||
int | mousePosY, | ||
int | stateFlags | ||
) |
Posts a mouse button up inbound event.
void drgui_post_inbound_event_mouse_leave | ( | drgui_element * | pTopLevelElement | ) |
Posts a mouse leave inbound event.
void drgui_post_inbound_event_mouse_move | ( | drgui_element * | pTopLevelElement, |
int | mousePosX, | ||
int | mousePosY, | ||
int | stateFlags | ||
) |
Posts a mouse move inbound event.
void drgui_post_inbound_event_mouse_wheel | ( | drgui_element * | pTopLevelElement, |
int | mouseButton, | ||
int | mousePosX, | ||
int | mousePosY, | ||
int | stateFlags | ||
) |
Posts a mouse wheel inbound event.
void drgui_post_inbound_event_printable_key_down | ( | drgui_context * | pContext, |
unsigned int | character, | ||
int | stateFlags | ||
) |
Posts a printable key down inbound event.
character
argument should be a UTF-32 code point. void drgui_prepend | ( | drgui_element * | pChildElement, |
drgui_element * | pParentElement | ||
) |
Attaches the given element as a child of the given parent element, and prepends it to the end of the children list.
void drgui_prepend_sibling | ( | drgui_element * | pElementToPrepend, |
drgui_element * | pElementToPrependTo | ||
) |
Prepends the given element to the given sibling.
bool drgui_rect_contains_point | ( | drgui_rect | rect, |
float | posX, | ||
float | posY | ||
) |
Determines whether or not the given rectangle contains the given point.
bool drgui_rect_equal | ( | drgui_rect | rect0, |
drgui_rect | rect1 | ||
) |
Determines whether or not two rectangles are equal.
bool drgui_rect_has_volume | ( | drgui_rect | rect | ) |
Determines whether or not the given rectangle has any volume (width and height > 0).
drgui_rect drgui_rect_union | ( | drgui_rect | rect0, |
drgui_rect | rect1 | ||
) |
Creates a rectangle that contains both of the given rectangles.
void drgui_register_dr_2d_callbacks | ( | drgui_context * | pContext, |
dr2d_context * | pDrawingContext | ||
) |
Registers the drawing callbacks for use with easy_draw.
bool drgui_register_painting_callbacks | ( | drgui_context * | pContext, |
void * | pPaintingContext, | ||
drgui_painting_callbacks | callbacks | ||
) |
Registers the custom painting callbacks.
void drgui_release_keyboard | ( | drgui_context * | pContext | ) |
Releases the keyboard capture.
void drgui_release_keyboard_no_global_notify | ( | drgui_context * | pContext | ) |
Releases the keyboard capture without posting the global-scoped event. Should only be used in very specific cases, usually in combination with awkward interop with the window system.
void drgui_release_mouse | ( | drgui_context * | pContext | ) |
Releases the mouse capture.
void drgui_release_mouse_no_global_notify | ( | drgui_context * | pContext | ) |
Releases the mouse capture without posting the global-scoped event. Should only be used in very specific cases, usually in combination with awkward interop with the window system.
drgui_color drgui_rgb | ( | drgui_byte | r, |
drgui_byte | g, | ||
drgui_byte | b | ||
) |
Creates a color object from a set of RGB color components.
drgui_color drgui_rgba | ( | drgui_byte | r, |
drgui_byte | g, | ||
drgui_byte | b, | ||
drgui_byte | a | ||
) |
Creates a color object from a set of RGBA color components.
void drgui_sb_disable_thumb_auto_hide | ( | drgui_element * | pSBElement | ) |
Disables auto-hiding of the thumb.
void drgui_sb_enable_thumb_auto_hide | ( | drgui_element * | pSBElement | ) |
Enables auto-hiding of the thumb.
void* drgui_sb_get_extra_data | ( | drgui_element * | pSBElement | ) |
Retrieves a pointer to the extra data associated with the scrollbar.
size_t drgui_sb_get_extra_data_size | ( | drgui_element * | pSBElement | ) |
Retrieves the size of the extra data associated with the scrollbar.
int drgui_sb_get_mouse_wheel_scale | ( | drgui_element * | pSBElement | ) |
Retrieves the mouse wheel scale.
drgui_sb_on_scroll_proc drgui_sb_get_on_scroll | ( | drgui_element * | pSBElement | ) |
Retrieves the function call when the given scrollbar is scrolled.
drgui_sb_orientation drgui_sb_get_orientation | ( | drgui_element * | pSBElement | ) |
Retrieves the orientation of the given scrollbar.
int drgui_sb_get_page_size | ( | drgui_element * | pSBElement | ) |
Retrieves the page size of the given scrollbar's page.
void drgui_sb_get_range | ( | drgui_element * | pSBElement, |
int * | pRangeMinOut, | ||
int * | pRangeMaxOut | ||
) |
Retrieves the given scrollbar's range.
int drgui_sb_get_scroll_position | ( | drgui_element * | pSBElement | ) |
Retrieves the scroll position.
drgui_rect drgui_sb_get_thumb_rect | ( | drgui_element * | pSBElement | ) |
Calculates the relative rectangle of the given scrollbar's thumb.
bool drgui_sb_is_thumb_auto_hide_enabled | ( | drgui_element * | pSBElement | ) |
Determines whether or not thumb auto-hiding is enabled.
bool drgui_sb_is_thumb_visible | ( | drgui_element * | pSBElement | ) |
Determines whether or not the thumb is visible.
void drgui_sb_on_mouse_button_down | ( | drgui_element * | pSBElement, |
int | button, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse button down event needs to be processed for the given scrollbar.
void drgui_sb_on_mouse_button_up | ( | drgui_element * | pSBElement, |
int | button, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse button up event needs to be processed for the given scrollbar.
void drgui_sb_on_mouse_leave | ( | drgui_element * | pSBElement | ) |
Called when the mouse leave event needs to be processed for the given scrollbar.
void drgui_sb_on_mouse_move | ( | drgui_element * | pSBElement, |
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse move event needs to be processed for the given scrollbar.
void drgui_sb_on_mouse_wheel | ( | drgui_element * | pSBElement, |
int | delta, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse wheel event needs to be processed for the given scrollbar.
void drgui_sb_on_paint | ( | drgui_element * | pSBElement, |
drgui_rect | relativeClippingRect, | ||
void * | pPaintData | ||
) |
Called when the paint event needs to be processed.
void drgui_sb_on_size | ( | drgui_element * | pSBElement, |
float | newWidth, | ||
float | newHeight | ||
) |
Called when the size event needs to be processed for the given scrollbar.
void drgui_sb_scroll | ( | drgui_element * | pSBElement, |
int | offset | ||
) |
Scrolls by the given amount.
void drgui_sb_scroll_to | ( | drgui_element * | pSBElement, |
int | newScrollPos | ||
) |
Scrolls to the given position.
void drgui_sb_set_default_thumb_color | ( | drgui_element * | pSBElement, |
drgui_color | color | ||
) |
Sets the default color of the thumb.
void drgui_sb_set_hovered_thumb_color | ( | drgui_element * | pSBElement, |
drgui_color | color | ||
) |
Sets the hovered color of the thumb.
void drgui_sb_set_mouse_wheel_scele | ( | drgui_element * | pSBElement, |
int | scale | ||
) |
Sets the mouse wheel scale.
void drgui_sb_set_on_scroll | ( | drgui_element * | pSBElement, |
drgui_sb_on_scroll_proc | onScroll | ||
) |
Sets the function to call when the given scrollbar is scrolled.
void drgui_sb_set_page_size | ( | drgui_element * | pSBElement, |
int | pageSize | ||
) |
Sets the page size of the given scrollbar's page.
void drgui_sb_set_pressed_thumb_color | ( | drgui_element * | pSBElement, |
drgui_color | color | ||
) |
Sets the pressed color of the thumb.
void drgui_sb_set_range | ( | drgui_element * | pSBElement, |
int | rangeMin, | ||
int | rangeMax | ||
) |
Sets the given scrollbar's range.
void drgui_sb_set_range_and_page_size | ( | drgui_element * | pSBElement, |
int | rangeMin, | ||
int | rangeMax, | ||
int | pageSize | ||
) |
Sets the range and page size.
void drgui_sb_set_scroll_position | ( | drgui_element * | pSBElement, |
int | position | ||
) |
Explicitly sets the scroll position.
void drgui_sb_set_track_color | ( | drgui_element * | pSBElement, |
drgui_color | color | ||
) |
Sets the color of the track.
drgui_rect drgui_scale_rect | ( | drgui_rect | rect, |
float | scaleX, | ||
float | scaleY | ||
) |
Scales the given rectangle.
scaleX | [in] The scale to apply to <left> and <right> |
scaleY | [in] The scale to apply to <top> and <bottom> |
void drgui_set_absolute_position | ( | drgui_element * | pElement, |
float | positionX, | ||
float | positionY | ||
) |
Sets the absolute position of the given element.
void drgui_set_clip | ( | drgui_element * | pElement, |
drgui_rect | relativeRect, | ||
void * | pPaintData | ||
) |
Sets the clipping rectangle to apply to all future draw operations on this element.
void drgui_set_cursor | ( | drgui_element * | pElement, |
drgui_cursor_type | cursor | ||
) |
Sets the cursor to use when the mouse enters the given GUI element.
void drgui_set_global_on_capture_keyboard | ( | drgui_context * | pContext, |
drgui_on_capture_keyboard_proc | onCaptureKeyboard | ||
) |
Registers the global on_capture_keyboard event callback.
void drgui_set_global_on_capture_mouse | ( | drgui_context * | pContext, |
drgui_on_capture_mouse_proc | onCaptureMouse | ||
) |
Registers the global on_capture_mouse event callback.
void drgui_set_global_on_change_cursor | ( | drgui_context * | pContext, |
drgui_on_change_cursor_proc | onChangeCursor | ||
) |
Sets the global on_change_cursor event callback.
void drgui_set_global_on_dirty | ( | drgui_context * | pContext, |
drgui_on_dirty_proc | onDirty | ||
) |
Registers the global on_dirty event callback.
void drgui_set_global_on_release_keyboard | ( | drgui_context * | pContext, |
drgui_on_capture_keyboard_proc | onReleaseKeyboard | ||
) |
Registers the global on_release_keyboard event callback.
void drgui_set_global_on_release_mouse | ( | drgui_context * | pContext, |
drgui_on_release_mouse_proc | onReleaseMouse | ||
) |
Registers the global on_release_mouse event callback.
void drgui_set_on_capture_keyboard | ( | drgui_element * | pElement, |
drgui_on_capture_keyboard_proc | callback | ||
) |
Registers the on_capture_keyboard event callback.
void drgui_set_on_capture_mouse | ( | drgui_element * | pElement, |
drgui_on_capture_mouse_proc | callback | ||
) |
Registers the on_capture_mouse event callback.
void drgui_set_on_delete_element | ( | drgui_context * | pContext, |
drgui_on_delete_element_proc | onDeleteElement | ||
) |
Sets the function to call when an element is deleted.
void drgui_set_on_dirty | ( | drgui_element * | pElement, |
drgui_on_dirty_proc | callback | ||
) |
Registers the on_dirty event callback.
void drgui_set_on_hittest | ( | drgui_element * | pElement, |
drgui_on_hittest_proc | callback | ||
) |
Registers the on_hittest event callback.
void drgui_set_on_key_down | ( | drgui_element * | pElement, |
drgui_on_key_down_proc | callback | ||
) |
Registers the on_key_down event callback.
void drgui_set_on_key_up | ( | drgui_element * | pElement, |
drgui_on_key_up_proc | callback | ||
) |
Registers the on_key_up event callback.
void drgui_set_on_log | ( | drgui_context * | pContext, |
drgui_on_log | onLog | ||
) |
Registers the callback to call when a log message is posted.
void drgui_set_on_mouse_button_dblclick | ( | drgui_element * | pElement, |
drgui_on_mouse_button_dblclick_proc | callback | ||
) |
Registers the on_mouse_button_down event callback.
void drgui_set_on_mouse_button_down | ( | drgui_element * | pElement, |
drgui_on_mouse_button_down_proc | callback | ||
) |
Registers the on_mouse_button_down event callback.
void drgui_set_on_mouse_button_up | ( | drgui_element * | pElement, |
drgui_on_mouse_button_up_proc | callback | ||
) |
Registers the on_mouse_button_up event callback.
void drgui_set_on_mouse_enter | ( | drgui_element * | pElement, |
drgui_on_mouse_enter_proc | callback | ||
) |
Registers the on_mouse_enter event callback.
void drgui_set_on_mouse_leave | ( | drgui_element * | pElement, |
drgui_on_mouse_leave_proc | callback | ||
) |
Registers the on_mouse_leave event callback.
void drgui_set_on_mouse_move | ( | drgui_element * | pElement, |
drgui_on_mouse_move_proc | callback | ||
) |
Registers the on_mouse_move event callback.
void drgui_set_on_mouse_wheel | ( | drgui_element * | pElement, |
drgui_on_mouse_wheel_proc | callback | ||
) |
Registers the on_mouse_wheel event callback.
void drgui_set_on_move | ( | drgui_element * | pElement, |
drgui_on_move_proc | callback | ||
) |
Registers the on_move event callback.
void drgui_set_on_paint | ( | drgui_element * | pElement, |
drgui_on_paint_proc | callback | ||
) |
Registers the on_paint event callback.
void drgui_set_on_printable_key_down | ( | drgui_element * | pElement, |
drgui_on_printable_key_down_proc | callback | ||
) |
Registers the on_printable_key_down event callback.
void drgui_set_on_release_keyboard | ( | drgui_element * | pElement, |
drgui_on_release_keyboard_proc | callback | ||
) |
Registers the on_release_keyboard event callback.
void drgui_set_on_release_mouse | ( | drgui_element * | pElement, |
drgui_on_release_mouse_proc | callback | ||
) |
Registers the on_release_mouse event callback.
void drgui_set_on_size | ( | drgui_element * | pElement, |
drgui_on_size_proc | callback | ||
) |
Registers the on_size event callback.
void drgui_set_relative_position | ( | drgui_element * | pElement, |
float | relativePosX, | ||
float | relativePosY | ||
) |
Sets the relative position of the given element.
void drgui_set_size | ( | drgui_element * | pElement, |
float | width, | ||
float | height | ||
) |
Sets the size of the given element.
bool drgui_set_type | ( | drgui_element * | pElement, |
const char * | type | ||
) |
Sets the type of the element.
The type name cannot be more than 63 characters in length.
void drgui_show | ( | drgui_element * | pElement | ) |
Shows the given element.
|
static |
Definition at line 456 of file rhino/demo/c/dr_libs/old/dr_gui.h.
void drgui_tab_delete | ( | drgui_tab * | pTab | ) |
Recursively deletes a tree view item.
void* drgui_tab_get_extra_data | ( | drgui_tab * | pTab | ) |
Retrieves a pointer to the extra data associated with the given tree-view item.
size_t drgui_tab_get_extra_data_size | ( | drgui_tab * | pTab | ) |
Retrieves the size of the extra data associated with the given tree-view item.
Retrieves a pointer to the next tab in the tab bar.
Retrieves a pointer to the previous tab in the tab bar.
drgui_element* drgui_tab_get_tab_bar_element | ( | drgui_tab * | pTab | ) |
Retrieves the tab bar GUI element that owns the given item.
const char* drgui_tab_get_text | ( | drgui_tab * | pTab | ) |
Retrieves the text of the given tab bar item.
bool drgui_tab_is_in_view | ( | drgui_tab * | pTab | ) |
Determines whether or not the given tab is in view.
void drgui_tab_move_into_view | ( | drgui_tab * | pTab | ) |
Moves the given tab into view, if it's not already.
If the tab is out of view, it will be repositioned to the front of the tab bar.
void drgui_tab_move_to_front | ( | drgui_tab * | pTab | ) |
Moves the given tab to the front of the tab bar that owns it.
void drgui_tab_set_text | ( | drgui_tab * | pTab, |
const char * | text | ||
) |
Sets the text of the given tab bar item.
void drgui_tabbar_activate_next_tab | ( | drgui_element * | pTBElement | ) |
void drgui_tabbar_activate_prev_tab | ( | drgui_element * | pTBElement | ) |
void drgui_tabbar_activate_tab | ( | drgui_element * | pTBElement, |
drgui_tab * | pTab | ||
) |
Activates the given tab.
drgui_tab* drgui_tabbar_create_and_append_tab | ( | drgui_element * | pTBElement, |
const char * | text, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates and appends a tab.
drgui_tab* drgui_tabbar_create_and_prepend_tab | ( | drgui_element * | pTBElement, |
const char * | text, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates and prepends a tab.
void drgui_tabbar_disable_auto_size | ( | drgui_element * | pTBElement | ) |
Disables auto-resizing based on tabs.
void drgui_tabbar_disable_close_on_middle_click | ( | drgui_element * | pTBElement | ) |
Disables the on_close event on middle click.
void drgui_tabbar_enable_auto_size | ( | drgui_element * | pTBElement | ) |
Enables auto-resizing based on tabs.
void drgui_tabbar_enable_close_on_middle_click | ( | drgui_element * | pTBElement | ) |
Enables the on_close event on middle click.
drgui_tab* drgui_tabbar_get_active_tab | ( | drgui_element * | pTBElement | ) |
Retrieves a pointer to the currently active tab.
drgui_image* drgui_tabbar_get_close_button_image | ( | drgui_element * | pTBElement | ) |
Retrieves the image being used for the close buttons.
float drgui_tabbar_get_close_button_left_padding | ( | drgui_element * | pTBElement | ) |
void* drgui_tabbar_get_extra_data | ( | drgui_element * | pTBElement | ) |
Retrieves a pointer to the extra data associated with the scrollbar.
size_t drgui_tabbar_get_extra_data_size | ( | drgui_element * | pTBElement | ) |
Retrieves the size of the extra data associated with the scrollbar.
drgui_tab* drgui_tabbar_get_first_tab | ( | drgui_element * | pTBElement | ) |
drgui_font* drgui_tabbar_get_font | ( | drgui_element * | pTBElement | ) |
Retrieves the default font to use for tabs.
drgui_tab* drgui_tabbar_get_last_tab | ( | drgui_element * | pTBElement | ) |
drgui_tab* drgui_tabbar_get_next_tab | ( | drgui_element * | pTBElement, |
drgui_tab * | pTab | ||
) |
drgui_tabbar_orientation drgui_tabbar_get_orientation | ( | drgui_element * | pTBElement | ) |
Retrieves the orientation of the given scrollbar.
drgui_tab* drgui_tabbar_get_prev_tab | ( | drgui_element * | pTBElement, |
drgui_tab * | pTab | ||
) |
drgui_color drgui_tabbar_get_tab_background_color | ( | drgui_element * | pTBElement | ) |
drgui_color drgui_tabbar_get_tab_background_color_actived | ( | drgui_element * | pTBElement | ) |
drgui_color drgui_tabbar_get_tab_background_color_hovered | ( | drgui_element * | pTBElement | ) |
float drgui_tabbar_get_tab_padding | ( | drgui_element * | pTBElement | ) |
drgui_color drgui_tabbar_get_text_color | ( | drgui_element * | pTBElement | ) |
void drgui_tabbar_hide_close_buttons | ( | drgui_element * | pTBElement | ) |
Hides the close buttons on each tab.
bool drgui_tabbar_is_auto_size_enabled | ( | drgui_element * | pTBElement | ) |
Determines whether or not auto-sizing is enabled.
bool drgui_tabbar_is_close_on_middle_click_enabled | ( | drgui_element * | pTBElement | ) |
Determines whether or not close-on-middle-click is enabled.
bool drgui_tabbar_is_tab_in_view | ( | drgui_element * | pTBElement, |
drgui_tab * | pTab | ||
) |
Determines whether or not the given tab is in view.
void drgui_tabbar_measure_tab | ( | drgui_element * | pTBElement, |
drgui_tab * | pTab, | ||
float * | pWidthOut, | ||
float * | pHeightOut | ||
) |
Measures the given tab.
void drgui_tabbar_on_mouse_button_down | ( | drgui_element * | pTBElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse button down event needs to be processed for the given tab bar control.
void drgui_tabbar_on_mouse_button_up | ( | drgui_element * | pTBElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse button up event needs to be processed for the given tab bar control.
void drgui_tabbar_on_mouse_leave | ( | drgui_element * | pTBElement | ) |
Called when the mouse leave event needs to be processed for the given tab bar control.
void drgui_tabbar_on_mouse_move | ( | drgui_element * | pTBElement, |
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse move event needs to be processed for the given tab bar control.
void drgui_tabbar_on_paint | ( | drgui_element * | pTBElement, |
drgui_rect | relativeClippingRect, | ||
void * | pPaintData | ||
) |
Called when the paint event needs to be processed for the given tab control.
void drgui_tabbar_paint_tab | ( | drgui_element * | pTBElement, |
drgui_tab * | pTab, | ||
drgui_rect | relativeClippingRect, | ||
float | offsetX, | ||
float | offsetY, | ||
float | width, | ||
float | height, | ||
void * | pPaintData | ||
) |
Paints the given tab.
void drgui_tabbar_resize_by_tabs | ( | drgui_element * | pTBElement | ) |
Sets the width or height of the tab bar to that of it's tabs based on it's orientation.
void drgui_tabbar_set_close_button_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_tabbar_set_close_button_image | ( | drgui_element * | pTBElement, |
drgui_image * | pImage | ||
) |
Sets the image to use for close buttons.
void drgui_tabbar_set_close_button_left_padding | ( | drgui_element * | pTBElement, |
float | padding | ||
) |
void drgui_tabbar_set_font | ( | drgui_element * | pTBElement, |
drgui_font * | pFont | ||
) |
Sets the default font to use for tabs.
void drgui_tabbar_set_on_measure_tab | ( | drgui_element * | pTBElement, |
drgui_tabbar_on_measure_tab_proc | proc | ||
) |
Sets the function to call when a tab needs to be measured.
void drgui_tabbar_set_on_paint_tab | ( | drgui_element * | pTBElement, |
drgui_tabbar_on_paint_tab_proc | proc | ||
) |
Sets the function to call when a tab needs to be painted.
void drgui_tabbar_set_on_tab_activated | ( | drgui_element * | pTBElement, |
drgui_tabbar_on_tab_activated_proc | proc | ||
) |
Sets the function to call when a tab is activated.
void drgui_tabbar_set_on_tab_closed | ( | drgui_element * | pTBElement, |
drgui_tabbar_on_tab_close_proc | proc | ||
) |
Sets the function to call when a tab is closed with the close button.
void drgui_tabbar_set_on_tab_deactivated | ( | drgui_element * | pTBElement, |
drgui_tabbar_on_tab_deactivated_proc | proc | ||
) |
Sets the function to call when a tab is deactivated.
void drgui_tabbar_set_on_tab_mouse_button_up | ( | drgui_element * | pTBElement, |
drgui_tabbar_on_tab_mouse_button_up_proc | proc | ||
) |
void drgui_tabbar_set_tab_background_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_tabbar_set_tab_background_color_active | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_tabbar_set_tab_background_color_hovered | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_tabbar_set_tab_padding | ( | drgui_element * | pTBElement, |
float | padding | ||
) |
void drgui_tabbar_set_text_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_tabbar_set_text_color_active | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_tabbar_set_text_color_hovered | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_tabbar_show_close_buttons | ( | drgui_element * | pTBElement | ) |
Shows the close buttons on each tab.
void drgui_text_engine_clear_undo_stack | ( | drgui_text_engine * | pTL | ) |
Clears the undo stack.
bool drgui_text_engine_commit_undo_point | ( | drgui_text_engine * | pTL | ) |
Creates a snapshot of the current state of the text engine and pushes it to the top of the undo/redo stack.
bool drgui_text_engine_delete_character_to_left_of_cursor | ( | drgui_text_engine * | pTL | ) |
Deletes the character to the left of the cursor.
bool drgui_text_engine_delete_character_to_right_of_cursor | ( | drgui_text_engine * | pTL | ) |
Deletes the character to the right of the cursor.
bool drgui_text_engine_delete_selected_text | ( | drgui_text_engine * | pTL | ) |
Deletes the currently selected text.
bool drgui_text_engine_delete_text_range | ( | drgui_text_engine * | pTL, |
size_t | iFirstCh, | ||
size_t | iLastChPlus1 | ||
) |
Deletes a range of text in the given text engine.
void drgui_text_engine_deselect_all | ( | drgui_text_engine * | pTL | ) |
Deselects everything in the given text engine.
void drgui_text_engine_enter_selection_mode | ( | drgui_text_engine * | pTL | ) |
Enter's into selection mode.
bool drgui_text_engine_find_next | ( | drgui_text_engine * | pTL, |
const char * | text, | ||
size_t * | pSelectionStartOut, | ||
size_t * | pSelectionEndOut | ||
) |
Finds the given string starting from the cursor and then looping back.
bool drgui_text_engine_find_next_no_loop | ( | drgui_text_engine * | pTL, |
const char * | text, | ||
size_t * | pSelectionStartOut, | ||
size_t * | pSelectionEndOut | ||
) |
Finds the given string starting from the cursor, but does not loop back.
drgui_color drgui_text_engine_get_active_line_bg_color | ( | drgui_text_engine * | pTL | ) |
Retrieves the background color of the line the cursor is sitting on.
float drgui_text_engine_get_container_height | ( | drgui_text_engine * | pTL | ) |
Retrieves the height of the container.
void drgui_text_engine_get_container_size | ( | drgui_text_engine * | pTL, |
float * | pContainerWidthOut, | ||
float * | pContainerHeightOut | ||
) |
Retrieves the size of the container.
float drgui_text_engine_get_container_width | ( | drgui_text_engine * | pTL | ) |
Retrieves the width of the container.
unsigned int drgui_text_engine_get_cursor_blink_rate | ( | drgui_text_engine * | pTL | ) |
Retrieves the blink rate of the cursor in milliseconds.
size_t drgui_text_engine_get_cursor_character | ( | drgui_text_engine * | pTL | ) |
Retrieves the index of the character the cursor is currently sitting on.
drgui_color drgui_text_engine_get_cursor_color | ( | drgui_text_engine * | pTL | ) |
Retrieves the color of the text cursor.
size_t drgui_text_engine_get_cursor_column | ( | drgui_text_engine * | pTL | ) |
Retrieves the index of the column the cursor is currently sitting on.
size_t drgui_text_engine_get_cursor_line | ( | drgui_text_engine * | pTL | ) |
Retrieves the index of the line the cursor is currently sitting on.
void drgui_text_engine_get_cursor_position | ( | drgui_text_engine * | pTL, |
float * | pPosXOut, | ||
float * | pPosYOut | ||
) |
Retrieves the position of the cursor, relative to the container.
drgui_rect drgui_text_engine_get_cursor_rect | ( | drgui_text_engine * | pTL | ) |
Retrieves the rectangle of the cursor, relative to the container.
float drgui_text_engine_get_cursor_width | ( | drgui_text_engine * | pTL | ) |
Retrieves the width of the text cursor.
drgui_color drgui_text_engine_get_default_bg_color | ( | drgui_text_engine * | pTL | ) |
Retrieves the default background color of the given text engine.
drgui_font* drgui_text_engine_get_default_font | ( | drgui_text_engine * | pTL | ) |
Retrieves the default font to use for text runs.
drgui_color drgui_text_engine_get_default_text_color | ( | drgui_text_engine * | pTL | ) |
Retrieves the default text color of the given text engine.
void* drgui_text_engine_get_extra_data | ( | drgui_text_engine * | pTL | ) |
Retrieves a pointer to the extra data associated with the given text engine.
size_t drgui_text_engine_get_extra_data_size | ( | drgui_text_engine * | pTL | ) |
Retrieves the size of the extra data associated with the given text engine.
drgui_text_engine_alignment drgui_text_engine_get_horizontal_align | ( | drgui_text_engine * | pTL | ) |
Retrieves the horizontal aligment of the given text engine.
void drgui_text_engine_get_inner_offset | ( | drgui_text_engine * | pTL, |
float * | pInnerOffsetX, | ||
float * | pInnerOffsetY | ||
) |
Retrieves the inner offset of the given text engine.
float drgui_text_engine_get_inner_offset_x | ( | drgui_text_engine * | pTL | ) |
Retrieves the inner offset of the given text engine on the x axis.
float drgui_text_engine_get_inner_offset_y | ( | drgui_text_engine * | pTL | ) |
Retrieves the inner offset of the given text engine on the x axis.
size_t drgui_text_engine_get_line_at_pos_y | ( | drgui_text_engine * | pTL, |
float | posY | ||
) |
Finds the line under the given point on the y axis relative to the container.
void drgui_text_engine_get_line_character_range | ( | drgui_text_engine * | pTL, |
size_t | iLine, | ||
size_t * | pCharStartOut, | ||
size_t * | pCharEndOut | ||
) |
Retrieves teh index of the first and last character of the line at the given index.
size_t drgui_text_engine_get_line_count | ( | drgui_text_engine * | pTL | ) |
Retrieves the number of lines in the given text engine.
size_t drgui_text_engine_get_line_first_character | ( | drgui_text_engine * | pTL, |
size_t | iLine | ||
) |
Retrieves the index of the first character of the line at the given index.
size_t drgui_text_engine_get_line_last_character | ( | drgui_text_engine * | pTL, |
size_t | iLine | ||
) |
Retrieves the index of the last character of the line at the given index.
float drgui_text_engine_get_line_pos_y | ( | drgui_text_engine * | pTL, |
size_t | iLine | ||
) |
Retrieves the position of the line at the given index on the y axis.
unsigned int drgui_text_engine_get_redo_points_remaining_count | ( | drgui_text_engine * | pTL | ) |
Retrieves the number of redo points remaining in the stack.
size_t drgui_text_engine_get_selected_text | ( | drgui_text_engine * | pTL, |
char * | textOut, | ||
size_t | textOutLength | ||
) |
Retrieves a copy of the selected text.
size_t drgui_text_engine_get_selection_anchor_line | ( | drgui_text_engine * | pTL | ) |
Retrieves the line the selection anchor is sitting on.
drgui_color drgui_text_engine_get_selection_bg_color | ( | drgui_text_engine * | pTL | ) |
Retrieves the background color of selected text.
size_t drgui_text_engine_get_selection_first_line | ( | drgui_text_engine * | pTL | ) |
Retrieves the index of the first line of the current selection.
size_t drgui_text_engine_get_selection_last_line | ( | drgui_text_engine * | pTL | ) |
Retrieves the index of the last line of the current selection.
unsigned int drgui_text_engine_get_tab_size | ( | drgui_text_engine * | pTL | ) |
Retrieves the size of a tab in spaces.
size_t drgui_text_engine_get_text | ( | drgui_text_engine * | pTL, |
char * | textOut, | ||
size_t | textOutSize | ||
) |
Retrieves the given text engine's text.
drgui_rect drgui_text_engine_get_text_rect_relative_to_bounds | ( | drgui_text_engine * | pTL | ) |
Retrieves the rectangle of the text relative to the bounds, taking alignment into account.
unsigned int drgui_text_engine_get_undo_points_remaining_count | ( | drgui_text_engine * | pTL | ) |
Retrieves the number of undo points remaining in the stack.
drgui_text_engine_alignment drgui_text_engine_get_vertical_align | ( | drgui_text_engine * | pTL | ) |
Retrieves the vertical aligment of the given text engine.
size_t drgui_text_engine_get_visible_line_count_starting_at | ( | drgui_text_engine * | pTL, |
size_t | iFirstLine | ||
) |
Retrieves the number of lines that can fit on the visible portion of the layout, starting from the given line.
void drgui_text_engine_hide_cursor | ( | drgui_text_engine * | pTL | ) |
Hides the cursor.
bool drgui_text_engine_insert_character | ( | drgui_text_engine * | pTL, |
unsigned int | character, | ||
size_t | insertIndex | ||
) |
Inserts a character into the given text engine.
bool drgui_text_engine_insert_character_at_cursor | ( | drgui_text_engine * | pTL, |
unsigned int | character | ||
) |
Inserts a character at the position of the cursor.
bool drgui_text_engine_insert_text | ( | drgui_text_engine * | pTL, |
const char * | text, | ||
size_t | insertIndex | ||
) |
Inserts the given string at the given character index.
bool drgui_text_engine_insert_text_at_cursor | ( | drgui_text_engine * | pTL, |
const char * | text | ||
) |
Inserts a character at the position of the cursor.
bool drgui_text_engine_is_anything_selected | ( | drgui_text_engine * | pTL | ) |
Determines whether or not anything is selected in the given text engine.
bool drgui_text_engine_is_cursor_at_end_of_selection | ( | drgui_text_engine * | pTL | ) |
Determines whether or not the cursor is sitting at the end fo the selection.
bool drgui_text_engine_is_cursor_at_start_of_selection | ( | drgui_text_engine * | pTL | ) |
Determines whether or not the cursor is sitting at the start of the selection.
bool drgui_text_engine_is_in_selection_mode | ( | drgui_text_engine * | pTL | ) |
Determines whether or not the given text engine is in selection mode.
bool drgui_text_engine_is_showing_cursor | ( | drgui_text_engine * | pTL | ) |
Determines whether or not the cursor is visible.
void drgui_text_engine_leave_selection_mode | ( | drgui_text_engine * | pTL | ) |
Leaves selection mode.
bool drgui_text_engine_move_cursor_down | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine down one line.
bool drgui_text_engine_move_cursor_left | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine to the left by one character.
bool drgui_text_engine_move_cursor_right | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine to the right by one character.
void drgui_text_engine_move_cursor_to_character | ( | drgui_text_engine * | pTL, |
size_t | characterIndex | ||
) |
Moves the cursor to the given character index.
bool drgui_text_engine_move_cursor_to_end_of_line | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine to the end of the line.
bool drgui_text_engine_move_cursor_to_end_of_line_by_index | ( | drgui_text_engine * | pTL, |
size_t | iLine | ||
) |
Moves the cursor of the given text engine to the end of the line at the given index.
void drgui_text_engine_move_cursor_to_end_of_selection | ( | drgui_text_engine * | pTL | ) |
Moves the cursor to the end of the selected text.
bool drgui_text_engine_move_cursor_to_end_of_text | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine to the end of the text.
void drgui_text_engine_move_cursor_to_point | ( | drgui_text_engine * | pTL, |
float | posX, | ||
float | posY | ||
) |
Moves the cursor to the closest character based on the given input position.
bool drgui_text_engine_move_cursor_to_start_of_line | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine to the start of the line.
bool drgui_text_engine_move_cursor_to_start_of_line_by_index | ( | drgui_text_engine * | pTL, |
size_t | iLine | ||
) |
Moves the cursor of the given text engine to the start of the line at the given index.
void drgui_text_engine_move_cursor_to_start_of_selection | ( | drgui_text_engine * | pTL | ) |
Moves the cursor to the start of the selected text.
bool drgui_text_engine_move_cursor_to_start_of_text | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine to the end of the text.
bool drgui_text_engine_move_cursor_up | ( | drgui_text_engine * | pTL | ) |
Moves the cursor of the given text engine up one line.
bool drgui_text_engine_move_cursor_y | ( | drgui_text_engine * | pTL, |
int | amount | ||
) |
Moves the cursor up or down the given number of lines.
void drgui_text_engine_move_selection_anchor_to_end_of_line | ( | drgui_text_engine * | pTL, |
size_t | iLine | ||
) |
Moves the selection anchor to the end of the given line.
void drgui_text_engine_move_selection_anchor_to_start_of_line | ( | drgui_text_engine * | pTL, |
size_t | iLine | ||
) |
Moves the selection anchor to the start of the given line.
void drgui_text_engine_paint | ( | drgui_text_engine * | pTL, |
drgui_rect | rect, | ||
drgui_element * | pElement, | ||
void * | pPaintData | ||
) |
Paints the given text engine by calling the appropriate painting callbacks.
void drgui_text_engine_paint_line_numbers | ( | drgui_text_engine * | pTL, |
float | lineNumbersWidth, | ||
float | lineNumbersHeight, | ||
drgui_color | textColor, | ||
drgui_color | backgroundColor, | ||
drgui_text_engine_on_paint_text_proc | onPaintText, | ||
drgui_text_engine_on_paint_rect_proc | onPaintRect, | ||
drgui_element * | pElement, | ||
void * | pPaintData | ||
) |
Calls the given painting callbacks for the line numbers of the given text engine.
bool drgui_text_engine_prepare_undo_point | ( | drgui_text_engine * | pTL | ) |
Prepares the next undo/redo point.
bool drgui_text_engine_redo | ( | drgui_text_engine * | pTL | ) |
Performs a redo operation.
void drgui_text_engine_refresh_markers | ( | drgui_text_engine * | pTL | ) |
Refreshes the cursor and selection marker positions.
void drgui_text_engine_select | ( | drgui_text_engine * | pTL, |
size_t | firstCharacter, | ||
size_t | lastCharacter | ||
) |
Selects the given range of text.
void drgui_text_engine_select_all | ( | drgui_text_engine * | pTL | ) |
Selects everything in the given text engine.
void drgui_text_engine_set_active_line_bg_color | ( | drgui_text_engine * | pTL, |
drgui_color | color | ||
) |
Sets the background color of the line the cursor is sitting on.
void drgui_text_engine_set_container_size | ( | drgui_text_engine * | pTL, |
float | containerWidth, | ||
float | containerHeight | ||
) |
Sets the size of the container.
void drgui_text_engine_set_cursor_blink_rate | ( | drgui_text_engine * | pTL, |
unsigned int | blinkRateInMilliseconds | ||
) |
Sets the blink rate of the cursor in milliseconds.
void drgui_text_engine_set_cursor_color | ( | drgui_text_engine * | pTL, |
drgui_color | cursorColor | ||
) |
Sets the color of the text cursor.
void drgui_text_engine_set_cursor_width | ( | drgui_text_engine * | pTL, |
float | cursorWidth | ||
) |
Sets the width of the text cursor.
void drgui_text_engine_set_default_bg_color | ( | drgui_text_engine * | pTL, |
drgui_color | color | ||
) |
Sets the default background color of the given text engine.
void drgui_text_engine_set_default_font | ( | drgui_text_engine * | pTL, |
drgui_font * | pFont | ||
) |
Sets the default font to use for text runs.
void drgui_text_engine_set_default_text_color | ( | drgui_text_engine * | pTL, |
drgui_color | color | ||
) |
Sets the default text color of the given text engine.
void drgui_text_engine_set_horizontal_align | ( | drgui_text_engine * | pTL, |
drgui_text_engine_alignment | alignment | ||
) |
Sets the horizontal alignment of the given text engine.
void drgui_text_engine_set_inner_offset | ( | drgui_text_engine * | pTL, |
float | innerOffsetX, | ||
float | innerOffsetY | ||
) |
Sets the inner offset of the given text engine.
void drgui_text_engine_set_inner_offset_x | ( | drgui_text_engine * | pTL, |
float | innerOffsetX | ||
) |
Sets the inner offset of the given text engine on the x axis.
void drgui_text_engine_set_inner_offset_y | ( | drgui_text_engine * | pTL, |
float | innerOffsetY | ||
) |
Sets the inner offset of the given text engine on the y axis.
void drgui_text_engine_set_on_cursor_move | ( | drgui_text_engine * | pTL, |
drgui_text_engine_on_cursor_move_proc | proc | ||
) |
Sets the function to call when the cursor in the given text engine is mvoed.
void drgui_text_engine_set_on_dirty | ( | drgui_text_engine * | pTL, |
drgui_text_engine_on_dirty_proc | proc | ||
) |
Sets the function to call when a region of the text engine needs to be redrawn.
void drgui_text_engine_set_on_paint_rect | ( | drgui_text_engine * | pTL, |
drgui_text_engine_on_paint_rect_proc | proc | ||
) |
Sets the function to call when a quad needs to the be painted for the given text engine.
void drgui_text_engine_set_on_paint_text | ( | drgui_text_engine * | pTL, |
drgui_text_engine_on_paint_text_proc | proc | ||
) |
Sets the function to call when a run of text needs to be painted for the given text engine.
void drgui_text_engine_set_on_text_changed | ( | drgui_text_engine * | pTL, |
drgui_text_engine_on_text_changed_proc | proc | ||
) |
Sets the function to call when the content of the given text engine has changed.
void drgui_text_engine_set_on_undo_point_changed | ( | drgui_text_engine * | pTL, |
drgui_text_engine_on_undo_point_changed_proc | proc | ||
) |
Sets the function to call when the content of the given text engine's current undo point has moved.
void drgui_text_engine_set_selection_bg_color | ( | drgui_text_engine * | pTL, |
drgui_color | color | ||
) |
Sets the background color of selected text.
void drgui_text_engine_set_tab_size | ( | drgui_text_engine * | pTL, |
unsigned int | sizeInSpaces | ||
) |
Sets the size of a tab in spaces.
void drgui_text_engine_set_text | ( | drgui_text_engine * | pTL, |
const char * | text | ||
) |
Sets the given text engine's text.
void drgui_text_engine_set_vertical_align | ( | drgui_text_engine * | pTL, |
drgui_text_engine_alignment | alignment | ||
) |
Sets the vertical alignment of the given text engine.
void drgui_text_engine_show_cursor | ( | drgui_text_engine * | pTL | ) |
Shows the cursor.
void drgui_text_engine_step | ( | drgui_text_engine * | pTL, |
unsigned int | milliseconds | ||
) |
Steps the given text engine by the given number of milliseconds.
void drgui_text_engine_swap_selection_markers | ( | drgui_text_engine * | pTL | ) |
Swaps the position of the cursor based on the current selection.
bool drgui_text_engine_undo | ( | drgui_text_engine * | pTL | ) |
Performs an undo operation.
void drgui_textbox_clear_undo_stack | ( | drgui_element * | pTBElement | ) |
Clears the undo/redo stack.
bool drgui_textbox_delete_character_to_right_of_cursor | ( | drgui_element * | pTBElement | ) |
Deletes the character to the right of the cursor.
bool drgui_textbox_delete_selected_text | ( | drgui_element * | pTBElement | ) |
Deletes the currently selected text.
void drgui_textbox_deselect_all | ( | drgui_element * | pTBElement | ) |
Deselect everything.
void drgui_textbox_disable_horizontal_scrollbar | ( | drgui_element * | pTBElement | ) |
Disables the horizontal scrollbar.
void drgui_textbox_disable_vertical_scrollbar | ( | drgui_element * | pTBElement | ) |
Disables the vertical scrollbar.
void drgui_textbox_enable_horizontal_scrollbar | ( | drgui_element * | pTBElement | ) |
Enables the horizontal scrollbar.
void drgui_textbox_enable_vertical_scrollbar | ( | drgui_element * | pTBElement | ) |
Enables the vertical scrollbar.
bool drgui_textbox_find_and_replace_all | ( | drgui_element * | pTBElement, |
const char * | text, | ||
const char * | replacement | ||
) |
Finds every occurance of the given string and replaces it with another.
bool drgui_textbox_find_and_replace_next | ( | drgui_element * | pTBElement, |
const char * | text, | ||
const char * | replacement | ||
) |
Finds the next occurance of the given string and replaces it with another.
bool drgui_textbox_find_and_select_next | ( | drgui_element * | pTBElement, |
const char * | text | ||
) |
Finds and selects the next occurance of the given string, starting from the cursor and looping back to the start.
size_t drgui_textbox_get_cursor_column | ( | drgui_element * | pTBElement | ) |
Retrieves the index of the column the cursor is current sitting on.
size_t drgui_textbox_get_cursor_line | ( | drgui_element * | pTBElement | ) |
Retrieves the index of the line the cursor is current sitting on.
float drgui_textbox_get_cursor_width | ( | drgui_element * | pTBElement | ) |
Retrieves the width of the text cursor.
void* drgui_textbox_get_extra_data | ( | drgui_element * | pTBElement | ) |
Retrieves a pointer to the extra data associated with the given text box.
size_t drgui_textbox_get_extra_data_size | ( | drgui_element * | pTBElement | ) |
Retrieves the size of the extra data associated with the given text box.
drgui_font* drgui_textbox_get_font | ( | drgui_element * | pTBElement | ) |
Retrieves the font being used with the given text box.
drgui_element* drgui_textbox_get_horizontal_scrollbar | ( | drgui_element * | pTBElement | ) |
size_t drgui_textbox_get_line_count | ( | drgui_element * | pTBElement | ) |
Retrieves the number of lines in the given text box.
drgui_color drgui_textbox_get_line_numbers_background_color | ( | drgui_element * | pTBElement | ) |
drgui_color drgui_textbox_get_line_numbers_color | ( | drgui_element * | pTBElement | ) |
float drgui_textbox_get_line_numbers_padding | ( | drgui_element * | pTBElement | ) |
float drgui_textbox_get_line_numbers_width | ( | drgui_element * | pTBElement | ) |
float drgui_textbox_get_padding_horz | ( | drgui_element * | pTBElement | ) |
Retrieves the amound of horizontal padding to apply to the given text box.
float drgui_textbox_get_padding_vert | ( | drgui_element * | pTBElement | ) |
Retrieves the amound of vertical padding to apply to the given text box.
unsigned int drgui_textbox_get_redo_points_remaining_count | ( | drgui_element * | pTBElement | ) |
Retrieves the number of redo points remaining.
size_t drgui_textbox_get_selected_text | ( | drgui_element * | pTBElement, |
char * | textOut, | ||
size_t | textOutLength | ||
) |
Retrieves a copy of the selected text.
drgui_color drgui_textbox_get_selection_background_color | ( | drgui_element * | pTBElement | ) |
Retrieves the background color of selected text.
size_t drgui_textbox_get_text | ( | drgui_element * | pTBElement, |
char * | pTextOut, | ||
size_t | textOutSize | ||
) |
Retrieves the text of the given text box.
unsigned int drgui_textbox_get_undo_points_remaining_count | ( | drgui_element * | pTBElement | ) |
Retrieves the number of undo points remaining.
drgui_element* drgui_textbox_get_vertical_scrollbar | ( | drgui_element * | pTBElement | ) |
void drgui_textbox_hide_line_numbers | ( | drgui_element * | pTBElement | ) |
Hides the line numbers.
bool drgui_textbox_insert_text_at_cursor | ( | drgui_element * | pTBElement, |
const char * | text | ||
) |
Inserts a character at the position of the cursor.
bool drgui_textbox_is_anything_selected | ( | drgui_element * | pTBElement | ) |
Determines whether or not anything is selected in the given text box.
void drgui_textbox_move_cursor_to_end_of_text | ( | drgui_element * | pTBElement | ) |
Moves the caret to the end of the text.
void drgui_textbox_move_cursor_to_start_of_line_by_index | ( | drgui_element * | pTBElement, |
size_t | iLine | ||
) |
Moves the caret to the beginning of the line at the given index.
void drgui_textbox_on_capture_keyboard | ( | drgui_element * | pTBElement, |
drgui_element * | pPrevCapturedElement | ||
) |
on_capture_keyboard
void drgui_textbox_on_capture_mouse | ( | drgui_element * | pTBElement | ) |
on_capture_mouse
void drgui_textbox_on_key_down | ( | drgui_element * | pTBElement, |
drgui_key | key, | ||
int | stateFlags | ||
) |
on_key_down.
void drgui_textbox_on_key_up | ( | drgui_element * | pTBElement, |
drgui_key | key, | ||
int | stateFlags | ||
) |
on_key_up.
void drgui_textbox_on_mouse_button_dblclick | ( | drgui_element * | pTBElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
on_mouse_button_dblclick.
void drgui_textbox_on_mouse_button_down | ( | drgui_element * | pTBElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
on_mouse_button_down.
void drgui_textbox_on_mouse_button_up | ( | drgui_element * | pTBElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
on_mouse_button_up.
void drgui_textbox_on_mouse_move | ( | drgui_element * | pTBElement, |
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
on_mouse_move.
void drgui_textbox_on_mouse_wheel | ( | drgui_element * | pTBElement, |
int | delta, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
on_mouse_wheel
void drgui_textbox_on_paint | ( | drgui_element * | pTBElement, |
drgui_rect | relativeRect, | ||
void * | pPaintData | ||
) |
on_paint.
void drgui_textbox_on_printable_key_down | ( | drgui_element * | pTBElement, |
unsigned int | utf32, | ||
int | stateFlags | ||
) |
on_printable_key_down.
void drgui_textbox_on_release_keyboard | ( | drgui_element * | pTBElement, |
drgui_element * | pNewCapturedElement | ||
) |
on_release_keyboard
void drgui_textbox_on_release_mouse | ( | drgui_element * | pTBElement | ) |
on_release_mouse
void drgui_textbox_on_size | ( | drgui_element * | pTBElement, |
float | newWidth, | ||
float | newHeight | ||
) |
on_size.
bool drgui_textbox_redo | ( | drgui_element * | pTBElement | ) |
Performs a redo operation.
void drgui_textbox_select_all | ( | drgui_element * | pTBElement | ) |
Selects all of the text inside the text box.
void drgui_textbox_set_active_line_background_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
Sets the background color for the line the caret is currently sitting on.
void drgui_textbox_set_background_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
Sets the background color of the given text box.
void drgui_textbox_set_border_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
Sets the border color of the given text box.
void drgui_textbox_set_border_width | ( | drgui_element * | pTBElement, |
float | borderWidth | ||
) |
Sets the border width of the given text box.
void drgui_textbox_set_cursor_blink_rate | ( | drgui_element * | pTBElement, |
unsigned int | blinkRateInMilliseconds | ||
) |
Sets the blink rate of the cursor in milliseconds.
void drgui_textbox_set_cursor_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
Sets the color of the cursor of the given text box.
void drgui_textbox_set_cursor_width | ( | drgui_element * | pTBElement, |
float | cursorWidth | ||
) |
Sets the width of the text cursor.
void drgui_textbox_set_font | ( | drgui_element * | pTBElement, |
drgui_font * | pFont | ||
) |
Sets the font to use with the given text box.
void drgui_textbox_set_horizontal_align | ( | drgui_element * | pTBElement, |
drgui_text_engine_alignment | align | ||
) |
Sets the horizontal alignment of the given text box.
void drgui_textbox_set_line_numbers_background_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_textbox_set_line_numbers_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
void drgui_textbox_set_line_numbers_padding | ( | drgui_element * | pTBElement, |
float | lineNumbersPadding | ||
) |
void drgui_textbox_set_line_numbers_width | ( | drgui_element * | pTBElement, |
float | lineNumbersWidth | ||
) |
void drgui_textbox_set_on_cursor_move | ( | drgui_element * | pTBElement, |
drgui_textbox_on_cursor_move_proc | proc | ||
) |
Sets the function to call when the cursor moves.
void drgui_textbox_set_on_undo_point_changed | ( | drgui_element * | pTBElement, |
drgui_textbox_on_undo_point_changed_proc | proc | ||
) |
Sets the function to call when the undo point changes.
void drgui_textbox_set_padding | ( | drgui_element * | pTBElement, |
float | padding | ||
) |
Sets the amount of padding to apply to given text box.
void drgui_textbox_set_scrollbar_size | ( | drgui_element * | pTBElement, |
float | size | ||
) |
void drgui_textbox_set_selection_background_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
Sets the background color of selected text.
void drgui_textbox_set_text | ( | drgui_element * | pTBElement, |
const char * | text | ||
) |
Sets the text of the given text box.
void drgui_textbox_set_text_color | ( | drgui_element * | pTBElement, |
drgui_color | color | ||
) |
Sets the color of the text in teh given text box.
void drgui_textbox_set_vertical_align | ( | drgui_element * | pTBElement, |
drgui_text_engine_alignment | align | ||
) |
Sets the vertical alignment of the given text box.
void drgui_textbox_show_line_numbers | ( | drgui_element * | pTBElement | ) |
Shows the line numbers.
void drgui_textbox_step | ( | drgui_element * | pTBElement, |
unsigned int | milliseconds | ||
) |
Steps the text box to allow it to blink the cursor.
bool drgui_textbox_undo | ( | drgui_element * | pTBElement | ) |
Performs an undo operation.
drgui_tree_view_item* drgui_tv_create_item | ( | drgui_element * | pTVElement, |
drgui_tree_view_item * | pParent, | ||
size_t | extraDataSize, | ||
const void * | pExtraData | ||
) |
Creates a tree view item.
void drgui_tv_deselect_all_items | ( | drgui_element * | pTVElement | ) |
Deselects every tree-view item.
void drgui_tv_disable_multi_select | ( | drgui_element * | pTVElement | ) |
Disables multi-select.
void drgui_tv_enable_multi_select | ( | drgui_element * | pTVElement | ) |
Enables multi-select.
float drgui_tv_get_child_offset_x | ( | drgui_element * | pTVElement | ) |
Retrieves the amount of indentation to apply to each child item in the given tree-view.
drgui_color drgui_tv_get_default_background_color | ( | drgui_element * | pTVElement | ) |
Retrieves the default background color.
void* drgui_tv_get_extra_data | ( | drgui_element * | pTVElement | ) |
Retrieves a pointer to the buffer containing the given tree-view's extra data.
size_t drgui_tv_get_extra_data_size | ( | drgui_element * | pTVElement | ) |
Retrieves the size of the extra data associated with the given tree-view control.
drgui_tree_view_item* drgui_tv_get_first_selected_item | ( | drgui_element * | pTVElement | ) |
Retrieves the first selected item.
drgui_element* drgui_tv_get_horizontal_scrollbar | ( | drgui_element * | pTVElement | ) |
Retrieves a pointer to the horizontal scrollbar.
drgui_color drgui_tv_get_hovered_background_color | ( | drgui_element * | pTVElement | ) |
Retrieves the default background color of hovered items.
drgui_tree_view_item* drgui_tv_get_next_selected_item | ( | drgui_element * | pTVElement, |
drgui_tree_view_item * | pItem | ||
) |
Retrieves the next select item, not including the given item.
drgui_tree_view_item* drgui_tv_get_root_item | ( | drgui_element * | pTVElement | ) |
Retrieves a pointer to the root element of the given tree view control.
drgui_color drgui_tv_get_selected_background_color | ( | drgui_element * | pTVElement | ) |
Retrieves the default background color of selected items.
drgui_element* drgui_tv_get_vertical_scrollbar | ( | drgui_element * | pTVElement | ) |
Retrieves a pointer to the vertical scrollbar.
bool drgui_tv_is_multi_select_enabled | ( | drgui_element * | pTVElement | ) |
Determines whether or not multi-select is enabled.
bool drgui_tv_measure_item | ( | drgui_element * | pTVElement, |
drgui_tree_view_item * | pItem, | ||
float * | pWidthOut, | ||
float * | pHeightOut | ||
) |
Measures the given item.
void drgui_tv_on_mouse_button_dblclick | ( | drgui_element * | pTVElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse button double-click event needs to be processed for the given tree-view control.
void drgui_tv_on_mouse_button_down | ( | drgui_element * | pTVElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse button down event needs to be processed for the given tree-view control.
void drgui_tv_on_mouse_button_up | ( | drgui_element * | pTVElement, |
int | mouseButton, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse button up event needs to be processed for the given tree-view control.
void drgui_tv_on_mouse_leave | ( | drgui_element * | pTVElement | ) |
Called when the mouse leave event needs to be processed for the given tree-view control.
void drgui_tv_on_mouse_move | ( | drgui_element * | pTVElement, |
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse move event needs to be processed for the given tree-view control.
void drgui_tv_on_mouse_wheel | ( | drgui_element * | pTVElement, |
int | delta, | ||
int | relativeMousePosX, | ||
int | relativeMousePosY, | ||
int | stateFlags | ||
) |
Called when the mouse wheel event needs to be processed for the given tree-view control.
void drgui_tv_on_paint | ( | drgui_element * | pTVElement, |
drgui_rect | relativeClippingRect, | ||
void * | pPaintData | ||
) |
Called when the paint event needs to be processed for the given tree-view control.
void drgui_tv_on_size | ( | drgui_element * | pTVElement, |
float | newWidth, | ||
float | newHeight | ||
) |
Called when the size event needs to be processed for the given tree-view control.
void drgui_tv_set_child_offset_x | ( | drgui_element * | pTVElement, |
float | childOffsetX | ||
) |
Sets the amount of indentation to apply to each child item in the given tree-view.
void drgui_tv_set_default_background_color | ( | drgui_element * | pTVElement, |
drgui_color | color | ||
) |
Sets the default background color.
void drgui_tv_set_hovered_background_color | ( | drgui_element * | pTVElement, |
drgui_color | color | ||
) |
Sets the default background color of hovered items.
void drgui_tv_set_on_item_measure | ( | drgui_element * | pTVElement, |
drgui_tvi_measure_proc | proc | ||
) |
Sets the function to call when a tree-view item needs to be measured.
void drgui_tv_set_on_item_mouse_leave | ( | drgui_element * | pTVElement, |
drgui_tvi_on_mouse_leave_proc | proc | ||
) |
Sets the function call when the mouse leaves a tree-view item.
void drgui_tv_set_on_item_mouse_move | ( | drgui_element * | pTVElement, |
drgui_tvi_on_mouse_move_proc | proc | ||
) |
Sets the function to call when the mouse is moved while over a tree-view item.
void drgui_tv_set_on_item_paint | ( | drgui_element * | pTVElement, |
drgui_tvi_on_paint_proc | proc | ||
) |
Sets the function to call when a tree-view item needs to be drawn.
void drgui_tv_set_on_item_picked | ( | drgui_element * | pTVElement, |
drgui_tvi_on_picked_proc | proc | ||
) |
Sets the function to call when a tree-view item is picked.
void drgui_tv_set_selected_background_color | ( | drgui_element * | pTVElement, |
drgui_color | color | ||
) |
Sets the default background color of selected items.
void drgui_tvi_append | ( | drgui_tree_view_item * | pItem, |
drgui_tree_view_item * | pParent | ||
) |
Appends a tree view item as a child of the given parent item.
void drgui_tvi_append_sibling | ( | drgui_tree_view_item * | pItemToAppend, |
drgui_tree_view_item * | pItemToAppendTo | ||
) |
Appends the given tree view item to the given sibling.
void drgui_tvi_collapse | ( | drgui_tree_view_item * | pItem | ) |
Collapses the given item.
void drgui_tvi_delete | ( | drgui_tree_view_item * | pItem | ) |
Recursively deletes a tree view item.
void drgui_tvi_deselect | ( | drgui_tree_view_item * | pItem | ) |
Deselects the given item.
void drgui_tvi_expand | ( | drgui_tree_view_item * | pItem | ) |
Expands the given item.
int drgui_tvi_get_depth | ( | drgui_tree_view_item * | pItem | ) |
Retrieves the depth of the item.
void* drgui_tvi_get_extra_data | ( | drgui_tree_view_item * | pItem | ) |
Retrieves a pointer to the extra data associated with the given tree-view item.
size_t drgui_tvi_get_extra_data_size | ( | drgui_tree_view_item * | pItem | ) |
Retrieves the size of the extra data associated with the given tree-view item.
drgui_tree_view_item* drgui_tvi_get_first_child | ( | drgui_tree_view_item * | pItem | ) |
Retrieves a pointer to the first child of the given tree-view item.
drgui_tree_view_item* drgui_tvi_get_last_child | ( | drgui_tree_view_item * | pItem | ) |
Retrieves a pointer to the last child of the given tree-view item.
drgui_tree_view_item* drgui_tvi_get_next_sibling | ( | drgui_tree_view_item * | pItem | ) |
Retrieves a pointer to the next sibling of the given tree-view item.
drgui_tree_view_item* drgui_tvi_get_parent | ( | drgui_tree_view_item * | pItem | ) |
Retrieves the parent tree-view item.
drgui_tree_view_item* drgui_tvi_get_prev_sibling | ( | drgui_tree_view_item * | pItem | ) |
Retrieves a pointer to the previous sibling of the given tree-view item.
drgui_element* drgui_tvi_get_tree_view_element | ( | drgui_tree_view_item * | pItem | ) |
Retrieves the tree-view GUI element that owns the given item.
bool drgui_tvi_has_children | ( | drgui_tree_view_item * | pItem | ) |
Determines whether or not the given item has any children.
bool drgui_tvi_is_expanded | ( | drgui_tree_view_item * | pItem | ) |
Determines whether or not the given item is expanded.
bool drgui_tvi_is_selected | ( | drgui_tree_view_item * | pItem | ) |
Determines whether or not the given tree view item is selected.
drgui_tree_view_item* drgui_tvi_next_visible_non_child | ( | drgui_tree_view_item * | pItem, |
int * | pDepthInOut | ||
) |
Retrieves a pointer to the next visible item in the hierarchy that is not a child.
void drgui_tvi_prepend | ( | drgui_tree_view_item * | pItem, |
drgui_tree_view_item * | pParent | ||
) |
Prepends a tree view item as a child of the given parent item.
void drgui_tvi_prepend_sibling | ( | drgui_tree_view_item * | pItemToPrepend, |
drgui_tree_view_item * | pItemToPrependTo | ||
) |
Prepends the given tree view item to the given sibling.
void drgui_tvi_select | ( | drgui_tree_view_item * | pItem | ) |
Selects the given item.
void drgui_unmap_image_data | ( | drgui_image * | pImage | ) |
Unmaps the given image data.