Start sorting NativeWindow functions.
There's more to sort, but moving them all at once messes up the diff.
This commit is contained in:
@@ -299,6 +299,18 @@ class NativeWindow
|
||||
return mouseLock;
|
||||
}
|
||||
|
||||
public function getOpacity():Float
|
||||
{
|
||||
if (handle != null)
|
||||
{
|
||||
#if (!macro && lime_cffi)
|
||||
return NativeCFFI.lime_window_get_opacity(handle);
|
||||
#end
|
||||
}
|
||||
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public function getTextInputEnabled():Bool
|
||||
{
|
||||
if (handle != null)
|
||||
@@ -628,6 +640,16 @@ class NativeWindow
|
||||
return value;
|
||||
}
|
||||
|
||||
public function setOpacity(value:Float):Void
|
||||
{
|
||||
if (handle != null)
|
||||
{
|
||||
#if (!macro && lime_cffi)
|
||||
NativeCFFI.lime_window_set_opacity(handle, value);
|
||||
#end
|
||||
}
|
||||
}
|
||||
|
||||
public function setResizable(value:Bool):Bool
|
||||
{
|
||||
if (handle != null)
|
||||
@@ -663,27 +685,6 @@ class NativeWindow
|
||||
NativeCFFI.lime_window_warp_mouse(handle, x, y);
|
||||
#end
|
||||
}
|
||||
|
||||
public function getOpacity():Float
|
||||
{
|
||||
if (handle != null)
|
||||
{
|
||||
#if (!macro && lime_cffi)
|
||||
return NativeCFFI.lime_window_get_opacity(handle);
|
||||
#end
|
||||
}
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public function setOpacity(value:Float):Void
|
||||
{
|
||||
if (handle != null)
|
||||
{
|
||||
#if (!macro && lime_cffi)
|
||||
NativeCFFI.lime_window_set_opacity(handle, value);
|
||||
#end
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@:enum private abstract MouseCursorType(Int) from Int to Int
|
||||
|
||||
Reference in New Issue
Block a user