FreeRDP
|
#include <sdl_input_widget_pair.hpp>
Public Types | |
enum | { SDL_INPUT_MASK = 1 , SDL_INPUT_READONLY = 2 } |
Public Member Functions | |
SdlInputWidgetPair (std::shared_ptr< SDL_Renderer > &renderer, const std::string &label, const std::string &initial, Uint32 flags, size_t offset, size_t width, size_t height) | |
SdlInputWidgetPair (SdlInputWidgetPair &&other) noexcept | |
SdlInputWidgetPair (const SdlInputWidgetPair &other)=delete | |
SdlInputWidgetPair & | operator= (const SdlInputWidgetPair &other)=delete |
SdlInputWidgetPair & | operator= (SdlInputWidgetPair &&other)=delete |
bool | set_mouseover (bool mouseOver) |
bool | set_highlight (bool highlight) |
bool | set_str (const std::string &text) |
bool | remove_str (size_t count) |
bool | append_str (const std::string &text) |
const SDL_FRect & | input_rect () const |
std::string | value () const |
bool | readonly () const |
bool | update () |
Protected Member Functions | |
bool | update_input_text (const std::string &txt) |
Protected Attributes | |
Uint32 | _vpadding = 5 |
Uint32 | _hpadding = 10 |
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.
Definition at line 29 of file sdl_input_widget_pair.hpp.
anonymous enum |
Definition at line 32 of file sdl_input_widget_pair.hpp.
SdlInputWidgetPair::SdlInputWidgetPair | ( | std::shared_ptr< SDL_Renderer > & | renderer, |
const std::string & | label, | ||
const std::string & | initial, | ||
Uint32 | flags, | ||
size_t | offset, | ||
size_t | width, | ||
size_t | height | ||
) |
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.
Definition at line 34 of file sdl_input_widget_pair.cpp.
bool SdlInputWidgetPair::append_str | ( | const std::string & | text | ) |
Definition at line 83 of file sdl_input_widget_pair.cpp.
const SDL_FRect & SdlInputWidgetPair::input_rect | ( | ) | const |
Definition at line 93 of file sdl_input_widget_pair.cpp.
bool SdlInputWidgetPair::readonly | ( | ) | const |
Definition at line 103 of file sdl_input_widget_pair.cpp.
bool SdlInputWidgetPair::remove_str | ( | size_t | count | ) |
Definition at line 70 of file sdl_input_widget_pair.cpp.
bool SdlInputWidgetPair::set_highlight | ( | bool | highlight | ) |
Definition at line 56 of file sdl_input_widget_pair.cpp.
bool SdlInputWidgetPair::set_mouseover | ( | bool | mouseOver | ) |
Definition at line 49 of file sdl_input_widget_pair.cpp.
bool SdlInputWidgetPair::set_str | ( | const std::string & | text | ) |
Definition at line 63 of file sdl_input_widget_pair.cpp.
bool SdlInputWidgetPair::update | ( | ) |
Definition at line 108 of file sdl_input_widget_pair.cpp.
|
protected |
Definition at line 118 of file sdl_input_widget_pair.cpp.
std::string SdlInputWidgetPair::value | ( | ) | const |
Definition at line 98 of file sdl_input_widget_pair.cpp.
|
protected |
Definition at line 66 of file sdl_input_widget_pair.hpp.
|
protected |
Definition at line 65 of file sdl_input_widget_pair.hpp.