FreeRDP
SDL2/dialogs/sdl_select.hpp
1 
20 #pragma once
21 
22 #include <string>
23 #include <vector>
24 
25 #include <SDL.h>
26 #include "sdl_widget.hpp"
27 
28 class SdlSelectWidget : public SdlWidget
29 {
30  public:
31  SdlSelectWidget(SDL_Renderer* renderer, std::string label, SDL_Rect rect);
32  SdlSelectWidget(SdlSelectWidget&& other) noexcept;
33  ~SdlSelectWidget() override;
34 
35  bool set_mouseover(SDL_Renderer* renderer, bool mouseOver);
36  bool set_highlight(SDL_Renderer* renderer, bool highlight);
37  bool update_text(SDL_Renderer* renderer);
38 
39  SdlSelectWidget(const SdlSelectWidget& other) = delete;
40  SdlSelectWidget& operator=(const SdlSelectWidget& other) = delete;
41  SdlSelectWidget& operator=(SdlSelectWidget&& other) = delete;
42 
43  private:
44  std::string _text;
45  bool _mouseover;
46  bool _highlight;
47 };