Blender V5.3
blender::PanelCategoryDyn Struct Reference

#include <DNA_screen_types.h>

Public Attributes

struct PanelCategoryDyn * next = nullptr
struct PanelCategoryDyn * prev = nullptr
char idname [64] = ""
int icon = 0

Detailed Description

Notes on Panel Categories:

  • #ARegion.panels_category (PanelCategoryDyn) is a runtime only list of categories collected during draw.
  • #ARegion.panels_category_active (PanelCategoryStack) is basically a list of strings (category id's).

Clicking on a tab moves it to the front of region->panels_category_active, If the context changes so this tab is no longer displayed, then the first-most tab in #ARegion.panels_category_active is used.

This way you can change modes and always have the tab you last clicked on.

Definition at line 314 of file DNA_screen_types.h.

Member Data Documentation

◆ icon

int blender::PanelCategoryDyn::icon = 0

Definition at line 317 of file DNA_screen_types.h.

Referenced by blender::ui::panel_category_add().

◆ idname

◆ next

struct PanelCategoryDyn* blender::PanelCategoryDyn::next = nullptr

Definition at line 315 of file DNA_screen_types.h.

Referenced by blender::ui::handle_panel_category_cycling().

◆ prev

struct PanelCategoryDyn * blender::PanelCategoryDyn::prev = nullptr

Definition at line 315 of file DNA_screen_types.h.

Referenced by blender::ui::handle_panel_category_cycling().


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