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

14
LINES

< > BotCompany Repo | #1015286 // onImageSurfaceHighlightChange

JavaX fragment (include)

1  
please include function showImageWithSelections.
2  
3  
static void onImageSurfaceHighlightChange(final ImageSurface is, final VF1<Rect> f) {
4  
  final Var<Rect> highlighted = showImageWithSelections_highlighted;
5  
  imageSurfaceOnMouseMove(is, new Runnable {
6  
    Rect last;
7  
    
8  
    public void run() {
9  
      if (eq(highlighted!, last)) ret;
10  
      last = highlighted!;
11  
      pcallF(f, last);
12  
    }
13  
  });
14  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015286
Snippet name: onImageSurfaceHighlightChange
Eternal ID of this version: #1015286/2
Text MD5: ce8014d982a037f0e48dded884ba4860
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-01 20:54:42
Source code size: 411 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 277 / 318
Version history: 1 change(s)
Referenced in: [show references]