Blender V5.3
wm_operator_utils.cc File Reference
#include <cmath>
#include "BLI_array.hh"
#include "BLI_string.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_layer.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "MEM_guardedalloc.h"
#include "ED_object.hh"
#include "ED_screen.hh"

Go to the source code of this file.

Classes

struct  blender::ValueInteraction
struct  blender::ObCustomData_ForEditMode

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Generic Utilities
wmOperatorStatus blender::WM_operator_flag_only_pass_through_on_press (wmOperatorStatus retval, const wmEvent *event)
Value Interaction Helper

Possible additions (add as needed).

  • Int support.
  • Configurable motion (x/y).
static void blender::interactive_value_init (bContext *C, ValueInteraction *inter, const wmEvent *event, const float value_final, const float range[2])
static void blender::interactive_value_init_from_property (bContext *C, ValueInteraction *inter, const wmEvent *event, PointerRNA *ptr, PropertyRNA *prop)
static void blender::interactive_value_exit (ValueInteraction *inter)
static bool blender::interactive_value_update (ValueInteraction *inter, const wmEvent *event, float *r_value_final)
Object Edit Mode Coords (Modal Callbacks)
Note
We could support object mode coords too, it's just not needed at the moment.
static void blender::op_generic_value_exit (wmOperator *op)
static void blender::op_generic_value_restore (wmOperator *op)
static void blender::op_generic_value_cancel (bContext *, wmOperator *op)
static wmOperatorStatus blender::op_generic_value_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::op_generic_value_modal (bContext *C, wmOperator *op, const wmEvent *event)
void blender::WM_operator_type_modal_from_exec_for_object_edit_coords (wmOperatorType *ot)

Detailed Description

Utilities for Implementing Operators

Definition in file wm_operator_utils.cc.