s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
GraphicsItem
chevron_left
Editor Classes
class
GraphicsItem
search
Constructors
functions
GraphicsItem
Properties
data_object
BoundingRect
data_object
Center
data_object
Children
data_object
Clip
data_object
ClipChildren
data_object
Cursor
data_object
Focusable
data_object
GraphicsView
data_object
HandlePosition
data_object
Height
data_object
Hovered
data_object
HoverEvents
data_object
IsValid
data_object
LocalRect
data_object
Movable
data_object
Parent
data_object
Position
data_object
Rotation
data_object
Scale
data_object
SceneRect
data_object
Selectable
data_object
Selected
data_object
Size
remove_circle
Tooltip
data_object
ToolTip
data_object
ViewPosition
data_object
Width
data_object
ZIndex
Methods
functions
Bind
functions
Contains
functions
Destroy
functions
FromItem
functions
FromParent
functions
FromScene
lock
OnDestroy
lock
OnHoverEnter
lock
OnHoverLeave
lock
OnHoverMove
lock
OnKeyPress
lock
OnKeyRelease
lock
OnMouseMove
lock
OnMousePressed
lock
OnMouseReleased
lock
OnMoved
lock
OnPaint
lock
OnPositionChanged
lock
OnSelectionChanged
functions
PrepareGeometryChange
functions
ToItem
functions
ToParent
functions
ToScene
functions
Update
GraphicsItem
class
Editor
.
abstract
Sandbox.Tools
build
Constructors
1
GraphicsItem
(
parent
)
data_object
Properties
28
BoundingRect
Rect
The outer bounds of the item as a rectangle; all painting must be restricted to inside an item's bounding rect.
Center
Vector2
Children
IEnumerable`1
Clip
bool
ClipChildren
bool
Cursor
CursorShape
Focusable
bool
Gets keyboard input
GraphicsView
GraphicsView
HandlePosition
Vector2
0,0 means top left, 1,1 means bottom right
Height
float
Hovered
bool
HoverEvents
bool
IsValid
bool
LocalRect
Rect
Movable
bool
Parent
GraphicsItem
Position
Vector2
Rotation
float
Scale
float
SceneRect
Rect
Selectable
bool
Selected
bool
Size
Vector2
Tooltip
obsolete
string
ToolTip
string
ViewPosition
Vector2
Width
float
ZIndex
float
functions
Methods
24
Bind
(
targetName
)
Builder
Contains
(
localPos
)
bool
Destroy
(
)
FromItem
(
item
,
pos
)
Vector2
FromParent
(
pos
)
Vector2
FromScene
(
pos
)
Vector2
OnDestroy
(
)
OnHoverEnter
(
e
)
OnHoverLeave
(
e
)
OnHoverMove
(
e
)
OnKeyPress
(
e
)
A key has been pressed.
OnKeyRelease
(
e
)
A key has been released.
OnMouseMove
(
e
)
OnMousePressed
(
e
)
OnMouseReleased
(
e
)
OnMoved
(
)
Item has been moved by the user dragging it
OnPaint
(
)
OnPositionChanged
(
)
OnSelectionChanged
(
)
PrepareGeometryChange
(
)
Usually called before resizing items so they paint properly.
ToItem
(
item
,
pos
)
Vector2
ToParent
(
pos
)
Vector2
ToScene
(
pos
)
Vector2
Update
(
)
Inheritance
GraphicsItem
GraphicsLine
GraphicsWidget
SimpleText
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.