MCPcopy Create free account
hub / github.com/cinder/Cinder / getWindowContentScale

Function getWindowContentScale

include/cinder/app/AppBase.h:312–312  ·  view source on GitHub ↗

Returns the contentScale of the App's window, which is the multiplier that maps points to pixels

Source from the content-addressed store, hash-verified

310 Area getWindowBounds() const { return Area( 0, 0, getWindowWidth(), getWindowHeight() ); }
311 //! Returns the contentScale of the App's window, which is the multiplier that maps points to pixels
312 float getWindowContentScale() const { return getWindow()->getContentScale(); }
313
314 //! Returns tcoordinates of the top-left corner of the current window measured in points
315 ivec2 getWindowPos() const { return getWindow()->getPos(); }

Callers 6

displayChangeMethod · 0.85
drawMethod · 0.85
setupMethod · 0.85
setupMethod · 0.85
drawMethod · 0.85
updateImGuiMethod · 0.85

Calls 3

getWindowFunction · 0.70
getFunction · 0.50
getContentScaleMethod · 0.45

Tested by 3

setupMethod · 0.68
drawMethod · 0.68
updateImGuiMethod · 0.68