Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::statistics_utils Namespace Reference

Classes

class  sample_data
 Class for collecting and managing time-series sample data. Maintains a rolling buffer of samples with automatic statistics calculation. More...
 

Functions

auto draw_progress_bar (float width, float max_width, float height, const ImVec4 &color) -> bool
 Draw a colored progress bar with hover effects.
 
auto draw_resource_bar (const char *name, const char *tooltip, uint32_t current_value, uint32_t max_value, float max_width, float height) -> void
 Draw a resource usage bar with label and percentage.
 

Function Documentation

◆ draw_progress_bar()

auto unravel::statistics_utils::draw_progress_bar ( float width,
float max_width,
float height,
const ImVec4 & color ) -> bool

Draw a colored progress bar with hover effects.

Parameters
widthWidth of the filled portion
max_widthMaximum width of the bar
heightHeight of the bar
colorColor of the bar
Returns
True if the bar is being hovered

Definition at line 60 of file statistics_utils.cpp.

◆ draw_resource_bar()

auto unravel::statistics_utils::draw_resource_bar ( const char * name,
const char * tooltip,
uint32_t current_value,
uint32_t max_value,
float max_width,
float height ) -> void

Draw a resource usage bar with label and percentage.

Parameters
nameName of the resource
tooltipTooltip text to show on hover
current_valueCurrent usage value
max_valueMaximum possible value
max_widthMaximum width of the progress bar
heightHeight of the progress bar

Definition at line 92 of file statistics_utils.cpp.