FreeRDP
|
#include <sdl_input.hpp>
Public Types | |
enum | { SDL_INPUT_MASK = 1 , SDL_INPUT_READONLY = 2 } |
Public Member Functions | |
SdlInputWidget (SDL_Renderer *renderer, std::string label, std::string initial, Uint32 flags, size_t offset, size_t width, size_t height) | |
SdlInputWidget (SdlInputWidget &&other) noexcept | |
SdlInputWidget (const SdlInputWidget &other)=delete | |
SdlInputWidget & | operator= (const SdlInputWidget &other)=delete |
SdlInputWidget & | operator= (SdlInputWidget &&other)=delete |
bool | fill_label (SDL_Renderer *renderer, SDL_Color color) |
bool | update_label (SDL_Renderer *renderer) |
bool | set_mouseover (SDL_Renderer *renderer, bool mouseOver) |
bool | set_highlight (SDL_Renderer *renderer, bool highlight) |
bool | update_input (SDL_Renderer *renderer) |
bool | resize_input (size_t size) |
bool | set_str (SDL_Renderer *renderer, const std::string &text) |
bool | remove_str (SDL_Renderer *renderer, size_t count) |
bool | append_str (SDL_Renderer *renderer, const std::string &text) |
const SDL_Rect & | input_rect () const |
std::string | value () const |
bool | readonly () const |
SdlInputWidget (std::shared_ptr< SDL_Renderer > &renderer, const SDL_FRect &rect) | |
SdlInputWidget (std::shared_ptr< SDL_Renderer > &renderer, const SDL_FRect &rect, SDL_IOStream *ops) | |
SdlInputWidget (SdlInputWidget &&other) noexcept | |
SdlInputWidget (const SdlInputWidget &other)=delete | |
SdlInputWidget & | operator= (const SdlInputWidget &other)=delete |
SdlInputWidget & | operator= (SdlInputWidget &&other) noexcept=delete |
std::string | text () const |
![]() | |
SdlSelectableWidget (std::shared_ptr< SDL_Renderer > &renderer, const SDL_FRect &rect) | |
SdlSelectableWidget (SdlSelectableWidget &&other) noexcept | |
SdlSelectableWidget (const SdlSelectableWidget &other)=delete | |
SdlSelectableWidget & | operator= (const SdlSelectableWidget &other)=delete |
SdlSelectableWidget & | operator= (SdlSelectableWidget &&other)=delete |
bool | highlight (bool enable) |
bool | mouseover (bool enable) |
![]() | |
SdlWidget (SDL_Renderer *renderer, SDL_Rect rect, bool input) | |
SdlWidget (SdlWidget &&other) noexcept | |
bool | fill (SDL_Renderer *renderer, SDL_Color color) |
bool | fill (SDL_Renderer *renderer, const std::vector< SDL_Color > &colors) |
bool | update_text (SDL_Renderer *renderer, const std::string &text, SDL_Color fgcolor) |
bool | update_text (SDL_Renderer *renderer, const std::string &text, SDL_Color fgcolor, SDL_Color bgcolor) |
bool | wrap () const |
bool | set_wrap (bool wrap=true, size_t width=0) |
const SDL_Rect & | rect () const |
SdlWidget (const SdlWidget &other)=delete | |
SdlWidget & | operator= (const SdlWidget &other)=delete |
SdlWidget & | operator= (SdlWidget &&other)=delete |
SdlWidget (std::shared_ptr< SDL_Renderer > &renderer, const SDL_FRect &rect) | |
SdlWidget (const SdlWidget &other)=delete | |
SdlWidget (SdlWidget &&other) noexcept | |
SdlWidget & | operator= (const SdlWidget &other)=delete |
SdlWidget & | operator= (SdlWidget &&other)=delete |
bool | fill (SDL_Color color) const |
bool | fill (const std::vector< SDL_Color > &colors) const |
bool | update_text (const std::string &text) |
bool | wrap () const |
bool | set_wrap (bool wrap=true, size_t width=0) |
const SDL_FRect & | rect () const |
bool | update () |
Protected Member Functions | |
bool | update_input (SDL_Renderer *renderer, SDL_Color fgcolor) |
![]() | |
bool | updateInternal () override |
![]() | |
virtual bool | clear () const |
Additional Inherited Members | |
![]() | |
static bool | error_ex (Sint32 res, const char *what, const char *file, size_t line, const char *fkt) |
static bool | error_ex (bool success, const char *what, const char *file, size_t line, const char *fkt) |
![]() | |
SDL_Color | _highlightcolor = { 0xcd, 0xca, 0x35, 0x60 } |
SDL_Color | _mouseovercolor = { 0x66, 0xff, 0x66, 0x60 } |
![]() | |
std::shared_ptr< SDL_Renderer > | _renderer {} |
SDL_Color | _backgroundcolor = { 0x56, 0x56, 0x56, 0xff } |
SDL_Color | _fontcolor = { 0xd1, 0xcf, 0xcd, 0xff } |
std::string | _text |
FreeRDP: A Remote Desktop Protocol Implementation SDL Client helper dialogs
Copyright 2023 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FreeRDP: A Remote Desktop Protocol Implementation SDL Client helper dialogs
Copyright 2025 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2025 Thincast Technologies GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition at line 28 of file sdl_input.hpp.
anonymous enum |
Definition at line 31 of file sdl_input.hpp.
SdlInputWidget::SdlInputWidget | ( | SDL_Renderer * | renderer, |
std::string | label, | ||
std::string | initial, | ||
Uint32 | flags, | ||
size_t | offset, | ||
size_t | width, | ||
size_t | height | ||
) |
Definition at line 43 of file sdl_input.cpp.
|
defaultnoexcept |
Definition at line 58 of file sdl_input.cpp.
SdlInputWidget::SdlInputWidget | ( | std::shared_ptr< SDL_Renderer > & | renderer, |
const SDL_FRect & | rect | ||
) |
FreeRDP: A Remote Desktop Protocol Implementation SDL Client helper dialogs
Copyright 2025 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2025 Thincast Technologies GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition at line 22 of file sdl_input_widget.cpp.
bool SdlInputWidget::append_str | ( | SDL_Renderer * | renderer, |
const std::string & | text | ||
) |
Definition at line 137 of file sdl_input.cpp.
bool SdlInputWidget::fill_label | ( | SDL_Renderer * | renderer, |
SDL_Color | color | ||
) |
Definition at line 65 of file sdl_input.cpp.
const SDL_Rect & SdlInputWidget::input_rect | ( | ) | const |
Definition at line 149 of file sdl_input.cpp.
bool SdlInputWidget::readonly | ( | ) | const |
Definition at line 159 of file sdl_input.cpp.
bool SdlInputWidget::remove_str | ( | SDL_Renderer * | renderer, |
size_t | count | ||
) |
Definition at line 123 of file sdl_input.cpp.
bool SdlInputWidget::resize_input | ( | size_t | size | ) |
Definition at line 106 of file sdl_input.cpp.
bool SdlInputWidget::set_highlight | ( | SDL_Renderer * | renderer, |
bool | highlight | ||
) |
Definition at line 85 of file sdl_input.cpp.
bool SdlInputWidget::set_mouseover | ( | SDL_Renderer * | renderer, |
bool | mouseOver | ||
) |
Definition at line 77 of file sdl_input.cpp.
bool SdlInputWidget::set_str | ( | SDL_Renderer * | renderer, |
const std::string & | text | ||
) |
Definition at line 113 of file sdl_input.cpp.
std::string SdlInputWidget::text | ( | ) | const |
Definition at line 30 of file sdl_input_widget.cpp.
bool SdlInputWidget::update_input | ( | SDL_Renderer * | renderer | ) |
Definition at line 93 of file sdl_input.cpp.
|
protected |
Definition at line 164 of file sdl_input.cpp.
bool SdlInputWidget::update_label | ( | SDL_Renderer * | renderer | ) |
Definition at line 72 of file sdl_input.cpp.
std::string SdlInputWidget::value | ( | ) | const |
Definition at line 154 of file sdl_input.cpp.