48 #ifndef QT_NO_RUBBERBAND 53 # include <private/qt_mac_p.h> 54 # include <private/qt_cocoa_helpers_mac_p.h> 59 #include <private/qwidget_p.h> 64 #define RUBBERBAND_WINDOW_TYPE Qt::ToolTip 88 option->
shape = d_func()->shape;
207 q->initStyleOption(&opt);
360 #endif // QT_NO_RUBBERBAND
#define RUBBERBAND_WINDOW_TYPE
#define QT_END_NAMESPACE
This macro expands to.
void drawControl(QStyle::ControlElement ce, const QStyleOption &opt)
Use the widget's style to draw a control element ce specified by QStyleOption option.
void showEvent(QShowEvent *)
Reimplemented Function
void resizeEvent(QResizeEvent *)
Reimplemented Function
Shape
This enum specifies what shape a QRubberBand should have.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setGeometry(const QRect &r)
Sets the geometry of the rubber band to rect, specified in the coordinate system of its parent widget...
The QMoveEvent class contains event parameters for move events.
void macWindowSetHasShadow(void *window, bool hasShadow)
void moveEvent(QMoveEvent *)
Reimplemented Function
void initFrom(const QWidget *w)
The QResizeEvent class contains event parameters for resize events.
The QRegion class specifies a clip region for a painter.
~QRubberBand()
Destructor.
The QShowEvent class provides an event that is sent when a widget is shown.
bool opaque
whether the rubber band is required to be drawn in an opaque style
The QStyleOptionRubberBand class is used to describe the parameters needed for drawing a rubber band...
void paintEvent(QPaintEvent *)
Reimplemented Function
The QStyleHintReturnMask class provides style hints that return a QRegion.
#define Q_DECLARE_PUBLIC(Class)
bool event(QEvent *e)
Reimplemented Function
QObject * parent() const
Returns a pointer to the parent object.
The QRect class defines a rectangle in the plane using integer precision.
QRubberBand::Shape shape
the shape of the rubber band
void initStyleOption(QStyleOptionRubberBand *option) const
Initialize option with the values from this QRubberBand.
Shape shape() const
Returns the shape of this rubber band.
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget...
void ignore()
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
void changeEvent(QEvent *)
Reimplemented Function
QRegion region
the region for style hints that return a QRegion
The QPaintEvent class contains event parameters for paint events.
QRubberBand(Shape, QWidget *=0)
Constructs a rubber band of shape s, with parent p.
The QEvent class is the base class of all event classes.
The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary...
Type type() const
Returns the event type.