aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-13 02:26:03 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-13 02:26:03 +0100
commit2a44a31d02f13312ee081b7730485518ed5b0b74 (patch)
treea9b0992f0a14e93d0d79d0b2a57aa400850880b3 /src/GraphicObjects
parent103791b80ca11386a5f6d0b7dd5240c266c9d192 (diff)
MouseCursor property in GOLIBHost; IsActive Prop in GraphicObject
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/GraphicObject.cs17
-rw-r--r--src/GraphicObjects/IGOLibHost.cs1
2 files changed, 14 insertions, 4 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index 85166d4f..1f07e922 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -79,6 +79,7 @@ namespace Crow
int _margin = 0;
bool _focusable = false;
bool _hasFocus = false;
+ bool _isActive = false;
bool _mouseRepeat;
protected bool _isVisible = true;
VerticalAlignment _verticalAlignment = VerticalAlignment.Center;
@@ -121,11 +122,9 @@ namespace Crow
/// <summary>
/// Parent in the graphic tree, used for rendering and layouting
/// </summary>
- [XmlIgnore]public ILayoutable Parent {
+ [XmlIgnore]public virtual ILayoutable Parent {
get { return _parent; }
- set {
- _parent = value;
- }
+ set { _parent = value; }
}
public ILayoutable LogicalParent {
@@ -295,6 +294,16 @@ namespace Crow
NotifyValueChanged ("HasFocus", _hasFocus);
}
}
+ [XmlIgnore]public virtual bool IsActive {
+ get { return _isActive; }
+ set {
+ if (value == _isActive)
+ return;
+
+ _isActive = value;
+ NotifyValueChanged ("IsActive", _isActive);
+ }
+ }
[XmlAttributeAttribute()][DefaultValue(false)]
public virtual bool MouseRepeat {
get { return _mouseRepeat; }
diff --git a/src/GraphicObjects/IGOLibHost.cs b/src/GraphicObjects/IGOLibHost.cs
index 1cf6978c..5c842e32 100644
--- a/src/GraphicObjects/IGOLibHost.cs
+++ b/src/GraphicObjects/IGOLibHost.cs
@@ -9,6 +9,7 @@ namespace Crow
GraphicObject activeWidget { get; set; }
GraphicObject hoverWidget { get; set; }
GraphicObject FocusedWidget { get; set; }
+ XCursor MouseCursor { set; }
void AddWidget (GraphicObject g);
void DeleteWidget(GraphicObject g);
void PutOnTop (GraphicObject g);