125 area->butspacetype = value;
184 for (; item_from->identifier; item_from++) {
190 int totitem_prev = totitem;
191 if (
st &&
st->space_subtype_item_extend !=
NULL) {
192 st->space_subtype_item_extend(
C, &item, &totitem);
193 while (totitem_prev < totitem) {
194 item[totitem_prev++].
value |= item_from->value << 16;
199 item[totitem_prev++].
value = item_from->value << 16;
215 const int area_type = rna_Area_type_get(
ptr);
217 int value = area_type << 16;
226 if (
type ==
NULL || area_changing) {
233 if (
type->space_subtype_item_extend !=
NULL) {
234 value |= area_changing ?
area->butspacetype_subtype :
type->space_subtype_get(
area);
242 const int space_type = value >> 16;
249 rna_Area_type_set(
ptr, space_type);
251 if (
st &&
st->space_subtype_item_extend !=
NULL) {
252 area->butspacetype_subtype = value & 0xffff;
261 rna_Area_type_update(
C,
ptr);
263 if ((
area->type ==
st) && (
st->space_subtype_item_extend !=
NULL)) {
264 st->space_subtype_set(
area,
area->butspacetype_subtype);
266 area->butspacetype_subtype = 0;
276 if (region->regiondata !=
NULL) {
290 static void rna_View2D_region_to_view(
struct View2D *v2d,
float x,
float y,
float result[2])
295 static void rna_View2D_view_to_region(
306 static const char *rna_Screen_statusbar_info_get(
struct bScreen *
UNUSED(screen),
342 func,
"text",
NULL, 0,
"Text",
"New string for the header, None clears the text");
361 "Spaces contained in this area, the first being the active space "
362 "(NOTE: Useful for example to restore a previously used 3D view space "
363 "in a certain area to get the old view orientation)");
395 prop,
"rna_Area_ui_type_get",
"rna_Area_ui_type_set",
"rna_Area_ui_type_itemf");
405 prop,
"X Position",
"The window relative vertical location of the area");
411 prop,
"Y Position",
"The window relative horizontal location of the area");
431 static const float view_default[2] = {0.0f, 0.0f};
432 static const int region_default[2] = {0.0f, 0.0f};
434 func =
RNA_def_function(srna,
"region_to_view",
"rna_View2D_region_to_view");
436 parm =
RNA_def_float(func,
"x", 0, -FLT_MAX, FLT_MAX,
"x",
"Region x coordinate", -10000, 10000);
438 parm =
RNA_def_float(func,
"y", 0, -FLT_MAX, FLT_MAX,
"y",
"Region y coordinate", -10000, 10000);
453 func =
RNA_def_function(srna,
"view_to_region",
"rna_View2D_view_to_region");
456 func,
"x", 0.0f, -FLT_MAX, FLT_MAX,
"x",
"2D View x coordinate", -10000.0f, 10000.0f);
459 func,
"y", 0.0f, -FLT_MAX, FLT_MAX,
"y",
"2D View y coordinate", -10000.0f, 10000.0f);
461 RNA_def_boolean(func,
"clip", 1,
"Clip",
"Clip coordinates to the visible region");
469 "Region coordinates",
496 {
RGN_ALIGN_NONE,
"NONE", 0,
"None",
"Don't use any fixed alignment, fill available space"},
507 "Region floats on screen, doesn't use any fixed alignment"},
512 "Region is split horizontally and vertically"},
530 prop,
"X Position",
"The window relative vertical location of the region");
536 prop,
"Y Position",
"The window relative horizontal location of the region");
563 prop,
"Region Data",
"Region specific data (the type depends on the region type)");
581 srna,
"Screen",
"Screen data-block, defining the layout of areas in a window");
600 prop,
"User is Scrubbing",
"True when the user is scrubbing through time");
619 func =
RNA_def_function(srna,
"statusbar_info",
"rna_Screen_statusbar_info_get");
struct ScrArea * CTX_wm_area(const bContext *C)
struct Scene * CTX_data_scene(const bContext *C)
void CTX_wm_region_set(bContext *C, struct ARegion *region)
struct wmWindowManager * CTX_wm_manager(const bContext *C)
struct ViewLayer * CTX_data_view_layer(const bContext *C)
void CTX_wm_window_set(bContext *C, struct wmWindow *win)
struct ARegion * CTX_wm_region(const bContext *C)
void CTX_wm_area_set(bContext *C, struct ScrArea *area)
struct Main * CTX_data_main(const bContext *C)
struct wmWindow * CTX_wm_window(const bContext *C)
struct SpaceType * BKE_spacetype_from_id(int spaceid)
struct ARegionType * BKE_regiontype_from_id(const struct SpaceType *st, int regionid)
void DEG_tag_on_visible_update(struct Main *bmain, bool do_time)
#define RGN_ALIGN_ENUM_FROM_MASK(align)
@ SCREEN_COLLAPSE_STATUSBAR
const char * ED_info_statusbar_string(struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer)
void ED_area_tag_redraw(ScrArea *area)
void ED_screen_animation_timer_update(struct bScreen *screen, int redraws)
bScreen * ED_screen_animation_playing(const struct wmWindowManager *wm)
void ED_area_tag_refresh(ScrArea *area)
void ED_area_newspace(struct bContext *C, ScrArea *area, int type, bool skip_region_exit)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
bool UI_view2d_view_to_region_clip(const struct View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL()
void UI_view2d_region_to_view(const struct View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
void UI_view2d_view_to_region(const struct View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL()
return(oflags[bm->toolflag_index].f &oflag) !=0
static void area(int d1, int d2, int e1, int e2, float weights[2])
static const pxr::TfToken st("st", pxr::TfToken::Immortal)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
const PointerRNA PointerRNA_NULL
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
PropertyRNA * RNA_def_int_array(StructOrFunctionRNA *cont_, const char *identifier, int len, const int *default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
PropertyRNA * RNA_def_float_array(StructOrFunctionRNA *cont_, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_function_output(FunctionRNA *UNUSED(func), PropertyRNA *ret)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
const EnumPropertyItem DummyRNA_NULL_items[]
static void rna_def_view2d(BlenderRNA *brna)
static void rna_def_area(BlenderRNA *brna)
static void rna_def_view2d_api(StructRNA *srna)
const EnumPropertyItem rna_enum_region_type_items[]
static void rna_def_region(BlenderRNA *brna)
static void rna_def_area_spaces(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_area_api(StructRNA *srna)
void RNA_def_screen(BlenderRNA *brna)
static void rna_def_screen(BlenderRNA *brna)
const EnumPropertyItem rna_enum_space_type_items[]
bScreen * WM_window_get_active_screen(const wmWindow *win)