Blender V5.3
UI_interface_types.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <string>
12
13#include "BLI_string_ref.hh"
14
15namespace blender {
16
17struct bContext;
18
19namespace ui {
20struct Block;
21struct Button;
22struct Layout;
23struct TooltipData;
24
25/* names */
26#define UI_MAX_DRAW_STR 550
27#define UI_MAX_NAME_STR 256
28#define UI_MAX_SHORTCUT_STR 64
29
30#define RNA_NO_INDEX -1
31
32/* Menu Callbacks */
33
34using MenuCreateFunc = void (*)(bContext *C, Layout *layout, void *arg1);
35using MenuHandleFunc = void (*)(bContext *C, void *arg, int event);
36
43using MenuStepFunc = bool (*)(bContext *C, int direction, void *arg1);
44
45using CopyArgFunc = void *(*)(const void *arg);
46using FreeArgFunc = void (*)(void *arg);
47
49using ButtonToolTipFunc = std::string (*)(bContext *C, void *argN, StringRef tip);
50
57using ButtonToolTipCustomFunc = void (*)(bContext &C, TooltipData &data, Button *but, void *argN);
58
65
66} // namespace ui
67
68namespace ocio {
69class Display;
70} // namespace ocio
72
73} // namespace blender
#define Display
#define C
Definition RandGen.cpp:29
void(*)(bContext *C, Layout *layout, void *arg1) MenuCreateFunc
void(*)(void *arg) FreeArgFunc
bool(*)(bContext *C, int direction, void *arg1) MenuStepFunc
void(*)(bContext *C, void *arg, int event) MenuHandleFunc
void(*)(bContext &C, TooltipData &data, Button *but, void *argN) ButtonToolTipCustomFunc
void *(*)(const void *arg) CopyArgFunc
std::string(*)(bContext *C, void *argN, StringRef tip) ButtonToolTipFunc
BMesh Iterators.
BMesh const char void * data
ocio::Display ColorManagedDisplay