QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ScreenToolsController Class Reference

This Qml control is used to return screen parameters. More...

#include <ScreenToolsController.h>

+ Inheritance diagram for ScreenToolsController:
+ Collaboration diagram for ScreenToolsController:

Public Member Functions

 ScreenToolsController (QObject *parent=nullptr)
 
 ~ScreenToolsController ()
 

Static Public Member Functions

static Q_INVOKABLE int mouseX ()
 Returns current mouse position.
 
static Q_INVOKABLE int mouseY ()
 
static Q_INVOKABLE double defaultFontDescent (int pointSize)
 
static bool isMobile ()
 
static bool fakeMobile ()
 
static bool isAndroid ()
 
static bool isiOS ()
 
static bool isLinux ()
 
static bool isMacOS ()
 
static bool isWindows ()
 
static bool isSerialAvailable ()
 
static bool isDebug ()
 
static bool hasTouch ()
 
static QString iOSDevice ()
 
static QString fixedFontFamily ()
 
static QString normalFontFamily ()
 

Detailed Description

This Qml control is used to return screen parameters.

Definition at line 8 of file ScreenToolsController.h.

Constructor & Destructor Documentation

◆ ScreenToolsController()

ScreenToolsController::ScreenToolsController ( QObject *  parent = nullptr)
explicit

Definition at line 18 of file ScreenToolsController.cc.

◆ ~ScreenToolsController()

ScreenToolsController::~ScreenToolsController ( )

Definition at line 24 of file ScreenToolsController.cc.

Member Function Documentation

◆ defaultFontDescent()

double ScreenToolsController::defaultFontDescent ( int  pointSize)
static

Definition at line 76 of file ScreenToolsController.cc.

References normalFontFamily().

◆ fakeMobile()

bool ScreenToolsController::fakeMobile ( )
static

Definition at line 82 of file ScreenToolsController.cc.

References qgcApp.

Referenced by isMobile().

◆ fixedFontFamily()

QString ScreenToolsController::fixedFontFamily ( )
static

Definition at line 60 of file ScreenToolsController.cc.

◆ hasTouch()

bool ScreenToolsController::hasTouch ( )
static

Definition at line 39 of file ScreenToolsController.cc.

◆ iOSDevice()

QString ScreenToolsController::iOSDevice ( )
static

Definition at line 49 of file ScreenToolsController.cc.

◆ isAndroid()

static bool ScreenToolsController::isAndroid ( )
inlinestatic

Definition at line 77 of file ScreenToolsController.h.

◆ isDebug()

static bool ScreenToolsController::isDebug ( )
inlinestatic

Definition at line 93 of file ScreenToolsController.h.

◆ isiOS()

static bool ScreenToolsController::isiOS ( )
inlinestatic

Definition at line 78 of file ScreenToolsController.h.

◆ isLinux()

static bool ScreenToolsController::isLinux ( )
inlinestatic

Definition at line 79 of file ScreenToolsController.h.

◆ isMacOS()

static bool ScreenToolsController::isMacOS ( )
inlinestatic

Definition at line 80 of file ScreenToolsController.h.

◆ isMobile()

static bool ScreenToolsController::isMobile ( )
inlinestatic

Definition at line 42 of file ScreenToolsController.h.

References fakeMobile().

◆ isSerialAvailable()

static bool ScreenToolsController::isSerialAvailable ( )
inlinestatic

Definition at line 87 of file ScreenToolsController.h.

◆ isWindows()

static bool ScreenToolsController::isWindows ( )
inlinestatic

Definition at line 81 of file ScreenToolsController.h.

◆ mouseX()

int ScreenToolsController::mouseX ( )
static

Returns current mouse position.

Definition at line 29 of file ScreenToolsController.cc.

◆ mouseY()

int ScreenToolsController::mouseY ( )
static

Definition at line 34 of file ScreenToolsController.cc.

◆ normalFontFamily()

QString ScreenToolsController::normalFontFamily ( )
static

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