aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
authorjp <jp_bruyere@hotmail.com>2016-07-23 16:50:32 +0200
committerjp <jp_bruyere@hotmail.com>2016-07-23 16:50:32 +0200
commit216fa1608767774b0db1d31551dfee25fcbcddbd (patch)
treee9c3517271ae5c9ddf370f5bf372b53c1b2ca137 /src/GraphicObjects/GraphicObject.cs
parent7164e3fd70dc2401c6b325e4ddda4755332c00f6 (diff)
implement Crow.LoadFromStream and filenotfound catch
modifié : Tests/OpenGL/Texture.cs debug window resize bugs modifié : src/GraphicObjects/GraphicObject.cs modifié : src/GraphicObjects/Window.cs
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index 59b4be18..2838f6cd 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -239,6 +239,10 @@ namespace Crow
set {
if (_width == value)
return;
+ if (value.IsFixed) {
+ if (value < MinimumSize.Width || (value > MaximumSize.Width && MaximumSize.Width > 0))
+ return;
+ }
_width = value;
NotifyValueChanged ("Width", _width);
@@ -253,6 +257,10 @@ namespace Crow
set {
if (_height == value)
return;
+ if (value.IsFixed) {
+ if (value < MinimumSize.Height || (value > MaximumSize.Height && MaximumSize.Height > 0))
+ return;
+ }
_height = value;
NotifyValueChanged ("Height", _height);
@@ -1239,6 +1247,8 @@ namespace Crow
}
}
void applyStyle(){
+ //The first place searched for a style is in the style propery of this instance
+ //this field may contains the path to a Style file for the object.
if (string.IsNullOrEmpty (style))
return;
Stream s = Interface.GetStreamFromPath (style);