44 static void SetDPI(
int dpi);
72 enum TBFileMode { MODE_READ, MODE_WRITETRUNC };
73 static TBFile *Open(
const TBStr & filename, TBFileMode mode);
76 virtual long Size() = 0;
77 virtual size_t Read(
void *buf,
size_t elemSize,
size_t count) = 0;
78 virtual size_t Write(
const void *buf,
size_t elemSize,
size_t count) = 0;
79 virtual size_t Write(
const TBStr & str) = 0;
static void SetDPI(int dpi)
Set Dots Per Inch for the main screen.
static void Empty()
Empty the contents of the clipboard.
TBSystem is porting interface for the underlaying OS.
Definition: tb_system.h:17
static void RescheduleTimer(double fire_time)
Called when the need to call TBMessageHandler::ProcessMessages has changed due to changes in the mess...
static bool SetText(const TBStr &text)
Set the text of the clipboard in UTF-8 format.
static int GetDPI()
Get Dots Per Inch for the main screen.
static int GetLongClickDelayMS()
Get how many milliseconds it should take after a touch down event should generate a long click event...
static int GetPanThreshold()
Get how many pixels of dragging should start panning scrollable widgets.
static int GetPixelsPerLine()
Get how many pixels a typical line is: The length that should be scrolled when turning a mouse wheel ...
TBStr is a simple string class.
Definition: tb_str.h:62
static bool HasText()
Return true if the clipboard currently contains text.
TBFile is a portable interface for file access.
Definition: tb_system.h:69
static double GetTimeMS()
Get the system time in milliseconds since some undefined epoch.
TBClipboard is a portable interface for the clipboard.
Definition: tb_system.h:51
static bool GetText(TBStr &text)
Get the text from the clipboard in UTF-8 format.