OpenTTD Source 20241224-master-gf74b0cf984
textbuf.cpp File Reference

Textbuffer handling. More...

#include "stdafx.h"
#include "textbuf_type.h"
#include "string_func.h"
#include "strings_func.h"
#include "gfx_type.h"
#include "gfx_func.h"
#include "gfx_layout.h"
#include "window_func.h"
#include "core/alloc_func.hpp"
#include "safeguards.h"

Go to the source code of this file.

Functions

std::optional< std::string > GetClipboardContents ()
 Try to retrieve the current clipboard contents.
 

Variables

int _caret_timer
 

Detailed Description

Textbuffer handling.

Definition in file textbuf.cpp.

Function Documentation

◆ GetClipboardContents()

std::optional< std::string > GetClipboardContents ( )

Try to retrieve the current clipboard contents.

Note
OS-specific function.
Returns
The (optional) clipboard contents.

Definition at line 205 of file unix.cpp.

References FS2OTTD().

Referenced by Textbuf::InsertClipboard().

Variable Documentation

◆ _caret_timer

int _caret_timer

Definition at line 31 of file textbuf.cpp.