Blender  V3.3
buttons_intern.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #include "BLI_bitmap.h"
11 #include "DNA_listBase.h"
12 #include "RNA_types.h"
13 
14 struct ARegionType;
15 struct ID;
16 struct SpaceProperties;
17 struct Tex;
18 struct bContext;
19 struct bContextDataResult;
20 struct bNode;
21 struct bNodeSocket;
22 struct bNodeTree;
23 struct wmOperatorType;
24 
33 };
34 
35 /* context data */
36 
37 typedef struct ButsContextPath {
39  int len;
40  int flag;
43 
44 typedef struct ButsTextureUser {
46 
47  struct ID *id;
48 
51 
52  struct bNodeTree *ntree;
53  struct bNode *node;
55 
56  const char *category;
57  int icon;
58  const char *name;
59 
60  int index;
62 
63 typedef struct ButsContextTexture {
65 
66  struct Tex *texture;
67 
69  int index;
71 
72 /* internal exports only */
73 
74 /* buttons_context.c */
75 
76 void buttons_context_compute(const struct bContext *C, struct SpaceProperties *sbuts);
77 int buttons_context(const struct bContext *C,
78  const char *member,
79  struct bContextDataResult *result);
80 void buttons_context_register(struct ARegionType *art);
81 struct ID *buttons_context_id_path(const struct bContext *C);
82 
83 extern const char *buttons_context_dir[]; /* doc access */
84 
85 /* buttons_texture.c */
86 
87 void buttons_texture_context_compute(const struct bContext *C, struct SpaceProperties *sbuts);
88 
89 /* buttons_ops.c */
90 
unsigned int BLI_bitmap
Definition: BLI_bitmap.h:16
These structs are the foundation for all linked lists in the library system.
#define C
Definition: RandGen.cpp:25
#define UI_MAX_NAME_STR
Definition: UI_interface.h:92
void BUTTONS_OT_context_menu(struct wmOperatorType *ot)
Definition: buttons_ops.c:156
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:371
void BUTTONS_OT_toggle_pin(struct wmOperatorType *ot)
Definition: buttons_ops.c:127
void buttons_context_compute(const struct bContext *C, struct SpaceProperties *sbuts)
void BUTTONS_OT_file_browse(struct wmOperatorType *ot)
Definition: buttons_ops.c:345
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:61
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:86
void buttons_context_register(struct ARegionType *art)
PointerRNA ptr[8]
struct ButsTextureUser * user
struct Tex * texture
struct bNodeSocket * socket
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:368
BLI_bitmap * tab_search_results
char search_string[UI_MAX_NAME_STR]
wmOperatorType * ot
Definition: wm_files.c:3479