Blender V5.3
interface_icons_event.cc File Reference
#include "BLI_rect.hh"
#include "BLI_string_utf8.hh"
#include "BLF_api.hh"
#include "BLT_translation.hh"
#include "interface_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ui

Functions

static int blender::ui::inverted_icon (int icon_id)
static void blender::ui::icon_draw_icon (const rctf *rect, const int icon_id, const float aspect, const float alpha, const bool inverted)
static void blender::ui::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 void blender::ui::icon_draw_rect_input_icon (const rctf *rect, const int icon, const float aspect, const float alpha, const bool inverted, const int icon_bg=ICON_KEY_EMPTY1)
float blender::ui::event_icon_offset (const int icon_id)
void blender::ui::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.