ACircleProgressBar#
A circle-shaped progress bar.

| Header: | #include <AUI/View/ACircleProgressBar.h> |
| CMake: | aui_link(my_target PUBLIC aui::views) |
Detailed Description#
A progress bar is used to express a long operation (i.e. file copy) with known progress and reassure the user that application is still running.
Unlike AProgressBar, this one is circle shaped; thus occupies less space.
Public Types#
Inner#
class ACircleProgressBar::Inner
Empty structure.
Public Methods#
setValue#
- Arguments
valueprogress value, where `0.0f` = 0%, `1.0f` = 100%
Set progress bar value.
Examples:
examples/app/minesweeper/src/NewGameWindow.cpp
Minesweeper Game - Minesweeper game implementation driven by ass.
_new<AButton>("Cancel").connect(&AButton::clicked, me::close),
} AUI_WITH_STYLE { LayoutSpacing { 4_dp } },
} AUI_WITH_STYLE { LayoutSpacing { 4_dp } });
mWidth->setValue(gWidth);
mHeight->setValue(gHeight);
updateMinesMax();
mMines->setValue(gMines);
examples/app/fractal/src/FractalWindow.cpp
Fractal Example - Fractal viewer application demonstrating usage of custom shaders.
_new<ALabel>("Iterations:"),
_new<ANumberPicker>().connect(
&ANumberPicker::valueChanged, this, [fractal](int v) { fractal->setIterations(v); }) AUI_LET {
it->setMax(1000);
it->setValue(350);
},
} AUI_WITH_STYLE { LayoutSpacing { 4_dp } },
} AUI_WITH_STYLE { LayoutSpacing { 4_dp } });
fractal->focus();