Blender V4.3
ARegionType Struct Reference

#include <BKE_screen.hh>

Public Attributes

ARegionTypenext
 
ARegionTypeprev
 
int regionid
 
void(* init )(wmWindowManager *wm, ARegion *region)
 
void(* exit )(wmWindowManager *wm, ARegion *region)
 
bool(* poll )(const RegionPollParams *params)
 
void(* draw )(const bContext *C, ARegion *region)
 
void(* draw_overlay )(const bContext *C, ARegion *region)
 
void(* layout )(const bContext *C, ARegion *region)
 
int(* snap_size )(const ARegion *region, int size, int axis)
 
void(* listener )(const wmRegionListenerParams *params)
 
void(* message_subscribe )(const wmRegionMessageSubscribeParams *params)
 
void(* free )(ARegion *)
 
void *(* duplicate )(void *poin)
 
void(* operatortypes )()
 
void(* keymap )(wmKeyConfig *keyconf)
 
void(* cursor )(wmWindow *win, ScrArea *area, ARegion *region)
 
bContextDataCallback context
 
void(* on_poll_success )(const bContext *C, ARegion *region)
 
void(* on_user_resize )(const ARegion *region)
 
void(* on_view2d_changed )(const bContext *C, ARegion *region)
 
ListBase drawcalls
 
ListBase paneltypes
 
ListBase headertypes
 
int minsizex
 
int minsizey
 
int prefsizex
 
int prefsizey
 
int keymapflag
 
short do_lock
 
short lock
 
bool clip_gizmo_events_by_ui
 
short event_cursor
 

Detailed Description

Definition at line 189 of file BKE_screen.hh.

Member Data Documentation

◆ clip_gizmo_events_by_ui

bool ARegionType::clip_gizmo_events_by_ui

Don't handle gizmos events behind uiBlock's with UI_BLOCK_CLIP_EVENTS flag set.

Definition at line 279 of file BKE_screen.hh.

Referenced by ED_spacetype_node(), and ED_spacetype_sequencer().

◆ context

bContextDataCallback ARegionType::context

Definition at line 237 of file BKE_screen.hh.

Referenced by ED_spacetype_image(), ED_spacetype_outliner(), and ED_spacetype_view3d().

◆ cursor

void(* ARegionType::cursor) (wmWindow *win, ScrArea *area, ARegion *region)

◆ do_lock

short ARegionType::do_lock

Definition at line 277 of file BKE_screen.hh.

◆ draw

◆ draw_overlay

void(* ARegionType::draw_overlay) (const bContext *C, ARegion *region)

Handler to draw overlays. This handler is called every draw loop.

Note
Some editors should return early if the interface is locked (check with CTX_wm_interface_locked) to avoid accessing scene data that another thread may be modifying

Definition at line 214 of file BKE_screen.hh.

Referenced by ED_spacetype_action(), ED_spacetype_ipo(), ED_spacetype_nla(), and ED_spacetype_sequencer().

◆ drawcalls

◆ duplicate

void *(* ARegionType::duplicate) (void *poin)

Definition at line 227 of file BKE_screen.hh.

Referenced by BKE_area_region_copy(), ED_spacetype_image(), and ED_spacetype_view3d().

◆ event_cursor

short ARegionType::event_cursor

◆ exit

void(* ARegionType::exit) (wmWindowManager *wm, ARegion *region)

Definition at line 197 of file BKE_screen.hh.

Referenced by ED_spacetype_view3d().

◆ free

◆ headertypes

ListBase ARegionType::headertypes

◆ init

◆ keymap

void(* ARegionType::keymap) (wmKeyConfig *keyconf)

Definition at line 232 of file BKE_screen.hh.

◆ keymapflag

◆ layout

◆ listener

◆ lock

short ARegionType::lock

◆ message_subscribe

◆ minsizex

int ARegionType::minsizex

Definition at line 270 of file BKE_screen.hh.

◆ minsizey

int ARegionType::minsizey

Definition at line 270 of file BKE_screen.hh.

◆ next

ARegionType* ARegionType::next

Definition at line 190 of file BKE_screen.hh.

◆ on_poll_success

void(* ARegionType::on_poll_success) (const bContext *C, ARegion *region)

Called on every frame in which the region's poll succeeds, regardless of visibility, before drawing, visibility evaluation and initialization. Allows the region to override visibility.

Definition at line 243 of file BKE_screen.hh.

Referenced by ED_spacetype_image(), and ED_spacetype_view3d().

◆ on_user_resize

void(* ARegionType::on_user_resize) (const ARegion *region)

Called whenever the user changes the region's size. Not called when the size is changed through other means, like to adjust for a scaled down window.

Definition at line 249 of file BKE_screen.hh.

Referenced by ED_spacetype_image(), ED_spacetype_view3d(), and region_scale_modal().

◆ on_view2d_changed

void(* ARegionType::on_view2d_changed) (const bContext *C, ARegion *region)

Definition at line 258 of file BKE_screen.hh.

Referenced by ED_spacetype_sequencer().

◆ operatortypes

void(* ARegionType::operatortypes) ()

Definition at line 230 of file BKE_screen.hh.

◆ paneltypes

◆ poll

bool(* ARegionType::poll) (const RegionPollParams *params)

Optional callback to decide whether the region should be treated as existing given the current context. When returning false, the region will be kept in storage, but is not available to the user in any way. Callbacks can assume that context has the owning area and space-data set.

Definition at line 204 of file BKE_screen.hh.

Referenced by ED_spacetype_clip(), ED_spacetype_file(), ED_spacetype_image(), ED_spacetype_sequencer(), ED_spacetype_userpref(), and ED_spacetype_view3d().

◆ prefsizex

◆ prefsizey

◆ prev

ARegionType * ARegionType::prev

Definition at line 190 of file BKE_screen.hh.

◆ regionid

◆ snap_size

int(* ARegionType::snap_size) (const ARegion *region, int size, int axis)

The documentation for this struct was generated from the following file: