Blender V2.61 - r43446
|
Go to the source code of this file.
Classes | |
struct | NumInput |
Defines | |
#define | NUM_NULL_ONE 2 |
#define | NUM_NO_NEGATIVE 4 |
#define | NUM_NO_ZERO 8 |
#define | NUM_NO_FRACTION 16 |
#define | NUM_AFFECT_ALL 32 |
#define | NUM_MODAL_INCREMENT_UP 18 |
#define | NUM_MODAL_INCREMENT_DOWN 19 |
Typedefs | |
typedef struct NumInput | NumInput |
Functions | |
void | initNumInput (NumInput *n) |
void | outputNumInput (NumInput *n, char *str) |
short | hasNumInput (NumInput *n) |
void | applyNumInput (NumInput *n, float *vec) |
char | handleNumInput (NumInput *n, struct wmEvent *event) |
Definition in file ED_numinput.h.
#define NUM_AFFECT_ALL 32 |
Definition at line 46 of file ED_numinput.h.
Referenced by applyNumInput(), initBoneSize(), initResize(), and outputNumInput().
#define NUM_MODAL_INCREMENT_DOWN 19 |
Definition at line 57 of file ED_numinput.h.
Referenced by handleNumInput(), and transform_modal_keymap().
#define NUM_MODAL_INCREMENT_UP 18 |
Definition at line 56 of file ED_numinput.h.
Referenced by handleNumInput(), and transform_modal_keymap().
#define NUM_NO_FRACTION 16 |
Definition at line 45 of file ED_numinput.h.
Referenced by createTransData(), ed_marker_move_init(), handleNumInput(), and ringsel_init().
#define NUM_NO_NEGATIVE 4 |
Definition at line 43 of file ED_numinput.h.
Referenced by handleNumInput(), initBevel(), initToSphere(), and ringsel_init().
#define NUM_NO_ZERO 8 |
Definition at line 44 of file ED_numinput.h.
Referenced by applyNumInput(), initCurveShrinkFatten(), and initResize().
#define NUM_NULL_ONE 2 |
Definition at line 42 of file ED_numinput.h.
Referenced by applyNumInput(), initBoneSize(), initResize(), initTimeScale(), and initToSphere().
void applyNumInput | ( | NumInput * | n, |
float * | vec | ||
) |
Definition at line 132 of file numinput.c.
References NumInput::ctrl, NumInput::flag, hasNumInput(), i, NumInput::idx, NumInput::idx_max, NumInput::inv, NUM_AFFECT_ALL, NUM_NO_ZERO, NUM_NULL_ONE, and NumInput::val.
Referenced by BakeTime(), Bevel(), BevelWeight(), BoneEnvelope(), BoneRoll(), BoneSize(), Crease(), CurveShrinkFatten(), ed_marker_move_modal(), EdgeSlide(), postConstraintChecks(), PushPull(), Resize(), ringcut_modal(), Rotation(), SeqSlide(), Shear(), ShrinkFatten(), Tilt(), TimeScale(), TimeSlide(), TimeTranslate(), ToSphere(), Trackball(), Translation(), and Warp().
Definition at line 164 of file numinput.c.
References ABS, wmEvent::alt, BACKSPACEKEY, NumInput::ctrl, EIGHTKEY, EVT_MODAL_MAP, fabsf, FIVEKEY, NumInput::flag, FOURKEY, NumInput::idx, NumInput::idx_max, NumInput::increment, NumInput::inv, MINUSKEY, NINEKEY, NUM_MODAL_INCREMENT_DOWN, NUM_MODAL_INCREMENT_UP, NUM_NO_FRACTION, NUM_NO_NEGATIVE, ONEKEY, PAD0, PAD1, PAD2, PAD3, PAD4, PAD5, PAD6, PAD7, PAD8, PAD9, PADMINUS, PADPERIOD, PADSLASHKEY, PERIODKEY, SEVENKEY, SIXKEY, SLASHKEY, TABKEY, THREEKEY, TWOKEY, wmEvent::type, NumInput::val, wmEvent::val, and ZEROKEY.
Referenced by ed_marker_move_modal(), ringcut_modal(), and transformEvent().
short hasNumInput | ( | NumInput * | n | ) |
Definition at line 120 of file numinput.c.
References NumInput::ctrl, i, and NumInput::idx_max.
Referenced by applyAxisConstraintRot(), applyNumInput(), applyObjectConstraintRot(), BakeTime(), Bevel(), BevelWeight(), BoneEnvelope(), BoneRoll(), BoneSize(), Crease(), CurveShrinkFatten(), ed_marker_move_modal(), EdgeSlide(), headerBoneSize(), headerResize(), headerSeqSlide(), headerTimeScale(), headerTimeSlide(), headerTimeTranslate(), headerTranslation(), postConstraintChecks(), PushPull(), Resize(), Rotation(), Shear(), ShrinkFatten(), Tilt(), ToSphere(), Trackball(), Translation(), and Warp().
void initNumInput | ( | NumInput * | n | ) |
Definition at line 47 of file numinput.c.
References NumInput::ctrl, NumInput::flag, NumInput::idx, NumInput::idx_max, NumInput::inv, and NumInput::val.
Referenced by ed_marker_move_init(), initTransInfo(), and ringsel_init().
void outputNumInput | ( | NumInput * | n, |
char * | str | ||
) |
Definition at line 64 of file numinput.c.
References BLI_snprintf(), NumInput::ctrl, NumInput::flag, i, NumInput::idx, NumInput::idx_max, NumInput::inv, NUM_AFFECT_ALL, and NumInput::val.
Referenced by BakeTime(), Bevel(), BevelWeight(), BoneEnvelope(), BoneRoll(), Crease(), CurveShrinkFatten(), ed_marker_move_modal(), EdgeSlide(), headerBoneSize(), headerResize(), headerSeqSlide(), headerTimeScale(), headerTimeSlide(), headerTimeTranslate(), headerTranslation(), PushPull(), Rotation(), Shear(), ShrinkFatten(), Tilt(), ToSphere(), Trackball(), and Warp().