Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | List of all members
TextInputManager Class Reference

#include <input_manager.h>

Public Member Functions

void start_input (SDL_Window *window)
 
void stop_input (SDL_Window *window)
 
void process_event (const SDL_Event &event)
 
void clear_text ()
 
bool is_active () const
 
const std::string & get_text () const
 
const std::string & get_composition () const
 
int get_cursor_position () const
 
void set_text (const std::string &text)
 
void insert_text (const std::string &text)
 
void delete_char_at_cursor ()
 
void move_cursor (int offset)
 

Member Function Documentation

◆ clear_text()

void TextInputManager::clear_text ( )

◆ delete_char_at_cursor()

void TextInputManager::delete_char_at_cursor ( )

◆ get_composition()

const std::string& TextInputManager::get_composition ( ) const
inline

◆ get_cursor_position()

int TextInputManager::get_cursor_position ( ) const
inline

◆ get_text()

const std::string& TextInputManager::get_text ( ) const
inline

◆ insert_text()

void TextInputManager::insert_text ( const std::string &  text)

◆ is_active()

bool TextInputManager::is_active ( ) const
inline

◆ move_cursor()

void TextInputManager::move_cursor ( int  offset)

◆ process_event()

void TextInputManager::process_event ( const SDL_Event &  event)

◆ set_text()

void TextInputManager::set_text ( const std::string &  text)

◆ start_input()

void TextInputManager::start_input ( SDL_Window *  window)

◆ stop_input()

void TextInputManager::stop_input ( SDL_Window *  window)

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