s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Editor Classes
GraphicsItem
chevron_left Editor Classes
class
GraphicsItem

Constructors

functionsGraphicsItem

Properties

data_objectBoundingRectdata_objectCenterdata_objectChildrendata_objectClipdata_objectClipChildrendata_objectCursordata_objectFocusabledata_objectGraphicsViewdata_objectHandlePositiondata_objectHeightdata_objectHovereddata_objectHoverEventsdata_objectIsValiddata_objectLocalRectdata_objectMovabledata_objectParentdata_objectPositiondata_objectRotationdata_objectScaledata_objectSceneRectdata_objectSelectabledata_objectSelecteddata_objectSizeremove_circleTooltipdata_objectToolTipdata_objectViewPositiondata_objectWidthdata_objectZIndex

Methods

functionsBindfunctionsContainsfunctionsDestroyfunctionsFromItemfunctionsFromParentfunctionsFromScenelockOnDestroylockOnHoverEnterlockOnHoverLeavelockOnHoverMovelockOnKeyPresslockOnKeyReleaselockOnMouseMovelockOnMousePressedlockOnMouseReleasedlockOnMovedlockOnPaintlockOnPositionChangedlockOnSelectionChangedfunctionsPrepareGeometryChangefunctionsToItemfunctionsToParentfunctionsToScenefunctionsUpdate
GraphicsItem
class Editor .
abstractSandbox.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
obsoletestring
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter