yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::GfxSheetAssetBrowser Struct Reference

#include <asset_browser.h>

Collaboration diagram for yaze::gui::GfxSheetAssetBrowser:

Public Member Functions

void Initialize (const std::array< gfx::Bitmap, kNumGfxSheets > &bmp_manager)
 
void AddItems (int count)
 
void ClearItems ()
 
void UpdateLayoutSizes (float avail_width)
 
void Draw (const std::array< gfx::Bitmap, kNumGfxSheets > &bmp_manager)
 

Public Attributes

bool ShowTypeOverlay = true
 
bool AllowSorting = true
 
bool AllowDragUnselected = false
 
bool AllowBoxSelect = true
 
float IconSize = 32.0f
 
int IconSpacing = 10
 
int IconHitSpacing = 4
 
bool StretchSpacing = true
 
ImVector< AssetObjectItems
 
ExampleSelectionWithDeletion Selection
 
ImGuiID NextItemId = 0
 
bool RequestDelete = false
 
bool RequestSort = false
 
float ZoomWheelAccum = 0.0f
 
ImVec2 LayoutItemSize
 
ImVec2 LayoutItemStep
 
float LayoutItemSpacing = 0.0f
 
float LayoutSelectableSpacing = 0.0f
 
float LayoutOuterPadding = 0.0f
 
int LayoutColumnCount = 0
 
int LayoutLineCount = 0
 
bool Initialized = false
 

Detailed Description

Definition at line 153 of file asset_browser.h.

Member Function Documentation

◆ Initialize()

void yaze::gui::GfxSheetAssetBrowser::Initialize ( const std::array< gfx::Bitmap, kNumGfxSheets > & bmp_manager)
inline

Definition at line 190 of file asset_browser.h.

References Initialized, Items, and yaze::kNumGfxSheets.

◆ AddItems()

void yaze::gui::GfxSheetAssetBrowser::AddItems ( int count)
inline

Definition at line 198 of file asset_browser.h.

References Items, NextItemId, and RequestSort.

◆ ClearItems()

void yaze::gui::GfxSheetAssetBrowser::ClearItems ( )
inline

Definition at line 207 of file asset_browser.h.

References Items, and Selection.

◆ UpdateLayoutSizes()

void yaze::gui::GfxSheetAssetBrowser::UpdateLayoutSizes ( float avail_width)
inline

◆ Draw()

Member Data Documentation

◆ ShowTypeOverlay

bool yaze::gui::GfxSheetAssetBrowser::ShowTypeOverlay = true

Definition at line 155 of file asset_browser.h.

Referenced by Draw().

◆ AllowSorting

bool yaze::gui::GfxSheetAssetBrowser::AllowSorting = true

Definition at line 156 of file asset_browser.h.

Referenced by Draw().

◆ AllowDragUnselected

bool yaze::gui::GfxSheetAssetBrowser::AllowDragUnselected = false

Definition at line 157 of file asset_browser.h.

Referenced by Draw().

◆ AllowBoxSelect

bool yaze::gui::GfxSheetAssetBrowser::AllowBoxSelect = true

Definition at line 158 of file asset_browser.h.

Referenced by Draw().

◆ IconSize

float yaze::gui::GfxSheetAssetBrowser::IconSize = 32.0f

Definition at line 159 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconSpacing

int yaze::gui::GfxSheetAssetBrowser::IconSpacing = 10

Definition at line 160 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconHitSpacing

int yaze::gui::GfxSheetAssetBrowser::IconHitSpacing = 4

Definition at line 164 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ StretchSpacing

bool yaze::gui::GfxSheetAssetBrowser::StretchSpacing = true

Definition at line 165 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ Items

ImVector<AssetObject> yaze::gui::GfxSheetAssetBrowser::Items

Definition at line 168 of file asset_browser.h.

Referenced by AddItems(), ClearItems(), Draw(), Initialize(), and UpdateLayoutSizes().

◆ Selection

ExampleSelectionWithDeletion yaze::gui::GfxSheetAssetBrowser::Selection

Definition at line 171 of file asset_browser.h.

Referenced by ClearItems(), and Draw().

◆ NextItemId

ImGuiID yaze::gui::GfxSheetAssetBrowser::NextItemId = 0

Definition at line 173 of file asset_browser.h.

Referenced by AddItems().

◆ RequestDelete

bool yaze::gui::GfxSheetAssetBrowser::RequestDelete = false

Definition at line 174 of file asset_browser.h.

Referenced by Draw().

◆ RequestSort

bool yaze::gui::GfxSheetAssetBrowser::RequestSort = false

Definition at line 175 of file asset_browser.h.

Referenced by AddItems(), and Draw().

◆ ZoomWheelAccum

float yaze::gui::GfxSheetAssetBrowser::ZoomWheelAccum = 0.0f

Definition at line 177 of file asset_browser.h.

Referenced by Draw().

◆ LayoutItemSize

ImVec2 yaze::gui::GfxSheetAssetBrowser::LayoutItemSize

Definition at line 181 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemStep

ImVec2 yaze::gui::GfxSheetAssetBrowser::LayoutItemStep

Definition at line 182 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemSpacing

float yaze::gui::GfxSheetAssetBrowser::LayoutItemSpacing = 0.0f

Definition at line 183 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutSelectableSpacing

float yaze::gui::GfxSheetAssetBrowser::LayoutSelectableSpacing = 0.0f

Definition at line 184 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutOuterPadding

float yaze::gui::GfxSheetAssetBrowser::LayoutOuterPadding = 0.0f

Definition at line 185 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutColumnCount

int yaze::gui::GfxSheetAssetBrowser::LayoutColumnCount = 0

Definition at line 186 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutLineCount

int yaze::gui::GfxSheetAssetBrowser::LayoutLineCount = 0

Definition at line 187 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ Initialized

bool yaze::gui::GfxSheetAssetBrowser::Initialized = false

Definition at line 188 of file asset_browser.h.

Referenced by Initialize().


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