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)

static DoubleRect libreOffice_rect(L<S> tag) {
  ret libreOffice_rect(get(tag, 1));
}

static DoubleRect libreOffice_rect(S tag) {
  S x = xml_getArg(tag, "svg:x");
  S y = xml_getArg(tag, "svg:y");
  S w = xml_getArg(tag, "svg:width");
  S h = xml_getArg(tag, "svg:height");
  if (x != null && y != null && w != null && h != null)
    ret new DoubleRect(
      libreOffice_parseMeasure(x),
      libreOffice_parseMeasure(y),
      libreOffice_parseMeasure(w),
      libreOffice_parseMeasure(h));
  null;
}

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: 491 / 492
Version history: 2 change(s)
Referenced in: [show references]