FreeRDP
SdlInputWidget Class Reference

#include <sdl_input.hpp>

Public Types

enum  { SDL_INPUT_MASK = 1 , SDL_INPUT_READONLY = 2 }
 

Public Member Functions

 SdlInputWidget (SDL_Renderer *renderer, const std::string &label, const std::string &initial, Uint32 flags, size_t offset, size_t width, size_t height)
 
 SdlInputWidget (SdlInputWidget &&other) noexcept
 
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 hightlight)
 
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
 

Protected Member Functions

bool update_input (SDL_Renderer *renderer, SDL_Color fgclor)
 

Detailed Description

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.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SDL_INPUT_MASK 
SDL_INPUT_READONLY 

Constructor & Destructor Documentation

◆ SdlInputWidget() [1/2]

SdlInputWidget::SdlInputWidget ( SDL_Renderer *  renderer,
const std::string &  label,
const std::string &  initial,
Uint32  flags,
size_t  offset,
size_t  width,
size_t  height 
)

◆ SdlInputWidget() [2/2]

SdlInputWidget::SdlInputWidget ( SdlInputWidget &&  other)
noexcept

Member Function Documentation

◆ append_str()

bool SdlInputWidget::append_str ( SDL_Renderer *  renderer,
const std::string &  text 
)
Here is the call graph for this function:

◆ fill_label()

bool SdlInputWidget::fill_label ( SDL_Renderer *  renderer,
SDL_Color  color 
)
Here is the call graph for this function:

◆ input_rect()

const SDL_Rect & SdlInputWidget::input_rect ( ) const
Here is the call graph for this function:

◆ readonly()

bool SdlInputWidget::readonly ( ) const
Here is the caller graph for this function:

◆ remove_str()

bool SdlInputWidget::remove_str ( SDL_Renderer *  renderer,
size_t  count 
)
Here is the call graph for this function:

◆ resize_input()

bool SdlInputWidget::resize_input ( size_t  size)
Here is the caller graph for this function:

◆ set_highlight()

bool SdlInputWidget::set_highlight ( SDL_Renderer *  renderer,
bool  hightlight 
)
Here is the call graph for this function:

◆ set_mouseover()

bool SdlInputWidget::set_mouseover ( SDL_Renderer *  renderer,
bool  mouseOver 
)
Here is the call graph for this function:

◆ set_str()

bool SdlInputWidget::set_str ( SDL_Renderer *  renderer,
const std::string &  text 
)
Here is the call graph for this function:

◆ update_input() [1/2]

bool SdlInputWidget::update_input ( SDL_Renderer *  renderer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_input() [2/2]

bool SdlInputWidget::update_input ( SDL_Renderer *  renderer,
SDL_Color  fgclor 
)
protected
Here is the call graph for this function:

◆ update_label()

bool SdlInputWidget::update_label ( SDL_Renderer *  renderer)
Here is the call graph for this function:

◆ value()

std::string SdlInputWidget::value ( ) const

The documentation for this class was generated from the following files: