iliak's picture

[GameWindow] GameWindow.Size property on Mac OS X

Project:The Open Toolkit library
Version:1.0-beta-2
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is it possible to add a System.Drawing.Size to the OpenTK.GameWindoW (getter & setter) ?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» in progress

This is planned for the next version of OpenTK. A WIP, but relatively stable implementation exists in the gw-next branch.

the Fiddler's picture

#2

Status:in progress» in progress (commit)

Committed now to the gw-next2 branch, which will be merged for OpenTK 0.9.9.

the Fiddler's picture

#3

Status:in progress (commit)» in progress (review)

Committed to trunk, but the Mac OS X implementation needs work/testing.

the Fiddler's picture

#4

Title:GameWindow.Size» [GameWindow] GameWindow.Size property on Mac OS X
Version:all versions» 0.9.x-dev

Test that the new properties work correctly on Mac OS X.

the Fiddler's picture

#5

Category:feature request» task
kanato's picture

#6

I'll try and take a look at this next week, but I am moving next friday so I may not get to it until after that.

the Fiddler's picture

#7

Thanks. There are two things to check: GameWindow.Bounds and GameWindow.ClientRectangle.

The first should return the location and 'external' size of the window (including the title and borders), while the latter should always return (0, 0) as its Location and the actual size of the viewport as its Size property.

the Fiddler's picture

#8

Status:in progress (review)» fixed

Fixed in r2514.

the Fiddler's picture

#9

Version:0.9.x-dev» 1.0-beta-2
Status:fixed» closed

Closing issues fixed in 1.0 beta-2.