Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QwtPlotAbstractCanvas Class Reference

#include <qwt_plot_abstract_canvas.h>

Inheritance diagram for QwtPlotAbstractCanvas:
Inheritance graph
[legend]

Classes

class  PrivateData
 

Public Types

enum  FocusIndicator { NoFocusIndicator, CanvasFocusIndicator, ItemFocusIndicator }
 Focus indicator The default setting is NoFocusIndicator. More...
 

Public Member Functions

double borderRadius () const
 
FocusIndicator focusIndicator () const
 
QwtPlotplot ()
 Return parent plot widget. More...
 
const QwtPlotplot () const
 Return parent plot widget. More...
 
 QwtPlotAbstractCanvas (QWidget *canvasWidget)
 
void setBorderRadius (double)
 
void setFocusIndicator (FocusIndicator)
 
virtual ~QwtPlotAbstractCanvas ()
 

Protected Member Functions

QPainterPath borderPath2 (const QRect &rect) const
 
QWidget * canvasWidget ()
 
const QWidget * canvasWidget () const
 
virtual void drawBackground (QPainter *)
 
virtual void drawBorder (QPainter *)
 
void drawCanvas (QPainter *)
 
virtual void drawFocusIndicator (QPainter *)
 
void drawStyled (QPainter *, bool)
 
void drawUnstyled (QPainter *)
 
void fillBackground (QPainter *)
 
void updateStyleSheetInfo ()
 Update the cached information about the current style sheet. More...
 

Private Attributes

PrivateDatad_data
 

Detailed Description

Definition at line 18 of file qwt_plot_abstract_canvas.h.

Member Enumeration Documentation

Focus indicator The default setting is NoFocusIndicator.

See also
setFocusIndicator(), focusIndicator(), drawFocusIndicator()
Enumerator
NoFocusIndicator 

Don't paint a focus indicator.

CanvasFocusIndicator 

The focus is related to the complete canvas. Paint the focus indicator using drawFocusIndicator()

ItemFocusIndicator 

The focus is related to an item (curve, point, ...) on the canvas. It is up to the application to display a focus indication using f.e. highlighting.

Definition at line 27 of file qwt_plot_abstract_canvas.h.

Constructor & Destructor Documentation

QwtPlotAbstractCanvas::QwtPlotAbstractCanvas ( QWidget *  canvasWidget)
explicit

Definition at line 530 of file qwt_plot_abstract_canvas.cpp.

QwtPlotAbstractCanvas::~QwtPlotAbstractCanvas ( )
virtual

Definition at line 546 of file qwt_plot_abstract_canvas.cpp.

Member Function Documentation

QPainterPath QwtPlotAbstractCanvas::borderPath2 ( const QRect &  rect) const
protected

Definition at line 618 of file qwt_plot_abstract_canvas.cpp.

double QwtPlotAbstractCanvas::borderRadius ( ) const
Returns
Radius for the corners of the border frame
See also
setBorderRadius()

Definition at line 613 of file qwt_plot_abstract_canvas.cpp.

QWidget * QwtPlotAbstractCanvas::canvasWidget ( )
protected

Definition at line 865 of file qwt_plot_abstract_canvas.cpp.

const QWidget * QwtPlotAbstractCanvas::canvasWidget ( ) const
protected

Definition at line 870 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawBackground ( QPainter *  painter)
protectedvirtual

Definition at line 688 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawBorder ( QPainter *  painter)
protectedvirtual

Draw the border of the canvas

Parameters
painterPainter

Reimplemented in QwtPlotCanvas.

Definition at line 627 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawCanvas ( QPainter *  painter)
protected

Definition at line 797 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawFocusIndicator ( QPainter *  painter)
protectedvirtual

Draw the focus indication

Parameters
painterPainter

Definition at line 587 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawStyled ( QPainter *  painter,
bool  hackStyledBackground 
)
protected

Definition at line 739 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::drawUnstyled ( QPainter *  painter)
protected

Definition at line 698 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::fillBackground ( QPainter *  painter)
protected

Definition at line 693 of file qwt_plot_abstract_canvas.cpp.

QwtPlotAbstractCanvas::FocusIndicator QwtPlotAbstractCanvas::focusIndicator ( ) const
Returns
Focus indicator
See also
FocusIndicator, setFocusIndicator()

Definition at line 578 of file qwt_plot_abstract_canvas.cpp.

QwtPlot * QwtPlotAbstractCanvas::plot ( )

Return parent plot widget.

Definition at line 552 of file qwt_plot_abstract_canvas.cpp.

const QwtPlot * QwtPlotAbstractCanvas::plot ( ) const

Return parent plot widget.

Definition at line 558 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::setBorderRadius ( double  radius)

Set the radius for the corners of the border frame

Parameters
radiusRadius of a rounded corner
See also
borderRadius()

Definition at line 604 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::setFocusIndicator ( FocusIndicator  focusIndicator)

Set the focus indicator

See also
FocusIndicator, focusIndicator()

Definition at line 568 of file qwt_plot_abstract_canvas.cpp.

void QwtPlotAbstractCanvas::updateStyleSheetInfo ( )
protected

Update the cached information about the current style sheet.

Definition at line 829 of file qwt_plot_abstract_canvas.cpp.

Member Data Documentation

PrivateData* QwtPlotAbstractCanvas::d_data
private

Definition at line 77 of file qwt_plot_abstract_canvas.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:50