Blender  V3.3
Public Attributes | List of all members
NumInput Struct Reference

#include <ED_numinput.h>

Public Attributes

short idx_max
 
int unit_sys
 
int unit_type [NUM_MAX_ELEMENTS]
 
bool unit_use_radians
 
short flag
 
short val_flag [NUM_MAX_ELEMENTS]
 
float val [NUM_MAX_ELEMENTS]
 
float val_org [NUM_MAX_ELEMENTS]
 
float val_inc [NUM_MAX_ELEMENTS]
 
short idx
 
char str [NUM_STR_REP_LEN]
 
int str_cur
 

Detailed Description

Definition at line 18 of file ED_numinput.h.

Member Data Documentation

◆ flag

short NumInput::flag

Flags affecting all values' behavior

Definition at line 27 of file ED_numinput.h.

Referenced by applyNumInput(), handleNumInput(), hasNumInput(), initNumInput(), and outputNumInput().

◆ idx

short NumInput::idx

Active element/value

Definition at line 38 of file ED_numinput.h.

Referenced by applyNumInput(), handleNumInput(), initNumInput(), and outputNumInput().

◆ idx_max

short NumInput::idx_max

◆ str

char NumInput::str[NUM_STR_REP_LEN]

String as typed by user for edited value (we assume ASCII world!)

Definition at line 40 of file ED_numinput.h.

Referenced by editstr_insert_at_cursor(), handleNumInput(), initNumInput(), knife_reset_snap_angle_input(), outputNumInput(), and value_to_editstr().

◆ str_cur

int NumInput::str_cur

Current position of cursor in edited value str (first byte of "current" letter, so 0 for an empty str)

Definition at line 43 of file ED_numinput.h.

Referenced by editstr_insert_at_cursor(), handleNumInput(), initNumInput(), knife_reset_snap_angle_input(), knifetool_modal(), outputNumInput(), and value_to_editstr().

◆ unit_sys

int NumInput::unit_sys

◆ unit_type

int NumInput::unit_type[NUM_MAX_ELEMENTS]

◆ unit_use_radians

bool NumInput::unit_use_radians

Definition at line 24 of file ED_numinput.h.

Referenced by handleNumInput(), initNumInput(), and outputNumInput().

◆ val

float NumInput::val[NUM_MAX_ELEMENTS]

Direct value of the input

Definition at line 31 of file ED_numinput.h.

Referenced by applyNumInput(), handleNumInput(), initNumInput(), knife_reset_snap_angle_input(), outputNumInput(), and value_to_editstr().

◆ val_flag

short NumInput::val_flag[NUM_MAX_ELEMENTS]

◆ val_inc

float NumInput::val_inc[NUM_MAX_ELEMENTS]

Increment steps

Definition at line 35 of file ED_numinput.h.

Referenced by handleNumInput(), and initNumInput().

◆ val_org

float NumInput::val_org[NUM_MAX_ELEMENTS]

Original value of the input, for reset

Definition at line 33 of file ED_numinput.h.

Referenced by applyNumInput(), handleNumInput(), and initNumInput().


The documentation for this struct was generated from the following file: