diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-03-30 12:48:56 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-03-30 12:48:56 +0200 |
| commit | 30baf7a73449a5a0b5c6ea7f3952d4d614ec741f (patch) | |
| tree | 65f8c22ad3d6c65fac0e657754b4870fcbfa29bc /src/GraphicObjects/Container.cs | |
| parent | 4338402e29d2c448c24f4efe6a788adb84f81785 (diff) | |
- svg image support
- bug fixes
Diffstat (limited to 'src/GraphicObjects/Container.cs')
| -rw-r--r-- | src/GraphicObjects/Container.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/GraphicObjects/Container.cs b/src/GraphicObjects/Container.cs index 67d9e6ff..c1134ec5 100644 --- a/src/GraphicObjects/Container.cs +++ b/src/GraphicObjects/Container.cs @@ -2,6 +2,7 @@ using System; using System.Xml.Serialization;
using System.Reflection;
using OpenTK.Input;
+using System.ComponentModel;
namespace go
{
@@ -35,6 +36,13 @@ namespace go }
#region GraphicObject Overrides
+ //check if not causing problems
+ [XmlAttributeAttribute()][DefaultValue(true)]
+ public override bool Focusable
+ {
+ get { return base.Focusable; }
+ set { base.Focusable = value; }
+ }
[XmlIgnore]public override bool LayoutIsValid
{
get
@@ -56,6 +64,11 @@ namespace go return child == null ? null : child.FindByName (nameToFind);
}
+ public override bool Contains (GraphicObject goToFind)
+ {
+ return child == goToFind ? true :
+ child == null ? false : child.Contains(goToFind);
+ }
public override void InvalidateLayout()
{
base.InvalidateLayout();
|