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

17
LINES

< > BotCompany Repo | #1009185 // libreOffice_rect - get DoubleRect from tag

JavaX fragment (include)

1  
static DoubleRect libreOffice_rect(L<S> tag) {
2  
  ret libreOffice_rect(get(tag, 1));
3  
}
4  
5  
static DoubleRect libreOffice_rect(S tag) {
6  
  S x = xml_getArg(tag, "svg:x");
7  
  S y = xml_getArg(tag, "svg:y");
8  
  S w = xml_getArg(tag, "svg:width");
9  
  S h = xml_getArg(tag, "svg:height");
10  
  if (x != null && y != null && w != null && h != null)
11  
    ret new DoubleRect(
12  
      libreOffice_parseMeasure(x),
13  
      libreOffice_parseMeasure(y),
14  
      libreOffice_parseMeasure(w),
15  
      libreOffice_parseMeasure(h));
16  
  null;
17  
}

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: #1009185
Snippet name: libreOffice_rect - get DoubleRect from tag
Eternal ID of this version: #1009185/3
Text MD5: 7ca63b1918d34a496591300c20a653fe
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-12 22:12:20
Source code size: 522 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 492 / 494
Version history: 2 change(s)
Referenced in: [show references]