aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Window.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-26 10:24:39 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-26 10:24:39 +0200
commit4b39241bad2eb55a91305c4aa5197c1640e81c48 (patch)
treec7c69917b6d2ac1ec985c9cddd5f66961c0f26cd /src/GraphicObjects/Window.cs
parentda33782c4ab475d0e8c1216f13ecbff2450ec546 (diff)
remove Initialise, currentInterface is set by instanciator
Diffstat (limited to 'src/GraphicObjects/Window.cs')
-rw-r--r--src/GraphicObjects/Window.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs
index 8a6903f6..e0c97ea9 100644
--- a/src/GraphicObjects/Window.cs
+++ b/src/GraphicObjects/Window.cs
@@ -152,7 +152,7 @@ namespace Crow
alwaysOnTop = value;
if (alwaysOnTop && Parent != null)
- CurrentInterface.PutOnTop (this);
+ currentInterface.PutOnTop (this);
NotifyValueChanged ("AlwaysOnTop", alwaysOnTop);
}
@@ -178,11 +178,11 @@ namespace Crow
{
base.onMouseMove (sender, e);
- Interface otkgw = CurrentInterface;
+ Interface otkgw = currentInterface;
if (!hoverBorder) {
currentDirection = Direction.None;
- CurrentInterface.MouseCursor = XCursor.Default;
+ currentInterface.MouseCursor = XCursor.Default;
return;
}
@@ -323,7 +323,7 @@ namespace Crow
#endregion
protected void onMaximized (object sender, EventArgs e){
- lock (CurrentInterface.LayoutMutex) {
+ lock (currentInterface.LayoutMutex) {
if (!IsMinimized)
savedBounds = this.LastPaintedSlot;
this.Left = this.Top = 0;
@@ -342,7 +342,7 @@ namespace Crow
}
protected void onUnmaximized (object sender, EventArgs e){
- lock (CurrentInterface.LayoutMutex) {
+ lock (currentInterface.LayoutMutex) {
this.Left = savedBounds.Left;
this.Top = savedBounds.Top;
this.Width = savedBounds.Width;
@@ -357,7 +357,7 @@ namespace Crow
Unmaximized.Raise (sender, e);
}
protected void onMinimized (object sender, EventArgs e){
- lock (CurrentInterface.LayoutMutex) {
+ lock (currentInterface.LayoutMutex) {
if (IsNormal)
savedBounds = this.LastPaintedSlot;
Width = 200;
@@ -375,7 +375,7 @@ namespace Crow
{
hoverBorder = false;
currentDirection = Direction.None;
- CurrentInterface.MouseCursor = XCursor.Default;
+ currentInterface.MouseCursor = XCursor.Default;
}
protected void onBorderMouseEnter (object sender, MouseMoveEventArgs e)
{
@@ -385,13 +385,13 @@ namespace Crow
protected void butQuitPress (object sender, MouseButtonEventArgs e)
{
- CurrentInterface.MouseCursor = XCursor.Default;
+ currentInterface.MouseCursor = XCursor.Default;
close ();
}
protected void close(){
Closing.Raise (this, null);
- CurrentInterface.DeleteWidget (this);
+ currentInterface.DeleteWidget (this);
}
}
}