Blender V4.3
interface_icons_event.cc File Reference
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLF_api.hh"
#include "BLT_translation.hh"
#include "UI_interface.hh"
#include "interface_intern.hh"

Go to the source code of this file.

Functions

static int inverted_icon (int icon_id)
 
static void icon_draw_icon (const rctf *rect, const int icon_id, const float aspect, const float alpha, const bool inverted)
 
static void icon_draw_rect_input_text (const rctf *rect, const char *str, const float aspect, const float alpha, const bool inverted, const int icon_bg=ICON_KEY_EMPTY1)
 
float ui_event_icon_offset (const int icon_id)
 
void icon_draw_rect_input (const float x, const float y, const int w, const int h, const int icon_id, const float aspect, const float alpha, const bool inverted)
 

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.cc.

Function Documentation

◆ icon_draw_icon()

static void icon_draw_icon ( const rctf * rect,
const int icon_id,
const float aspect,
const float alpha,
const bool inverted )
static

◆ icon_draw_rect_input()

◆ icon_draw_rect_input_text()

static void icon_draw_rect_input_text ( const rctf * rect,
const char * str,
const float aspect,
const float alpha,
const bool inverted,
const int icon_bg = ICON_KEY_EMPTY1 )
static

◆ inverted_icon()

static int inverted_icon ( int icon_id)
static

Definition at line 25 of file interface_icons_event.cc.

Referenced by icon_draw_icon().

◆ ui_event_icon_offset()

float ui_event_icon_offset ( const int icon_id)