Blender V5.3
gizmo_library_intern.hh File Reference
#include "DNA_userdef_types.h"
#include "gizmo_geometry.h"

Go to the source code of this file.

Classes

struct  blender::GizmoCommonData
struct  blender::GizmoInteraction

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define DIAL_RESOLUTION   48
#define WM_GIZMO_SELECT_BIAS   6.0f

Functions

static float blender::WM_gizmo_select_bias (bool select)
float blender::gizmo_offset_from_value (GizmoCommonData *data, float value, bool constrained, bool inverted)
float blender::gizmo_value_from_offset (GizmoCommonData *data, GizmoInteraction *inter, float offset, bool constrained, bool inverted, bool use_precision)
void blender::gizmo_property_data_update (wmGizmo *gz, GizmoCommonData *data, wmGizmoProperty *gz_prop, bool constrained, bool inverted)
void blender::gizmo_property_value_reset (bContext *C, const wmGizmo *gz, GizmoInteraction *inter, wmGizmoProperty *gz_prop)
void blender::gizmo_color_get (const wmGizmo *gz, bool highlight, float r_color[4])
bool blender::gizmo_window_project_2d (bContext *C, const wmGizmo *gz, const float mval[2], int axis, bool use_offset, float r_co[2])
bool blender::gizmo_window_project_3d (bContext *C, const wmGizmo *gz, const float mval[2], bool use_offset, float r_co[3])
void blender::wm_gizmo_geometryinfo_draw (const GizmoGeomInfo *info, const bool, const float color[4])
void blender::wm_gizmo_vec_draw (const float color[4], const float(*verts)[3], uint vert_count, uint pos, uint primitive_type)
RNA Utils
wmGizmo * blender::gizmo_find_from_properties (const IDProperty *properties, const int spacetype, const int regionid)

Macro Definition Documentation

◆ DIAL_RESOLUTION

#define DIAL_RESOLUTION   48

◆ WM_GIZMO_SELECT_BIAS

#define WM_GIZMO_SELECT_BIAS   6.0f

This bias is to be applied on wire gizmos or any small gizmos which may be difficult to pick otherwise. The value is defined in logical pixels.

Definition at line 28 of file gizmo_library_intern.hh.

Referenced by blender::WM_gizmo_select_bias().