MCPcopy Create free account
hub / github.com/esengine/esengine / handleRollOver

Method handleRollOver

packages/fairygui/src/widgets/GButton.ts:561–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559 }
560
561 private handleRollOver(): void {
562 if (
563 !this._buttonController ||
564 !this._buttonController.hasPage(GButton.OVER)
565 ) {
566 return;
567 }
568
569 this._over = true;
570 if (this._down) {
571 return;
572 }
573
574 if (this.grayed && this._buttonController.hasPage(GButton.DISABLED)) {
575 return;
576 }
577
578 this.setState(this._selected ? GButton.SELECTED_OVER : GButton.OVER);
579 }
580
581 private handleRollOut(): void {
582 if (

Callers

nothing calls this directly

Calls 2

setStateMethod · 0.95
hasPageMethod · 0.80

Tested by

no test coverage detected