Blender  V3.3
Functions
interface_icons_event.c File Reference
#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))
 

Detailed Description

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.

Function Documentation

◆ icon_draw_rect_input()

void icon_draw_rect_input ( float  x,
float  y,
int  w,
int  h,
float   UNUSEDalpha,
short  event_type,
short   UNUSEDevent_value 
)

◆ icon_draw_rect_input_symbol()

static void icon_draw_rect_input_symbol ( const rctf rect,
const float  color[4],
const char *  str 
)
static

◆ icon_draw_rect_input_text()

static void icon_draw_rect_input_text ( const rctf rect,
const float  color[4],
const char *  str,
float  font_size 
)
static