mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qwaq] Fetch View origin and size separately
This commit is contained in:
parent
e49ba896aa
commit
8bd702ab1a
2 changed files with 13 additions and 0 deletions
|
@ -61,6 +61,8 @@ enum {
|
|||
-setOwner: (Group *) owner;
|
||||
|
||||
-(Rect)rect;
|
||||
-(Point)origin;
|
||||
-(Extent)size;
|
||||
|
||||
-(int) containsPoint: (Point) point;
|
||||
-(void) grabMouse;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue