Composer Reporters added 4.x-dev

Thu, 08 Oct 2020 09:32:40 +0300

author
Yakup Beyoglu
date
Thu, 08 Oct 2020 09:32:40 +0300
branch
4.x-dev
changeset 1462
a750ce7fd0d7
parent 1461
6bbecfcb304e
child 1463
aafcf9c1dac9

Composer Reporters added

Source/Gorgon/Widgets/Composer.cpp file | annotate | diff | comparison | revisions
Source/Gorgon/Widgets/Composer.h file | annotate | diff | comparison | revisions
--- a/Source/Gorgon/Widgets/Composer.cpp	Wed Oct 07 20:33:51 2020 +0300
+++ b/Source/Gorgon/Widgets/Composer.cpp	Thu Oct 08 09:32:40 2020 +0300
@@ -40,5 +40,28 @@
             RemoveFocus();
     }
 
-    
+    void Composer::hide() {
+        base.Hide();
+        if (HasParent())
+            boundschanged();
+    }
+
+    void Composer::show() {
+        base.Show();
+        if (HasParent())
+            boundschanged();
+    }
+
+    void Composer::Resize(const Geometry::Size &size) {
+        base.Resize(size);
+        if (IsVisible() && HasParent())
+            boundschanged();
+
+    }
+    void Composer::Move(const Geometry::Point &location) {
+        base.Move(location);
+        if (IsVisible() && HasParent())
+            boundschanged();
+    }
+
 } }
--- a/Source/Gorgon/Widgets/Composer.h	Wed Oct 07 20:33:51 2020 +0300
+++ b/Source/Gorgon/Widgets/Composer.h	Thu Oct 08 09:32:40 2020 +0300
@@ -21,10 +21,13 @@
         ~Composer() { }
         
         using WidgetBase::Resize;
-        
+       
+        using WidgetBase::Move;
+
         using WidgetBase::Remove;
         
         using WidgetContainer::Remove;
+
         
         virtual bool Activate() override;
 
@@ -46,18 +49,14 @@
             return true;
         }
         
-        virtual void Resize(const Geometry::Size &size) override {
-            base.Resize(size);
-        }
-        
+        virtual void Resize(const Geometry::Size &size) override;
+
         virtual Geometry::Point GetLocation() const override {
             return base.GetLocation();
         }
         
-        virtual void Move(const Geometry::Point &location) override {
-            base.Move(location);
-        }
-        
+        virtual void Move(const Geometry::Point &location) override;
+
         using WidgetBase::EnsureVisible;
         
         bool EnsureVisible(const UI::WidgetBase &widget) override {
@@ -111,13 +110,9 @@
     private:
         bool enabled = true;
         
-        virtual void hide() override {
-            base.Hide();
-        }
-        
-        virtual void show() override {
-            base.Show();
-        }
+        virtual void hide() override;
+
+        virtual void show() override;
         
         Layer base;
     };

mercurial