Logo Search packages:      
Sourcecode: ktechlab version File versions

ResizeHandle Class Reference

#include <resizeoverlay.h>

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
int id () const
void moveRH (double x, double y)
 ResizeHandle (ResizeOverlay *resizeOverlay, int id, DrawType drawType, int xsnap, int ysnap)
int rtti () const
void setDrawType (DrawType drawType)
void setHover (bool hover)

Static Public Member Functions

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

Protected Member Functions

virtual void drawShape (QPainter &p)

Protected Attributes

bool b_hover
DrawType m_drawType
int m_id
int m_xsnap
int m_ysnap

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

Generated by  Doxygen 1.6.0   Back to index