s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter