Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QGraphicsSimpleTextItem class provides a simple text path item that you can add to a QGraphicsScene. More...
Public Member Functions | |
QGraphicsSimpleTextItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) | |
| |
QGraphicsSimpleTextItem (string text, IQGraphicsItem parent=null, QGraphicsScene scene=null) | |
| |
override void | CreateProxy () |
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) |
| |
override QPainterPath | Shape () |
| |
override int | Type () |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QAbstractGraphicsShapeItem | |
QAbstractGraphicsShapeItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) | |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QGraphicsItem | |
QGraphicsItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) | |
| |
virtual void | Advance (int phase) |
| |
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 () |
| |
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 () |
| |
new void | Dispose () |
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 () |
Properties | |
new QFont | Font [get, set] |
| |
new string | Text [get, set] |
| |
Properties inherited from QtGui.QAbstractGraphicsShapeItem | |
new QBrush | Brush [get, set] |
| |
new QPen | Pen [get, set] |
| |
Properties inherited from QtGui.QGraphicsItem | |
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] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
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 QGraphicsSimpleTextItem class provides a simple text path item that you can add to a QGraphicsScene.
To set the item's text, you can either pass a QString to QGraphicsSimpleTextItem's constructor, or call setText() to change the text later. To set the text fill color, call setBrush().
The simple text item can have both a fill and an outline; setBrush() will set the text fill (i.e., text color), and setPen() sets the pen that will be used to draw the text outline. (The latter can be slow, especially for complex pens, and items with long text content.) If all you want is to draw a simple line of text, you should call setBrush() only, and leave the pen unset; QGraphicsSimpleTextItem's pen is by default Qt::NoPen.
QGraphicsSimpleTextItem 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().
QGraphicsSimpleText does not display rich text; instead, you can use QGraphicsTextItem, which provides full text control capabilities.
See also QGraphicsTextItem, QGraphicsPathItem, QGraphicsRectItem, QGraphicsEllipseItem, QGraphicsPixmapItem, QGraphicsPolygonItem, QGraphicsLineItem, and Graphics View Framework.
|
protected |
QtGui.QGraphicsSimpleTextItem.QGraphicsSimpleTextItem | ( | IQGraphicsItem | parent = null , |
QGraphicsScene | scene = null |
||
) |
Constructs a QGraphicsSimpleTextItem.
parent is passed to QGraphicsItem's constructor.
See also QGraphicsScene::addItem().
QtGui.QGraphicsSimpleTextItem.QGraphicsSimpleTextItem | ( | string | text, |
IQGraphicsItem | parent = null , |
||
QGraphicsScene | scene = null |
||
) |
Constructs a QGraphicsSimpleTextItem.
parent is passed to QGraphicsItem's constructor.
See also QGraphicsScene::addItem().
|
virtual |
Reimplemented from QGraphicsItem::boundingRect().
Implements QtGui.QGraphicsItem.
|
virtual |
Reimplemented from QGraphicsItem::contains().
Reimplemented from QtGui.QGraphicsItem.
|
virtual |
Reimplemented from QtGui.QAbstractGraphicsShapeItem.
new void QtGui.QGraphicsSimpleTextItem.Dispose | ( | ) |
Reimplemented from QtGui.QGraphicsItem.
|
virtual |
Reimplemented from QGraphicsItem::isObscuredBy().
Reimplemented from QtGui.QAbstractGraphicsShapeItem.
|
virtual |
Reimplemented from QGraphicsItem::opaqueArea().
Reimplemented from QtGui.QAbstractGraphicsShapeItem.
|
virtual |
Reimplemented from QGraphicsItem::paint().
Implements QtGui.QGraphicsItem.
|
protectedvirtual |
Reimplemented from QtGui.QGraphicsItem.
|
virtual |
Reimplemented from QGraphicsItem::shape().
Reimplemented from QtGui.QGraphicsItem.
|
protectedvirtual |
Reimplemented from QtGui.QGraphicsItem.
|
virtual |
Reimplemented from QGraphicsItem::type().
Reimplemented from QtGui.QGraphicsItem.
|
getset |
Returns the font that is used to draw the item's text.
Sets the font that is used to draw the item's text to font.
|
getset |
Returns the item's text.
Sets the item's text to text. The text will be displayed as plain text. Newline characters ('\n') as well as characters of type QChar::LineSeparator will cause item to break the text into multiple lines.