Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1017219 // dm_autoHide

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (15238L) is out of date.

static int dm_autoHide_defaultDelay = 5000;

svoid dm_autoHide(RestartableCountdown autoHide) {
  var mod = dm_current_mandatory();
  autoHide.start(dm_autoHide_defaultDelay, r {
    temp mod.enter();
    Container frame = dm_frame();
    if (!mouseInComponent(frame) && !internalFrameFocussed(frame))
      dm_hideModule();
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017219
Snippet name: dm_autoHide
Eternal ID of this version: #1017219/6
Text MD5: 19e81f8c9dcd9e1c2eed6993dd2cad89
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-30 17:01:06
Source code size: 342 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 354 / 407
Version history: 5 change(s)
Referenced in: [show references]