From b72bef86301914a115580047c52122bff9ce8f52 Mon Sep 17 00:00:00 2001 From: Adi Oanca Date: Sat, 2 Jul 2005 10:36:24 +0000 Subject: [PATCH] Added Flags(), ResizeMode(), made virtuals be prototypes only. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13397 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/Layer.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/servers/app/Layer.h b/src/servers/app/Layer.h index 89c9563532..20a1b1298d 100644 --- a/src/servers/app/Layer.h +++ b/src/servers/app/Layer.h @@ -94,6 +94,10 @@ class Layer { const char* Name() const { return fName.String(); } + inline uint32 Flags() const + { return fFlags; } + inline uint32 ResizeMode() const + { return fResizeMode; } #ifndef NEW_CLIPPING virtual void RebuildFullRegion(); @@ -188,7 +192,7 @@ class Layer { void SetAsTopLayer(bool option) { fIsTopLayer = option; } - bool IsTopLayer() const + inline bool IsTopLayer() const { return fIsTopLayer; } BRegion* ClippingRegion() const @@ -218,9 +222,9 @@ class Layer { virtual void GetWantedRegion(BRegion& reg) const; - virtual void MovedByHook(float dx, float dy) { } - virtual void ResizedByHook(float dx, float dy, bool automatic) { } - virtual void ScrolledByHook(float dx, float dy) { } + virtual void MovedByHook(float dx, float dy); + virtual void ResizedByHook(float dx, float dy, bool automatic); + virtual void ScrolledByHook(float dx, float dy); void ConvertToParent2(BPoint* pt) const; void ConvertToParent2(BRect* rect) const;