Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LabelGraphicsItem Class Reference
Inheritance diagram for inviwo::LabelGraphicsItem:

Public Member Functions

 LabelGraphicsItem (QGraphicsItem *parent, int width=30, Qt::Alignment alignment=Qt::AlignLeft|Qt::AlignTop)
QString text () const
void setText (const QString &)
void setHtml (const QString &str)
QString croppedText () const
void setCrop (int width)
bool isCropped () const
int usedTextWidth () const
void setNoFocusOut ()
bool isFocusOut () const
void setAlignment (Qt::Alignment alignment)
Public Member Functions inherited from inviwo::LabelGraphicsItemObservable
void notifyObserversChanged (LabelGraphicsItem *)
void notifyObserversEdited (LabelGraphicsItem *)
Public Member Functions inherited from inviwo::Observable< LabelGraphicsItemObserver >
Observable< LabelGraphicsItemObserver > & operator= (const Observable< LabelGraphicsItemObserver > &other)
void addObserver (LabelGraphicsItemObserver *observer)
void removeObserver (LabelGraphicsItemObserver *observer)
virtual void startBlockingNotifications () override final
virtual void stopBlockingNotifications () override final

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *keyEvent) override
virtual void focusInEvent (QFocusEvent *event) override
virtual void focusOutEvent (QFocusEvent *event) override
void updatePosition ()
Protected Member Functions inherited from inviwo::Observable< LabelGraphicsItemObserver >
void forEachObserver (C callback)
Protected Member Functions inherited from inviwo::ObservableInterface
virtual void addObserver (Observer *observer)=0
virtual void removeObserver (Observer *observer)=0
void addObservationHelper (Observer *observer)
void removeObservationHelper (Observer *observer)

The documentation for this class was generated from the following file:
  • labelgraphicsitem.h