Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBSystem Class Reference

TBSystem is porting interface for the underlaying OS. More...

#include <tb_system.h>

Static Public Member Functions

static double GetTimeMS ()
 Get the system time in milliseconds since some undefined epoch. More...
 
static void RescheduleTimer (double fire_time)
 Called when the need to call TBMessageHandler::ProcessMessages has changed due to changes in the message queue. More...
 
static int GetLongClickDelayMS ()
 Get how many milliseconds it should take after a touch down event should generate a long click event. More...
 
static int GetPanThreshold ()
 Get how many pixels of dragging should start panning scrollable widgets. More...
 
static int GetPixelsPerLine ()
 Get how many pixels a typical line is: The length that should be scrolled when turning a mouse wheel one notch. More...
 
static int GetDPI ()
 Get Dots Per Inch for the main screen. More...
 
static void SetDPI (int dpi)
 Set Dots Per Inch for the main screen. More...
 

Detailed Description

TBSystem is porting interface for the underlaying OS.

Member Function Documentation

static int tb::TBSystem::GetDPI ( )
static

Get Dots Per Inch for the main screen.

static int tb::TBSystem::GetLongClickDelayMS ( )
static

Get how many milliseconds it should take after a touch down event should generate a long click event.

static int tb::TBSystem::GetPanThreshold ( )
static

Get how many pixels of dragging should start panning scrollable widgets.

static int tb::TBSystem::GetPixelsPerLine ( )
static

Get how many pixels a typical line is: The length that should be scrolled when turning a mouse wheel one notch.

static double tb::TBSystem::GetTimeMS ( )
static

Get the system time in milliseconds since some undefined epoch.

static void tb::TBSystem::RescheduleTimer ( double  fire_time)
static

Called when the need to call TBMessageHandler::ProcessMessages has changed due to changes in the message queue.

fire_time is the new time is needs to be called. It may be 0 which means that ProcessMessages should be called asap (but NOT from this call!) It may also be TB_NOT_SOON which means that ProcessMessages doesn't need to be called.

static void tb::TBSystem::SetDPI ( int  dpi)
static

Set Dots Per Inch for the main screen.


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