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

#include <asset_browser.h>

Collaboration diagram for yaze::app::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 154 of file asset_browser.h.

Member Function Documentation

◆ Initialize()

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

Definition at line 191 of file asset_browser.h.

References Initialized, Items, and yaze::app::kNumGfxSheets.

Referenced by yaze::app::editor::GraphicsEditor::Update().

◆ AddItems()

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

Definition at line 199 of file asset_browser.h.

References Items, NextItemId, and RequestSort.

◆ ClearItems()

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

Definition at line 208 of file asset_browser.h.

References Items, and Selection.

◆ UpdateLayoutSizes()

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

◆ Draw()

Member Data Documentation

◆ ShowTypeOverlay

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

Definition at line 156 of file asset_browser.h.

Referenced by Draw().

◆ AllowSorting

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

Definition at line 157 of file asset_browser.h.

Referenced by Draw().

◆ AllowDragUnselected

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

Definition at line 158 of file asset_browser.h.

Referenced by Draw().

◆ AllowBoxSelect

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

Definition at line 159 of file asset_browser.h.

Referenced by Draw().

◆ IconSize

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

Definition at line 160 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconSpacing

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

Definition at line 161 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconHitSpacing

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

Definition at line 165 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ StretchSpacing

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

Definition at line 166 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ Items

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

Definition at line 169 of file asset_browser.h.

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

◆ Selection

ExampleSelectionWithDeletion yaze::app::gui::GfxSheetAssetBrowser::Selection

Definition at line 172 of file asset_browser.h.

Referenced by ClearItems(), and Draw().

◆ NextItemId

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

Definition at line 174 of file asset_browser.h.

Referenced by AddItems().

◆ RequestDelete

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

Definition at line 175 of file asset_browser.h.

Referenced by Draw().

◆ RequestSort

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

Definition at line 176 of file asset_browser.h.

Referenced by AddItems(), and Draw().

◆ ZoomWheelAccum

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

Definition at line 178 of file asset_browser.h.

Referenced by Draw().

◆ LayoutItemSize

ImVec2 yaze::app::gui::GfxSheetAssetBrowser::LayoutItemSize

Definition at line 182 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemStep

ImVec2 yaze::app::gui::GfxSheetAssetBrowser::LayoutItemStep

Definition at line 183 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemSpacing

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

Definition at line 184 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutSelectableSpacing

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

Definition at line 185 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutOuterPadding

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

Definition at line 186 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutColumnCount

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

Definition at line 187 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutLineCount

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

Definition at line 188 of file asset_browser.h.

Referenced by Draw(), and UpdateLayoutSizes().

◆ Initialized

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

Definition at line 189 of file asset_browser.h.

Referenced by Initialize(), and yaze::app::editor::GraphicsEditor::Update().


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