Blender V4.3
FX_ui_common.cc File Reference
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "MEM_guardedalloc.h"
#include "BKE_context.hh"
#include "BKE_object.hh"
#include "BKE_screen.hh"
#include "BKE_shader_fx.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_shader_fx_types.h"
#include "ED_object.hh"
#include "BLT_translation.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "FX_ui_common.h"

Go to the source code of this file.

Functions

Panel Drag and Drop, Expansion Saving
static void shaderfx_reorder (bContext *C, Panel *panel, int new_index)
 
static short get_shaderfx_expand_flag (const bContext *, Panel *panel)
 
static void set_shaderfx_expand_flag (const bContext *, Panel *panel, short expand_flag)
 
ShaderFx Registration Helpers
static bool shaderfx_ui_poll (const bContext *C, PanelType *)
 
PanelTypeshaderfx_panel_register (ARegionType *region_type, ShaderFxType type, PanelDrawFn draw)
 
PanelTypeshaderfx_subpanel_register (ARegionType *region_type, const char *name, const char *label, PanelDrawFn draw_header, PanelDrawFn draw, PanelType *parent)
 

ShaderFx Panel Layouts

#define ERROR_LIBDATA_MESSAGE   N_("External library data")
 
void shaderfx_panel_end (uiLayout *layout, PointerRNA *ptr)
 
PointerRNAshaderfx_panel_get_property_pointers (Panel *panel, PointerRNA *r_ob_ptr)
 
static void gpencil_shaderfx_ops_extra_draw (bContext *C, uiLayout *layout, void *fx_v)
 
static void shaderfx_panel_header (const bContext *, Panel *panel)
 

Macro Definition Documentation

◆ ERROR_LIBDATA_MESSAGE

#define ERROR_LIBDATA_MESSAGE   N_("External library data")

Definition at line 109 of file FX_ui_common.cc.

Referenced by shaderfx_panel_header().

Function Documentation

◆ get_shaderfx_expand_flag()

static short get_shaderfx_expand_flag ( const bContext * ,
Panel * panel )
static

Get the expand flag from the active effect to use for the panel.

Definition at line 63 of file FX_ui_common.cc.

References PointerRNA::data, ShaderFxData::ui_expand_flag, and UI_panel_custom_data_get().

Referenced by shaderfx_panel_register().

◆ gpencil_shaderfx_ops_extra_draw()

◆ set_shaderfx_expand_flag()

static void set_shaderfx_expand_flag ( const bContext * ,
Panel * panel,
short expand_flag )
static

Save the expand flag for the panel and sub-panels to the effect.

Definition at line 73 of file FX_ui_common.cc.

References PointerRNA::data, ShaderFxData::ui_expand_flag, and UI_panel_custom_data_get().

Referenced by shaderfx_panel_register().

◆ shaderfx_panel_end()

void shaderfx_panel_end ( struct uiLayout * layout,
PointerRNA * ptr )

◆ shaderfx_panel_get_property_pointers()

PointerRNA * shaderfx_panel_get_property_pointers ( struct Panel * panel,
struct PointerRNA * r_ob_ptr )

◆ shaderfx_panel_header()

◆ shaderfx_panel_register()

◆ shaderfx_reorder()

static void shaderfx_reorder ( bContext * C,
Panel * panel,
int new_index )
static

◆ shaderfx_subpanel_register()

PanelType * shaderfx_subpanel_register ( struct ARegionType * region_type,
const char * name,
const char * label,
PanelDrawFn draw_header,
PanelDrawFn draw,
struct PanelType * parent )

◆ shaderfx_ui_poll()

static bool shaderfx_ui_poll ( const bContext * C,
PanelType *  )
static