Blender V5.0
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  GizmoCommonData
struct  GizmoInteraction

Macros

#define DIAL_RESOLUTION   48
#define WM_GIZMO_SELECT_BIAS   6.0f

Functions

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

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 26 of file gizmo_library_intern.hh.

Referenced by WM_gizmo_select_bias().

Function Documentation

◆ gizmo_color_get()

◆ gizmo_find_from_properties()

wmGizmo * gizmo_find_from_properties ( const IDProperty * properties,
const int spacetype,
const int regionid )

◆ gizmo_offset_from_value()

float gizmo_offset_from_value ( GizmoCommonData * data,
float value,
bool constrained,
bool inverted )

Definition at line 62 of file gizmo_library_utils.cc.

References data, and gizmo_offset_from_value_constr().

Referenced by gizmo_arrow_exit(), and gizmo_arrow_modal().

◆ gizmo_property_data_update()

◆ gizmo_property_value_reset()

void gizmo_property_value_reset ( bContext * C,
const wmGizmo * gz,
GizmoInteraction * inter,
wmGizmoProperty * gz_prop )

◆ gizmo_value_from_offset()

float gizmo_value_from_offset ( GizmoCommonData * data,
GizmoInteraction * inter,
float offset,
bool constrained,
bool inverted,
bool use_precision )

◆ gizmo_window_project_2d()

bool gizmo_window_project_2d ( bContext * C,
const wmGizmo * gz,
const float mval[2],
int axis,
bool use_offset,
float r_co[2] )

◆ gizmo_window_project_3d()

◆ wm_gizmo_geometryinfo_draw()

◆ WM_gizmo_select_bias()

float WM_gizmo_select_bias ( bool select)
inlinestatic

◆ wm_gizmo_vec_draw()

void wm_gizmo_vec_draw ( const float color[4],
const float(*) verts[3],
uint vert_count,
uint pos,
uint primitive_type )