Blender  V3.3
Classes | Typedefs | Functions
gizmo_library_intern.h File Reference
#include "gizmo_geometry.h"

Go to the source code of this file.

Classes

struct  GizmoCommonData
 
struct  GizmoInteraction
 

Typedefs

typedef struct GizmoCommonData GizmoCommonData
 
typedef struct GizmoInteraction GizmoInteraction
 

Functions

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 (struct wmGizmo *gz, GizmoCommonData *data, wmGizmoProperty *gz_prop, bool constrained, bool inverted)
 
void gizmo_property_value_reset (bContext *C, const struct wmGizmo *gz, GizmoInteraction *inter, wmGizmoProperty *gz_prop)
 
void gizmo_color_get (const struct wmGizmo *gz, bool highlight, float r_color[4])
 
bool gizmo_window_project_2d (bContext *C, const struct wmGizmo *gz, const float mval[2], int axis, bool use_offset, float r_co[2])
 
bool gizmo_window_project_3d (bContext *C, const struct wmGizmo *gz, const float mval[2], bool use_offset, float r_co[3])
 
void wm_gizmo_geometryinfo_draw (const struct 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)
 

Typedef Documentation

◆ GizmoCommonData

Data for common interactions. Used in gizmo_library_utils.c functions.

◆ GizmoInteraction

Function Documentation

◆ gizmo_color_get()

void gizmo_color_get ( const struct wmGizmo gz,
bool  highlight,
float  r_color[4] 
)

◆ gizmo_offset_from_value()

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

Definition at line 54 of file gizmo_library_utils.c.

References data, and gizmo_offset_from_value_constr().

Referenced by gizmo_arrow_exit(), and gizmo_arrow_modal().

◆ gizmo_property_data_update()

void gizmo_property_data_update ( struct wmGizmo gz,
GizmoCommonData data,
wmGizmoProperty gz_prop,
bool  constrained,
bool  inverted 
)

◆ gizmo_property_value_reset()

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

Referenced by gizmo_arrow_exit().

◆ 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 struct wmGizmo gz,
const float  mval[2],
int  axis,
bool  use_offset,
float  r_co[2] 
)

◆ gizmo_window_project_3d()

bool gizmo_window_project_3d ( bContext C,
const struct wmGizmo gz,
const float  mval[2],
bool  use_offset,
float  r_co[3] 
)

◆ wm_gizmo_geometryinfo_draw()

void wm_gizmo_geometryinfo_draw ( const struct GizmoGeomInfo info,
bool  select,
const float  color[4] 
)

Main draw call for GizmoGeomInfo data

◆ 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 
)