Blender V4.3
asset_shelf.cc File Reference
#include <algorithm>
#include "AS_asset_catalog_path.hh"
#include "AS_asset_library.hh"
#include "BLI_function_ref.hh"
#include "BLI_string.h"
#include "BKE_context.hh"
#include "BKE_main.hh"
#include "BKE_screen.hh"
#include "BLT_translation.hh"
#include "DNA_screen_types.h"
#include "ED_asset_list.hh"
#include "ED_screen.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "UI_tree_view.hh"
#include "UI_view2d.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "ED_asset_shelf.hh"
#include "asset_shelf.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::asset
 
namespace  blender::ed::asset::shelf
 

Functions

void blender::ed::asset::shelf::send_redraw_notifier (const bContext &C)
 
Asset Shelf Regions
static int blender::ed::asset::shelf::asset_shelf_default_tile_height ()
 
void * blender::ed::asset::shelf::region_duplicate (void *regiondata)
 
void blender::ed::asset::shelf::region_free (ARegion *region)
 
static bool blender::ed::asset::shelf::asset_shelf_space_poll (const bContext *C, const SpaceLink *space_link)
 
bool blender::ed::asset::shelf::regions_poll (const RegionPollParams *params)
 
static void blender::ed::asset::shelf::asset_shelf_region_listen (const wmRegionListenerParams *params)
 
void blender::ed::asset::shelf::region_listen (const wmRegionListenerParams *params)
 
void blender::ed::asset::shelf::region_message_subscribe (const wmRegionMessageSubscribeParams *params)
 
void blender::ed::asset::shelf::region_init (wmWindowManager *wm, ARegion *region)
 
static int blender::ed::asset::shelf::main_region_padding_y ()
 
static int blender::ed::asset::shelf::main_region_padding_x ()
 
static int blender::ed::asset::shelf::current_tile_draw_height (const ARegion *region)
 
static int blender::ed::asset::shelf::calculate_row_count_from_tile_draw_height (const int region_height_scaled, const int tile_draw_height)
 
static int blender::ed::asset::shelf::calculate_scaled_region_height_from_row_count (const int row_count, const int tile_draw_height)
 
int blender::ed::asset::shelf::region_snap (const ARegion *region, int size, int axis)
 
static void blender::ed::asset::shelf::region_resize_to_preferred (ScrArea *area, ARegion *region)
 
void blender::ed::asset::shelf::region_on_user_resize (const ARegion *region)
 
int blender::ed::asset::shelf::tile_width (const AssetShelfSettings &settings)
 
int blender::ed::asset::shelf::tile_height (const AssetShelfSettings &settings)
 
int blender::ed::asset::shelf::region_prefsizey ()
 
void blender::ed::asset::shelf::region_layout (const bContext *C, ARegion *region)
 
void blender::ed::asset::shelf::region_draw (const bContext *C, ARegion *region)
 
void blender::ed::asset::shelf::region_on_poll_success (const bContext *C, ARegion *region)
 
void blender::ed::asset::shelf::header_region_listen (const wmRegionListenerParams *params)
 
void blender::ed::asset::shelf::header_region_init (wmWindowManager *wm, ARegion *region)
 
void blender::ed::asset::shelf::header_region (const bContext *C, ARegion *region)
 
int blender::ed::asset::shelf::header_region_size ()
 
void blender::ed::asset::shelf::region_blend_read_data (BlendDataReader *reader, ARegion *region)
 
void blender::ed::asset::shelf::region_blend_write (BlendWriter *writer, ARegion *region)
 
void blender::ed::asset::shelf::types_register (ARegionType *region_type, const int space_type)
 
Shelf Type
static Vector< std::unique_ptr< AssetShelfType > > & blender::ed::asset::shelf::static_shelf_types ()
 
static bool blender::ed::asset::shelf::type_poll_no_spacetype_check (const bContext &C, const AssetShelfType *shelf_type)
 
static bool blender::ed::asset::shelf::type_poll_for_non_popup (const bContext &C, const AssetShelfType *shelf_type, const int space_type)
 
AssetShelfTypeblender::ed::asset::shelf::ensure_shelf_has_type (AssetShelf &shelf)
 
AssetShelfblender::ed::asset::shelf::create_shelf_from_type (AssetShelfType &type)
 
Asset Shelf Type
void blender::ed::asset::shelf::type_register (std::unique_ptr< AssetShelfType > type)
 
void blender::ed::asset::shelf::type_unregister (const AssetShelfType &shelf_type)
 
bool blender::ed::asset::shelf::type_poll_for_popup (const bContext &C, const AssetShelfType *shelf_type)
 
AssetShelfTypeblender::ed::asset::shelf::type_find_from_idname (const StringRef idname)
 
Active Shelf Management
static void blender::ed::asset::shelf::activate_shelf (RegionAssetShelf &shelf_regiondata, AssetShelf &shelf)
 
static AssetShelfblender::ed::asset::shelf::update_active_shelf (const bContext &C, const eSpace_Type space_type, RegionAssetShelf &shelf_regiondata, FunctionRef< void(AssetShelf &new_shelf)> on_create, FunctionRef< void(AssetShelf &shelf)> on_reactivate)
 
Asset Shelf Context
AssetShelfblender::ed::asset::shelf::active_shelf_from_area (const ScrArea *area)
 
int blender::ed::asset::shelf::context (const bContext *C, const char *member, bContextDataResult *result)
 
static PointerRNA blender::ed::asset::shelf::active_shelf_ptr_from_context (const bContext *C)
 
AssetShelfblender::ed::asset::shelf::active_shelf_from_context (const bContext *C)
 
Catalog toggle buttons
static uiButblender::ed::asset::shelf::add_tab_button (uiBlock &block, StringRefNull name)
 
static void blender::ed::asset::shelf::add_catalog_tabs (AssetShelf &shelf, uiLayout &layout)
 
Asset Shelf Header Region
static void blender::ed::asset::shelf::asset_shelf_header_draw (const bContext *C, Header *header)
 
static void blender::ed::asset::shelf::header_regiontype_register (ARegionType *region_type, const int space_type)
 
Asset Shelf Type (un)registration
void blender::ed::asset::shelf::type_unlink (const Main &bmain, const AssetShelfType &shelf_type)
 

Detailed Description

General asset shelf code, mostly region callbacks, drawing and context stuff.

Definition in file asset_shelf.cc.