Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ED_buttons.h « include « editors « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c96db25f069e4deb0c03496df86e56c290f4e622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2013 Blender Foundation. */

/** \file
 * \ingroup editors
 */

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

struct ScrArea;
struct SpaceProperties;
struct bContext;

/**
 * Fills an array with the tab context values for the properties editor. -1 signals a separator.
 *
 * \return The total number of items in the array returned.
 */
int ED_buttons_tabs_list(struct SpaceProperties *sbuts, short *context_tabs_array);
bool ED_buttons_tab_has_search_result(struct SpaceProperties *sbuts, int index);

void ED_buttons_search_string_set(struct SpaceProperties *sbuts, const char *value);
int ED_buttons_search_string_length(struct SpaceProperties *sbuts);
const char *ED_buttons_search_string_get(struct SpaceProperties *sbuts);

bool ED_buttons_should_sync_with_outliner(const struct bContext *C,
                                          const struct SpaceProperties *sbuts,
                                          struct ScrArea *area);
void ED_buttons_set_context(const struct bContext *C,
                            struct SpaceProperties *sbuts,
                            PointerRNA *ptr,
                            int context);

#ifdef __cplusplus
}
#endif