QwtSymbol man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

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

NAME
       QwtSymbol -

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
       QwtSymbol ()
       QwtSymbol (Style st, const QBrush &bd, const QPen &pn, const QSize &s)
       virtual ~QwtSymbol ()
       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
       void setBrush (const QBrush &b)
       void setPen (const QPen &p)
       void setSize (const QSize &s)
       void setSize (int a, int b=-1)
       void setStyle (Style s)
       const QSize & size () const
       Style style () const

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

Member Function Documentation
   QwtSymbol * QwtSymbol::clone () const [virtual]
       Allocate and return a symbol with the same attributes

       Returns:
	   Cloned symbol

   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 *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::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

Author
       Generated automatically by Doxygen for Qwt User's Guide from the source
       code.

Version 5.2.3			Tue Nov 20 2012			  QwtSymbol(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net