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
GraphicsView
chevron_left Editor Classes
class
GraphicsView

Constructors

functionsGraphicsView

Properties

data_objectAntialiasingdata_objectBilinearFilteringdata_objectCenterdata_objectDragTypedata_objectHorizontalScrollbardata_objectItemsdata_objectMaxZoomdata_objectMinZoomdata_objectOnSelectionChangeddata_objectRotationdata_objectScaledata_objectSceneRectdata_objectSelectedItemsdata_objectSelectionRectdata_objectTextAntialiasingdata_objectTransformAnchordata_objectVerticalScrollbar

Methods

functionsAddfunctionsCapturefunctionsCenterOnfunctionsDeleteAllItemsfunctionsFitInViewfunctionsFromScenefunctionsGetItemAtfunctionsSetBackgroundImagefunctionsToScenefunctionsTranslatefunctionsZoom
GraphicsView
class Editor .account_tree extends Widget
Sandbox.Tools

build Constructors 1

GraphicsView (parent)

data_object Properties 17

Antialiasing
bool
BilinearFiltering
bool
Center
Vector2
Where in the scene is the view currently centered.
DragType
DragTypes
What happens when the user drags the mouse. You generally want to toggle this in OnMouseDown to switch what happens with different mouse buttons.
HorizontalScrollbar
ScrollbarMode
Items
IEnumerable`1
MaxZoom
float
MinZoom
float
OnSelectionChanged
Action
Rotation
float
Scale
Vector2
SceneRect
Rect
SelectedItems
IEnumerable`1
SelectionRect
Rect
All items inside this rect will be selected
TextAntialiasing
bool
TransformAnchor
ViewportAnchorType
VerticalScrollbar
ScrollbarMode

functions Methods 11

Add (t)
Capture (path)
bool
CenterOn (center)
DeleteAllItems ()
FitInView (rect)
FromScene (pos)
Vector2
GetItemAt (scenePosition)
GraphicsItem
SetBackgroundImage (image)
ToScene (pos)
Vector2
Translate (delta)
Zoom (adjust, viewpos)

Inheritance

QObject
Widget
GraphicsView
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