Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes | Friends
icl::qt::DefineRectanglesMouseHandler::DefinedRect Struct Reference

Internally used utils::Rect structure. More...

#include <DefineRectanglesMouseHandler.h>

Inheritance diagram for icl::qt::DefineRectanglesMouseHandler::DefinedRect:
icl::utils::Rect

List of all members.

Public Types

enum  Edge { T, R, B, L }
 Edges. More...
enum  State { nothing, hovered, dragged }
 Edge states. More...

Public Member Functions

utils::Rect edge (Edge e) const
 internal helper method
utils::Rect edgei (int i) const
 internal helper method
utils::Rect inner () const
 internal helper method
utils::Rect outer () const
 internal helper method
bool allHovered () const
 internal helper method
bool allDragged () const
 internal helper method
bool anyDragged () const
 internal helper method
 DefinedRect (const utils::Rect &r=utils::Rect::null, DefineRectanglesMouseHandler::Options *options=0)
 Constructor.
State event (const MouseEvent &e)
 event processing if the rectangle was hit
void visualize (ICLDrawWidget &w)
 visualization

Public Attributes

State states [4]
 State of all 4 edges.
utils::Point allDragOffs
 Internal help variable for smooth shifting of the whole rectangle.
DefineRectanglesMouseHandler::Optionsoptions
 a pointer to the parent DefineRectanglesMouseHandler's Option structure
utils::Any meta
 this can be used to attach meta data to rectangles

Friends

class DefineRectanglesMouseHandler
 grant private member access to DefineRectanglesMouseHandler

Detailed Description

Internally used utils::Rect structure.


Member Enumeration Documentation

Edges.

Enumerator:
T 

Top edge.

R 

Right edge.

B 

Bottom edge.

L 

Left edge.

Edge states.

Enumerator:
nothing 

nothing is currently done with this edge

hovered 

this edge is currently hovered (mouse over/not dragged)

dragged 

this edge is currently dragged


Constructor & Destructor Documentation

Constructor.


Member Function Documentation

internal helper method

internal helper method

internal helper method

internal helper method

internal helper method

event processing if the rectangle was hit

internal helper method

internal helper method

visualization


Friends And Related Function Documentation

friend class DefineRectanglesMouseHandler [friend]

grant private member access to DefineRectanglesMouseHandler


Member Data Documentation

Internal help variable for smooth shifting of the whole rectangle.

this can be used to attach meta data to rectangles

a pointer to the parent DefineRectanglesMouseHandler's Option structure

State of all 4 edges.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines