ddt  0.1
Public Types | Public Member Functions | Public Attributes | List of all members
CornerGrabber Class Reference

#include <ddtCornergrabber.hpp>

Inheritance diagram for CornerGrabber:

Public Types

enum  { CG_MOUSE_RELEASED = 0, CG_MOUSE_DOWN, CG_MOUSE_MOVING }
 

Public Member Functions

 CornerGrabber (QGraphicsItem *parent=nullptr, const int corner=0)
 
int GetCorner () const
 
void SetMouseState (const int state)
 
int GetMouseState () const
 

Public Attributes

qreal mouse_down_x
 
qreal mouse_down_y
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Define the mouse states

Enumerator
CG_MOUSE_RELEASED 
CG_MOUSE_DOWN 
CG_MOUSE_MOVING 

Constructor & Destructor Documentation

◆ CornerGrabber()

CornerGrabber::CornerGrabber ( QGraphicsItem *  parent = nullptr,
const int  corner = 0 
)
explicit

Constructor

Member Function Documentation

◆ GetCorner()

int CornerGrabber::GetCorner ( ) const

Check which corner was selected

◆ GetMouseState()

int CornerGrabber::GetMouseState ( ) const

Get the current mouse state

◆ SetMouseState()

void CornerGrabber::SetMouseState ( const int  state)

Record the current mouse state

Member Data Documentation

◆ mouse_down_x

qreal CornerGrabber::mouse_down_x

Mouse coordinate x

◆ mouse_down_y

qreal CornerGrabber::mouse_down_y

Mouse coordinate y


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