From 467115429e7a7dd68264a1833b2d59b12baece40 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 23 Mar 2020 22:08:30 +0900 Subject: [PATCH] [qwaq] Add gfGrowNone and a grow mode setter gfGrowNone is just to allow not growing with the owner to be explicitly stated. --- ruamoko/qwaq/qwaq-view.h | 2 ++ ruamoko/qwaq/qwaq-view.r | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/ruamoko/qwaq/qwaq-view.h b/ruamoko/qwaq/qwaq-view.h index 87952f039..7c3bf9f80 100644 --- a/ruamoko/qwaq/qwaq-view.h +++ b/ruamoko/qwaq/qwaq-view.h @@ -32,6 +32,7 @@ enum { }; enum { + gfGrowNone = 0x0000, gfGrowLoX = 0x0001, gfGrowLoY = 0x0002, gfGrowHiX = 0x0004, @@ -72,6 +73,7 @@ enum { - (void) dealloc; -setOwner: (Group *) owner; +-setGrowMode: (int) mode; -(Rect)rect; -(Point)origin; diff --git a/ruamoko/qwaq/qwaq-view.r b/ruamoko/qwaq/qwaq-view.r index c9177b221..6413cbd13 100644 --- a/ruamoko/qwaq/qwaq-view.r +++ b/ruamoko/qwaq/qwaq-view.r @@ -95,6 +95,12 @@ updateScreenCursor (View *view) return self; } +-setGrowMode: (int) mode +{ + growMode = mode; + return self; +} + - (Rect) rect { return rect;