QNodeEditor.graphics.socket.SocketGraphics#
- class QNodeEditor.graphics.socket.SocketGraphics(socket: Socket, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#
Bases:
QGraphicsItemExtension of QGraphicsItem for drawing a socket.
Properties
Get or set the socket theme.
Methods
Create new socket graphics.
boundingRectGet the bounding rectangle of the socket.
Get the position of this socket in scene coordinates.
paintDraw the socket.
Update the position of the socket relative to the entry it is in.
- __init__(socket: Socket, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#
Create new socket graphics.
- get_scene_position() QPointF#
Get the position of this socket in scene coordinates.
- Returns:
Scene position of this socket
- Return type:
- update_position() None#
Update the position of the socket relative to the entry it is in.
- Return type:
None