Skip to content

Text_input

fgrimau edited this page Dec 28, 2019 · 12 revisions

The Text_input class

Handle a complete text input, drawing, handling events (such as copy/paste), and text keeping

Text_input Methods

  • TextInput()
  • TextInput(const TextInput&)
  • ~TextInput()
  • TextInput& operator=(const TextInput&)

Getters

  • bool collide(SDL_Event*) const
  • bool collide(int, int) const

Setters

  • void set_text_size(int, int)

Others

  • int draw(Screen*)
  • int update(SDL_Event*, Screen*, TTF_Font*)
  • void update_image(Screen*, TTF_Font*)

Clone this wiki locally