Issues.00268 - lordmundi/wikidoctest GitHub Wiki

00268: request for tcl commands to get viewport geometry

« 00267 | Issues | 00269 »

Summary: request for tcl commands to get viewport geometry

Created: 2010–08–17 15:58

Status: Released

Category: Request

From: frankie

Version: 2.1

Released_In: 2.2

Description:

it would be helpful if there were tcl commands to get the geometry of a viewport in tcl.

FG


Comments

brad Aug 17 2010, at 4:04 PM: The new doug commands are:

doug.view get -geometry : returns viewport goemetry in wxh+x+y format

doug.view get -width : returns the current width of viewport in pixels

doug.view get -height : returns the current height of viewport in pixels

doug.view get -x : returns the lower x coordinate in window space of viewport

doug.view get -y : returns the lower y coordinate in window space of viewport

All return the dimensions in pixels in window relative coordinates with the lower left of the window having an origin of 0,0.

frankie August 19, 2010, at 10:49 AM: One word of caution - these viewport numbers will only update if the viewport is not hidden.


« 00267 | Issues | 00269 »

Associated Commits

⚠️ **GitHub.com Fallback** ⚠️