Blender  V2.93
buttons_intern.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) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "BLI_bitmap.h"
27 #include "DNA_listBase.h"
28 #include "RNA_types.h"
29 
30 struct ARegionType;
31 struct ID;
32 struct SpaceProperties;
33 struct Tex;
34 struct bContext;
35 struct bContextDataResult;
36 struct bNode;
37 struct bNodeTree;
38 struct wmOperatorType;
39 
48 };
49 
50 /* context data */
51 
52 typedef struct ButsContextPath {
54  int len;
55  int flag;
58 
59 typedef struct ButsTextureUser {
61 
62  struct ID *id;
63 
66 
67  struct bNodeTree *ntree;
68  struct bNode *node;
69 
70  const char *category;
71  int icon;
72  const char *name;
73 
74  int index;
76 
77 typedef struct ButsContextTexture {
79 
80  struct Tex *texture;
81 
83  int index;
85 
86 /* internal exports only */
87 
88 /* buttons_context.c */
89 void buttons_context_compute(const struct bContext *C, struct SpaceProperties *sbuts);
90 int buttons_context(const struct bContext *C,
91  const char *member,
92  struct bContextDataResult *result);
93 void buttons_context_register(struct ARegionType *art);
94 struct ID *buttons_context_id_path(const struct bContext *C);
95 
96 extern const char *buttons_context_dir[]; /* doc access */
97 
98 /* buttons_texture.c */
99 void buttons_texture_context_compute(const struct bContext *C, struct SpaceProperties *sbuts);
100 
101 /* buttons_ops.c */
unsigned int BLI_bitmap
Definition: BLI_bitmap.h:32
These structs are the foundation for all linked lists in the library system.
#define C
Definition: RandGen.cpp:39
#define UI_MAX_NAME_STR
Definition: UI_interface.h:91
void BUTTONS_OT_context_menu(struct wmOperatorType *ot)
Definition: buttons_ops.c:171
struct ID * buttons_context_id_path(const struct bContext *C)
const char * buttons_context_dir[]
void BUTTONS_OT_directory_browse(struct wmOperatorType *ot)
Definition: buttons_ops.c:385
void BUTTONS_OT_toggle_pin(struct wmOperatorType *ot)
Definition: buttons_ops.c:142
void buttons_context_compute(const struct bContext *C, struct SpaceProperties *sbuts)
void BUTTONS_OT_file_browse(struct wmOperatorType *ot)
Definition: buttons_ops.c:358
struct ButsTextureUser ButsTextureUser
void buttons_texture_context_compute(const struct bContext *C, struct SpaceProperties *sbuts)
struct ButsContextPath ButsContextPath
struct ButsContextTexture ButsContextTexture
void BUTTONS_OT_start_filter(struct wmOperatorType *ot)
Definition: buttons_ops.c:76
int buttons_context(const struct bContext *C, const char *member, struct bContextDataResult *result)
void BUTTONS_OT_clear_filter(struct wmOperatorType *ot)
Definition: buttons_ops.c:101
void buttons_context_register(struct ARegionType *art)
PointerRNA ptr[8]
struct ButsTextureUser * user
struct Tex * texture
const char * category
struct ButsTextureUser * prev
struct ID * id
struct bNodeTree * ntree
const char * name
struct bNode * node
struct ButsTextureUser * next
PointerRNA ptr
PropertyRNA * prop
Definition: DNA_ID.h:273
BLI_bitmap * tab_search_results
char search_string[UI_MAX_NAME_STR]
wmOperatorType * ot
Definition: wm_files.c:3156