OpenTTD Source 20261112-master-gbcbec5e63f
textbuf_type.h File Reference

Stuff related to text buffers. More...

#include "string_type.h"
#include "string_base.h"

Go to the source code of this file.

Data Structures

struct  Textbuf
 Helper/buffer for input fields. More...

Enumerations

enum class  HandleKeyPressResult : uint8_t {
  Editing , Cursor , Confirm , Cancel ,
  NotHandled
}
 Return values for Textbuf::HandleKeypress. More...

Detailed Description

Stuff related to text buffers.

Definition in file textbuf_type.h.

Enumeration Type Documentation

◆ HandleKeyPressResult

enum class HandleKeyPressResult : uint8_t
strong

Return values for Textbuf::HandleKeypress.

Enumerator
Editing 

Textbuf content changed.

Cursor 

Non-text change, e.g. cursor position.

Confirm 

Return or enter key pressed.

Cancel 

Escape key pressed.

NotHandled 

Key does not affect editboxes.

Definition at line 19 of file textbuf_type.h.