Skip to content

Commit 598586b

Browse files
committed
Follow existing naming convention.
1 parent b86ca7c commit 598586b

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

project/include/ui/Window.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace lime {
6464
virtual void SetTextInputRect (Rectangle *rect) = 0;
6565
virtual const char* SetTitle (const char* title) = 0;
6666
virtual bool SetVisible (bool visible) = 0;
67-
virtual bool SetAlwaysOnTop (bool enabled) = 0;
67+
virtual bool SetAlwaysOnTop (bool alwaysOnTop) = 0;
6868
virtual void WarpMouse (int x, int y) = 0;
6969

7070
Application* currentApplication;

project/src/ExternalInterface.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3949,18 +3949,18 @@ namespace lime {
39493949
}
39503950

39513951

3952-
bool lime_window_set_always_on_top (value window, bool enabled) {
3952+
bool lime_window_set_always_on_top (value window, bool alwaysOnTop) {
39533953

39543954
Window* targetWindow = (Window*)val_data (window);
3955-
return targetWindow->SetAlwaysOnTop(enabled);
3955+
return targetWindow->SetAlwaysOnTop(alwaysOnTop);
39563956

39573957
}
39583958

39593959

3960-
HL_PRIM bool HL_NAME(hl_window_set_always_on_top) (HL_CFFIPointer* window, bool enabled) {
3960+
HL_PRIM bool HL_NAME(hl_window_set_always_on_top) (HL_CFFIPointer* window, bool alwaysOnTop) {
39613961

39623962
Window* targetWindow = (Window*)window->ptr;
3963-
return targetWindow->SetAlwaysOnTop (enabled);
3963+
return targetWindow->SetAlwaysOnTop (alwaysOnTop);
39643964

39653965
}
39663966

project/src/backend/sdl/SDLWindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,9 +1124,9 @@ namespace lime {
11241124
}
11251125

11261126

1127-
bool SDLWindow::SetAlwaysOnTop (bool enabled) {
1127+
bool SDLWindow::SetAlwaysOnTop (bool alwaysOnTop) {
11281128

1129-
if (enabled) {
1129+
if (alwaysOnTop) {
11301130

11311131
SDL_SetWindowAlwaysOnTop (sdlWindow, SDL_TRUE);
11321132

@@ -1136,7 +1136,7 @@ namespace lime {
11361136

11371137
}
11381138

1139-
return enabled;
1139+
return alwaysOnTop;
11401140

11411141
}
11421142

project/src/backend/sdl/SDLWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace lime {
5858
virtual void SetTextInputRect (Rectangle *rect);
5959
virtual const char* SetTitle (const char* title);
6060
virtual bool SetVisible (bool visible);
61-
virtual bool SetAlwaysOnTop (bool enabled);
61+
virtual bool SetAlwaysOnTop (bool alwaysOnTop);
6262
virtual void WarpMouse (int x, int y);
6363
SDL_Renderer* sdlRenderer;
6464
SDL_Texture* sdlTexture;

src/lime/_internal/backend/native/NativeCFFI.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class NativeCFFI
363363

364364
@:cffi private static function lime_window_set_visible(handle:Dynamic, visible:Bool):Bool;
365365

366-
@:cffi private static function lime_window_set_always_on_top(handle:Dynamic, visible:Bool):Bool;
366+
@:cffi private static function lime_window_set_always_on_top(handle:Dynamic, alwaysOnTop:Bool):Bool;
367367

368368
@:cffi private static function lime_window_warp_mouse(handle:Dynamic, x:Int, y:Int):Void;
369369

@@ -1428,7 +1428,7 @@ class NativeCFFI
14281428
return false;
14291429
}
14301430

1431-
@:hlNative("lime", "hl_window_set_always_on_top") private static function lime_window_set_always_on_top(handle:CFFIPointer, visible:Bool):Bool
1431+
@:hlNative("lime", "hl_window_set_always_on_top") private static function lime_window_set_always_on_top(handle:CFFIPointer, alwaysOnTop:Bool):Bool
14321432
{
14331433
return false;
14341434
}

0 commit comments

Comments
 (0)