QtCanvasText Class Reference

#include <ArmarXGui/libraries/qtpropertybrowser/examples/canvas_typed/qtcanvas.h>

+ Inheritance diagram for QtCanvasText:

Public Member Functions

QRect boundingRect () const
 
QRect boundingRect () const
 
bool collidesWith (const QtCanvasItem *) const
 
bool collidesWith (const QtCanvasItem *) const
 
QColor color () const
 
QColor color () const
 
QFont font () const
 
QFont font () const
 
void moveBy (double dx, double dy)
 
void moveBy (double dx, double dy)
 
 QtCanvasText (const QString &, QFont, QtCanvas *canvas)
 
 QtCanvasText (const QString &, QFont, QtCanvas *canvas)
 
 QtCanvasText (const QString &, QtCanvas *canvas)
 
 QtCanvasText (const QString &, QtCanvas *canvas)
 
 QtCanvasText (QtCanvas *canvas)
 
 QtCanvasText (QtCanvas *canvas)
 
int rtti () const
 
int rtti () const
 
void setColor (const QColor &)
 
void setColor (const QColor &)
 
void setFont (const QFont &)
 
void setFont (const QFont &)
 
void setText (const QString &)
 
void setText (const QString &)
 
void setTextFlags (int)
 
void setTextFlags (int)
 
QString text () const
 
QString text () const
 
int textFlags () const
 
int textFlags () const
 
virtual ~QtCanvasText ()
 
virtual ~QtCanvasText ()
 
- Public Member Functions inherited from QtCanvasItem
bool active () const
 
bool active () const
 
virtual void advance (int stage)
 
virtual void advance (int stage)
 
bool animated () const
 
bool animated () const
 
virtual QRect boundingRectAdvanced () const
 
virtual QRect boundingRectAdvanced () const
 
QtCanvascanvas () const
 
QtCanvascanvas () const
 
QtCanvasItemList collisions (bool exact) const
 
QtCanvasItemList collisions (bool exact) const
 
bool enabled () const
 
bool enabled () const
 
void hide ()
 
void hide ()
 
bool isActive () const
 
bool isActive () const
 
bool isEnabled () const
 
bool isEnabled () const
 
bool isSelected () const
 
bool isSelected () const
 
bool isVisible () const
 
bool isVisible () const
 
void move (double x, double y)
 
void move (double x, double y)
 
 QtCanvasItem (QtCanvas *canvas)
 
 QtCanvasItem (QtCanvas *canvas)
 
bool selected () const
 
bool selected () const
 
virtual void setActive (bool yes)
 
virtual void setActive (bool yes)
 
virtual void setAnimated (bool y)
 
virtual void setAnimated (bool y)
 
virtual void setCanvas (QtCanvas *)
 
virtual void setCanvas (QtCanvas *)
 
virtual void setEnabled (bool yes)
 
virtual void setEnabled (bool yes)
 
virtual void setSelected (bool yes)
 
virtual void setSelected (bool yes)
 
virtual void setVelocity (double vx, double vy)
 
virtual void setVelocity (double vx, double vy)
 
virtual void setVisible (bool yes)
 
virtual void setVisible (bool yes)
 
void setX (double a)
 
void setX (double a)
 
void setXVelocity (double vx)
 
void setXVelocity (double vx)
 
void setY (double a)
 
void setY (double a)
 
void setYVelocity (double vy)
 
void setYVelocity (double vy)
 
void setZ (double a)
 
void setZ (double a)
 
void show ()
 
void show ()
 
bool visible () const
 
bool visible () const
 
double x () const
 
double x () const
 
double xVelocity () const
 
double xVelocity () const
 
double y () const
 
double y () const
 
double yVelocity () const
 
double yVelocity () const
 
double z () const
 
double z () const
 
virtual ~QtCanvasItem ()
 
virtual ~QtCanvasItem ()
 

Static Public Attributes

static int RTTI = Rtti_Text
 
- Static Public Attributes inherited from QtCanvasItem
static int RTTI = Rtti_Item
 

Protected Member Functions

virtual void draw (QPainter &)
 
virtual void draw (QPainter &)
 
- Protected Member Functions inherited from QtCanvasItem
void update ()
 
void update ()
 

Additional Inherited Members

- Public Types inherited from QtCanvasItem
enum  RttiValues {
  Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3,
  Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7,
  Rtti_Spline = 8, Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2,
  Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6,
  Rtti_Line = 7, Rtti_Spline = 8
}
 
