aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-13 06:53:18 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-13 06:53:18 +0100
commit688cd87004569c122bf19c127699c5b034492528 (patch)
treef77da4165e9019ec96ced6174863c697b14cd959 /src/Interface.cs
parentdce9ecfbac5b78476550bfe1fc76a8bdbb3d930b (diff)
CrowIDE, ObservableList, include Crow.Coding
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 992ff6f6..d4cc63c4 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -132,7 +132,7 @@ namespace Crow
/// Each control need a ref to the root interface containing it, if not set in GraphicObject.currentInterface,
/// the ref of this one will be stored in GraphicObject.currentInterface
/// </summary>
- internal static Interface CurrentInterface;
+ protected static Interface CurrentInterface;
internal Stopwatch clickTimer = new Stopwatch();
internal GraphicObject eligibleForDoubleClick = null;
#endregion
@@ -337,11 +337,11 @@ namespace Crow
/// <param name="path">path of the iml file to load</param>
public GraphicObject Load (string path)
{
- try {
+ //try {
return GetInstantiator (path).CreateInstance (this);
- } catch (Exception ex) {
- throw new Exception ("Error loading <" + path + ">:", ex);
- }
+ //} catch (Exception ex) {
+ // throw new Exception ("Error loading <" + path + ">:", ex);
+ //}
}
/// <summary>
/// Fetch instantiator from cache or create it.
@@ -409,7 +409,7 @@ namespace Crow
}
}
/// <summary>Pointer is over the widget</summary>
- public GraphicObject HoverWidget
+ public virtual GraphicObject HoverWidget
{
get { return _hoverWidget; }
set {
@@ -775,7 +775,7 @@ namespace Crow
/// <summary>Processes mouse move events from the root container, this function
/// should be called by the host on mouse move event to forward events to crow interfaces</summary>
/// <returns>true if mouse is in the interface</returns>
- public bool ProcessMouseMove(int x, int y)
+ public virtual bool ProcessMouseMove(int x, int y)
{
int deltaX = x - Mouse.X;
int deltaY = y - Mouse.Y;