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 10374 of file imgui_demo.cc.

Constructor & Destructor Documentation

◆ ExampleAssetsBrowser()

ExampleAssetsBrowser::ExampleAssetsBrowser ( )
inline

Definition at line 10404 of file imgui_demo.cc.

References AddItems().

Member Function Documentation

◆ AddItems()

void ExampleAssetsBrowser::AddItems ( int  count)
inline

Definition at line 10408 of file imgui_demo.cc.

References Items, NextItemId, and RequestSort.

Referenced by Draw(), and ExampleAssetsBrowser().

◆ ClearItems()

void ExampleAssetsBrowser::ClearItems ( )
inline

Definition at line 10417 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 10380 of file imgui_demo.cc.

Referenced by Draw().

◆ AllowDragUnselected

bool ExampleAssetsBrowser::AllowDragUnselected = false

Definition at line 10379 of file imgui_demo.cc.

Referenced by Draw().

◆ AllowSorting

bool ExampleAssetsBrowser::AllowSorting = true

Definition at line 10378 of file imgui_demo.cc.

Referenced by Draw().

◆ IconHitSpacing

int ExampleAssetsBrowser::IconHitSpacing = 4

Definition at line 10383 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconSize

float ExampleAssetsBrowser::IconSize = 32.0f

Definition at line 10381 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ IconSpacing

int ExampleAssetsBrowser::IconSpacing = 10

Definition at line 10382 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ Items

ImVector<ExampleAsset> ExampleAssetsBrowser::Items

Definition at line 10387 of file imgui_demo.cc.

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

◆ LayoutColumnCount

int ExampleAssetsBrowser::LayoutColumnCount = 0

Definition at line 10400 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemSize

ImVec2 ExampleAssetsBrowser::LayoutItemSize

Definition at line 10395 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemSpacing

float ExampleAssetsBrowser::LayoutItemSpacing = 0.0f

Definition at line 10397 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutItemStep

ImVec2 ExampleAssetsBrowser::LayoutItemStep

Definition at line 10396 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutLineCount

int ExampleAssetsBrowser::LayoutLineCount = 0

Definition at line 10401 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutOuterPadding

float ExampleAssetsBrowser::LayoutOuterPadding = 0.0f

Definition at line 10399 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ LayoutSelectableSpacing

float ExampleAssetsBrowser::LayoutSelectableSpacing = 0.0f

Definition at line 10398 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ NextItemId

ImGuiID ExampleAssetsBrowser::NextItemId = 0

Definition at line 10389 of file imgui_demo.cc.

Referenced by AddItems().

◆ RequestDelete

bool ExampleAssetsBrowser::RequestDelete = false

Definition at line 10390 of file imgui_demo.cc.

Referenced by Draw().

◆ RequestSort

bool ExampleAssetsBrowser::RequestSort = false

Definition at line 10391 of file imgui_demo.cc.

Referenced by AddItems(), and Draw().

◆ Selection

ExampleSelectionWithDeletion ExampleAssetsBrowser::Selection

Definition at line 10388 of file imgui_demo.cc.

Referenced by ClearItems(), and Draw().

◆ ShowTypeOverlay

bool ExampleAssetsBrowser::ShowTypeOverlay = true

Definition at line 10377 of file imgui_demo.cc.

Referenced by Draw().

◆ StretchSpacing

bool ExampleAssetsBrowser::StretchSpacing = true

Definition at line 10384 of file imgui_demo.cc.

Referenced by Draw(), and UpdateLayoutSizes().

◆ ZoomWheelAccum

float ExampleAssetsBrowser::ZoomWheelAccum = 0.0f

Definition at line 10392 of file imgui_demo.cc.

Referenced by Draw().


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