Inviwo  0.9.10.1
Inviwo documentation
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 (const Observable< LabelGraphicsItemObserver > &other)
 
 Observable (Observable< LabelGraphicsItemObserver > &&other)
 
Observable< LabelGraphicsItemObserver > & operator= (const Observable< LabelGraphicsItemObserver > &other)
 
Observable< LabelGraphicsItemObserver > & operator= (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
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 

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