10 #ifndef QWT_PLOT_LEGEND_ITEM_H 
   11 #define QWT_PLOT_LEGEND_ITEM_H 
   13 #include "qwt_global.h" 
   14 #include "qwt_plot_item.h" 
   66     virtual int rtti() const QWT_OVERRIDE;
 
   68     void setAlignmentInCanvas( Qt::Alignment );
 
   69     Qt::Alignment alignmentInCanvas() const;
 
   71     void setOffsetInCanvas( Qt::Orientations, 
int numPixels );
 
   72     int offsetInCanvas( Qt::Orientation ) const;
 
   74     void setMaxColumns( uint );
 
   75     uint maxColumns() const;
 
   77     void setMargin( 
int );
 
   80     void setSpacing( 
int );
 
   83     void setItemMargin( 
int );
 
   84     int itemMargin() const;
 
   86     void setItemSpacing( 
int );
 
   87     int itemSpacing() const;
 
   89     void setFont( const QFont& );
 
   92     void setBorderRadius( 
double );
 
   93     double borderRadius() const;
 
   95     void setBorderPen( const QPen& );
 
   96     QPen borderPen() const;
 
   98     void setBackgroundBrush( const QBrush& );
 
   99     QBrush backgroundBrush() const;
 
  101     void setBackgroundMode( BackgroundMode );
 
  102     BackgroundMode backgroundMode() const;
 
  104     void setTextPen( const QPen& );
 
  105     QPen textPen() const;
 
  107     virtual 
void draw( QPainter*,
 
  109         const QRectF& canvasRect ) const QWT_OVERRIDE;
 
  116     virtual QRect geometry( const QRectF& canvasRect ) const;
 
  119     virtual 
int heightForWidth( const 
QwtLegendData&, 
int width ) const;
 
  125     virtual 
void drawLegendData( QPainter*,
 
  128     virtual 
void drawBackground( QPainter*, const QRectF& rect ) const;
 
Attributes of an entry on a legend.
Base class for items on the plot canvas.
A class which draws a legend inside the plot canvas.
BackgroundMode
Background mode.
@ LegendBackground
The legend has a background.