Blender
V3.3
|
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "GPU_batch.h"
#include "GPU_immediate.h"
#include "GPU_state.h"
#include "BLI_blenlib.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "DNA_brush_types.h"
#include "DNA_curve_types.h"
#include "DNA_dynamicpaint_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_workspace_types.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "BKE_appdir.h"
#include "BKE_icons.h"
#include "BKE_studiolight.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_thumbs.h"
#include "BLF_api.h"
#include "DEG_depsgraph.h"
#include "DRW_engine.h"
#include "ED_datafiles.h"
#include "ED_keyframes_draw.h"
#include "ED_render.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
Go to the source code of this file.
Functions | |
static void | icon_draw_rect_input_text (const rctf *rect, const float color[4], const char *str, float font_size) |
static void | icon_draw_rect_input_symbol (const rctf *rect, const float color[4], const char *str) |
void | icon_draw_rect_input (float x, float y, int w, int h, float UNUSED(alpha), short event_type, short UNUSED(event_value)) |
A special set of icons to represent input devices, this is a mix of text (via fonts) and a handful of custom glyphs for special keys.
Event codes are used as identifiers.
Definition in file interface_icons_event.c.
void icon_draw_rect_input | ( | float | x, |
float | y, | ||
int | w, | ||
int | h, | ||
float | UNUSEDalpha, | ||
short | event_type, | ||
short | UNUSEDevent_value | ||
) |
Definition at line 94 of file interface_icons_event.c.
References color, EVT_AKEY, EVT_DELKEY, EVT_DOWNARROWKEY, EVT_ENDKEY, EVT_ESCKEY, EVT_F12KEY, EVT_F1KEY, EVT_F9KEY, EVT_HOMEKEY, EVT_LEFTALTKEY, EVT_LEFTARROWKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_OSKEY, EVT_PAGEDOWNKEY, EVT_PAGEUPKEY, EVT_RETKEY, EVT_RIGHTARROWKEY, EVT_SPACEKEY, EVT_TABKEY, EVT_UPARROWKEY, EVT_ZKEY, GPU_line_width(), icon_draw_rect_input_symbol(), icon_draw_rect_input_text(), SNPRINTF, str, TH_TEXT, UI_CNR_ALL, UI_draw_roundbox_aa(), UI_draw_roundbox_corner_set(), UI_GetThemeColor4fv(), w(), x, rctf::xmin, and y.
Referenced by icon_draw_size().
|
static |
Definition at line 81 of file interface_icons_event.c.
References BLF_batch_draw_flush(), BLF_color4fv(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, blf_mono_font, BLF_position(), BLF_size(), color, str, x, rctf::xmin, y, and rctf::ymin.
Referenced by icon_draw_rect_input().
|
static |
Definition at line 63 of file interface_icons_event.c.
References BLF_batch_draw_flush(), BLF_color4fv(), BLF_default(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_position(), BLF_size(), BLF_width_and_height(), color, height, str, width, x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by icon_draw_rect_input().