|
| | QGraphicsLineItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) |
| |
| | QGraphicsLineItem (QLineF line, IQGraphicsItem parent=null, QGraphicsScene scene=null) |
| |
| | QGraphicsLineItem (double x1, double y1, double x2, double y2, IQGraphicsItem parent=null, QGraphicsScene scene=null) |
| |
| override void | CreateProxy () |
| |
| override bool | Contains (QPointF point) |
| | More...
|
| |
| override bool | IsObscuredBy (IQGraphicsItem item) |
| | More...
|
| |
| override void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null) |
| | More...
|
| |
| new void | SetLine (double x1, double y1, double x2, double y2) |
| | More...
|
| |
| new void | Dispose () |
| |
| | QGraphicsItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) |
| |
| virtual void | Advance (int phase) |
| | More...
|
| |
| new QRegion | BoundingRegion (QTransform itemToDeviceTransform) |
| | More...
|
| |
| new void | ClearFocus () |
| | More...
|
| |
| virtual bool | CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
| | More...
|
| |
| virtual bool | CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
| | More...
|
| |
new
System.Collections.Generic.List
< IQGraphicsItem > | CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
| | More...
|
| |
| new IQGraphicsItem | CommonAncestorItem (IQGraphicsItem other) |
| | More...
|
| |
| new object | Data (int key) |
| | More...
|
| |
| new QTransform | DeviceTransform (QTransform viewportTransform) |
| | More...
|
| |
| new void | EnsureVisible () |
| | More...
|
| |
| new void | EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50) |
| | More...
|
| |
| new void | EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50) |
| | More...
|
| |
| new IQGraphicsItem | FocusItem () |
| | More...
|
| |
| new IQGraphicsItem | FocusScopeItem () |
| |
| new void | GrabKeyboard () |
| | More...
|
| |
| new void | GrabMouse () |
| | More...
|
| |
| new void | Hide () |
| | More...
|
| |
| new void | InstallSceneEventFilter (IQGraphicsItem filterItem) |
| | More...
|
| |
| new bool | IsAncestorOf (IQGraphicsItem child) |
| | More...
|
| |
| new bool | IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null) |
| | More...
|
| |
| new bool | IsObscured () |
| | More...
|
| |
| new bool | IsObscured (QRectF rect) |
| | More...
|
| |
| new bool | IsObscured (double x, double y, double w, double h) |
| | More...
|
| |
| new bool | IsVisibleTo (IQGraphicsItem parent) |
| | More...
|
| |
| new QTransform | ItemTransform (IQGraphicsItem other) |
| | More...
|
| |
| new QTransform | ItemTransform (IQGraphicsItem other, ref bool ok) |
| | More...
|
| |
| new QPointF | MapFromItem (IQGraphicsItem item, QPointF point) |
| | More...
|
| |
| new QPolygonF | MapFromItem (IQGraphicsItem item, QRectF rect) |
| | More...
|
| |
| new QPolygonF | MapFromItem (IQGraphicsItem item, QPolygonF polygon) |
| | More...
|
| |
| new QPainterPath | MapFromItem (IQGraphicsItem item, QPainterPath path) |
| | More...
|
| |
| new QPointF | MapFromItem (IQGraphicsItem item, double x, double y) |
| | More...
|
| |
| new QPolygonF | MapFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
| | More...
|
| |
| new QPointF | MapFromParent (QPointF point) |
| | More...
|
| |
| new QPolygonF | MapFromParent (QRectF rect) |
| | More...
|
| |
| new QPolygonF | MapFromParent (QPolygonF polygon) |
| | More...
|
| |
| new QPainterPath | MapFromParent (QPainterPath path) |
| | More...
|
| |
| new QPointF | MapFromParent (double x, double y) |
| | More...
|
| |
| new QPolygonF | MapFromParent (double x, double y, double w, double h) |
| | More...
|
| |
| new QPointF | MapFromScene (QPointF point) |
| | More...
|
| |
| new QPolygonF | MapFromScene (QRectF rect) |
| | More...
|
| |
| new QPolygonF | MapFromScene (QPolygonF polygon) |
| | More...
|
| |
| new QPainterPath | MapFromScene (QPainterPath path) |
| | More...
|
| |
| new QPointF | MapFromScene (double x, double y) |
| | More...
|
| |
| new QPolygonF | MapFromScene (double x, double y, double w, double h) |
| | More...
|
| |
| new QRectF | MapRectFromItem (IQGraphicsItem item, QRectF rect) |
| | More...
|
| |
| new QRectF | MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
| | More...
|
| |
| new QRectF | MapRectFromParent (QRectF rect) |
| | More...
|
| |
| new QRectF | MapRectFromParent (double x, double y, double w, double h) |
| | More...
|
| |
| new QRectF | MapRectFromScene (QRectF rect) |
| | More...
|
| |
| new QRectF | MapRectFromScene (double x, double y, double w, double h) |
| | More...
|
| |
| new QRectF | MapRectToItem (IQGraphicsItem item, QRectF rect) |
| | More...
|
| |
| new QRectF | MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h) |
| | More...
|
| |
| new QRectF | MapRectToParent (QRectF rect) |
| | More...
|
| |
| new QRectF | MapRectToParent (double x, double y, double w, double h) |
| | More...
|
| |
| new QRectF | MapRectToScene (QRectF rect) |
| | More...
|
| |
| new QRectF | MapRectToScene (double x, double y, double w, double h) |
| | More...
|
| |
| new QPointF | MapToItem (IQGraphicsItem item, QPointF point) |
| | More...
|
| |
| new QPolygonF | MapToItem (IQGraphicsItem item, QRectF rect) |
| | More...
|
| |
| new QPolygonF | MapToItem (IQGraphicsItem item, QPolygonF polygon) |
| | More...
|
| |
| new QPainterPath | MapToItem (IQGraphicsItem item, QPainterPath path) |
| | More...
|
| |
| new QPointF | MapToItem (IQGraphicsItem item, double x, double y) |
| | More...
|
| |
| new QPolygonF | MapToItem (IQGraphicsItem item, double x, double y, double w, double h) |
| | More...
|
| |
| new QPointF | MapToParent (QPointF point) |
| | More...
|
| |
| new QPolygonF | MapToParent (QRectF rect) |
| | More...
|
| |
| new QPolygonF | MapToParent (QPolygonF polygon) |
| | More...
|
| |
| new QPainterPath | MapToParent (QPainterPath path) |
| | More...
|
| |
| new QPointF | MapToParent (double x, double y) |
| | More...
|
| |
| new QPolygonF | MapToParent (double x, double y, double w, double h) |
| | More...
|
| |
| new QPointF | MapToScene (QPointF point) |
| | More...
|
| |
| new QPolygonF | MapToScene (QRectF rect) |
| | More...
|
| |
| new QPolygonF | MapToScene (QPolygonF polygon) |
| | More...
|
| |
| new QPainterPath | MapToScene (QPainterPath path) |
| | More...
|
| |
| new QPointF | MapToScene (double x, double y) |
| | More...
|
| |
| new QPolygonF | MapToScene (double x, double y, double w, double h) |
| | More...
|
| |
| new void | MoveBy (double dx, double dy) |
| | More...
|
| |
| new void | RemoveSceneEventFilter (IQGraphicsItem filterItem) |
| | More...
|
| |
| new void | ResetMatrix () |
| | More...
|
| |
| new void | ResetTransform () |
| | More...
|
| |
| new void | Rotate (double angle) |
| | More...
|
| |
| new double | Scale () |
| | More...
|
| |
| new void | Scale (double sx, double sy) |
| | More...
|
| |
| new void | Scroll (double dx, double dy) |
| | More...
|
| |
| new void | Scroll (double dx, double dy, QRectF rect) |
| | More...
|
| |
| new void | SetActive (bool active) |
| | More...
|
| |
| new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
| | More...
|
| |
| new void | SetData (int key, object value) |
| | More...
|
| |
| new void | SetEnabled (bool enabled) |
| | More...
|
| |
| new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
| | More...
|
| |
| new void | SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason) |
| | More...
|
| |
| new void | SetMatrix (QMatrix matrix, bool combine=false) |
| | More...
|
| |
| new void | SetPos (double x, double y) |
| | More...
|
| |
| new void | SetScale (double scale) |
| | More...
|
| |
| new void | SetSelected (bool selected) |
| | More...
|
| |
| new void | SetTransform (QTransform matrix, bool combine=false) |
| | More...
|
| |
| new void | SetTransformOriginPoint (double ax, double ay) |
| | More...
|
| |
| new void | SetVisible (bool visible) |
| | More...
|
| |
| new void | Shear (double sh, double sv) |
| | More...
|
| |
| new void | Show () |
| | More...
|
| |
| new void | StackBefore (IQGraphicsItem sibling) |
| | More...
|
| |
| new QGraphicsObject | ToGraphicsObject () |
| | More...
|
| |
| new void | Translate (double dx, double dy) |
| | More...
|
| |
| new void | UngrabKeyboard () |
| | More...
|
| |
| new void | UngrabMouse () |
| | More...
|
| |
| new void | UnsetCursor () |
| | More...
|
| |
| new void | Update () |
| | More...
|
| |
| new void | Update (QRectF rect) |
| | More...
|
| |
| new void | Update (double x, double y, double width, double height) |
| | More...
|
| |
| new void | Dispose () |
| |
| new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
| | More...
|
| |
| new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
| | More...
|
| |
|
| QLineF | Line [get, set] |
| | More...
|
| |
| QPen | Pen [get, set] |
| | More...
|
| |
| override QRectF | BoundingRect [get] |
| | More...
|
| |
| override QPainterPath | OpaqueArea [get] |
| | More...
|
| |
| override QPainterPath | Shape [get] |
| | More...
|
| |
| override int | Type [get] |
| | More...
|
| |
| bool | AcceptDrops [get, set] |
| | More...
|
| |
| bool | AcceptHoverEvents [get, set] |
| | More...
|
| |
| bool | AcceptTouchEvents [get, set] |
| | More...
|
| |
| Qt.MouseButton | AcceptedMouseButtons [get, set] |
| | More...
|
| |
| bool | AcceptsHoverEvents [get, set] |
| | More...
|
| |
| double | BoundingRegionGranularity [get, set] |
| | More...
|
| |
| QGraphicsItem.CacheMode | cacheMode [get, set] |
| | More...
|
| |
| QCursor | Cursor [get, set] |
| | More...
|
| |
| bool | FiltersChildEvents [get, set] |
| | More...
|
| |
| QGraphicsItem.GraphicsItemFlag | Flags [get, set] |
| | More...
|
| |
| IQGraphicsItem | FocusProxy [get, set] |
| | More...
|
| |
| QGraphicsEffect | GraphicsEffect [get, set] |
| | More...
|
| |
| QGraphicsItemGroup | Group [get, set] |
| | More...
|
| |
| bool | HandlesChildEvents [get, set] |
| | More...
|
| |
| Qt.InputMethodHint | InputMethodHints [get, set] |
| | More...
|
| |
| double | Opacity [get, set] |
| | More...
|
| |
| QGraphicsItem.PanelModality | panelModality [get, set] |
| | More...
|
| |
| IQGraphicsItem | ParentItem [get, set] |
| | More...
|
| |
| QPointF | Pos [get, set] |
| | More...
|
| |
| double | Rotation [get, set] |
| | More...
|
| |
| string | ToolTip [get, set] |
| | More...
|
| |
| QPointF | TransformOriginPoint [get, set] |
| | More...
|
| |
System.Collections.Generic.List
< QGraphicsTransform > | Transformations [get, set] |
| | More...
|
| |
| double | X [get, set] |
| | More...
|
| |
| double | Y [get, set] |
| | More...
|
| |
| double | ZValue [get, set] |
| | More...
|
| |
| QMatrix | Matrix [get] |
| | More...
|
| |
| QTransform | Transform [get] |
| | More...
|
| |
| virtual QRectF | BoundingRect [get] |
| | More...
|
| |
System.Collections.Generic.List
< IQGraphicsItem > | ChildItems [get] |
| | More...
|
| |
System.Collections.Generic.List
< IQGraphicsItem > | Children [get] |
| | More...
|
| |
| QRectF | ChildrenBoundingRect [get] |
| | More...
|
| |
| QPainterPath | ClipPath [get] |
| | More...
|
| |
| double | EffectiveOpacity [get] |
| | More...
|
| |
| bool | HasCursor [get] |
| | More...
|
| |
| bool | HasFocus [get] |
| | More...
|
| |
| bool | IsActive [get] |
| | More...
|
| |
| bool | IsClipped [get] |
| | More...
|
| |
| bool | IsEnabled [get] |
| | More...
|
| |
| bool | IsPanel [get] |
| | More...
|
| |
| bool | IsSelected [get] |
| | More...
|
| |
| bool | IsUnderMouse [get] |
| | More...
|
| |
| bool | IsVisible [get] |
| | More...
|
| |
| bool | IsWidget [get] |
| | More...
|
| |
| bool | IsWindow [get] |
| | More...
|
| |
| virtual QPainterPath | OpaqueArea [get] |
| | More...
|
| |
| IQGraphicsItem | Panel [get] |
| | More...
|
| |
| QGraphicsObject | ParentObject [get] |
| | More...
|
| |
| QGraphicsWidget | ParentWidget [get] |
| | More...
|
| |
| QGraphicsScene | Scene [get] |
| | More...
|
| |
| QRectF | SceneBoundingRect [get] |
| | More...
|
| |
| QMatrix | SceneMatrix [get] |
| | More...
|
| |
| QPointF | ScenePos [get] |
| | More...
|
| |
| QTransform | SceneTransform [get] |
| | More...
|
| |
| virtual QPainterPath | Shape [get] |
| | More...
|
| |
| IQGraphicsItem | TopLevelItem [get] |
| | More...
|
| |
| QGraphicsWidget | TopLevelWidget [get] |
| | More...
|
| |
| virtual int | Type [get] |
| | More...
|
| |
| QGraphicsWidget | Window [get] |
| | More...
|
| |
| virtual System.IntPtr | SmokeObject [get, set] |
| |
| System.Boolean | AcceptDrops [get, set] |
| | More...
|
| |
| System.Boolean | AcceptHoverEvents [get, set] |
| | More...
|
| |
| System.Boolean | AcceptTouchEvents [get, set] |
| | More...
|
| |
| Qt.MouseButton | AcceptedMouseButtons [get, set] |
| | More...
|
| |
| System.Boolean | AcceptsHoverEvents [get, set] |
| | More...
|
| |
| System.Double | BoundingRegionGranularity [get, set] |
| | More...
|
| |
| QGraphicsItem.CacheMode | cacheMode [get, set] |
| | More...
|
| |
| QCursor | Cursor [get, set] |
| | More...
|
| |
| System.Boolean | FiltersChildEvents [get, set] |
| | More...
|
| |
| QGraphicsItem.GraphicsItemFlag | Flags [get, set] |
| | More...
|
| |
| IQGraphicsItem | FocusProxy [get, set] |
| | More...
|
| |
| QGraphicsEffect | GraphicsEffect [get, set] |
| | More...
|
| |
| QGraphicsItemGroup | Group [get, set] |
| | More...
|
| |
| System.Boolean | HandlesChildEvents [get, set] |
| | More...
|
| |
| Qt.InputMethodHint | InputMethodHints [get, set] |
| | More...
|
| |
| System.Double | Opacity [get, set] |
| | More...
|
| |
| QGraphicsItem.PanelModality | panelModality [get, set] |
| | More...
|
| |
| IQGraphicsItem | ParentItem [get, set] |
| | More...
|
| |
| QPointF | Pos [get, set] |
| | More...
|
| |
| System.Double | Rotation [get, set] |
| | More...
|
| |
| System.String | ToolTip [get, set] |
| | More...
|
| |
| QPointF | TransformOriginPoint [get, set] |
| | More...
|
| |
System.Collections.Generic.List
< QGraphicsTransform > | Transformations [get, set] |
| | More...
|
| |
| System.Double | X [get, set] |
| | More...
|
| |
| System.Double | Y [get, set] |
| | More...
|
| |
| System.Double | ZValue [get, set] |
| | More...
|
| |
| QMatrix | Matrix [get] |
| | More...
|
| |
| QTransform | Transform [get] |
| | More...
|
| |
| QRectF | BoundingRect [get] |
| | More...
|
| |
System.Collections.Generic.List
< IQGraphicsItem > | ChildItems [get] |
| | More...
|
| |
System.Collections.Generic.List
< IQGraphicsItem > | Children [get] |
| | More...
|
| |
| QRectF | ChildrenBoundingRect [get] |
| | More...
|
| |
| QPainterPath | ClipPath [get] |
| | More...
|
| |
| System.Double | EffectiveOpacity [get] |
| | More...
|
| |
| System.Boolean | HasCursor [get] |
| | More...
|
| |
| System.Boolean | HasFocus [get] |
| | More...
|
| |
| System.Boolean | IsActive [get] |
| | More...
|
| |
| System.Boolean | IsClipped [get] |
| | More...
|
| |
| System.Boolean | IsEnabled [get] |
| | More...
|
| |
| System.Boolean | IsPanel [get] |
| | More...
|
| |
| System.Boolean | IsSelected [get] |
| | More...
|
| |
| System.Boolean | IsUnderMouse [get] |
| | More...
|
| |
| System.Boolean | IsVisible [get] |
| | More...
|
| |
| System.Boolean | IsWidget [get] |
| | More...
|
| |
| System.Boolean | IsWindow [get] |
| | More...
|
| |
| QPainterPath | OpaqueArea [get] |
| | More...
|
| |
| IQGraphicsItem | Panel [get] |
| | More...
|
| |
| QGraphicsObject | ParentObject [get] |
| | More...
|
| |
| QGraphicsWidget | ParentWidget [get] |
| | More...
|
| |
| QGraphicsScene | Scene [get] |
| | More...
|
| |
| QRectF | SceneBoundingRect [get] |
| | More...
|
| |
| QMatrix | SceneMatrix [get] |
| | More...
|
| |
| QPointF | ScenePos [get] |
| | More...
|
| |
| QTransform | SceneTransform [get] |
| | More...
|
| |
| QPainterPath | Shape [get] |
| | More...
|
| |
| IQGraphicsItem | TopLevelItem [get] |
| | More...
|
| |
| QGraphicsWidget | TopLevelWidget [get] |
| | More...
|
| |
| System.Int32 | Type [get] |
| | More...
|
| |
| QGraphicsWidget | Window [get] |
| | More...
|
| |
The QGraphicsLineItem class provides a line item that you can add to a QGraphicsScene.
To set the item's line, pass a QLineF to QGraphicsLineItem's constructor, or call the setLine() function. The line() function returns the current line. By default the line is black with a width of 0, but you can change this by calling setPen().
QGraphicsLineItem uses the line and the pen width to provide a reasonable implementation of boundingRect(), shape(), and contains(). The paint() function draws the line using the item's associated pen.
See also QGraphicsPathItem, QGraphicsRectItem, QGraphicsEllipseItem, QGraphicsTextItem, QGraphicsPolygonItem, QGraphicsPixmapItem, and Graphics View Framework.