mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[qwaq] Allow views to be moved/resized without redraw
The move is to a specified point and resize to a specified size rather than a delta.
This commit is contained in:
parent
17da19b979
commit
34706906f5
2 changed files with 14 additions and 0 deletions
|
@ -67,6 +67,8 @@ enum {
|
|||
-move: (Point) delta;
|
||||
-resize: (Extent) delta;
|
||||
-move:(Point)dpos andResize:(Extent)dsize;
|
||||
-moveTo:(Point)pos; // does not redraw
|
||||
-resizeTo:(Extent)size; // does not redraw
|
||||
-grow: (Extent) delta;
|
||||
-(ListenerGroup *)onEvent;
|
||||
-handleEvent: (qwaq_event_t *) event;
|
||||
|
|
|
@ -277,6 +277,18 @@ updateScreenCursor (View *view)
|
|||
return self;
|
||||
}
|
||||
|
||||
-moveTo:(Point)pos
|
||||
{
|
||||
self.pos = pos;
|
||||
return self;
|
||||
}
|
||||
|
||||
-resizeTo:(Extent)size
|
||||
{
|
||||
self.size = size;
|
||||
return self;
|
||||
}
|
||||
|
||||
-grow: (Extent) delta
|
||||
{
|
||||
Point dpos = {};
|
||||
|
|
Loading…
Reference in a new issue