Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QGraphicsTextItem class provides a text item that you can add to a QGraphicsScene to display formatted text. More...
Public Member Functions | |
QGraphicsTextItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) | |
| |
QGraphicsTextItem (string text, IQGraphicsItem parent=null, QGraphicsScene scene=null) | |
| |
override void | CreateProxy () |
new void | AdjustSize () |
| |
override QRectF | BoundingRect () |
| |
override bool | Contains (QPointF point) |
| |
override bool | IsObscuredBy (IQGraphicsItem item) |
| |
override QPainterPath | OpaqueArea () |
| |
override void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget) |
| |
new void | SetHtml (string html) |
| |
new void | SetPlainText (string text) |
| |
override QPainterPath | Shape () |
| |
new string | ToHtml () |
| |
new string | ToPlainText () |
| |
override int | Type () |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QGraphicsObject | |
QGraphicsObject (IQGraphicsItem parent=null) | |
| |
new System.Collections.Generic.List < QObject > | Children () |
new void | GrabGesture (Qt.GestureType type, Qt.GestureFlag flags=0) |
| |
new void | UngrabGesture (Qt.GestureType type) |
| |
new void | Dispose () |
virtual void | Advance (int phase) |
new QRegion | BoundingRegion (QTransform itemToDeviceTransform) |
new System.Collections.Generic.List < IQGraphicsItem > | ChildItems () |
new QRectF | ChildrenBoundingRect () |
new void | ClearFocus () |
new QPainterPath | ClipPath () |
virtual bool | CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
virtual bool | CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new System.Collections.Generic.List < IQGraphicsItem > | CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new IQGraphicsItem | CommonAncestorItem (IQGraphicsItem other) |
new object | Data (int key) |
new QTransform | DeviceTransform (QTransform viewportTransform) |
new double | EffectiveOpacity () |
new void | EnsureVisible () |
new void | EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50) |
new void | EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50) |
new IQGraphicsItem | FocusItem () |
new IQGraphicsItem | FocusScopeItem () |
new void | GrabKeyboard () |
new void | GrabMouse () |
new bool | HasCursor () |
new bool | HasFocus () |
new void | Hide () |
new void | InstallSceneEventFilter (IQGraphicsItem filterItem) |
new bool | IsActive () |
new bool | IsAncestorOf (IQGraphicsItem child) |
new bool | IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null) |
new bool | IsClipped () |
new bool | IsEnabled () |
new bool | IsObscured () |
new bool | IsObscured (QRectF rect) |
new bool | IsObscured (double x, double y, double w, double h) |
new bool | IsPanel () |
new bool | IsSelected () |
new bool | IsUnderMouse () |
new bool | IsVisible () |
new bool | IsVisibleTo (IQGraphicsItem parent) |
new bool | IsWidget () |
new bool | IsWindow () |
new QTransform | ItemTransform (IQGraphicsItem other) |
new QTransform | ItemTransform (IQGraphicsItem other, ref bool ok) |
new QPointF | MapFromItem (IQGraphicsItem item, QPointF point) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QRectF rect) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QPolygonF polygon) |
new QPainterPath | MapFromItem (IQGraphicsItem item, QPainterPath path) |
new QPointF | MapFromItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPointF | MapFromParent (QPointF point) |
new QPolygonF | MapFromParent (QRectF rect) |
new QPolygonF | MapFromParent (QPolygonF polygon) |
new QPainterPath | MapFromParent (QPainterPath path) |
new QPointF | MapFromParent (double x, double y) |
new QPolygonF | MapFromParent (double x, double y, double w, double h) |
new QPointF | MapFromScene (QPointF point) |
new QPolygonF | MapFromScene (QRectF rect) |
new QPolygonF | MapFromScene (QPolygonF polygon) |
new QPainterPath | MapFromScene (QPainterPath path) |
new QPointF | MapFromScene (double x, double y) |
new QPolygonF | MapFromScene (double x, double y, double w, double h) |
new QRectF | MapRectFromItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectFromParent (QRectF rect) |
new QRectF | MapRectFromParent (double x, double y, double w, double h) |
new QRectF | MapRectFromScene (QRectF rect) |
new QRectF | MapRectFromScene (double x, double y, double w, double h) |
new QRectF | MapRectToItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectToParent (QRectF rect) |
new QRectF | MapRectToParent (double x, double y, double w, double h) |
new QRectF | MapRectToScene (QRectF rect) |
new QRectF | MapRectToScene (double x, double y, double w, double h) |
new QPointF | MapToItem (IQGraphicsItem item, QPointF point) |
new QPolygonF | MapToItem (IQGraphicsItem item, QRectF rect) |
new QPolygonF | MapToItem (IQGraphicsItem item, QPolygonF polygon) |
new QPainterPath | MapToItem (IQGraphicsItem item, QPainterPath path) |
new QPointF | MapToItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPointF | MapToParent (QPointF point) |
new QPolygonF | MapToParent (QRectF rect) |
new QPolygonF | MapToParent (QPolygonF polygon) |
new QPainterPath | MapToParent (QPainterPath path) |
new QPointF | MapToParent (double x, double y) |
new QPolygonF | MapToParent (double x, double y, double w, double h) |
new QPointF | MapToScene (QPointF point) |
new QPolygonF | MapToScene (QRectF rect) |
new QPolygonF | MapToScene (QPolygonF polygon) |
new QPainterPath | MapToScene (QPainterPath path) |
new QPointF | MapToScene (double x, double y) |
new QPolygonF | MapToScene (double x, double y, double w, double h) |
new void | MoveBy (double dx, double dy) |
new IQGraphicsItem | Panel () |
new QGraphicsObject | ParentObject () |
new QGraphicsWidget | ParentWidget () |
new void | RemoveSceneEventFilter (IQGraphicsItem filterItem) |
new void | ResetMatrix () |
new void | ResetTransform () |
new void | Rotate (double angle) |
new double | Scale () |
new void | Scale (double sx, double sy) |
new QGraphicsScene | Scene () |
new QRectF | SceneBoundingRect () |
new QMatrix | SceneMatrix () |
new QPointF | ScenePos () |
new QTransform | SceneTransform () |
new void | Scroll (double dx, double dy) |
new void | Scroll (double dx, double dy, QRectF rect) |
new void | SetActive (bool active) |
new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
new void | SetData (int key, object value) |
new void | SetEnabled (bool enabled) |
new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
new void | SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason) |
new void | SetMatrix (QMatrix matrix, bool combine=false) |
new void | SetPos (double x, double y) |
new void | SetScale (double scale) |
new void | SetSelected (bool selected) |
new void | SetTransform (QTransform matrix, bool combine=false) |
new void | SetTransformOriginPoint (double ax, double ay) |
new void | SetVisible (bool visible) |
new void | Shear (double sh, double sv) |
new void | Show () |
new void | StackBefore (IQGraphicsItem sibling) |
new QGraphicsObject | ToGraphicsObject () |
new IQGraphicsItem | TopLevelItem () |
new QGraphicsWidget | TopLevelWidget () |
new void | Translate (double dx, double dy) |
new void | UngrabKeyboard () |
new void | UngrabMouse () |
new void | UnsetCursor () |
new void | Update () |
new void | Update (QRectF rect) |
new void | Update (double x, double y, double width, double height) |
new QGraphicsWidget | Window () |
Public Member Functions inherited from QtCore.QObject | |
QObject (QObject parent=null) | |
| |
new bool | BlockSignals (bool b) |
| |
new System.Collections.Generic.List < QObject > | Children () |
| |
new bool | Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
| |
new void | DeleteLater () |
| |
new bool | Disconnect (QObject receiver, string member=null) |
| |
new bool | Disconnect (string signal=null, QObject receiver=null, string member=null) |
| |
new void | DumpObjectInfo () |
| |
new void | DumpObjectTree () |
| |
new System.Collections.Generic.List < QByteArray > | DynamicPropertyNames () |
| |
virtual bool | OnEvent (QEvent arg1) |
| |
virtual bool | EventFilter (QObject arg1, QEvent arg2) |
| |
new bool | Inherits (string classname) |
| |
new void | InstallEventFilter (QObject arg1) |
| |
new bool | IsWidgetType () |
| |
new void | KillTimer (int id) |
| |
new object | Property (string name) |
| |
new void | RemoveEventFilter (QObject arg1) |
| |
new bool | SetProperty (string name, object value) |
| |
new void | SetUserData (uint id, QObjectUserData data) |
new bool | SignalsBlocked () |
| |
new int | StartTimer (int interval) |
| |
new QObjectUserData | UserData (uint id) |
new void | Dispose () |
Public Member Functions inherited from QtCore.Qt | |
delegate QTextStream | FuncQTextStreamQTextStream (QTextStream qTextStream) |
delegate string | FuncStringQByteArray (QByteArray qByteArray) |
delegate QByteArray | FuncQByteArrayString (string @string) |
delegate void | ActionQtMsgTypeString (QtMsgType qtMsgType, string @string) |
delegate QObject | FuncQObject () |
Public Member Functions inherited from QtGui.IQGraphicsItem | |
void | Advance (int phase) |
QRectF | BoundingRect () |
new QRegion | BoundingRegion (QTransform itemToDeviceTransform) |
new System.Collections.Generic.List < IQGraphicsItem > | ChildItems () |
new System.Collections.Generic.List < IQGraphicsItem > | Children () |
new QRectF | ChildrenBoundingRect () |
new void | ClearFocus () |
new QPainterPath | ClipPath () |
bool | CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
bool | CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new System.Collections.Generic.List < IQGraphicsItem > | CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
new IQGraphicsItem | CommonAncestorItem (IQGraphicsItem other) |
bool | Contains (QPointF point) |
new object | Data (int key) |
new QTransform | DeviceTransform (QTransform viewportTransform) |
new double | EffectiveOpacity () |
new void | EnsureVisible () |
new void | EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50) |
new void | EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50) |
new IQGraphicsItem | FocusItem () |
new IQGraphicsItem | FocusScopeItem () |
new void | GrabKeyboard () |
new void | GrabMouse () |
new bool | HasCursor () |
new bool | HasFocus () |
new void | Hide () |
new void | InstallSceneEventFilter (IQGraphicsItem filterItem) |
new bool | IsActive () |
new bool | IsAncestorOf (IQGraphicsItem child) |
new bool | IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null) |
new bool | IsClipped () |
new bool | IsEnabled () |
new bool | IsObscured () |
new bool | IsObscured (QRectF rect) |
new bool | IsObscured (double x, double y, double w, double h) |
bool | IsObscuredBy (IQGraphicsItem item) |
new bool | IsPanel () |
new bool | IsSelected () |
new bool | IsUnderMouse () |
new bool | IsVisible () |
new bool | IsVisibleTo (IQGraphicsItem parent) |
new bool | IsWidget () |
new bool | IsWindow () |
new QTransform | ItemTransform (IQGraphicsItem other) |
new QTransform | ItemTransform (IQGraphicsItem other, ref bool ok) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QRectF rect) |
new QPainterPath | MapFromItem (IQGraphicsItem item, QPainterPath path) |
new QPointF | MapFromItem (IQGraphicsItem item, QPointF point) |
new QPolygonF | MapFromItem (IQGraphicsItem item, QPolygonF polygon) |
new QPointF | MapFromItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPolygonF | MapFromParent (QPolygonF polygon) |
new QPolygonF | MapFromParent (QRectF rect) |
new QPainterPath | MapFromParent (QPainterPath path) |
new QPointF | MapFromParent (QPointF point) |
new QPointF | MapFromParent (double x, double y) |
new QPolygonF | MapFromParent (double x, double y, double w, double h) |
new QPolygonF | MapFromScene (QPolygonF polygon) |
new QPolygonF | MapFromScene (QRectF rect) |
new QPainterPath | MapFromScene (QPainterPath path) |
new QPointF | MapFromScene (QPointF point) |
new QPointF | MapFromScene (double x, double y) |
new QPolygonF | MapFromScene (double x, double y, double w, double h) |
new QRectF | MapRectFromItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectFromParent (QRectF rect) |
new QRectF | MapRectFromParent (double x, double y, double w, double h) |
new QRectF | MapRectFromScene (QRectF rect) |
new QRectF | MapRectFromScene (double x, double y, double w, double h) |
new QRectF | MapRectToItem (IQGraphicsItem item, QRectF rect) |
new QRectF | MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QRectF | MapRectToParent (QRectF rect) |
new QRectF | MapRectToParent (double x, double y, double w, double h) |
new QRectF | MapRectToScene (QRectF rect) |
new QRectF | MapRectToScene (double x, double y, double w, double h) |
new QPainterPath | MapToItem (IQGraphicsItem item, QPainterPath path) |
new QPolygonF | MapToItem (IQGraphicsItem item, QRectF rect) |
new QPolygonF | MapToItem (IQGraphicsItem item, QPolygonF polygon) |
new QPointF | MapToItem (IQGraphicsItem item, QPointF point) |
new QPointF | MapToItem (IQGraphicsItem item, double x, double y) |
new QPolygonF | MapToItem (IQGraphicsItem item, double x, double y, double w, double h) |
new QPolygonF | MapToParent (QPolygonF polygon) |
new QPainterPath | MapToParent (QPainterPath path) |
new QPointF | MapToParent (QPointF point) |
new QPolygonF | MapToParent (QRectF rect) |
new QPointF | MapToParent (double x, double y) |
new QPolygonF | MapToParent (double x, double y, double w, double h) |
new QPolygonF | MapToScene (QPolygonF polygon) |
new QPointF | MapToScene (QPointF point) |
new QPainterPath | MapToScene (QPainterPath path) |
new QPolygonF | MapToScene (QRectF rect) |
new QPointF | MapToScene (double x, double y) |
new QPolygonF | MapToScene (double x, double y, double w, double h) |
new void | MoveBy (double dx, double dy) |
QPainterPath | OpaqueArea () |
void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null) |
new IQGraphicsItem | Panel () |
new QGraphicsObject | ParentObject () |
new QGraphicsWidget | ParentWidget () |
new void | RemoveSceneEventFilter (IQGraphicsItem filterItem) |
new void | ResetMatrix () |
new void | ResetTransform () |
new void | Rotate (double angle) |
new double | Scale () |
new void | Scale (double sx, double sy) |
new QGraphicsScene | Scene () |
new QRectF | SceneBoundingRect () |
new QMatrix | SceneMatrix () |
new QPointF | ScenePos () |
new QTransform | SceneTransform () |
new void | Scroll (double dx, double dy) |
new void | Scroll (double dx, double dy, QRectF rect) |
new void | SetActive (bool active) |
new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
new void | SetData (int key, object value) |
new void | SetEnabled (bool enabled) |
new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
new void | SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason) |
new void | SetMatrix (QMatrix matrix, bool combine=false) |
new void | SetPos (double x, double y) |
new void | SetScale (double scale) |
new void | SetSelected (bool selected) |
new void | SetTransform (QTransform matrix, bool combine=false) |
new void | SetTransformOriginPoint (double ax, double ay) |
new void | SetVisible (bool visible) |
QPainterPath | Shape () |
new void | Shear (double sh, double sv) |
new void | Show () |
new void | StackBefore (IQGraphicsItem sibling) |
new QGraphicsObject | ToGraphicsObject () |
new IQGraphicsItem | TopLevelItem () |
new QGraphicsWidget | TopLevelWidget () |
new void | Translate (double dx, double dy) |
int | Type () |
new void | UngrabKeyboard () |
new void | UngrabMouse () |
new void | UnsetCursor () |
new void | Update () |
new void | Update (QRectF rect) |
new void | Update (double x, double y, double width, double height) |
new QGraphicsWidget | Window () |
Static Public Member Functions | |
static string | Tr (string s, string c=null) |
static string | Tr (string s, string c, int n) |
static string | TrUtf8 (string s, string c=null) |
static string | TrUtf8 (string s, string c, int n) |
Static Public Member Functions inherited from QtGui.QGraphicsObject | |
static string | Tr (string s, string c=null) |
static string | Tr (string s, string c, int n) |
static string | TrUtf8 (string s, string c=null) |
static string | TrUtf8 (string s, string c, int n) |
Static Public Member Functions inherited from QtCore.QObject | |
static bool | Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
| |
static bool | Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection) |
| |
static bool | Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member) |
| |
static bool | Disconnect (QObject sender, string signal, QObject receiver, string member) |
| |
static uint | RegisterUserData () |
static string | Tr (string s, string c=null) |
| |
static string | Tr (string s, string c, int n) |
| |
static string | TrUtf8 (string s, string c=null) |
| |
static string | TrUtf8 (string s, string c, int n) |
| |
Static Public Member Functions inherited from QtCore.Qt | |
static QDataStream | Write (QDataStream s, object p) |
static QDataStream | Write (QDataStream arg1, QSizeF arg2) |
static QTextStream | Write (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
static QDataStream | Write (QDataStream arg1, QPoint arg2) |
static QDataStream | Write (QDataStream arg1, QLineF arg2) |
static QDataStream | Write (QDataStream arg1, QPointF arg2) |
static QDataStream | Write (QDataStream arg1, QChar arg2) |
static QDataStream | Write (QDataStream arg1, QByteArray arg2) |
static QDataStream | Write (QDataStream arg1, QEasingCurve arg2) |
static QDataStream | Write (QDataStream arg1, QRectF arg2) |
static QDataStream | Write (QDataStream arg1, QDateTime arg2) |
static QDataStream | Write (QDataStream arg1, QUrl arg2) |
static QDataStream | Write (QDataStream arg1, QTime arg2) |
static QDataStream | Write (QDataStream arg1, QLocale arg2) |
static QDataStream | Write (QDataStream arg1, QBitArray arg2) |
static QDataStream | Write (QDataStream arg1, QUuid arg2) |
static QDataStream | Write (QDataStream arg1, QLine arg2) |
static QDataStream | Write (QDataStream arg1, QDate arg2) |
static QDataStream | Write (QDataStream @out, QRegExp regExp) |
static QDataStream | Write (QDataStream arg1, QRect arg2) |
static QDataStream | Write (QDataStream arg1, QSize arg2) |
static QDataStream | Write (QDataStream s, QVariant.Type p) |
static QDataStream | Write (QDataStream arg1, string arg2) |
static QDataStream | Write (QDataStream @out, System.Collections.Generic.List< string > list) |
static QDataStream | Read (QDataStream arg1, QChar arg2) |
static QDataStream | Read (QDataStream arg1, QLocale arg2) |
static QDataStream | Read (QDataStream arg1, QRect arg2) |
static QDataStream | Read (QDataStream arg1, QEasingCurve arg2) |
static QDataStream | Read (QDataStream arg1, QDate arg2) |
static QDataStream | Read (QDataStream arg1, QUrl arg2) |
static QDataStream | Read (QDataStream arg1, QUuid arg2) |
static QTextStream | Read (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
static QDataStream | Read (QDataStream arg1, QLineF arg2) |
static QDataStream | Read (QDataStream arg1, QRectF arg2) |
static QDataStream | Read (QDataStream arg1, QPointF arg2) |
static QDataStream | Read (QDataStream arg1, QLine arg2) |
static QDataStream | Read (QDataStream arg1, QBitArray arg2) |
static QDataStream | Read (QDataStream arg1, QSize arg2) |
static QDataStream | Read (QDataStream arg1, QDateTime arg2) |
static QDataStream | Read (QDataStream arg1, QTime arg2) |
static QDataStream | Read (QDataStream arg1, QPoint arg2) |
static QDataStream | Read (QDataStream @in, QRegExp regExp) |
static QDataStream | Read (QDataStream s, object p) |
static QDataStream | Read (QDataStream arg1, QByteArray arg2) |
static QDataStream | Read (QDataStream arg1, QSizeF arg2) |
static QDataStream | Read (QDataStream arg1, string arg2) |
static QDataStream | Read (QDataStream s, QVariant.Type p) |
static QDataStream | Read (QDataStream @in, System.Collections.Generic.List< string > list) |
static double | qAcos (double v) |
static void | qAddPostRoutine (System.Action arg1) |
static string | qAppName () |
static double | qAsin (double v) |
static double | qAtan (double v) |
static double | qAtan2 (double x, double y) |
static void | qBadAlloc () |
static int | qCeil (double v) |
static ushort | qChecksum (string s, uint len) |
static QByteArray | qCompress (QByteArray data) |
static QByteArray | qCompress (QByteArray data, int compressionLevel=-1) |
static QByteArray | qCompress (Pointer< byte > data, int nbytes) |
static QByteArray | qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1) |
static double | qCos (double v) |
static double | qExp (double v) |
static double | qFabs (double v) |
static double | qFastCos (double x) |
static double | qFastSin (double x) |
static string | qFlagLocation (string method) |
static int | qFloor (double v) |
static bool | qFuzzyCompare (double p1, double p2) |
static bool | qFuzzyCompare (float p1, float p2) |
static bool | qFuzzyIsNull (double d) |
static bool | qFuzzyIsNull (float f) |
static uint | qHash (QBitArray key) |
static uint | qHash (QChar key) |
static uint | qHash (QStringRef key) |
static uint | qHash (QUrl url) |
static uint | qHash (QPersistentModelIndex index) |
static uint | qHash (QByteArray key) |
static uint | qHash (QModelIndex index) |
static uint | qHash (uint key) |
static uint | qHash (sbyte key) |
static uint | qHash (byte key) |
static uint | qHash (short key) |
static uint | qHash (NativeLong key) |
static uint | qHash (ushort key) |
static uint | qHash (long key) |
static uint | qHash (ulong key) |
static uint | qHash (int key) |
static uint | qHash (string key) |
static uint | qHash (NativeULong key) |
static double | qInf () |
static Qt.ActionQtMsgTypeString | qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1) |
static int | qIntCast (float f) |
static int | qIntCast (double f) |
static bool | qIsFinite (double d) |
static bool | qIsFinite (float f) |
static bool | qIsInf (float f) |
static bool | qIsInf (double d) |
static bool | qIsNaN (float f) |
static bool | qIsNaN (double d) |
static bool | qIsNull (float f) |
static bool | qIsNull (double d) |
static double | qLn (double v) |
static double | qPow (double x, double y) |
static double | qQNaN () |
static void | qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function) |
static void | qRemovePostRoutine (System.Action arg1) |
static int | qRound (double d) |
static long | qRound64 (double d) |
static double | qSNaN () |
static bool | qSharedBuild () |
static double | qSin (double v) |
static double | qSqrt (double v) |
static bool | qStringComparisonHelper (QStringRef s1, string s2) |
static double | qTan (double v) |
static QByteArray | qUncompress (QByteArray data) |
static QByteArray | qUncompress (Pointer< byte > data, int nbytes) |
static string | qVersion () |
static void | Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size) |
static QByteArray | Qgetenv (string varName) |
static bool | Qputenv (string varName, QByteArray value) |
static int | Qrand () |
static void | Qsrand (uint seed) |
static int | Qstrcmp (QByteArray str1, QByteArray str2) |
static int | Qstrcmp (QByteArray str1, string str2) |
static int | Qstrcmp (string str1, QByteArray str2) |
static int | Qstrcmp (string str1, string str2) |
static Pointer< sbyte > | Qstrcpy (Pointer< sbyte > dst, string src) |
static Pointer< sbyte > | Qstrdup (string arg1) |
static int | Qstricmp (string arg1, string arg2) |
static uint | Qstrlen (string str) |
static int | Qstrncmp (string str1, string str2, uint len) |
static Pointer< sbyte > | Qstrncpy (Pointer< sbyte > dst, string src, uint len) |
static int | Qstrnicmp (string arg1, string arg2, uint len) |
static uint | Qstrnlen (string str, uint maxlen) |
static string | QtTrId (string id, int n=-1) |
Properties | |
Slot< System.String > | LinkActivated |
| |
Slot< System.String > | LinkHovered |
| |
new QColor | DefaultTextColor [get, set] |
| |
new QTextDocument | Document [get, set] |
| |
new QFont | Font [get, set] |
| |
new bool | OpenExternalLinks [get, set] |
new bool | TabChangesFocus [get, set] |
| |
new QTextCursor | TextCursor [get, set] |
new Qt.TextInteractionFlag | TextInteractionFlags [get, set] |
| |
new double | TextWidth [get, set] |
| |
static new QMetaObject | StaticMetaObject [get] |
new IQGraphicsTextItemSignals | Emit [get] |
Properties inherited from QtGui.QGraphicsObject | |
Slot | ParentChanged |
| |
Slot | OpacityChanged |
| |
Slot | VisibleChanged |
| |
Slot | EnabledChanged |
| |
Slot | XChanged |
Slot | YChanged |
Slot | ZChanged |
Slot | RotationChanged |
| |
Slot | ScaleChanged |
| |
Slot | ChildrenChanged |
Slot | WidthChanged |
Slot | HeightChanged |
new bool | AcceptDrops [get, set] |
new bool | AcceptHoverEvents [get, set] |
new bool | AcceptTouchEvents [get, set] |
new Qt.MouseButton | AcceptedMouseButtons [get, set] |
new bool | AcceptsHoverEvents [get, set] |
new double | BoundingRegionGranularity [get, set] |
new QGraphicsItem.CacheMode | cacheMode [get, set] |
new QCursor | Cursor [get, set] |
new bool | FiltersChildEvents [get, set] |
new QGraphicsItem.GraphicsItemFlag | Flags [get, set] |
new IQGraphicsItem | FocusProxy [get, set] |
new QGraphicsEffect | GraphicsEffect [get, set] |
new QGraphicsItemGroup | Group [get, set] |
new bool | HandlesChildEvents [get, set] |
new Qt.InputMethodHint | InputMethodHints [get, set] |
new double | Opacity [get, set] |
new QGraphicsItem.PanelModality | panelModality [get, set] |
new IQGraphicsItem | ParentItem [get, set] |
new QPointF | Pos [get, set] |
new double | Rotation [get, set] |
new string | ToolTip [get, set] |
new QPointF | TransformOriginPoint [get, set] |
new System.Collections.Generic.List < QGraphicsTransform > | Transformations [get, set] |
new double | X [get, set] |
new double | Y [get, set] |
new double | zValue [get, set] |
new QMatrix | Matrix [get] |
new QTransform | Transform [get] |
new QGraphicsObject | Parent [get, set] |
new double | Z [get, set] |
new QGraphicsEffect | Effect [get, set] |
new double | Width [get, set] |
new double | Height [get, set] |
static new QMetaObject | StaticMetaObject [get] |
new IQGraphicsObjectSignals | Emit [get] |
Properties inherited from QtCore.QObject | |
virtual EventHandler < QEventArgs< QChildEvent > > | ChildEvent |
| |
virtual EventHandler < QEventArgs< QEvent > > | CustomEvent |
| |
virtual EventHandler < QEventArgs< QEvent > > | Event |
| |
virtual EventHandler < QEventArgs< QTimerEvent > > | TimerEvent |
| |
Slot< QObject > | DestroyedQObject |
Slot | Destroyed |
| |
new QObject | Parent [get, set] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
new string | ObjectName [get, set] |
| |
static new QMetaObject | StaticMetaObject [get] |
| |
static new QMetaObject | StaticQtMetaObject [get] |
new IQObjectSignals | Emit [get] |
Properties inherited from QtGui.IQGraphicsItem | |
System.Boolean | AcceptDrops [get, set] |
System.Boolean | AcceptHoverEvents [get, set] |
System.Boolean | AcceptTouchEvents [get, set] |
Qt.MouseButton | AcceptedMouseButtons [get, set] |
System.Boolean | AcceptsHoverEvents [get, set] |
System.Double | BoundingRegionGranularity [get, set] |
QGraphicsItem.CacheMode | cacheMode [get, set] |
QCursor | Cursor [get, set] |
System.Boolean | FiltersChildEvents [get, set] |
QGraphicsItem.GraphicsItemFlag | Flags [get, set] |
IQGraphicsItem | FocusProxy [get, set] |
QGraphicsEffect | GraphicsEffect [get, set] |
QGraphicsItemGroup | Group [get, set] |
System.Boolean | HandlesChildEvents [get, set] |
Qt.InputMethodHint | InputMethodHints [get, set] |
System.Double | Opacity [get, set] |
QGraphicsItem.PanelModality | panelModality [get, set] |
IQGraphicsItem | ParentItem [get, set] |
QPointF | Pos [get, set] |
System.Double | Rotation [get, set] |
System.String | ToolTip [get, set] |
QPointF | TransformOriginPoint [get, set] |
System.Collections.Generic.List < QGraphicsTransform > | Transformations [get, set] |
System.Double | X [get, set] |
System.Double | Y [get, set] |
System.Double | zValue [get, set] |
QMatrix | Matrix [get] |
QTransform | Transform [get] |
The QGraphicsTextItem class provides a text item that you can add to a QGraphicsScene to display formatted text.
If you only need to show plain text in an item, consider using QGraphicsSimpleTextItem instead.
To set the item's text, pass a QString to QGraphicsTextItem's constructor, or call setHtml()/setPlainText().
QGraphicsTextItem uses the text's formatted size and the associated font to provide a reasonable implementation of boundingRect(), shape(), and contains(). You can set the font by calling setFont().
It is possible to make the item editable by setting the Qt::TextEditorInteraction flag using setTextInteractionFlags().
The item's preferred text width can be set using setTextWidth() and obtained using textWidth().
Note: In order to align HTML text in the center, the item's text width must be set.
Note: QGraphicsTextItem accepts hover events by default. You can change this with setAcceptHoverEvents().
See also QGraphicsSimpleTextItem, QGraphicsPathItem, QGraphicsRectItem, QGraphicsEllipseItem, QGraphicsPixmapItem, QGraphicsPolygonItem, QGraphicsLineItem, and Graphics View Framework.
|
protected |
QtGui.QGraphicsTextItem.QGraphicsTextItem | ( | IQGraphicsItem | parent = null , |
QGraphicsScene | scene = null |
||
) |
Constructs a QGraphicsTextItem. parent is passed to QGraphicsItem's constructor.
See also QGraphicsScene::addItem().
QtGui.QGraphicsTextItem.QGraphicsTextItem | ( | string | text, |
IQGraphicsItem | parent = null , |
||
QGraphicsScene | scene = null |
||
) |
Constructs a QGraphicsTextItem. parent is passed to QGraphicsItem's constructor.
See also QGraphicsScene::addItem().
new void QtGui.QGraphicsTextItem.AdjustSize | ( | ) |
Adjusts the text item to a reasonable size.
|
virtual |
Reimplemented from QGraphicsItem::boundingRect().
Implements QtGui.QGraphicsObject.
|
virtual |
Reimplemented from QGraphicsItem::contains().
Reimplemented from QtGui.QGraphicsObject.
|
virtual |
Reimplemented from QtGui.QGraphicsObject.
new void QtGui.QGraphicsTextItem.Dispose | ( | ) |
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::inputMethodQuery().
Reimplemented from QtGui.QGraphicsObject.
|
virtual |
Reimplemented from QGraphicsItem::isObscuredBy().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::contextMenuEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dragEnterEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dragLeaveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dragMoveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::dropEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::focusInEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::focusOutEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::hoverEnterEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::hoverLeaveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::hoverMoveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::inputMethodEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::keyPressEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::keyReleaseEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protected |
This signal is emitted when the user clicks on a link on a text item that enables Qt::LinksAccessibleByMouse or Qt::LinksAccessibleByKeyboard. link is the link that was clicked.
See also setTextInteractionFlags().
|
protected |
This signal is emitted when the user hovers over a link on a text item that enables Qt::LinksAccessibleByMouse. link is the link that was hovered over.
See also setTextInteractionFlags().
|
protectedvirtual |
Reimplemented from QGraphicsItem::mouseDoubleClickEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::mouseMoveEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::mousePressEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::mouseReleaseEvent().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QGraphicsItem::sceneEvent().
Reimplemented from QtGui.QGraphicsObject.
|
virtual |
Reimplemented from QGraphicsItem::opaqueArea().
Reimplemented from QtGui.QGraphicsObject.
|
virtual |
Reimplemented from QGraphicsItem::paint().
Implements QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QtGui.QGraphicsObject.
new void QtGui.QGraphicsTextItem.SetHtml | ( | string | html | ) |
Sets the item's text to text, assuming that text is HTML formatted. If the item has keyboard input focus, this function will also call ensureVisible() to ensure that the text is visible in all viewports.
See also toHtml(), hasFocus(), and QGraphicsSimpleTextItem.
new void QtGui.QGraphicsTextItem.SetPlainText | ( | string | text | ) |
Sets the item's text to text. If the item has keyboard input focus, this function will also call ensureVisible() to ensure that the text is visible in all viewports.
See also toHtml() and hasFocus().
|
virtual |
Reimplemented from QGraphicsItem::shape().
Reimplemented from QtGui.QGraphicsObject.
|
protectedvirtual |
Reimplemented from QtGui.QGraphicsObject.
new string QtGui.QGraphicsTextItem.ToHtml | ( | ) |
Returns the item's text converted to HTML, or an empty QString if no text has been set.
See also setHtml().
new string QtGui.QGraphicsTextItem.ToPlainText | ( | ) |
Returns the item's text converted to plain text, or an empty QString if no text has been set.
See also setPlainText().
|
static |
|
static |
|
static |
|
static |
|
virtual |
Reimplemented from QGraphicsItem::type().
Reimplemented from QtGui.QGraphicsObject.
|
getset |
Returns the default text color that is used to for unformatted text.
Sets the color for unformatted text to col.
|
getset |
Returns the item's text document.
Sets the text document document on the item.
|
getprotected |
|
getset |
Returns the item's font, which is used to render the text.
Sets the font used to render the text item to font.
|
addremove |
This signal is emitted when the user clicks on a link on a text item that enables Qt::LinksAccessibleByMouse or Qt::LinksAccessibleByKeyboard. link is the link that was clicked.
See also setTextInteractionFlags().
|
addremove |
This signal is emitted when the user hovers over a link on a text item that enables Qt::LinksAccessibleByMouse. link is the link that was hovered over.
See also setTextInteractionFlags().
|
getset |
|
staticget |
|
getset |
Returns true if the Tab key will cause the widget to change focus; otherwise, false is returned.
By default, this behavior is disabled, and this function will return false.
This function was introduced in Qt 4.5.
If b is true, the Tab key will cause the widget to change focus; otherwise, the tab key will insert a tab into the document.
In some occasions text edits should not allow the user to input tabulators or change indentation using the Tab key, as this breaks the focus chain. The default is false.
This function was introduced in Qt 4.5.
|
getset |
|
getset |
Returns the current text interaction flags.
Sets the flags flags to specify how the text item should react to user input.
The default for a QGraphicsTextItem is Qt::NoTextInteraction. This function also affects the ItemIsFocusable QGraphicsItem flag by setting it if flags is different from Qt::NoTextInteraction and clearing it otherwise.
By default, the text is read-only. To transform the item into an editor, set the Qt::TextEditable flag.
|
getset |
Returns the text width.
The width is calculated with the QTextDocument that QGraphicsTextItem keeps internally.
Sets the preferred width for the item's text. If the actual text is wider than the specified width then it will be broken into multiple lines.
If width is set to -1 then the text will not be broken into multiple lines unless it is enforced through an explicit line break or a new paragraph.
The default value is -1.
Note that QGraphicsTextItem keeps a QTextDocument internally, which is used to calculate the text width.