ShishGL  1.0
A simple modular cross-platform graphics library
Sh::UITextInput Class Reference

#include <UITextInput.hpp>

Inheritance diagram for Sh::UITextInput:
Collaboration diagram for Sh::UITextInput:

Public Member Functions

 UITextInput (const Frame &frame, char *buffer, size_t buffer_size)
 
- Public Member Functions inherited from Sh::UILabel
 UILabel (const Frame &frame, const std::string_view &text, IPlatform::Align align=IPlatform::Align::LEFT)
 
 ~UILabel () override=default
 
- Public Member Functions inherited from Sh::UIWindow
template<int SomeState, typename... Args>
UIWindowapplyStyle (Args &&... args)
 
template<typename SomeShape , typename... Args>
UIWindowapplyShape (Args &&... args)
 
template<typename SomeBehavior , typename... Args>
UIWindowsetBehavior (Args &&... args)
 
int getState () const
 
void setState (int new_state)
 
bool contains (const Vector2< double > &point) const override
 
void translate (const Vector2< double > &delta) override
 
void setPos (const Vector2< double > &pos) override
 
void setParent (Window *new_parent) override
 
BehaviorgetBehavior () const
 
 ~UIWindow () override
 
- Public Member Functions inherited from Sh::Window
 Window ()=delete
 
 ~Window () override=default
 
 Window (const Window &other)=delete
 
Windowoperator= (const Window &other)=delete
 
const WindowgetParent () const
 
template<typename SomeWindow , typename... Args>
SomeWindow * attach (Args &&... args)
 
template<typename SomeWindow >
SomeWindow * attach (SomeWindow *child)
 
Windowdetach (Window *child)
 
const FramegetFrame () const
 
const Vector2< double > & getSize () const
 
const Vector2< double > & getPos () const
 
const std::list< Window * > & getChildren ()
 
- Public Member Functions inherited from Sh::Listener
virtual ~Listener ()
 

Additional Inherited Members

- Public Types inherited from Sh::UIWindow
enum  States {
  NORMAL, HOVER, CLICK, HOLD,
  SELECTED
}
 
- Protected Types inherited from Sh::UIWindow
using StyleMap = std::unordered_map< int, StylePack >
 
- Protected Member Functions inherited from Sh::UIWindow
 UIWindow (const Frame &viewport)
 
void onRender () override
 
StyleMapstyles ()
 
const Shape2Dshape () const
 
void notifyBehavior ()
 
- Protected Member Functions inherited from Sh::Window
 Window (const Frame &frame)
 

Constructor & Destructor Documentation

◆ UITextInput()

Sh::UITextInput::UITextInput ( const Frame frame,
char *  buffer,
size_t  buffer_size 
)
inline

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