[qwaq] Fetch View origin and size separately

This commit is contained in:
Bill Currie 2020-03-19 18:38:24 +09:00
parent e49ba896aa
commit 8bd702ab1a
2 changed files with 13 additions and 0 deletions

View file

@ -61,6 +61,8 @@ enum {
-setOwner: (Group *) owner;
-(Rect)rect;
-(Point)origin;
-(Extent)size;
-(int) containsPoint: (Point) point;
-(void) grabMouse;

View file

@ -100,6 +100,17 @@ updateScreenCursor (View *view)
return rect;
}
-(Point)origin
{
return pos;
}
-(Extent)size
{
return size;
}
-(int) containsPoint: (Point) point
{
return rectContainsPoint (rect, point);