Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::HintWindow Class Reference

Floating window like tool tip available to the script engine as well. More...

#include <HintWindow.h>

Inheritance diagram for sf::HintWindow:
Collaboration diagram for sf::HintWindow:

Public Member Functions

 HintWindow (QWidget *parent)
 Constructor.
 
void setPosition (const QPoint &pt)
 Sets the global position to appear at.
 
void setOffset (const QPoint &pt)
 Sets the offset from the given position to appear at.
 
void setOffset (int x, int y)
 Sets the offset from the given position to appear at.
 
void setActive (bool active)
 Activates or deactivates the window (calls setVisible() for now).
 

Protected Attributes

QPoint _offset {0, 0}
 Holds the offset for the position.
 

Detailed Description

Floating window like tool tip available to the script engine as well.

Constructor & Destructor Documentation

◆ HintWindow()

sf::HintWindow::HintWindow ( QWidget *  parent)
explicit

Constructor.

Member Function Documentation

◆ setActive()

void sf::HintWindow::setActive ( bool  active)

Activates or deactivates the window (calls setVisible() for now).

◆ setOffset() [1/2]

void sf::HintWindow::setOffset ( const QPoint &  pt)

Sets the offset from the given position to appear at.

◆ setOffset() [2/2]

void sf::HintWindow::setOffset ( int  x,
int  y 
)

Sets the offset from the given position to appear at.

◆ setPosition()

void sf::HintWindow::setPosition ( const QPoint &  pt)

Sets the global position to appear at.

Member Data Documentation

◆ _offset

QPoint sf::HintWindow::_offset {0, 0}
protected

Holds the offset for the position.


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