openMSX
Public Member Functions | Public Attributes | List of all members
ExampleAssetsBrowser Struct Reference
Collaboration diagram for ExampleAssetsBrowser:
Collaboration graph
[legend]

Public Member Functions

 ExampleAssetsBrowser ()
 
void AddItems (int count)
 
void ClearItems ()
 
void UpdateLayoutSizes (float avail_width)
 
void Draw (const char *title, bool *p_open)
 

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< ExampleAssetItems
 
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
 

Detailed Description

Definition at line 10324 of file imgui_demo.cc.

Constructor & Destructor Documentation

◆ ExampleAssetsBrowser()

ExampleAssetsBrowser::ExampleAssetsBrowser ( )
inline

Definition at line 10354 of file imgui_demo.cc.

References AddItems().

Member Function Documentation

◆ AddItems()

void ExampleAssetsBrowser::AddItems ( int  count)
inline

Definition at line 10358 of file imgui_demo.cc.

References Items, NextItemId, and RequestSort.

Referenced by Draw(), and ExampleAssetsBrowser().

◆ ClearItems()

void ExampleAssetsBrowser::ClearItems ( )
inline

Definition at line 10367 of file imgui_demo.cc.

References Items, and Selection.

Referenced by Draw().

◆ Draw()

void ExampleAssetsBrowser::Draw ( const char *  title,
bool *  p_open 
)
inline

◆ UpdateLayoutSizes()

void ExampleAssetsBrowser::UpdateLayoutSizes ( float  avail_width)
inline

Member Data Documentation

◆ AllowBoxSelect

bool ExampleAssetsBrowser::AllowBoxSelect = true

Definition at line 10330 of file imgui_demo.cc.

Referenced by Draw().

◆ AllowDragUnselected

bool ExampleAssetsBrowser::AllowDragUnselected = false

Definition at line 10329 of file imgui_demo.cc.

Referenced by Draw().

◆ AllowSorting

bool ExampleAssetsBrowser::AllowSorting = true

Definition at line 10328 of file imgui_demo.cc.

Referenced by Draw().

◆ IconHitSpacing

int ExampleAssetsBrowser::IconHitSpacing = 4

Definition at line 10333 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconSize

float ExampleAssetsBrowser::IconSize = 32.0f

Definition at line 10331 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconSpacing

int ExampleAssetsBrowser::IconSpacing = 10

Definition at line 10332 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ Items

ImVector<ExampleAsset> ExampleAssetsBrowser::Items

Definition at line 10337 of file imgui_demo.cc.

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

◆ LayoutColumnCount

int ExampleAssetsBrowser::LayoutColumnCount = 0

Definition at line 10350 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemSize

ImVec2 ExampleAssetsBrowser::LayoutItemSize

Definition at line 10345 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemSpacing

float ExampleAssetsBrowser::LayoutItemSpacing = 0.0f

Definition at line 10347 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemStep

ImVec2 ExampleAssetsBrowser::LayoutItemStep

Definition at line 10346 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutLineCount

int ExampleAssetsBrowser::LayoutLineCount = 0

Definition at line 10351 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutOuterPadding

float ExampleAssetsBrowser::LayoutOuterPadding = 0.0f

Definition at line 10349 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutSelectableSpacing

float ExampleAssetsBrowser::LayoutSelectableSpacing = 0.0f

Definition at line 10348 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ NextItemId

ImGuiID ExampleAssetsBrowser::NextItemId = 0

Definition at line 10339 of file imgui_demo.cc.

Referenced by AddItems().

◆ RequestDelete

bool ExampleAssetsBrowser::RequestDelete = false

Definition at line 10340 of file imgui_demo.cc.

Referenced by Draw().

◆ RequestSort

bool ExampleAssetsBrowser::RequestSort = false

Definition at line 10341 of file imgui_demo.cc.

Referenced by AddItems(), and Draw().

◆ Selection

ExampleSelectionWithDeletion ExampleAssetsBrowser::Selection

Definition at line 10338 of file imgui_demo.cc.

Referenced by ClearItems(), and Draw().

◆ ShowTypeOverlay

bool ExampleAssetsBrowser::ShowTypeOverlay = true

Definition at line 10327 of file imgui_demo.cc.

Referenced by Draw().

◆ StretchSpacing

bool ExampleAssetsBrowser::StretchSpacing = true

Definition at line 10334 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ ZoomWheelAccum

float ExampleAssetsBrowser::ZoomWheelAccum = 0.0f

Definition at line 10342 of file imgui_demo.cc.

Referenced by Draw().


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