Blender  V2.93
ED_buttons.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2013, Blender Foundation
17  */
18 
23 #pragma once
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 struct ScrArea;
30 struct SpaceProperties;
31 struct bContext;
32 
33 int ED_buttons_tabs_list(struct SpaceProperties *sbuts, short *context_tabs_array);
34 bool ED_buttons_tab_has_search_result(struct SpaceProperties *sbuts, const int index);
35 
36 void ED_buttons_search_string_set(struct SpaceProperties *sbuts, const char *value);
38 const char *ED_buttons_search_string_get(struct SpaceProperties *sbuts);
39 
41  const struct SpaceProperties *sbuts,
42  struct ScrArea *area);
43 void ED_buttons_set_context(const struct bContext *C,
44  struct SpaceProperties *sbuts,
45  PointerRNA *ptr,
46  const int context);
47 
48 #ifdef __cplusplus
49 }
50 #endif
bool ED_buttons_should_sync_with_outliner(const struct bContext *C, const struct SpaceProperties *sbuts, struct ScrArea *area)
const char * ED_buttons_search_string_get(struct SpaceProperties *sbuts)
void ED_buttons_set_context(const struct bContext *C, struct SpaceProperties *sbuts, PointerRNA *ptr, const int context)
void ED_buttons_search_string_set(struct SpaceProperties *sbuts, const char *value)
bool ED_buttons_tab_has_search_result(struct SpaceProperties *sbuts, const int index)
int ED_buttons_tabs_list(struct SpaceProperties *sbuts, short *context_tabs_array)
int ED_buttons_search_string_length(struct SpaceProperties *sbuts)
#define C
Definition: RandGen.cpp:39
static void area(int d1, int d2, int e1, int e2, float weights[2])
struct SELECTID_Context context
Definition: select_engine.c:47
PointerRNA * ptr
Definition: wm_files.c:3157