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

14
LINES

< > BotCompany Repo | #1015286 // onImageSurfaceHighlightChange

JavaX fragment (include)

please include function showImageWithSelections.

static void onImageSurfaceHighlightChange(final ImageSurface is, final VF1<Rect> f) {
  final Var<Rect> highlighted = showImageWithSelections_highlighted;
  imageSurfaceOnMouseMove(is, new Runnable {
    Rect last;
    
    public void run() {
      if (eq(highlighted!, last)) ret;
      last = highlighted!;
      pcallF(f, last);
    }
  });
}

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: 337 / 377
Version history: 1 change(s)
Referenced in: [show references]