YCLIMP
Yandex Command Line Interface Music Player
Loading...
Searching...
No Matches
HorizontalOptionChoice Class Reference

The HorizontalOptionChoice class - part of the DialogElement.
Most or all of the dialogs has this horizontal option choice at the bottom of the window. More...

#include <DialogElement.hpp>

Public Member Functions

 HorizontalOptionChoice (std::vector< std::string > options, const Recti &bounds)
void Draw () const
void SelectNext ()
 Next option in a loop (right selection)
void ConfirmCurrentChoice ()
void HandleResizeEvent (const Recti &newBounds)
std::string_view GetFinalChoice () const
std::size_t GetFinalChoiceIndx () const

Detailed Description

The HorizontalOptionChoice class - part of the DialogElement.
Most or all of the dialogs has this horizontal option choice at the bottom of the window.

Logic:

  • 1) Select specific option
  • 2) Confirm your selection by ConfirmCurrentChoice
  • 3) Selection mechanism is off. Able to get your final choice selection

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