Blender  V2.93
Public Attributes | List of all members
wmDropBox Struct Reference

#include <WM_types.h>

Public Attributes

struct wmDropBoxnext
 
struct wmDropBoxprev
 
bool(* poll )(struct bContext *, struct wmDrag *, const wmEvent *, const char **)
 
void(* copy )(struct wmDrag *, struct wmDropBox *)
 
void(* cancel )(struct Main *, struct wmDrag *, struct wmDropBox *)
 
wmOperatorTypeot
 
struct IDPropertyproperties
 
struct PointerRNAptr
 
short opcontext
 

Detailed Description

Dropboxes are like keymaps, part of the screen/area/region definition. Allocation and free is on startup and exit.

Definition at line 929 of file WM_types.h.

Member Data Documentation

◆ cancel

void(* wmDropBox::cancel) (struct Main *, struct wmDrag *, struct wmDropBox *)

If the operator is cancelled (returns OPERATOR_CANCELLED), this can be used for cleanup of copy() resources.

Definition at line 942 of file WM_types.h.

Referenced by WM_dropbox_add().

◆ copy

void(* wmDropBox::copy) (struct wmDrag *, struct wmDropBox *)

Before exec, this copies drag info to #wmDrop properties.

Definition at line 936 of file WM_types.h.

Referenced by WM_dropbox_add().

◆ next

struct wmDropBox* wmDropBox::next

Definition at line 930 of file WM_types.h.

◆ opcontext

short wmDropBox::opcontext

Default invoke.

Definition at line 956 of file WM_types.h.

Referenced by WM_dropbox_add().

◆ ot

wmOperatorType* wmDropBox::ot

If poll succeeds, operator is called. Not saved in file, so can be pointer.

Definition at line 948 of file WM_types.h.

Referenced by WM_dropbox_add().

◆ poll

bool(* wmDropBox::poll) (struct bContext *, struct wmDrag *, const wmEvent *, const char **)

Test if the dropbox is active, then can print optype name.

Definition at line 933 of file WM_types.h.

Referenced by WM_dropbox_add().

◆ prev

struct wmDropBox * wmDropBox::prev

Definition at line 930 of file WM_types.h.

◆ properties

struct IDProperty* wmDropBox::properties

Operator properties, assigned to ptr->data and can be written to a file.

Definition at line 951 of file WM_types.h.

Referenced by WM_dropbox_add().

◆ ptr

struct PointerRNA* wmDropBox::ptr

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