Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

qwtarrowbutton(3) [debian man page]

QwtArrowButton(3)						 Qwt User's Guide						 QwtArrowButton(3)

NAME
QwtArrowButton - Arrow Button. SYNOPSIS
#include <qwt_arrow_button.h> Public Member Functions Qt::ArrowType arrowType () const virtual QSize minimumSizeHint () const int num () const QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL) virtual QSize sizeHint () const virtual ~QwtArrowButton () Protected Member Functions virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) const virtual void drawButtonLabel (QPainter *p) virtual void keyPressEvent (QKeyEvent *) virtual QRect labelRect () const virtual void paintEvent (QPaintEvent *event) Detailed Description Arrow Button. A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right. Constructor &; Destructor Documentation QwtArrowButton::QwtArrowButton (intnum, Qt::ArrowTypearrowType, QWidget *parent = NULL) [explicit] Parameters: num Number of arrows arrowType see Qt::ArowType in the Qt docs. parent Parent widget QwtArrowButton::~QwtArrowButton () [virtual] Destructor. Member Function Documentation QSize QwtArrowButton::arrowSize (Qt::ArrowTypearrowType, const QSize &boundingSize) const [protected, virtual] Calculate the size for a arrow that fits into a rect of a given size Parameters: arrowType Arrow type boundingSize Bounding size Returns: Size of the arrow Qt::ArrowType QwtArrowButton::arrowType () const The direction of the arrows. void QwtArrowButton::drawArrow (QPainter *painter, const QRect &r, Qt::ArrowTypearrowType) const [protected, virtual] Draw an arrow int a bounding rect Parameters: painter Painter r Rectangle where to paint the arrow arrowType Arrow type void QwtArrowButton::drawButtonLabel (QPainter *painter) [protected, virtual] Draw the button label. Parameters: painter Painter See also: The Qt Manual on QPushButton void QwtArrowButton::keyPressEvent (QKeyEvent *e) [protected, virtual] autoRepeat for the space keys QRect QwtArrowButton::labelRect () const [protected, virtual] Returns: the bounding rect for the label QSize QwtArrowButton::minimumSizeHint () const [virtual] Return a minimum size hint. int QwtArrowButton::num () const The number of arrows. void QwtArrowButton::paintEvent (QPaintEvent *event) [protected, virtual] Paint event handler Parameters: event Paint event QSize QwtArrowButton::sizeHint () const [virtual] Returns: a size hint Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 5.2.2 Mon Aug 1 2011 QwtArrowButton(3)

Check Out this Related Man Page

QwtSymbol(3)							 Qwt User's Guide						      QwtSymbol(3)

NAME
QwtSymbol - A class for drawing symbols. SYNOPSIS
#include <qwt_symbol.h> Public Types enum Style { NoSymbol = -1, Ellipse, Rect, Diamond, Triangle, DTriangle, UTriangle, LTriangle, RTriangle, Cross, XCross, HLine, VLine, Star1, Star2, Hexagon, StyleCnt } Public Member Functions const QBrush & brush () const virtual QwtSymbol * clone () const void draw (QPainter *p, const QPoint &pt) const void draw (QPainter *p, int x, int y) const virtual void draw (QPainter *p, const QRect &r) const bool operator!= (const QwtSymbol &) const virtual bool operator== (const QwtSymbol &) const const QPen & pen () const QwtSymbol (Style st, const QBrush &bd, const QPen &pn, const QSize &s) QwtSymbol () void setBrush (const QBrush &b) void setPen (const QPen &p) void setSize (int a, int b=-1) void setSize (const QSize &s) void setStyle (Style s) const QSize & size () const Style style () const virtual ~QwtSymbol () Detailed Description A class for drawing symbols. Member Enumeration Documentation enum QwtSymbol::Style Style See also: setStyle(), style() Constructor &; Destructor Documentation QwtSymbol::QwtSymbol () Default Constructor The symbol is constructed with gray interior, black outline with zero width, no size and style 'NoSymbol'. QwtSymbol::QwtSymbol (QwtSymbol::Stylestyle, const QBrush &brush, const QPen &pen, const QSize &size) Constructor. Parameters: style Symbol Style brush brush to fill the interior pen outline pen size size QwtSymbol::~QwtSymbol () [virtual] Destructor. Member Function Documentation const QBrush& QwtSymbol::brush () const [inline] Return Brush. QwtSymbol * QwtSymbol::clone () const [virtual] Allocate and return a symbol with the same attributes Returns: Cloned symbol void QwtSymbol::draw (QPainter *painter, const QRect &r) const [virtual] Draw the symbol into a bounding rectangle. This function assumes that the painter has been initialized with brush and pen before. This allows a much more performant implementation when painting many symbols with the same brush and pen like in curves. Parameters: painter Painter r Bounding rectangle void QwtSymbol::draw (QPainter *painter, const QPoint &pos) const Draw the symbol at a specified point. Parameters: painter Painter pos Center of the symbol void QwtSymbol::draw (QPainter *p, intx, inty) const Draw the symbol at a point (x,y). bool QwtSymbol::operator!= (const QwtSymbol &other) const != operator bool QwtSymbol::operator== (const QwtSymbol &other) const [virtual] == operator const QPen& QwtSymbol::pen () const [inline] Return Pen. void QwtSymbol::setBrush (const QBrush &brush) Assign a brush. The brush is used to draw the interior of the symbol. Parameters: brush Brush void QwtSymbol::setPen (const QPen &pen) Assign a pen The pen is used to draw the symbol's outline. The width of non cosmetic pens is scaled according to the resolution of the paint device. Parameters: pen Pen See also: pen(), setBrush(), QwtPainter::scaledPen() void QwtSymbol::setSize (const QSize &size) Set the symbol's size Parameters: size Size void QwtSymbol::setSize (intwidth, intheight = -1) Specify the symbol's size. If the 'h' parameter is left out or less than 0, and the 'w' parameter is greater than or equal to 0, the symbol size will be set to (w,w). Parameters: width Width height Height (defaults to -1) void QwtSymbol::setStyle (QwtSymbol::Styles) Specify the symbol style. The following styles are defined: NoSymbol No Style. The symbol cannot be drawn. Ellipse Ellipse or circle Rect Rectangle Diamond Diamond Triangle Triangle pointing upwards DTriangle Triangle pointing downwards UTriangle Triangle pointing upwards LTriangle Triangle pointing left RTriangle Triangle pointing right Cross Cross (+) XCross Diagonal cross (X) HLine Horizontal line VLine Vertical line Star1 X combined with + Star2 Six-pointed star Hexagon Hexagon Parameters: s style const QSize& QwtSymbol::size () const [inline] Return Size. Style QwtSymbol::style () const [inline] Return Style. Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 5.2.2 Mon Aug 1 2011 QwtSymbol(3)
Man Page