Logo Search packages:      
Sourcecode: ktechlab version File versions

ResizeHandle Class Reference

#include <resizeoverlay.h>

Inheritance diagram for ResizeHandle:

List of all members.

Detailed Description

David Saxton

Definition at line 32 of file resizeoverlay.h.

Public Types

enum  DrawType {
  dt_point_rect, dt_point_crosshair, dt_resize_forwardsDiagonal, dt_resize_backwardsDiagonal,
  dt_resize_vertical, dt_resize_horizontal, dt_rotate_topLeft, dt_rotate_topRight,
  dt_rotate_bottomRight, dt_rotate_bottomLeft
enum  ResizeHandlePosition {
  rhp_none, rhp_topLeft, rhp_topMiddle, rhp_topRight,
  rhp_middleRight, rhp_bottomRight, rhp_bottomMiddle, rhp_bottomLeft,
  rhp_middleLeft, rhp_center, rhp_start, rhp_end

Public Slots

void slotMoveByX (double dx)
void slotMoveByY (double dy)


void rhMovedBy (int id, double dx, double dy)
void rhMovedByX (double dx)
void rhMovedByY (double dy)

Public Member Functions

virtual QPointArray areaPoints () const
QRect boundingRect () const
QBrush brush () const
QCanvas * canvas () const
bool collidesWith (const QCanvasItem *) const
QCanvasItemList collisions (const bool exact) const
int height () const
void hide ()
int id () const
bool isSelected () const
bool isVisible () const
void move (double const x, double const y)
virtual void moveBy (double const dx, double const dy)
void moveRH (double x, double y)
bool needRedraw () const
QPen pen () const
QRect rect () const
 ResizeHandle (ResizeOverlay *resizeOverlay, int id, DrawType drawType, int xsnap, int ysnap)
virtual void setBrush (const QBrush &b)
virtual void setCanvas (QCanvas *)
void setDrawType (DrawType drawType)
void setHover (bool hover)
void setNeedRedraw (const bool needRedraw)
virtual void setPen (const QPen &p)
virtual void setSelected (const bool yes)
void setSize (const int w, const int h)
virtual void setVisible (bool yes)
void setX (double a)
void setY (double a)
void setZ (double a)
void show ()
QSize size () const
int width () const
double x () const
double y () const
double z () const

Static Public Member Functions

static const QPixmap & handlePixmap (DrawType drawType, bool hover)

Protected Member Functions

virtual void addToChunks ()
virtual void changeChunks ()
QPointArray chunks () const
void draw (QPainter &)
virtual void drawShape (QPainter &p)
void invalidate ()
bool isValid () const
virtual void removeFromChunks ()
void setWinding (bool)
void update ()
bool winding () const

Protected Attributes

bool b_hover
DrawType m_drawType
int m_id
int m_xsnap
int m_ysnap
double myx
double myy
double myz
bool val

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

Generated by  Doxygen 1.6.0   Back to index