Class: Widget
Lua
C++
Edit

Widget:MouseEnter

This method is called when the mouse cursor enters the active window bounds.

Syntax

function Widget:MouseEnter(x: number, y: number): void

Parameters

Name Type Description
x number mouse x screen coordinate
y number mouse y screen coordinate

Remarks

This is a protected virtual method. It can only be used by declaring it in a custom widget.

-- Define a custom widget class
Widget = {}

function Widget:MouseEnter(x, y)
    -- Add your custom code here
end
Copyright © 2024 Ultra Software.
All rights reserved.