FreeRDP
Loading...
Searching...
No Matches
SDL3/dialogs/sdl_select.cpp
1
20#include <cassert>
21
22#include <string>
23#include <utility>
24
25#include <SDL3/SDL.h>
26#include <SDL3_ttf/SDL_ttf.h>
27
28#include "sdl_select.hpp"
29#include "sdl_widget.hpp"
30#include "sdl_button.hpp"
31#include "sdl_buttons.hpp"
32#include "sdl_input_widget_pair_list.hpp"
33
34SdlSelectWidget::SdlSelectWidget(std::shared_ptr<SDL_Renderer>& renderer, const std::string& label,
35 const SDL_FRect& rect)
36 : SdlSelectableWidget(renderer, rect)
37{
38 _backgroundcolor = { 0x69, 0x66, 0x63, 0xff };
39 _fontcolor = { 0xd1, 0xcf, 0xcd, 0xff };
40 update_text(label);
41}
42
43SdlSelectWidget::~SdlSelectWidget() = default;
44
45SdlSelectWidget::SdlSelectWidget(SdlSelectWidget&& other) noexcept = default;