Callbacks: exec invoke & modal now use a typed enum wmOperatorStatus. This helps avoid mistakes returning incompatible booleans or other values which don't make sense for operators to return. It also makes it more obvious functions in the WM API are intended to be used to calculate return values for operator callbacks. Operator enums have been moved into DNA_windowmanager_enums.h so this can be used in other headers without loading other includes indirectly. No functional changes expected. Ref !136227
24 lines
660 B
C++
24 lines
660 B
C++
/* SPDX-FileCopyrightText: 2008 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup editors
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
struct ARegion;
|
|
struct bContext;
|
|
struct wmEvent;
|
|
struct wmOperator;
|
|
|
|
/* `ed_util_imbuf.cc` */
|
|
|
|
void ED_imbuf_sample_draw(const bContext *C, ARegion *region, void *arg_info);
|
|
void ED_imbuf_sample_exit(bContext *C, wmOperator *op);
|
|
wmOperatorStatus ED_imbuf_sample_invoke(bContext *C, wmOperator *op, const wmEvent *event);
|
|
wmOperatorStatus ED_imbuf_sample_modal(bContext *C, wmOperator *op, const wmEvent *event);
|
|
void ED_imbuf_sample_cancel(bContext *C, wmOperator *op);
|
|
bool ED_imbuf_sample_poll(bContext *C);
|