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