enum  RttiValues {
  Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3,
  Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7,
  Rtti_Spline = 8, Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2,
  Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6,
  Rtti_Line = 7, Rtti_Spline = 8
}
 

Detailed Description

Definition at line 838 of file qtcanvas.h.

Constructor & Destructor Documentation

◆ QtCanvasText() [1/6]

QtCanvasText ( QtCanvas canvas)

Definition at line 5019 of file qtcanvas.cpp.

◆ QtCanvasText() [2/6]

QtCanvasText ( const QString &  t,
QtCanvas canvas 
)

Definition at line 5030 of file qtcanvas.cpp.

◆ QtCanvasText() [3/6]

QtCanvasText ( const QString &  t,
QFont  f,
QtCanvas canvas 
)

Definition at line 5042 of file qtcanvas.cpp.

◆ ~QtCanvasText() [1/2]

~QtCanvasText ( )
virtual

Definition at line 5053 of file qtcanvas.cpp.

◆ QtCanvasText() [4/6]

QtCanvasText ( QtCanvas canvas)

◆ QtCanvasText() [5/6]

QtCanvasText ( const QString &  ,
QtCanvas canvas 
)

◆ QtCanvasText() [6/6]

QtCanvasText ( const QString &  ,
QFont  ,
QtCanvas canvas 
)

◆ ~QtCanvasText() [2/2]

virtual ~QtCanvasText ( )
virtual

Member Function Documentation

◆ boundingRect() [1/2]

QRect boundingRect ( ) const
virtual

Implements QtCanvasItem.

Definition at line 5061 of file qtcanvas.cpp.

◆ boundingRect() [2/2]

QRect boundingRect ( ) const
virtual

Implements QtCanvasItem.

◆ collidesWith() [1/2]

bool collidesWith ( const QtCanvasItem i) const
virtual

Implements QtCanvasItem.

Definition at line 2565 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ collidesWith() [2/2]

bool collidesWith ( const QtCanvasItem ) const
virtual

Implements QtCanvasItem.

◆ color() [1/2]

QColor color ( ) const

◆ color() [2/2]

QColor color ( ) const

Definition at line 5156 of file qtcanvas.cpp.

◆ draw() [1/2]

void draw ( QPainter &  painter)
protectedvirtual

Implements QtCanvasItem.

Definition at line 5199 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ draw() [2/2]

virtual void draw ( QPainter &  )
protectedvirtual

Implements QtCanvasItem.

◆ font() [1/2]

QFont font ( ) const

◆ font() [2/2]

QFont font ( ) const

Definition at line 5130 of file qtcanvas.cpp.

◆ moveBy() [1/2]

void moveBy ( double  dx,
double  dy 
)
virtual

Reimplemented from QtCanvasItem.

◆ moveBy() [2/2]

void moveBy ( double  dx,
double  dy 
)
virtual

Reimplemented from QtCanvasItem.

Definition at line 5176 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ rtti() [1/2]

int rtti ( ) const
virtual

Reimplemented from QtCanvasItem.

◆ rtti() [2/2]

int rtti ( ) const
virtual

Reimplemented from QtCanvasItem.

Definition at line 5325 of file qtcanvas.cpp.

◆ setColor() [1/2]

void setColor ( const QColor &  )

◆ setColor() [2/2]

void setColor ( const QColor &  c)

Definition at line 5166 of file qtcanvas.cpp.

◆ setFont() [1/2]

void setFont ( const QFont &  f)

Definition at line 5140 of file qtcanvas.cpp.

◆ setFont() [2/2]

void setFont ( const QFont &  )

◆ setText() [1/2]

void setText ( const QString &  )

◆ setText() [2/2]

void setText ( const QString &  t)

Definition at line 5114 of file qtcanvas.cpp.

◆ setTextFlags() [1/2]

void setTextFlags ( int  f)

Definition at line 5087 of file qtcanvas.cpp.

◆ setTextFlags() [2/2]

void setTextFlags ( int  )

◆ text() [1/2]

QString text ( ) const

◆ text() [2/2]

QString text ( ) const

Definition at line 5103 of file qtcanvas.cpp.

◆ textFlags() [1/2]

int textFlags ( ) const
inline

Definition at line 856 of file qtcanvas.h.

◆ textFlags() [2/2]

int textFlags ( ) const
inline

Definition at line 856 of file qtcanvas.h.

Member Data Documentation

◆ RTTI

static int RTTI = Rtti_Text
static

Definition at line 867 of file qtcanvas.h.


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