And implemented on OS X.

This commit is contained in:
Pietro Gagliardi 2015-10-14 08:50:56 -04:00
parent 6849b01f73
commit 191c026d29
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,7 @@ uiDarwinDefineControl(
c = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort];
dp.Context = newContext(c);
// TODO frame or bounds?
dp.ClientWidth = [self frame].size.width;
dp.ClientHeight = [self frame].size.height;
@ -180,10 +181,13 @@ uiDarwinDefineControl(
av = (areaView *) [self superview];
// this will convert point to drawing space
// thanks swillits in irc.freenode.net/#macdev
point = [self convertPoint:[e locationInWindow] fromView:nil];
me.X = point.x;
me.Y = point.y;
// TODO frame or bounds?
me.ClientWidth = [self frame].size.width;
me.ClientHeight = [self frame].size.height;
me.HScrollPos = [av hscrollPos];