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.

1  
static int dm_autoHide_defaultDelay = 5000;
2  
3  
svoid dm_autoHide(RestartableCountdown autoHide) {
4  
  var mod = dm_current_mandatory();
5  
  autoHide.start(dm_autoHide_defaultDelay, r {
6  
    temp mod.enter();
7  
    Container frame = dm_frame();
8  
    if (!mouseInComponent(frame) && !internalFrameFocussed(frame))
9  
      dm_hideModule();
10  
  });
11  
}

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: 411 / 483
Version history: 5 change(s)
Referenced in: [show references]