You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

7590 lines
247 KiB

  1. <?xml version="1.0"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta http-equiv="Content-Style-Type" content="text/css" />
  7. <title>libTextSuite Documentation</title>
  8. <style>
  9. table {
  10. border-collapse: collapse;
  11. border-spacing: 0;
  12. }
  13. table th {
  14. background: #EEEEEE;
  15. }
  16. .markdown:not(code) {
  17. overflow: hidden;
  18. font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
  19. font-size: 16px;
  20. line-height: 1.6 !important;
  21. word-wrap: break-word;
  22. }
  23. .markdown:not(code).file-view {
  24. padding: 2em 2em 2em !important;
  25. }
  26. .markdown:not(code) > *:first-child {
  27. margin-top: 0 !important;
  28. }
  29. .markdown:not(code) > *:last-child {
  30. margin-bottom: 0 !important;
  31. }
  32. .markdown:not(code) a:not([href]) {
  33. color: inherit;
  34. text-decoration: none;
  35. }
  36. .markdown:not(code) .absent {
  37. color: #c00;
  38. }
  39. .markdown:not(code) .anchor {
  40. position: absolute;
  41. top: 0;
  42. left: 0;
  43. display: block;
  44. padding-right: 6px;
  45. padding-left: 30px;
  46. margin-left: -30px;
  47. }
  48. .markdown:not(code) .anchor:focus {
  49. outline: none;
  50. }
  51. .markdown:not(code) h1,
  52. .markdown:not(code) h2,
  53. .markdown:not(code) h3,
  54. .markdown:not(code) h4,
  55. .markdown:not(code) h5,
  56. .markdown:not(code) h6 {
  57. position: relative;
  58. margin-top: 1em;
  59. margin-bottom: 16px;
  60. font-weight: bold;
  61. line-height: 1.4;
  62. }
  63. .markdown:not(code) h1:first-of-type,
  64. .markdown:not(code) h2:first-of-type,
  65. .markdown:not(code) h3:first-of-type,
  66. .markdown:not(code) h4:first-of-type,
  67. .markdown:not(code) h5:first-of-type,
  68. .markdown:not(code) h6:first-of-type {
  69. margin-top: 0 !important;
  70. }
  71. .markdown:not(code) h1 .octicon-link,
  72. .markdown:not(code) h2 .octicon-link,
  73. .markdown:not(code) h3 .octicon-link,
  74. .markdown:not(code) h4 .octicon-link,
  75. .markdown:not(code) h5 .octicon-link,
  76. .markdown:not(code) h6 .octicon-link {
  77. display: none;
  78. color: #000;
  79. vertical-align: middle;
  80. }
  81. .markdown:not(code) h1:hover .anchor,
  82. .markdown:not(code) h2:hover .anchor,
  83. .markdown:not(code) h3:hover .anchor,
  84. .markdown:not(code) h4:hover .anchor,
  85. .markdown:not(code) h5:hover .anchor,
  86. .markdown:not(code) h6:hover .anchor {
  87. padding-left: 8px;
  88. margin-left: -30px;
  89. text-decoration: none;
  90. }
  91. .markdown:not(code) h1:hover .anchor .octicon-link,
  92. .markdown:not(code) h2:hover .anchor .octicon-link,
  93. .markdown:not(code) h3:hover .anchor .octicon-link,
  94. .markdown:not(code) h4:hover .anchor .octicon-link,
  95. .markdown:not(code) h5:hover .anchor .octicon-link,
  96. .markdown:not(code) h6:hover .anchor .octicon-link {
  97. display: inline-block;
  98. }
  99. .markdown:not(code) h1 tt,
  100. .markdown:not(code) h1 code,
  101. .markdown:not(code) h2 tt,
  102. .markdown:not(code) h2 code,
  103. .markdown:not(code) h3 tt,
  104. .markdown:not(code) h3 code,
  105. .markdown:not(code) h4 tt,
  106. .markdown:not(code) h4 code,
  107. .markdown:not(code) h5 tt,
  108. .markdown:not(code) h5 code,
  109. .markdown:not(code) h6 tt,
  110. .markdown:not(code) h6 code {
  111. font-size: inherit;
  112. }
  113. .markdown:not(code) h1 {
  114. padding-bottom: 0.3em;
  115. font-size: 2.25em;
  116. line-height: 1.2;
  117. border-bottom: 1px solid #eee;
  118. }
  119. .markdown:not(code) h1 .anchor {
  120. line-height: 1;
  121. }
  122. .markdown:not(code) h2 {
  123. padding-bottom: 0.3em;
  124. font-size: 1.75em;
  125. line-height: 1.225;
  126. border-bottom: 1px solid #eee;
  127. }
  128. .markdown:not(code) h2 .anchor {
  129. line-height: 1;
  130. }
  131. .markdown:not(code) h3 {
  132. font-size: 1.5em;
  133. line-height: 1.43;
  134. }
  135. .markdown:not(code) h3 .anchor {
  136. line-height: 1.2;
  137. }
  138. .markdown:not(code) h4 {
  139. font-size: 1.25em;
  140. }
  141. .markdown:not(code) h4 .anchor {
  142. line-height: 1.2;
  143. }
  144. .markdown:not(code) h5 {
  145. font-size: 1em;
  146. }
  147. .markdown:not(code) h5 .anchor {
  148. line-height: 1.1;
  149. }
  150. .markdown:not(code) h6 {
  151. font-size: 1em;
  152. color: #777;
  153. }
  154. .markdown:not(code) h6 .anchor {
  155. line-height: 1.1;
  156. }
  157. .markdown:not(code) p,
  158. .markdown:not(code) blockquote,
  159. .markdown:not(code) ul,
  160. .markdown:not(code) ol,
  161. .markdown:not(code) dl,
  162. .markdown:not(code) table,
  163. .markdown:not(code) pre {
  164. margin-top: 0;
  165. margin-bottom: 16px;
  166. }
  167. .markdown:not(code) blockquote {
  168. margin-left: 0;
  169. }
  170. .markdown:not(code) hr {
  171. height: 4px;
  172. padding: 0;
  173. margin: 16px 0;
  174. background-color: #e7e7e7;
  175. border: 0 none;
  176. }
  177. .markdown:not(code) ul,
  178. .markdown:not(code) ol {
  179. padding-left: 2em;
  180. }
  181. .markdown:not(code) ul.no-list,
  182. .markdown:not(code) ol.no-list {
  183. padding: 0;
  184. list-style-type: none;
  185. }
  186. .markdown:not(code) ul ul,
  187. .markdown:not(code) ul ol,
  188. .markdown:not(code) ol ol,
  189. .markdown:not(code) ol ul {
  190. margin-top: 0;
  191. margin-bottom: 0;
  192. }
  193. .markdown:not(code) ol ol,
  194. .markdown:not(code) ul ol {
  195. list-style-type: lower-roman;
  196. }
  197. .markdown:not(code) li > p {
  198. margin-top: 16px;
  199. }
  200. .markdown:not(code) dl {
  201. padding: 0;
  202. }
  203. .markdown:not(code) dl dt {
  204. padding: 0;
  205. margin-top: 16px;
  206. font-size: 1em;
  207. font-style: italic;
  208. font-weight: bold;
  209. }
  210. .markdown:not(code) dl dd {
  211. padding: 0 16px;
  212. margin-bottom: 16px;
  213. }
  214. .markdown:not(code) blockquote {
  215. padding: 0 15px;
  216. color: #777;
  217. border-left: 4px solid #ddd;
  218. }
  219. .markdown:not(code) blockquote > :first-child {
  220. margin-top: 0;
  221. }
  222. .markdown:not(code) blockquote > :last-child {
  223. margin-bottom: 0;
  224. }
  225. .markdown:not(code) table {
  226. display: block;
  227. width: 100%;
  228. overflow: auto;
  229. word-break: normal;
  230. word-break: keep-all;
  231. }
  232. .markdown:not(code) table th {
  233. font-weight: bold;
  234. }
  235. .markdown:not(code) table th,
  236. .markdown:not(code) table td {
  237. padding: 6px 13px !important;
  238. border: 1px solid #ddd !important;
  239. }
  240. .markdown:not(code) table tr {
  241. background-color: #fff;
  242. border-top: 1px solid #ccc;
  243. }
  244. .markdown:not(code) table tr:nth-child(2n) {
  245. background-color: #f8f8f8;
  246. }
  247. .markdown:not(code) img {
  248. max-width: 100%;
  249. box-sizing: border-box;
  250. }
  251. .markdown:not(code) .emoji {
  252. max-width: none;
  253. }
  254. .markdown:not(code) span.frame {
  255. display: block;
  256. overflow: hidden;
  257. }
  258. .markdown:not(code) span.frame > span {
  259. display: block;
  260. float: left;
  261. width: auto;
  262. padding: 7px;
  263. margin: 13px 0 0;
  264. overflow: hidden;
  265. border: 1px solid #ddd;
  266. }
  267. .markdown:not(code) span.frame span img {
  268. display: block;
  269. float: left;
  270. }
  271. .markdown:not(code) span.frame span span {
  272. display: block;
  273. padding: 5px 0 0;
  274. clear: both;
  275. color: #333;
  276. }
  277. .markdown:not(code) span.align-center {
  278. display: block;
  279. overflow: hidden;
  280. clear: both;
  281. }
  282. .markdown:not(code) span.align-center > span {
  283. display: block;
  284. margin: 13px auto 0;
  285. overflow: hidden;
  286. text-align: center;
  287. }
  288. .markdown:not(code) span.align-center span img {
  289. margin: 0 auto;
  290. text-align: center;
  291. }
  292. .markdown:not(code) span.align-right {
  293. display: block;
  294. overflow: hidden;
  295. clear: both;
  296. }
  297. .markdown:not(code) span.align-right > span {
  298. display: block;
  299. margin: 13px 0 0;
  300. overflow: hidden;
  301. text-align: right;
  302. }
  303. .markdown:not(code) span.align-right span img {
  304. margin: 0;
  305. text-align: right;
  306. }
  307. .markdown:not(code) span.float-left {
  308. display: block;
  309. float: left;
  310. margin-right: 13px;
  311. overflow: hidden;
  312. }
  313. .markdown:not(code) span.float-left span {
  314. margin: 13px 0 0;
  315. }
  316. .markdown:not(code) span.float-right {
  317. display: block;
  318. float: right;
  319. margin-left: 13px;
  320. overflow: hidden;
  321. }
  322. .markdown:not(code) span.float-right > span {
  323. display: block;
  324. margin: 13px auto 0;
  325. overflow: hidden;
  326. text-align: right;
  327. }
  328. .markdown:not(code) code,
  329. .markdown:not(code) tt {
  330. padding: 0;
  331. padding-top: 0.2em;
  332. padding-bottom: 0.2em;
  333. margin: 0;
  334. font-size: 85%;
  335. background-color: rgba(0, 0, 0, 0.04);
  336. border-radius: 3px;
  337. }
  338. .markdown:not(code) code:before,
  339. .markdown:not(code) code:after,
  340. .markdown:not(code) tt:before,
  341. .markdown:not(code) tt:after {
  342. letter-spacing: -0.2em;
  343. content: "\00a0";
  344. }
  345. .markdown:not(code) code br,
  346. .markdown:not(code) tt br {
  347. display: none;
  348. }
  349. .markdown:not(code) del code {
  350. text-decoration: inherit;
  351. }
  352. .markdown:not(code) pre > code {
  353. padding: 0;
  354. margin: 0;
  355. font-size: 100%;
  356. word-break: normal;
  357. white-space: pre;
  358. background: transparent;
  359. border: 0;
  360. }
  361. .markdown:not(code) .highlight {
  362. margin-bottom: 16px;
  363. }
  364. .markdown:not(code) .highlight pre,
  365. .markdown:not(code) pre {
  366. padding: 16px;
  367. overflow: auto;
  368. font-size: 85%;
  369. line-height: 1.45;
  370. background-color: #f7f7f7;
  371. border-radius: 3px;
  372. }
  373. .markdown:not(code) .highlight pre {
  374. margin-bottom: 0;
  375. word-break: normal;
  376. }
  377. .markdown:not(code) pre {
  378. word-wrap: normal;
  379. }
  380. .markdown:not(code) pre code,
  381. .markdown:not(code) pre tt {
  382. display: inline;
  383. max-width: initial;
  384. padding: 0;
  385. margin: 0;
  386. overflow: initial;
  387. line-height: inherit;
  388. word-wrap: normal;
  389. background-color: transparent;
  390. border: 0;
  391. }
  392. .markdown:not(code) pre code:before,
  393. .markdown:not(code) pre code:after,
  394. .markdown:not(code) pre tt:before,
  395. .markdown:not(code) pre tt:after {
  396. content: normal;
  397. }
  398. .markdown:not(code) kbd {
  399. display: inline-block;
  400. padding: 3px 5px;
  401. font-size: 11px;
  402. line-height: 10px;
  403. color: #555;
  404. vertical-align: middle;
  405. background-color: #fcfcfc;
  406. border: solid 1px #ccc;
  407. border-bottom-color: #bbb;
  408. border-radius: 3px;
  409. box-shadow: inset 0 -1px 0 #bbb;
  410. }
  411. .markdown:not(code) input[type="checkbox"] {
  412. vertical-align: middle !important;
  413. }
  414. .markdown:not(code) .csv-data td,
  415. .markdown:not(code) .csv-data th {
  416. padding: 5px;
  417. overflow: hidden;
  418. font-size: 12px;
  419. line-height: 1;
  420. text-align: left;
  421. white-space: nowrap;
  422. }
  423. .markdown:not(code) .csv-data .blob-num {
  424. padding: 10px 8px 9px;
  425. text-align: right;
  426. background: #fff;
  427. border: 0;
  428. }
  429. .markdown:not(code) .csv-data tr {
  430. border-top: 0;
  431. }
  432. .markdown:not(code) .csv-data th {
  433. font-weight: bold;
  434. background: #f8f8f8;
  435. border-top: 0;
  436. }
  437. </style>
  438. </head>
  439. <body>
  440. <div class="file-view markdown has-emoji">
  441. <div id="content" class="anchor-wrap">
  442. <h1>Content<a class="anchor" href="#content">
  443. <span class="octicon octicon-link"/>
  444. </a>
  445. </h1>
  446. </div>
  447. <ol>
  448. <li>
  449. <a href="#content" rel="nofollow">Content</a>
  450. </li>
  451. <li>
  452. <a href="#general" rel="nofollow">General</a>
  453. </li>
  454. <li>
  455. <a href="#data-types" rel="nofollow">Data Types</a>
  456. <ol>
  457. <li>
  458. <a href="#simple" rel="nofollow">Simple</a>
  459. </li>
  460. <li>
  461. <a href="#enumerations" rel="nofollow">Enumerations</a>
  462. </li>
  463. <li>
  464. <a href="#flags" rel="nofollow">Flags</a>
  465. </li>
  466. <li>
  467. <a href="#structures" rel="nofollow">Structures</a>
  468. </li>
  469. <li>
  470. <a href="#callbacks" rel="nofollow">Callbacks</a>
  471. </li>
  472. </ol>
  473. </li>
  474. <li>
  475. <a href="#constants" rel="nofollow">Constants</a>
  476. </li>
  477. <li>
  478. <a href="#functions" rel="nofollow">Functions</a>
  479. <ol>
  480. <li>
  481. <a href="#general" rel="nofollow">General</a>
  482. </li>
  483. <li>
  484. <a href="#context" rel="nofollow">Context</a>
  485. </li>
  486. <li>
  487. <a href="#renderer" rel="nofollow">Renderer</a>
  488. </li>
  489. <li>
  490. <a href="#font-creator" rel="nofollow">Font Creator</a>
  491. </li>
  492. <li>
  493. <a href="#font" rel="nofollow">Font</a>
  494. </li>
  495. <li>
  496. <a href="#text-block" rel="nofollow">Text Block</a>
  497. </li>
  498. <li>
  499. <a href="#image" rel="nofollow">Image</a>
  500. </li>
  501. <li>
  502. <a href="#post-processor" rel="nofollow">Post Processor</a>
  503. </li>
  504. <li>
  505. <a href="#char" rel="nofollow">Char</a>
  506. </li>
  507. </ol>
  508. </li>
  509. </ol>
  510. <hr/>
  511. <div id="general" class="anchor-wrap">
  512. <h1>General<a class="anchor" href="#general">
  513. <span class="octicon octicon-link"/>
  514. </a>
  515. </h1>
  516. </div>
  517. <p>libTextSuite is a library to render text with OpenGl or OpenGLES. The rendered text can be arranged in single lines or text blocks.</p>
  518. <ul>
  519. <li>All api functions use the stdcall calling convention!</li>
  520. <li>All enumerations are 32bit values!</li>
  521. </ul>
  522. <hr/>
  523. <div id="data-types" class="anchor-wrap">
  524. <h1>Data Types<a class="anchor" href="#data-types">
  525. <span class="octicon octicon-link"/>
  526. </a>
  527. </h1>
  528. </div>
  529. <div id="simple" class="anchor-wrap">
  530. <h2>Simple<a class="anchor" href="#simple">
  531. <span class="octicon octicon-link"/>
  532. </a>
  533. </h2>
  534. </div>
  535. <table>
  536. <thead>
  537. <tr>
  538. <th>Type</th>
  539. <th>Description</th>
  540. </tr>
  541. </thead>
  542. <tbody>
  543. <tr>
  544. <td>pointer</td>
  545. <td>pointer with no data type</td>
  546. </tr>
  547. <tr>
  548. <td>boolean</td>
  549. <td>8bit value (zero is FALSE, all other values are TRUE)</td>
  550. </tr>
  551. <tr>
  552. <td>int8</td>
  553. <td>8bit signed integer</td>
  554. </tr>
  555. <tr>
  556. <td>int16</td>
  557. <td>16bit signed integer</td>
  558. </tr>
  559. <tr>
  560. <td>int32</td>
  561. <td>32bit signed integer</td>
  562. </tr>
  563. <tr>
  564. <td>int64</td>
  565. <td>64bit signed integer</td>
  566. </tr>
  567. <tr>
  568. <td>uint8</td>
  569. <td>8bit unsigned integer</td>
  570. </tr>
  571. <tr>
  572. <td>uint16</td>
  573. <td>16bit unsigned integer</td>
  574. </tr>
  575. <tr>
  576. <td>uint32</td>
  577. <td>32bit unsigned integer</td>
  578. </tr>
  579. <tr>
  580. <td>uint64</td>
  581. <td>64bit unsigned integer</td>
  582. </tr>
  583. <tr>
  584. <td>float</td>
  585. <td>32bit floating point</td>
  586. </tr>
  587. <tr>
  588. <td>double</td>
  589. <td>64bit floating point</td>
  590. </tr>
  591. <tr>
  592. <td>AnsiChar</td>
  593. <td>uint8</td>
  594. </tr>
  595. <tr>
  596. <td>AnsiString</td>
  597. <td>pointer to null terminated AnsiChar string</td>
  598. </tr>
  599. <tr>
  600. <td>WideChar</td>
  601. <td>uint16</td>
  602. </tr>
  603. <tr>
  604. <td>WideString</td>
  605. <td>pointer to null terminated WideChar string</td>
  606. </tr>
  607. <tr>
  608. <td>Vector4f</td>
  609. <td>array with 4 elements of float</td>
  610. </tr>
  611. <tr>
  612. <td>Matrix4f</td>
  613. <td>array with 4 elements of Vector4f</td>
  614. </tr>
  615. <tr>
  616. <td>Handle</td>
  617. <td>pointer</td>
  618. </tr>
  619. <tr>
  620. <td>ContextHandle</td>
  621. <td>pointer</td>
  622. </tr>
  623. <tr>
  624. <td>RendererHandle</td>
  625. <td>pointer</td>
  626. </tr>
  627. <tr>
  628. <td>RenderRefHandle</td>
  629. <td>pointer</td>
  630. </tr>
  631. <tr>
  632. <td>TextBlockHandle</td>
  633. <td>pointer</td>
  634. </tr>
  635. <tr>
  636. <td>FontCreatorHandle</td>
  637. <td>pointer</td>
  638. </tr>
  639. <tr>
  640. <td>FontHandle</td>
  641. <td>pointer</td>
  642. </tr>
  643. <tr>
  644. <td>PostProcessorHandle</td>
  645. <td>pointer</td>
  646. </tr>
  647. <tr>
  648. <td>ImageHandle</td>
  649. <td>pointer</td>
  650. </tr>
  651. <tr>
  652. <td>CharHandle</td>
  653. <td>pointer</td>
  654. </tr>
  655. <tr>
  656. <td>ImageModes</td>
  657. <td>array with 4 elements of ImageMode</td>
  658. </tr>
  659. </tbody>
  660. </table>
  661. <p>Pointers to a type are defined as follows: <em>uint16*</em> or <em>WideChar*</em>
  662. </p>
  663. <div id="enumerations" class="anchor-wrap">
  664. <h2>Enumerations<a class="anchor" href="#enumerations">
  665. <span class="octicon octicon-link"/>
  666. </a>
  667. </h2>
  668. </div>
  669. <p>All enumerations are 32bit values!</p>
  670. <div id="errorcode" class="anchor-wrap">
  671. <h3>ErrorCode<a class="anchor" href="#errorcode">
  672. <span class="octicon octicon-link"/>
  673. </a>
  674. </h3>
  675. </div>
  676. <table>
  677. <thead>
  678. <tr>
  679. <th>Name</th>
  680. <th align="right">Value</th>
  681. </tr>
  682. </thead>
  683. <tbody>
  684. <tr>
  685. <td>ErrUnknown</td>
  686. <td align="right">-1</td>
  687. </tr>
  688. <tr>
  689. <td>ErrNone</td>
  690. <td align="right">0</td>
  691. </tr>
  692. <tr>
  693. <td>ErrNotInitialized</td>
  694. <td align="right">1</td>
  695. </tr>
  696. <tr>
  697. <td>ErrInvalidEnum</td>
  698. <td align="right">2</td>
  699. </tr>
  700. <tr>
  701. <td>ErrInvalidValue</td>
  702. <td align="right">3</td>
  703. </tr>
  704. <tr>
  705. <td>ErrInvalidOperation</td>
  706. <td align="right">4</td>
  707. </tr>
  708. <tr>
  709. <td>ErrInvalidType</td>
  710. <td align="right">5</td>
  711. </tr>
  712. <tr>
  713. <td>ErrInvalidContextHandle</td>
  714. <td align="right">100</td>
  715. </tr>
  716. <tr>
  717. <td>ErrInvalidRendererHandle</td>
  718. <td align="right">101</td>
  719. </tr>
  720. <tr>
  721. <td>ErrInvalidTextBlockHandle</td>
  722. <td align="right">102</td>
  723. </tr>
  724. <tr>
  725. <td>ErrInvalidFontHandle</td>
  726. <td align="right">103</td>
  727. </tr>
  728. <tr>
  729. <td>ErrInvalidFontCreatorHandle</td>
  730. <td align="right">104</td>
  731. </tr>
  732. <tr>
  733. <td>ErrInvalidImageHandle</td>
  734. <td align="right">105</td>
  735. </tr>
  736. <tr>
  737. <td>ErrInvalidPostProcHandle</td>
  738. <td align="right">106</td>
  739. </tr>
  740. </tbody>
  741. </table>
  742. <div id="codepage" class="anchor-wrap">
  743. <h3>CodePage<a class="anchor" href="#codepage">
  744. <span class="octicon octicon-link"/>
  745. </a>
  746. </h3>
  747. </div>
  748. <table>
  749. <thead>
  750. <tr>
  751. <th>Name</th>
  752. <th align="right">Value</th>
  753. </tr>
  754. </thead>
  755. <tbody>
  756. <tr>
  757. <td>UTF8</td>
  758. <td align="right">0</td>
  759. </tr>
  760. <tr>
  761. <td>ISO_8859_1</td>
  762. <td align="right">1</td>
  763. </tr>
  764. <tr>
  765. <td>ISO_8859_2</td>
  766. <td align="right">2</td>
  767. </tr>
  768. <tr>
  769. <td>ISO_8859_3</td>
  770. <td align="right">3</td>
  771. </tr>
  772. <tr>
  773. <td>ISO_8859_4</td>
  774. <td align="right">4</td>
  775. </tr>
  776. <tr>
  777. <td>ISO_8859_5</td>
  778. <td align="right">5</td>
  779. </tr>
  780. <tr>
  781. <td>ISO_8859_6</td>
  782. <td align="right">6</td>
  783. </tr>
  784. <tr>
  785. <td>ISO_8859_7</td>
  786. <td align="right">7</td>
  787. </tr>
  788. <tr>
  789. <td>ISO_8859_8</td>
  790. <td align="right">8</td>
  791. </tr>
  792. <tr>
  793. <td>ISO_8859_9</td>
  794. <td align="right">9</td>
  795. </tr>
  796. <tr>
  797. <td>ISO_8859_10</td>
  798. <td align="right">10</td>
  799. </tr>
  800. <tr>
  801. <td>ISO_8859_11</td>
  802. <td align="right">11</td>
  803. </tr>
  804. <tr>
  805. <td>ISO_8859_13</td>
  806. <td align="right">12</td>
  807. </tr>
  808. <tr>
  809. <td>ISO_8859_14</td>
  810. <td align="right">13</td>
  811. </tr>
  812. <tr>
  813. <td>ISO_8859_15</td>
  814. <td align="right">14</td>
  815. </tr>
  816. <tr>
  817. <td>ISO_8859_16</td>
  818. <td align="right">15</td>
  819. </tr>
  820. <tr>
  821. <td>ISO_037</td>
  822. <td align="right">16</td>
  823. </tr>
  824. <tr>
  825. <td>ISO_437</td>
  826. <td align="right">17</td>
  827. </tr>
  828. <tr>
  829. <td>ISO_500</td>
  830. <td align="right">18</td>
  831. </tr>
  832. <tr>
  833. <td>ISO_737</td>
  834. <td align="right">19</td>
  835. </tr>
  836. <tr>
  837. <td>ISO_775</td>
  838. <td align="right">20</td>
  839. </tr>
  840. <tr>
  841. <td>ISO_850</td>
  842. <td align="right">21</td>
  843. </tr>
  844. <tr>
  845. <td>ISO_852</td>
  846. <td align="right">22</td>
  847. </tr>
  848. <tr>
  849. <td>ISO_855</td>
  850. <td align="right">23</td>
  851. </tr>
  852. <tr>
  853. <td>ISO_857</td>
  854. <td align="right">24</td>
  855. </tr>
  856. <tr>
  857. <td>ISO_860</td>
  858. <td align="right">25</td>
  859. </tr>
  860. <tr>
  861. <td>ISO_861</td>
  862. <td align="right">26</td>
  863. </tr>
  864. <tr>
  865. <td>ISO_862</td>
  866. <td align="right">27</td>
  867. </tr>
  868. <tr>
  869. <td>ISO_863</td>
  870. <td align="right">28</td>
  871. </tr>
  872. <tr>
  873. <td>ISO_864</td>
  874. <td align="right">29</td>
  875. </tr>
  876. <tr>
  877. <td>ISO_865</td>
  878. <td align="right">30</td>
  879. </tr>
  880. <tr>
  881. <td>ISO_866</td>
  882. <td align="right">31</td>
  883. </tr>
  884. <tr>
  885. <td>ISO_869</td>
  886. <td align="right">32</td>
  887. </tr>
  888. <tr>
  889. <td>ISO_874</td>
  890. <td align="right">33</td>
  891. </tr>
  892. <tr>
  893. <td>ISO_875</td>
  894. <td align="right">34</td>
  895. </tr>
  896. <tr>
  897. <td>ISO_1026</td>
  898. <td align="right">35</td>
  899. </tr>
  900. <tr>
  901. <td>ISO_1250</td>
  902. <td align="right">36</td>
  903. </tr>
  904. <tr>
  905. <td>ISO_1251</td>
  906. <td align="right">37</td>
  907. </tr>
  908. <tr>
  909. <td>ISO_1252</td>
  910. <td align="right">38</td>
  911. </tr>
  912. <tr>
  913. <td>ISO_1253</td>
  914. <td align="right">39</td>
  915. </tr>
  916. <tr>
  917. <td>ISO_1254</td>
  918. <td align="right">40</td>
  919. </tr>
  920. <tr>
  921. <td>ISO_1255</td>
  922. <td align="right">41</td>
  923. </tr>
  924. <tr>
  925. <td>ISO_1256</td>
  926. <td align="right">42</td>
  927. </tr>
  928. <tr>
  929. <td>ISO_1257</td>
  930. <td align="right">43</td>
  931. </tr>
  932. <tr>
  933. <td>ISO_1258</td>
  934. <td align="right">44</td>
  935. </tr>
  936. </tbody>
  937. </table>
  938. <div id="objecttype" class="anchor-wrap">
  939. <h3>ObjectType<a class="anchor" href="#objecttype">
  940. <span class="octicon octicon-link"/>
  941. </a>
  942. </h3>
  943. </div>
  944. <table>
  945. <thead>
  946. <tr>
  947. <th>Name</th>
  948. <th align="right">Value</th>
  949. </tr>
  950. </thead>
  951. <tbody>
  952. <tr>
  953. <td>ObjTypeUnknown</td>
  954. <td align="right">0</td>
  955. </tr>
  956. <tr>
  957. <td>ObjTypeContext</td>
  958. <td align="right">1</td>
  959. </tr>
  960. <tr>
  961. <td>ObjTypeRenderer</td>
  962. <td align="right">2</td>
  963. </tr>
  964. <tr>
  965. <td>ObjTypeFontCreator</td>
  966. <td align="right">3</td>
  967. </tr>
  968. <tr>
  969. <td>ObjTypeFont</td>
  970. <td align="right">4</td>
  971. </tr>
  972. <tr>
  973. <td>ObjTypeTextBlock</td>
  974. <td align="right">5</td>
  975. </tr>
  976. <tr>
  977. <td>ObjTypeImage</td>
  978. <td align="right">6</td>
  979. </tr>
  980. <tr>
  981. <td>ObjTypePostProcessor</td>
  982. <td align="right">7</td>
  983. </tr>
  984. <tr>
  985. <td>ObjTypeChar</td>
  986. <td align="right">8</td>
  987. </tr>
  988. </tbody>
  989. </table>
  990. <div id="format" class="anchor-wrap">
  991. <h2>Format<a class="anchor" href="#format">
  992. <span class="octicon octicon-link"/>
  993. </a>
  994. </h2>
  995. </div>
  996. <table>
  997. <thead>
  998. <tr>
  999. <th>Name</th>
  1000. <th align="right">Value</th>
  1001. </tr>
  1002. </thead>
  1003. <tbody>
  1004. <tr>
  1005. <td>FormatEmpty</td>
  1006. <td align="right">0</td>
  1007. </tr>
  1008. <tr>
  1009. <td>FormatRGBA8</td>
  1010. <td align="right">1</td>
  1011. </tr>
  1012. <tr>
  1013. <td>FormatLumAlpha8</td>
  1014. <td align="right">2</td>
  1015. </tr>
  1016. <tr>
  1017. <td>FormatAlpha8</td>
  1018. <td align="right">3</td>
  1019. </tr>
  1020. <tr>
  1021. <td>FormatLum8</td>
  1022. <td align="right">4</td>
  1023. </tr>
  1024. </tbody>
  1025. </table>
  1026. <div id="renderertype" class="anchor-wrap">
  1027. <h3>RendererType<a class="anchor" href="#renderertype">
  1028. <span class="octicon octicon-link"/>
  1029. </a>
  1030. </h3>
  1031. </div>
  1032. <table>
  1033. <thead>
  1034. <tr>
  1035. <th>Name</th>
  1036. <th align="right">Value</th>
  1037. </tr>
  1038. </thead>
  1039. <tbody>
  1040. <tr>
  1041. <td>RendererUnknown</td>
  1042. <td align="right">0</td>
  1043. </tr>
  1044. <tr>
  1045. <td>RendererOpenGL</td>
  1046. <td align="right">1</td>
  1047. </tr>
  1048. <tr>
  1049. <td>RendererOpenGLES</td>
  1050. <td align="right">2</td>
  1051. </tr>
  1052. </tbody>
  1053. </table>
  1054. <div id="fontcreatortype" class="anchor-wrap">
  1055. <h3>FontCreatorType<a class="anchor" href="#fontcreatortype">
  1056. <span class="octicon octicon-link"/>
  1057. </a>
  1058. </h3>
  1059. </div>
  1060. <table>
  1061. <thead>
  1062. <tr>
  1063. <th>Name</th>
  1064. <th align="right">Value</th>
  1065. </tr>
  1066. </thead>
  1067. <tbody>
  1068. <tr>
  1069. <td>FontCreatorUnknown</td>
  1070. <td align="right">0</td>
  1071. </tr>
  1072. <tr>
  1073. <td>FontCreatorFreeType</td>
  1074. <td align="right">1</td>
  1075. </tr>
  1076. <tr>
  1077. <td>FontCreatorGDI</td>
  1078. <td align="right">2</td>
  1079. </tr>
  1080. <tr>
  1081. <td>FontCreatorCustom</td>
  1082. <td align="right">3</td>
  1083. </tr>
  1084. </tbody>
  1085. </table>
  1086. <div id="verticalalign" class="anchor-wrap">
  1087. <h3>VerticalAlign<a class="anchor" href="#verticalalign">
  1088. <span class="octicon octicon-link"/>
  1089. </a>
  1090. </h3>
  1091. </div>
  1092. <table>
  1093. <thead>
  1094. <tr>
  1095. <th>Name</th>
  1096. <th align="right">Value</th>
  1097. </tr>
  1098. </thead>
  1099. <tbody>
  1100. <tr>
  1101. <td>VertAlignTop</td>
  1102. <td align="right">0</td>
  1103. </tr>
  1104. <tr>
  1105. <td>VertAlignCenter</td>
  1106. <td align="right">1</td>
  1107. </tr>
  1108. <tr>
  1109. <td>VertAlignBottom</td>
  1110. <td align="right">2</td>
  1111. </tr>
  1112. </tbody>
  1113. </table>
  1114. <div id="horizontalalign" class="anchor-wrap">
  1115. <h3>HorizontalAlign<a class="anchor" href="#horizontalalign">
  1116. <span class="octicon octicon-link"/>
  1117. </a>
  1118. </h3>
  1119. </div>
  1120. <table>
  1121. <thead>
  1122. <tr>
  1123. <th>Name</th>
  1124. <th align="right">Value</th>
  1125. </tr>
  1126. </thead>
  1127. <tbody>
  1128. <tr>
  1129. <td>HorzAlignLeft</td>
  1130. <td align="right">0</td>
  1131. </tr>
  1132. <tr>
  1133. <td>HorzAlignCenter</td>
  1134. <td align="right">1</td>
  1135. </tr>
  1136. <tr>
  1137. <td>HorzAlignRight</td>
  1138. <td align="right">2</td>
  1139. </tr>
  1140. <tr>
  1141. <td>HorzAlignJustify</td>
  1142. <td align="right">3</td>
  1143. </tr>
  1144. </tbody>
  1145. </table>
  1146. <div id="clipping" class="anchor-wrap">
  1147. <h3>Clipping<a class="anchor" href="#clipping">
  1148. <span class="octicon octicon-link"/>
  1149. </a>
  1150. </h3>
  1151. </div>
  1152. <table>
  1153. <thead>
  1154. <tr>
  1155. <th>Name</th>
  1156. <th align="right">Value</th>
  1157. </tr>
  1158. </thead>
  1159. <tbody>
  1160. <tr>
  1161. <td>ClipNone</td>
  1162. <td align="right">0</td>
  1163. </tr>
  1164. <tr>
  1165. <td>ClipWordBorder</td>
  1166. <td align="right">1</td>
  1167. </tr>
  1168. <tr>
  1169. <td>ClipCharBorder</td>
  1170. <td align="right">2</td>
  1171. </tr>
  1172. <tr>
  1173. <td>ClipWordComplete</td>
  1174. <td align="right">3</td>
  1175. </tr>
  1176. <tr>
  1177. <td>ClipCharComplete</td>
  1178. <td align="right">4</td>
  1179. </tr>
  1180. </tbody>
  1181. </table>
  1182. <div id="antialiasing" class="anchor-wrap">
  1183. <h3>AntiAliasing<a class="anchor" href="#antialiasing">
  1184. <span class="octicon octicon-link"/>
  1185. </a>
  1186. </h3>
  1187. </div>
  1188. <table>
  1189. <thead>
  1190. <tr>
  1191. <th>Name</th>
  1192. <th align="right">Value</th>
  1193. </tr>
  1194. </thead>
  1195. <tbody>
  1196. <tr>
  1197. <td>None</td>
  1198. <td align="right">0</td>
  1199. </tr>
  1200. <tr>
  1201. <td>Normal</td>
  1202. <td align="right">1</td>
  1203. </tr>
  1204. </tbody>
  1205. </table>
  1206. <div id="rangeusage" class="anchor-wrap">
  1207. <h3>RangeUsage<a class="anchor" href="#rangeusage">
  1208. <span class="octicon octicon-link"/>
  1209. </a>
  1210. </h3>
  1211. </div>
  1212. <table>
  1213. <thead>
  1214. <tr>
  1215. <th>Name</th>
  1216. <th align="right">Value</th>
  1217. </tr>
  1218. </thead>
  1219. <tbody>
  1220. <tr>
  1221. <td>UsageInclude</td>
  1222. <td align="right">0</td>
  1223. </tr>
  1224. <tr>
  1225. <td>UsageExclude</td>
  1226. <td align="right">1</td>
  1227. </tr>
  1228. </tbody>
  1229. </table>
  1230. <div id="streamorigin" class="anchor-wrap">
  1231. <h3>StreamOrigin<a class="anchor" href="#streamorigin">
  1232. <span class="octicon octicon-link"/>
  1233. </a>
  1234. </h3>
  1235. </div>
  1236. <table>
  1237. <thead>
  1238. <tr>
  1239. <th>Name</th>
  1240. <th align="right">Value</th>
  1241. </tr>
  1242. </thead>
  1243. <tbody>
  1244. <tr>
  1245. <td>StreamOriginBegin</td>
  1246. <td align="right">0</td>
  1247. </tr>
  1248. <tr>
  1249. <td>StreamOriginCurrent</td>
  1250. <td align="right">1</td>
  1251. </tr>
  1252. <tr>
  1253. <td>StreamOriginEnd</td>
  1254. <td align="right">2</td>
  1255. </tr>
  1256. </tbody>
  1257. </table>
  1258. <div id="imagemode" class="anchor-wrap">
  1259. <h3>ImageMode<a class="anchor" href="#imagemode">
  1260. <span class="octicon octicon-link"/>
  1261. </a>
  1262. </h3>
  1263. </div>
  1264. <table>
  1265. <thead>
  1266. <tr>
  1267. <th>Name</th>
  1268. <th align="right">Value</th>
  1269. </tr>
  1270. </thead>
  1271. <tbody>
  1272. <tr>
  1273. <td>ModeIgnore</td>
  1274. <td align="right">0</td>
  1275. </tr>
  1276. <tr>
  1277. <td>ModeReplace</td>
  1278. <td align="right">1</td>
  1279. </tr>
  1280. <tr>
  1281. <td>ModeModulate</td>
  1282. <td align="right">2</td>
  1283. </tr>
  1284. </tbody>
  1285. </table>
  1286. <div id="flags" class="anchor-wrap">
  1287. <h2>Flags<a class="anchor" href="#flags">
  1288. <span class="octicon octicon-link"/>
  1289. </a>
  1290. </h2>
  1291. </div>
  1292. <div id="textblockflag" class="anchor-wrap">
  1293. <h3>TextBlockFlag<a class="anchor" href="#textblockflag">
  1294. <span class="octicon octicon-link"/>
  1295. </a>
  1296. </h3>
  1297. </div>
  1298. <table>
  1299. <thead>
  1300. <tr>
  1301. <th>Name</th>
  1302. <th align="right">Bit</th>
  1303. </tr>
  1304. </thead>
  1305. <tbody>
  1306. <tr>
  1307. <td>BlockFlagWordWrap</td>
  1308. <td align="right">0</td>
  1309. </tr>
  1310. </tbody>
  1311. </table>
  1312. <div id="fontstyle" class="anchor-wrap">
  1313. <h3>FontStyle<a class="anchor" href="#fontstyle">
  1314. <span class="octicon octicon-link"/>
  1315. </a>
  1316. </h3>
  1317. </div>
  1318. <table>
  1319. <thead>
  1320. <tr>
  1321. <th>Name</th>
  1322. <th align="right">Bit</th>
  1323. </tr>
  1324. </thead>
  1325. <tbody>
  1326. <tr>
  1327. <td>FontStyleBold</td>
  1328. <td align="right">0</td>
  1329. </tr>
  1330. <tr>
  1331. <td>FontStyleItalic</td>
  1332. <td align="right">1</td>
  1333. </tr>
  1334. <tr>
  1335. <td>FontStyleUnderline</td>
  1336. <td align="right">2</td>
  1337. </tr>
  1338. <tr>
  1339. <td>FontStyleStrikeout</td>
  1340. <td align="right">3</td>
  1341. </tr>
  1342. </tbody>
  1343. </table>
  1344. <div id="colorchannels" class="anchor-wrap">
  1345. <h3>ColorChannels<a class="anchor" href="#colorchannels">
  1346. <span class="octicon octicon-link"/>
  1347. </a>
  1348. </h3>
  1349. </div>
  1350. <table>
  1351. <thead>
  1352. <tr>
  1353. <th>Name</th>
  1354. <th>Bit</th>
  1355. </tr>
  1356. </thead>
  1357. <tbody>
  1358. <tr>
  1359. <td>ColorChannelRed</td>
  1360. <td>0</td>
  1361. </tr>
  1362. <tr>
  1363. <td>ColorChannelGreen</td>
  1364. <td>1</td>
  1365. </tr>
  1366. <tr>
  1367. <td>ColorChannelBlue</td>
  1368. <td>2</td>
  1369. </tr>
  1370. <tr>
  1371. <td>ColorChannelAlpha</td>
  1372. <td>3</td>
  1373. </tr>
  1374. </tbody>
  1375. </table>
  1376. <div id="structures" class="anchor-wrap">
  1377. <h2>Structures<a class="anchor" href="#structures">
  1378. <span class="octicon octicon-link"/>
  1379. </a>
  1380. </h2>
  1381. </div>
  1382. <div id="position" class="anchor-wrap">
  1383. <h3>Position<a class="anchor" href="#position">
  1384. <span class="octicon octicon-link"/>
  1385. </a>
  1386. </h3>
  1387. </div>
  1388. <table>
  1389. <thead>
  1390. <tr>
  1391. <th>Value</th>
  1392. <th align="right">Type</th>
  1393. </tr>
  1394. </thead>
  1395. <tbody>
  1396. <tr>
  1397. <td>X</td>
  1398. <td align="right">int32</td>
  1399. </tr>
  1400. <tr>
  1401. <td>Y</td>
  1402. <td align="right">int32</td>
  1403. </tr>
  1404. </tbody>
  1405. </table>
  1406. <div id="rect" class="anchor-wrap">
  1407. <h3>Rect<a class="anchor" href="#rect">
  1408. <span class="octicon octicon-link"/>
  1409. </a>
  1410. </h3>
  1411. </div>
  1412. <table>
  1413. <thead>
  1414. <tr>
  1415. <th>Value</th>
  1416. <th align="right">Type</th>
  1417. </tr>
  1418. </thead>
  1419. <tbody>
  1420. <tr>
  1421. <td>TopLeft</td>
  1422. <td align="right">Position</td>
  1423. </tr>
  1424. <tr>
  1425. <td>BottomRight</td>
  1426. <td align="right">Position</td>
  1427. </tr>
  1428. </tbody>
  1429. </table>
  1430. <p>OR</p>
  1431. <table>
  1432. <thead>
  1433. <tr>
  1434. <th>Value</th>
  1435. <th align="right">Type</th>
  1436. </tr>
  1437. </thead>
  1438. <tbody>
  1439. <tr>
  1440. <td>Left</td>
  1441. <td align="right">int32</td>
  1442. </tr>
  1443. <tr>
  1444. <td>Top</td>
  1445. <td align="right">int32</td>
  1446. </tr>
  1447. <tr>
  1448. <td>Right</td>
  1449. <td align="right">int32</td>
  1450. </tr>
  1451. <tr>
  1452. <td>Bottom</td>
  1453. <td align="right">int32</td>
  1454. </tr>
  1455. </tbody>
  1456. </table>
  1457. <div id="color" class="anchor-wrap">
  1458. <h3>Color<a class="anchor" href="#color">
  1459. <span class="octicon octicon-link"/>
  1460. </a>
  1461. </h3>
  1462. </div>
  1463. <table>
  1464. <thead>
  1465. <tr>
  1466. <th>Value</th>
  1467. <th align="right">Type</th>
  1468. </tr>
  1469. </thead>
  1470. <tbody>
  1471. <tr>
  1472. <td>R</td>
  1473. <td align="right">float</td>
  1474. </tr>
  1475. <tr>
  1476. <td>G</td>
  1477. <td align="right">float</td>
  1478. </tr>
  1479. <tr>
  1480. <td>B</td>
  1481. <td align="right">float</td>
  1482. </tr>
  1483. <tr>
  1484. <td>A</td>
  1485. <td align="right">float</td>
  1486. </tr>
  1487. </tbody>
  1488. </table>
  1489. <div id="glyphmetric" class="anchor-wrap">
  1490. <h3>GlyphMetric<a class="anchor" href="#glyphmetric">
  1491. <span class="octicon octicon-link"/>
  1492. </a>
  1493. </h3>
  1494. </div>
  1495. <table>
  1496. <thead>
  1497. <tr>
  1498. <th>Value</th>
  1499. <th align="right">Type</th>
  1500. </tr>
  1501. </thead>
  1502. <tbody>
  1503. <tr>
  1504. <td>GlyphOrigin</td>
  1505. <td align="right">Position</td>
  1506. </tr>
  1507. <tr>
  1508. <td>GlyphRect</td>
  1509. <td align="right">Rect</td>
  1510. </tr>
  1511. <tr>
  1512. <td>Advance</td>
  1513. <td align="right">int32</td>
  1514. </tr>
  1515. </tbody>
  1516. </table>
  1517. <div id="textmetric" class="anchor-wrap">
  1518. <h3>TextMetric<a class="anchor" href="#textmetric">
  1519. <span class="octicon octicon-link"/>
  1520. </a>
  1521. </h3>
  1522. </div>
  1523. <table>
  1524. <thead>
  1525. <tr>
  1526. <th>Value</th>
  1527. <th align="right">Type</th>
  1528. </tr>
  1529. </thead>
  1530. <tbody>
  1531. <tr>
  1532. <td>Ascent</td>
  1533. <td align="right">int32</td>
  1534. </tr>
  1535. <tr>
  1536. <td>Descent</td>
  1537. <td align="right">int32</td>
  1538. </tr>
  1539. <tr>
  1540. <td>ExternalLeading</td>
  1541. <td align="right">int32</td>
  1542. </tr>
  1543. <tr>
  1544. <td>BaseLineOffset</td>
  1545. <td align="right">int32</td>
  1546. </tr>
  1547. <tr>
  1548. <td>CharSpacing</td>
  1549. <td align="right">int32</td>
  1550. </tr>
  1551. <tr>
  1552. <td>LineHeight</td>
  1553. <td align="right">int32</td>
  1554. </tr>
  1555. <tr>
  1556. <td>LineSpacing</td>
  1557. <td align="right">int32</td>
  1558. </tr>
  1559. </tbody>
  1560. </table>
  1561. <div id="fontmetric" class="anchor-wrap">
  1562. <h3>FontMetric<a class="anchor" href="#fontmetric">
  1563. <span class="octicon octicon-link"/>
  1564. </a>
  1565. </h3>
  1566. </div>
  1567. <table>
  1568. <thead>
  1569. <tr>
  1570. <th>Value</th>
  1571. <th align="right">Type</th>
  1572. </tr>
  1573. </thead>
  1574. <tbody>
  1575. <tr>
  1576. <td>Size</td>
  1577. <td align="right">int32</td>
  1578. </tr>
  1579. <tr>
  1580. <td>Style</td>
  1581. <td align="right">FontStyle</td>
  1582. </tr>
  1583. <tr>
  1584. <td>AntiAliasing</td>
  1585. <td align="right">AntiAliasing</td>
  1586. </tr>
  1587. <tr>
  1588. <td>DefaultChar</td>
  1589. <td align="right">WideChar</td>
  1590. </tr>
  1591. <tr>
  1592. <td>__reserved</td>
  1593. <td align="right">uint16</td>
  1594. </tr>
  1595. <tr>
  1596. <td>Ascent</td>
  1597. <td align="right">int32</td>
  1598. </tr>
  1599. <tr>
  1600. <td>Descent</td>
  1601. <td align="right">int32</td>
  1602. </tr>
  1603. <tr>
  1604. <td>ExternalLeading</td>
  1605. <td align="right">int32</td>
  1606. </tr>
  1607. <tr>
  1608. <td>BaseLineOffset</td>
  1609. <td align="right">int32</td>
  1610. </tr>
  1611. <tr>
  1612. <td>UnderlinePos</td>
  1613. <td align="right">int32</td>
  1614. </tr>
  1615. <tr>
  1616. <td>UnderlineSize</td>
  1617. <td align="right">int32</td>
  1618. </tr>
  1619. <tr>
  1620. <td>StrikeoutPos</td>
  1621. <td align="right">int32</td>
  1622. </tr>
  1623. <tr>
  1624. <td>StrikeoutSize</td>
  1625. <td align="right">int32</td>
  1626. </tr>
  1627. </tbody>
  1628. </table>
  1629. <div id="streamdata" class="anchor-wrap">
  1630. <h3>StreamData<a class="anchor" href="#streamdata">
  1631. <span class="octicon octicon-link"/>
  1632. </a>
  1633. </h3>
  1634. </div>
  1635. <table>
  1636. <thead>
  1637. <tr>
  1638. <th>Value</th>
  1639. <th align="right">Type</th>
  1640. </tr>
  1641. </thead>
  1642. <tbody>
  1643. <tr>
  1644. <td>StreamRead</td>
  1645. <td align="right">StreamReadCallback</td>
  1646. </tr>
  1647. <tr>
  1648. <td>StreamSeek</td>
  1649. <td align="right">StreamSeekCallback</td>
  1650. </tr>
  1651. </tbody>
  1652. </table>
  1653. <div id="custompostprocessordata" class="anchor-wrap">
  1654. <h3>CustomPostProcessorData<a class="anchor" href="#custompostprocessordata">
  1655. <span class="octicon octicon-link"/>
  1656. </a>
  1657. </h3>
  1658. </div>
  1659. <table>
  1660. <thead>
  1661. <tr>
  1662. <th>Value</th>
  1663. <th align="right">Type</th>
  1664. </tr>
  1665. </thead>
  1666. <tbody>
  1667. <tr>
  1668. <td>UserArgs</td>
  1669. <td align="right">pointer</td>
  1670. </tr>
  1671. <tr>
  1672. <td>Execute</td>
  1673. <td align="right">PostProcessorExecuteCallback</td>
  1674. </tr>
  1675. </tbody>
  1676. </table>
  1677. <div id="customrendererdata" class="anchor-wrap">
  1678. <h3>CustomRendererData<a class="anchor" href="#customrendererdata">
  1679. <span class="octicon octicon-link"/>
  1680. </a>
  1681. </h3>
  1682. </div>
  1683. <table>
  1684. <thead>
  1685. <tr>
  1686. <th>Value</th>
  1687. <th align="right">Type</th>
  1688. </tr>
  1689. </thead>
  1690. <tbody>
  1691. <tr>
  1692. <td>UserArgs</td>
  1693. <td align="right">pointer</td>
  1694. </tr>
  1695. <tr>
  1696. <td>BeginRender</td>
  1697. <td align="right">RendererBeginRenderCallback</td>
  1698. </tr>
  1699. <tr>
  1700. <td>EndRender</td>
  1701. <td align="right">RendererEndRenderCallback</td>
  1702. </tr>
  1703. <tr>
  1704. <td>GetDrawPos</td>
  1705. <td align="right">RendererGetDrawPosCallback</td>
  1706. </tr>
  1707. <tr>
  1708. <td>SetDrawPos</td>
  1709. <td align="right">RendererSetDrawPosCallback</td>
  1710. </tr>
  1711. <tr>
  1712. <td>MoveDrawPos</td>
  1713. <td align="right">RendererMoveDrawPosCallback</td>
  1714. </tr>
  1715. <tr>
  1716. <td>SetColor</td>
  1717. <td align="right">RendererSetColorCallback</td>
  1718. </tr>
  1719. <tr>
  1720. <td>Render</td>
  1721. <td align="right">RendererRenderCallback</td>
  1722. </tr>
  1723. <tr>
  1724. <td>CreateRef</td>
  1725. <td align="right">RendererCreateRefCallback</td>
  1726. </tr>
  1727. <tr>
  1728. <td>FreeRef</td>
  1729. <td align="right">RendererFreeRefCallback</td>
  1730. </tr>
  1731. </tbody>
  1732. </table>
  1733. <div id="callbacks" class="anchor-wrap">
  1734. <h2>Callbacks<a class="anchor" href="#callbacks">
  1735. <span class="octicon octicon-link"/>
  1736. </a>
  1737. </h2>
  1738. </div>
  1739. <p>All callbacks use the stdcall calling convention!</p>
  1740. <div id="streamreadcallback" class="anchor-wrap">
  1741. <h3>StreamReadCallback<a class="anchor" href="#streamreadcallback">
  1742. <span class="octicon octicon-link"/>
  1743. </a>
  1744. </h3>
  1745. </div>
  1746. <p>Read data from stream.</p>
  1747. <table>
  1748. <thead>
  1749. <tr>
  1750. <th/>
  1751. <th>Name</th>
  1752. <th>Type</th>
  1753. <th>Description</th>
  1754. </tr>
  1755. </thead>
  1756. <tbody>
  1757. <tr>
  1758. <td>
  1759. <strong>Parameters</strong>
  1760. </td>
  1761. <td>UserArgs</td>
  1762. <td>pointer</td>
  1763. <td>user arguments</td>
  1764. </tr>
  1765. <tr>
  1766. <td/>
  1767. <td>Buffer</td>
  1768. <td>pointer</td>
  1769. <td>buffer to store read data in</td>
  1770. </tr>
  1771. <tr>
  1772. <td/>
  1773. <td>Size</td>
  1774. <td>int32</td>
  1775. <td>number of bytes stored in buffer</td>
  1776. </tr>
  1777. <tr>
  1778. <td>
  1779. <strong>Returns</strong>
  1780. </td>
  1781. <td/>
  1782. <td>int32</td>
  1783. <td>number of read bytes</td>
  1784. </tr>
  1785. </tbody>
  1786. </table>
  1787. <div id="streamseekcallback" class="anchor-wrap">
  1788. <h3>StreamSeekCallback<a class="anchor" href="#streamseekcallback">
  1789. <span class="octicon octicon-link"/>
  1790. </a>
  1791. </h3>
  1792. </div>
  1793. <p>Seek position in stream.</p>
  1794. <table>
  1795. <thead>
  1796. <tr>
  1797. <th/>
  1798. <th>Name</th>
  1799. <th>Type</th>
  1800. <th>Description</th>
  1801. </tr>
  1802. </thead>
  1803. <tbody>
  1804. <tr>
  1805. <td>
  1806. <strong>Parameters</strong>
  1807. </td>
  1808. <td>UserArgs</td>
  1809. <td>pointer</td>
  1810. <td>user arguments</td>
  1811. </tr>
  1812. <tr>
  1813. <td/>
  1814. <td>Origin</td>
  1815. <td>StreamOrigin</td>
  1816. <td>origin to apply offset at</td>
  1817. </tr>
  1818. <tr>
  1819. <td/>
  1820. <td>Offset</td>
  1821. <td>int32</td>
  1822. <td>number of bytes to move</td>
  1823. </tr>
  1824. <tr>
  1825. <td>
  1826. <strong>Returns</strong>
  1827. </td>
  1828. <td/>
  1829. <td>int32</td>
  1830. <td>stream position after seek</td>
  1831. </tr>
  1832. </tbody>
  1833. </table>
  1834. <div id="postprocessorexecutecallback" class="anchor-wrap">
  1835. <h3>PostProcessorExecuteCallback<a class="anchor" href="#postprocessorexecutecallback">
  1836. <span class="octicon octicon-link"/>
  1837. </a>
  1838. </h3>
  1839. </div>
  1840. <p>Execute the post processor.</p>
  1841. <table>
  1842. <thead>
  1843. <tr>
  1844. <th/>
  1845. <th>Name</th>
  1846. <th>Type</th>
  1847. <th>Description</th>
  1848. </tr>
  1849. </thead>
  1850. <tbody>
  1851. <tr>
  1852. <td>
  1853. <strong>Parameters</strong>
  1854. </td>
  1855. <td>CharHandle</td>
  1856. <td>CharHandle</td>
  1857. <td>Handle of char to apply post processor at</td>
  1858. </tr>
  1859. <tr>
  1860. <td/>
  1861. <td>ImageHandle</td>
  1862. <td>ImageHandle</td>
  1863. <td>Handle of image to apply post processor at</td>
  1864. </tr>
  1865. </tbody>
  1866. </table>
  1867. <div id="rendererbeginrendercallback" class="anchor-wrap">
  1868. <h3>RendererBeginRenderCallback<a class="anchor" href="#rendererbeginrendercallback">
  1869. <span class="octicon octicon-link"/>
  1870. </a>
  1871. </h3>
  1872. </div>
  1873. <p>Begin rendering.</p>
  1874. <table>
  1875. <thead>
  1876. <tr>
  1877. <th/>
  1878. <th>Name</th>
  1879. <th>Type</th>
  1880. <th>Description</th>
  1881. </tr>
  1882. </thead>
  1883. <tbody>
  1884. <tr>
  1885. <td>
  1886. <strong>Parameters</strong>
  1887. </td>
  1888. <td>UserArgs</td>
  1889. <td>pointer</td>
  1890. <td>User defined arguments</td>
  1891. </tr>
  1892. </tbody>
  1893. </table>
  1894. <div id="rendererendrendercallback" class="anchor-wrap">
  1895. <h3>RendererEndRenderCallback<a class="anchor" href="#rendererendrendercallback">
  1896. <span class="octicon octicon-link"/>
  1897. </a>
  1898. </h3>
  1899. </div>
  1900. <p>End rendering.</p>
  1901. <table>
  1902. <thead>
  1903. <tr>
  1904. <th/>
  1905. <th>Name</th>
  1906. <th>Type</th>
  1907. <th>Description</th>
  1908. </tr>
  1909. </thead>
  1910. <tbody>
  1911. <tr>
  1912. <td>
  1913. <strong>Parameters</strong>
  1914. </td>
  1915. <td>UserArgs</td>
  1916. <td>pointer</td>
  1917. <td>User defined arguments</td>
  1918. </tr>
  1919. </tbody>
  1920. </table>
  1921. <div id="renderergetdrawposcallback" class="anchor-wrap">
  1922. <h3>RendererGetDrawPosCallback<a class="anchor" href="#renderergetdrawposcallback">
  1923. <span class="octicon octicon-link"/>
  1924. </a>
  1925. </h3>
  1926. </div>
  1927. <p>Get the current draw position.</p>
  1928. <table>
  1929. <thead>
  1930. <tr>
  1931. <th/>
  1932. <th>Name</th>
  1933. <th>Type</th>
  1934. <th>Description</th>
  1935. </tr>
  1936. </thead>
  1937. <tbody>
  1938. <tr>
  1939. <td>
  1940. <strong>Parameters</strong>
  1941. </td>
  1942. <td>UserArgs</td>
  1943. <td>pointer</td>
  1944. <td>User defined arguments</td>
  1945. </tr>
  1946. <tr>
  1947. <td>
  1948. <strong>Returns</strong>
  1949. </td>
  1950. <td/>
  1951. <td>Position</td>
  1952. <td>Current draw position</td>
  1953. </tr>
  1954. </tbody>
  1955. </table>
  1956. <div id="renderersetdrawposcallback" class="anchor-wrap">
  1957. <h3>RendererSetDrawPosCallback<a class="anchor" href="#renderersetdrawposcallback">
  1958. <span class="octicon octicon-link"/>
  1959. </a>
  1960. </h3>
  1961. </div>
  1962. <p>Set the current draw position.</p>
  1963. <table>
  1964. <thead>
  1965. <tr>
  1966. <th/>
  1967. <th>Name</th>
  1968. <th>Type</th>
  1969. <th>Description</th>
  1970. </tr>
  1971. </thead>
  1972. <tbody>
  1973. <tr>
  1974. <td>
  1975. <strong>Parameters</strong>
  1976. </td>
  1977. <td>Position</td>
  1978. <td>Position</td>
  1979. <td>New draw positionments</td>
  1980. </tr>
  1981. <tr>
  1982. <td/>
  1983. <td>UserArgs</td>
  1984. <td>pointer</td>
  1985. <td>User defined arguments</td>
  1986. </tr>
  1987. </tbody>
  1988. </table>
  1989. <div id="renderermovedrawposcallback" class="anchor-wrap">
  1990. <h3>RendererMoveDrawPosCallback<a class="anchor" href="#renderermovedrawposcallback">
  1991. <span class="octicon octicon-link"/>
  1992. </a>
  1993. </h3>
  1994. </div>
  1995. <p>Move the draw position relative to the current position.</p>
  1996. <table>
  1997. <thead>
  1998. <tr>
  1999. <th/>
  2000. <th>Name</th>
  2001. <th>Type</th>
  2002. <th>Description</th>
  2003. </tr>
  2004. </thead>
  2005. <tbody>
  2006. <tr>
  2007. <td>
  2008. <strong>Parameters</strong>
  2009. </td>
  2010. <td>Offset</td>
  2011. <td>Position</td>
  2012. <td>Offset to current position</td>
  2013. </tr>
  2014. <tr>
  2015. <td/>
  2016. <td>UserArgs</td>
  2017. <td>pointer</td>
  2018. <td>User defined arguments</td>
  2019. </tr>
  2020. </tbody>
  2021. </table>
  2022. <div id="renderersetcolorcallback" class="anchor-wrap">
  2023. <h3>RendererSetColorCallback<a class="anchor" href="#renderersetcolorcallback">
  2024. <span class="octicon octicon-link"/>
  2025. </a>
  2026. </h3>
  2027. </div>
  2028. <p>Set the current color.</p>
  2029. <table>
  2030. <thead>
  2031. <tr>
  2032. <th/>
  2033. <th>Name</th>
  2034. <th>Type</th>
  2035. <th>Description</th>
  2036. </tr>
  2037. </thead>
  2038. <tbody>
  2039. <tr>
  2040. <td>
  2041. <strong>Parameters</strong>
  2042. </td>
  2043. <td>Color</td>
  2044. <td>Color</td>
  2045. <td>New color</td>
  2046. </tr>
  2047. <tr>
  2048. <td/>
  2049. <td>UserArgs</td>
  2050. <td>pointer</td>
  2051. <td>User defined arguments</td>
  2052. </tr>
  2053. </tbody>
  2054. </table>
  2055. <div id="rendererrendercallback" class="anchor-wrap">
  2056. <h3>RendererRenderCallback<a class="anchor" href="#rendererrendercallback">
  2057. <span class="octicon octicon-link"/>
  2058. </a>
  2059. </h3>
  2060. </div>
  2061. <p>Render the given reference. If ForcedWidth is not eqal zero, then render the reference with the given width. This is used for rendereing spaces when the text block uses justify as horizontal alignment.</p>
  2062. <table>
  2063. <thead>
  2064. <tr>
  2065. <th/>
  2066. <th>Name</th>
  2067. <th>Type</th>
  2068. <th>Description</th>
  2069. </tr>
  2070. </thead>
  2071. <tbody>
  2072. <tr>
  2073. <td>
  2074. <strong>Parameters</strong>
  2075. </td>
  2076. <td>Reference</td>
  2077. <td>RenderRefHandle</td>
  2078. <td>Handle of reference to render</td>
  2079. </tr>
  2080. <tr>
  2081. <td/>
  2082. <td>ForcedWidth</td>
  2083. <td>int32</td>
  2084. <td>Forced width of rendered reference. Use default width if zero.</td>
  2085. </tr>
  2086. <tr>
  2087. <td/>
  2088. <td>UserArgs</td>
  2089. <td>pointer</td>
  2090. <td>User defined arguments</td>
  2091. </tr>
  2092. </tbody>
  2093. </table>
  2094. <div id="renderercreaterefcallback" class="anchor-wrap">
  2095. <h3>RendererCreateRefCallback<a class="anchor" href="#renderercreaterefcallback">
  2096. <span class="octicon octicon-link"/>
  2097. </a>
  2098. </h3>
  2099. </div>
  2100. <p>Create a new render reference for the given char and image.</p>
  2101. <table>
  2102. <thead>
  2103. <tr>
  2104. <th/>
  2105. <th>Name</th>
  2106. <th>Type</th>
  2107. <th>Description</th>
  2108. </tr>
  2109. </thead>
  2110. <tbody>
  2111. <tr>
  2112. <td>
  2113. <strong>Parameters</strong>
  2114. </td>
  2115. <td>CharHandle</td>
  2116. <td>CharHandle</td>
  2117. <td>Handle of char to create reference for</td>
  2118. </tr>
  2119. <tr>
  2120. <td/>
  2121. <td>ImageHandle</td>
  2122. <td>ImageHandle</td>
  2123. <td>Handle of image to create reference for</td>
  2124. </tr>
  2125. <tr>
  2126. <td/>
  2127. <td>UserArgs</td>
  2128. <td>pointer</td>
  2129. <td>User defined arguments</td>
  2130. </tr>
  2131. <tr>
  2132. <td>
  2133. <strong>Returns</strong>
  2134. </td>
  2135. <td/>
  2136. <td>RenderRefHandle</td>
  2137. <td>Current draw position</td>
  2138. </tr>
  2139. </tbody>
  2140. </table>
  2141. <div id="rendererfreerefcallback" class="anchor-wrap">
  2142. <h3>RendererFreeRefCallback<a class="anchor" href="#rendererfreerefcallback">
  2143. <span class="octicon octicon-link"/>
  2144. </a>
  2145. </h3>
  2146. </div>
  2147. <p>Destroy the given render reference.</p>
  2148. <table>
  2149. <thead>
  2150. <tr>
  2151. <th/>
  2152. <th>Name</th>
  2153. <th>Type</th>
  2154. <th>Description</th>
  2155. </tr>
  2156. </thead>
  2157. <tbody>
  2158. <tr>
  2159. <td>
  2160. <strong>Parameters</strong>
  2161. </td>
  2162. <td>RenderRef</td>
  2163. <td>RenderRefHandle</td>
  2164. <td>Handle of render reference to destroy</td>
  2165. </tr>
  2166. <tr>
  2167. <td/>
  2168. <td>UserArgs</td>
  2169. <td>pointer</td>
  2170. <td>User defined arguments</td>
  2171. </tr>
  2172. </tbody>
  2173. </table>
  2174. <div id="imageloadcallback" class="anchor-wrap">
  2175. <h3>ImageLoadCallback<a class="anchor" href="#imageloadcallback">
  2176. <span class="octicon octicon-link"/>
  2177. </a>
  2178. </h3>
  2179. </div>
  2180. <p>Fill the given image pixel with a color.</p>
  2181. <table>
  2182. <thead>
  2183. <tr>
  2184. <th/>
  2185. <th>Name</th>
  2186. <th>Type</th>
  2187. <th>Description</th>
  2188. </tr>
  2189. </thead>
  2190. <tbody>
  2191. <tr>
  2192. <td>
  2193. <strong>Parameters</strong>
  2194. </td>
  2195. <td>Image</td>
  2196. <td>ImageHandle</td>
  2197. <td>Handle of image to fill with data</td>
  2198. </tr>
  2199. <tr>
  2200. <td/>
  2201. <td>x</td>
  2202. <td>int32</td>
  2203. <td>Horizontal pixel position</td>
  2204. </tr>
  2205. <tr>
  2206. <td/>
  2207. <td>y</td>
  2208. <td>int32</td>
  2209. <td>Vertical pixel position</td>
  2210. </tr>
  2211. <tr>
  2212. <td/>
  2213. <td>Pixel</td>
  2214. <td>Color</td>
  2215. <td>New color of pixel at (x,y)</td>
  2216. </tr>
  2217. <tr>
  2218. <td/>
  2219. <td>UserArgs</td>
  2220. <td>pointer</td>
  2221. <td>User defined arguments</td>
  2222. </tr>
  2223. </tbody>
  2224. </table>
  2225. <div id="imageblendcallback" class="anchor-wrap">
  2226. <h3>ImageBlendCallback<a class="anchor" href="#imageblendcallback">
  2227. <span class="octicon octicon-link"/>
  2228. </a>
  2229. </h3>
  2230. </div>
  2231. <p>Merge the to given colors to a new color.</p>
  2232. <table>
  2233. <thead>
  2234. <tr>
  2235. <th/>
  2236. <th>Name</th>
  2237. <th>Type</th>
  2238. <th>Description</th>
  2239. </tr>
  2240. </thead>
  2241. <tbody>
  2242. <tr>
  2243. <td>
  2244. <strong>Parameters</strong>
  2245. </td>
  2246. <td>Image</td>
  2247. <td>ImageHandle</td>
  2248. <td>Handle of image to merge to</td>
  2249. </tr>
  2250. <tr>
  2251. <td/>
  2252. <td>Source</td>
  2253. <td>Color</td>
  2254. <td>Color of soure image</td>
  2255. </tr>
  2256. <tr>
  2257. <td/>
  2258. <td>Dest</td>
  2259. <td>Color</td>
  2260. <td>Color of destination image</td>
  2261. </tr>
  2262. <tr>
  2263. <td/>
  2264. <td>Result</td>
  2265. <td>Color</td>
  2266. <td>New color of destination image</td>
  2267. </tr>
  2268. <tr>
  2269. <td/>
  2270. <td>UserArgs</td>
  2271. <td>pointer</td>
  2272. <td>User defined arguments</td>
  2273. </tr>
  2274. </tbody>
  2275. </table>
  2276. <hr/>
  2277. <div id="constants" class="anchor-wrap">
  2278. <h1>Constants<a class="anchor" href="#constants">
  2279. <span class="octicon octicon-link"/>
  2280. </a>
  2281. </h1>
  2282. </div>
  2283. <div id="imagemodes" class="anchor-wrap">
  2284. <h2>ImageModes<a class="anchor" href="#imagemodes">
  2285. <span class="octicon octicon-link"/>
  2286. </a>
  2287. </h2>
  2288. </div>
  2289. <div id="imagemodesreplaceall" class="anchor-wrap">
  2290. <h3>ImageModesReplaceAll<a class="anchor" href="#imagemodesreplaceall">
  2291. <span class="octicon octicon-link"/>
  2292. </a>
  2293. </h3>
  2294. </div>
  2295. <table>
  2296. <thead>
  2297. <tr>
  2298. <th>Index</th>
  2299. <th align="right">Value</th>
  2300. </tr>
  2301. </thead>
  2302. <tbody>
  2303. <tr>
  2304. <td>0</td>
  2305. <td align="right">ModeReplace</td>
  2306. </tr>
  2307. <tr>
  2308. <td>1</td>
  2309. <td align="right">ModeReplace</td>
  2310. </tr>
  2311. <tr>
  2312. <td>2</td>
  2313. <td align="right">ModeReplace</td>
  2314. </tr>
  2315. <tr>
  2316. <td>3</td>
  2317. <td align="right">ModeReplace</td>
  2318. </tr>
  2319. </tbody>
  2320. </table>
  2321. <div id="imagemodesmodulatealpha" class="anchor-wrap">
  2322. <h3>ImageModesModulateAlpha<a class="anchor" href="#imagemodesmodulatealpha">
  2323. <span class="octicon octicon-link"/>
  2324. </a>
  2325. </h3>
  2326. </div>
  2327. <table>
  2328. <thead>
  2329. <tr>
  2330. <th>Index</th>
  2331. <th align="right">Value</th>
  2332. </tr>
  2333. </thead>
  2334. <tbody>
  2335. <tr>
  2336. <td>0</td>
  2337. <td align="right">ModeReplace</td>
  2338. </tr>
  2339. <tr>
  2340. <td>1</td>
  2341. <td align="right">ModeReplace</td>
  2342. </tr>
  2343. <tr>
  2344. <td>2</td>
  2345. <td align="right">ModeReplace</td>
  2346. </tr>
  2347. <tr>
  2348. <td>3</td>
  2349. <td align="right">ModeModulate</td>
  2350. </tr>
  2351. </tbody>
  2352. </table>
  2353. <div id="imagemodesmodulateall" class="anchor-wrap">
  2354. <h3>ImageModesModulateAll<a class="anchor" href="#imagemodesmodulateall">
  2355. <span class="octicon octicon-link"/>
  2356. </a>
  2357. </h3>
  2358. </div>
  2359. <table>
  2360. <thead>
  2361. <tr>
  2362. <th>Index</th>
  2363. <th align="right">Value</th>
  2364. </tr>
  2365. </thead>
  2366. <tbody>
  2367. <tr>
  2368. <td>0</td>
  2369. <td align="right">ModeModulate</td>
  2370. </tr>
  2371. <tr>
  2372. <td>1</td>
  2373. <td align="right">ModeModulate</td>
  2374. </tr>
  2375. <tr>
  2376. <td>2</td>
  2377. <td align="right">ModeModulate</td>
  2378. </tr>
  2379. <tr>
  2380. <td>3</td>
  2381. <td align="right">ModeModulate</td>
  2382. </tr>
  2383. </tbody>
  2384. </table>
  2385. <div id="colorchannels-1" class="anchor-wrap">
  2386. <h2>ColorChannels<a class="anchor" href="#colorchannels-1">
  2387. <span class="octicon octicon-link"/>
  2388. </a>
  2389. </h2>
  2390. </div>
  2391. <div id="colorchannelsrgb" class="anchor-wrap">
  2392. <h3>ColorChannelsRGB<a class="anchor" href="#colorchannelsrgb">
  2393. <span class="octicon octicon-link"/>
  2394. </a>
  2395. </h3>
  2396. </div>
  2397. <table>
  2398. <thead>
  2399. <tr>
  2400. <th>Bit</th>
  2401. <th align="center">Is set?</th>
  2402. </tr>
  2403. </thead>
  2404. <tbody>
  2405. <tr>
  2406. <td>ColorChannelRed</td>
  2407. <td align="center">yes</td>
  2408. </tr>
  2409. <tr>
  2410. <td>ColorChannelGreen</td>
  2411. <td align="center">yes</td>
  2412. </tr>
  2413. <tr>
  2414. <td>ColorChannelBlue</td>
  2415. <td align="center">yes</td>
  2416. </tr>
  2417. <tr>
  2418. <td>ColorChannelAlpha</td>
  2419. <td align="center">no</td>
  2420. </tr>
  2421. </tbody>
  2422. </table>
  2423. <div id="colorchannelsrgba" class="anchor-wrap">
  2424. <h3>ColorChannelsRGBA<a class="anchor" href="#colorchannelsrgba">
  2425. <span class="octicon octicon-link"/>
  2426. </a>
  2427. </h3>
  2428. </div>
  2429. <table>
  2430. <thead>
  2431. <tr>
  2432. <th>Bit</th>
  2433. <th align="center">Is set?</th>
  2434. </tr>
  2435. </thead>
  2436. <tbody>
  2437. <tr>
  2438. <td>ColorChannelRed</td>
  2439. <td align="center">yes</td>
  2440. </tr>
  2441. <tr>
  2442. <td>ColorChannelGreen</td>
  2443. <td align="center">yes</td>
  2444. </tr>
  2445. <tr>
  2446. <td>ColorChannelBlue</td>
  2447. <td align="center">yes</td>
  2448. </tr>
  2449. <tr>
  2450. <td>ColorChannelAlpha</td>
  2451. <td align="center">yes</td>
  2452. </tr>
  2453. </tbody>
  2454. </table>
  2455. <hr/>
  2456. <div id="functions" class="anchor-wrap">
  2457. <h1>Functions<a class="anchor" href="#functions">
  2458. <span class="octicon octicon-link"/>
  2459. </a>
  2460. </h1>
  2461. </div>
  2462. <p>All callbacks use the stdcall calling convention!</p>
  2463. <div id="general-1" class="anchor-wrap">
  2464. <h2>General<a class="anchor" href="#general-1">
  2465. <span class="octicon octicon-link"/>
  2466. </a>
  2467. </h2>
  2468. </div>
  2469. <p>Function that are used to initialize or control the library.</p>
  2470. <div id="ltsinitialize" class="anchor-wrap">
  2471. <h3>ltsInitialize<a class="anchor" href="#ltsinitialize">
  2472. <span class="octicon octicon-link"/>
  2473. </a>
  2474. </h3>
  2475. </div>
  2476. <p>Initializes the internal library variables. must be called once before using any other function!</p>
  2477. <table>
  2478. <thead>
  2479. <tr>
  2480. <th/>
  2481. <th>Name</th>
  2482. <th>Type</th>
  2483. <th>Description</th>
  2484. </tr>
  2485. </thead>
  2486. <tbody>
  2487. <tr>
  2488. <td>
  2489. <strong>Returns</strong>
  2490. </td>
  2491. <td/>
  2492. <td>ErrorCode</td>
  2493. <td>Error code</td>
  2494. </tr>
  2495. </tbody>
  2496. </table>
  2497. <div id="ltsgetversion" class="anchor-wrap">
  2498. <h3>ltsGetVersion<a class="anchor" href="#ltsgetversion">
  2499. <span class="octicon octicon-link"/>
  2500. </a>
  2501. </h3>
  2502. </div>
  2503. <p>Get the version of the library as string.</p>
  2504. <table>
  2505. <thead>
  2506. <tr>
  2507. <th/>
  2508. <th>Name</th>
  2509. <th>Type</th>
  2510. <th>Description</th>
  2511. </tr>
  2512. </thead>
  2513. <tbody>
  2514. <tr>
  2515. <td>
  2516. <strong>Returns</strong>
  2517. </td>
  2518. <td/>
  2519. <td>AnsiString</td>
  2520. <td>Version of the library as string.</td>
  2521. </tr>
  2522. </tbody>
  2523. </table>
  2524. <div id="ltsgetlasterrorcode" class="anchor-wrap">
  2525. <h3>ltsGetLastErrorCode<a class="anchor" href="#ltsgetlasterrorcode">
  2526. <span class="octicon octicon-link"/>
  2527. </a>
  2528. </h3>
  2529. </div>
  2530. <p>Get the last error code that was raised.</p>
  2531. <table>
  2532. <thead>
  2533. <tr>
  2534. <th/>
  2535. <th>Name</th>
  2536. <th>Type</th>
  2537. <th>Description</th>
  2538. </tr>
  2539. </thead>
  2540. <tbody>
  2541. <tr>
  2542. <td>
  2543. <strong>Returns</strong>
  2544. </td>
  2545. <td/>
  2546. <td>ErrorCode</td>
  2547. <td>Error code of last failed action.</td>
  2548. </tr>
  2549. </tbody>
  2550. </table>
  2551. <div id="ltsgetlasterrormsg" class="anchor-wrap">
  2552. <h3>ltsGetLastErrorMsg<a class="anchor" href="#ltsgetlasterrormsg">
  2553. <span class="octicon octicon-link"/>
  2554. </a>
  2555. </h3>
  2556. </div>
  2557. <p>Get the last error message as string.</p>
  2558. <table>
  2559. <thead>
  2560. <tr>
  2561. <th/>
  2562. <th>Name</th>
  2563. <th>Type</th>
  2564. <th>Description</th>
  2565. </tr>
  2566. </thead>
  2567. <tbody>
  2568. <tr>
  2569. <td>
  2570. <strong>Returns</strong>
  2571. </td>
  2572. <td/>
  2573. <td>AnsiString</td>
  2574. <td>Last error message as string</td>
  2575. </tr>
  2576. </tbody>
  2577. </table>
  2578. <div id="ltsfinalize" class="anchor-wrap">
  2579. <h3>ltsFinalize<a class="anchor" href="#ltsfinalize">
  2580. <span class="octicon octicon-link"/>
  2581. </a>
  2582. </h3>
  2583. </div>
  2584. <p>Cleans up internal library variables. Should be called once before program exits!</p>
  2585. <table>
  2586. <thead>
  2587. <tr>
  2588. <th/>
  2589. <th>Name</th>
  2590. <th>Type</th>
  2591. <th>Description</th>
  2592. </tr>
  2593. </thead>
  2594. <tbody>
  2595. <tr>
  2596. <td>
  2597. <strong>Returns</strong>
  2598. </td>
  2599. <td/>
  2600. <td>ErrorCode</td>
  2601. <td>Error code</td>
  2602. </tr>
  2603. </tbody>
  2604. </table>
  2605. <div id="context" class="anchor-wrap">
  2606. <h2>Context<a class="anchor" href="#context">
  2607. <span class="octicon octicon-link"/>
  2608. </a>
  2609. </h2>
  2610. </div>
  2611. <p>The context is a wrapper object that owns all created objects. When you delete the context, all assigned objects will destroyed too. You should create only one context in your application.</p>
  2612. <div id="ltscontextcreate" class="anchor-wrap">
  2613. <h3>ltsContextCreate<a class="anchor" href="#ltscontextcreate">
  2614. <span class="octicon octicon-link"/>
  2615. </a>
  2616. </h3>
  2617. </div>
  2618. <p>Create a new context object.</p>
  2619. <table>
  2620. <thead>
  2621. <tr>
  2622. <th/>
  2623. <th>Name</th>
  2624. <th>Type</th>
  2625. <th>Description</th>
  2626. </tr>
  2627. </thead>
  2628. <tbody>
  2629. <tr>
  2630. <td>
  2631. <strong>Returns</strong>
  2632. </td>
  2633. <td/>
  2634. <td>ContextHandle</td>
  2635. <td>Handle of created context or NULL on failure (check ltsGetLastErrorCode for details).</td>
  2636. </tr>
  2637. </tbody>
  2638. </table>
  2639. <div id="ltscontextgetcodepage" class="anchor-wrap">
  2640. <h3>ltsContextGetCodePage<a class="anchor" href="#ltscontextgetcodepage">
  2641. <span class="octicon octicon-link"/>
  2642. </a>
  2643. </h3>
  2644. </div>
  2645. <p>Get the current code page.</p>
  2646. <table>
  2647. <thead>
  2648. <tr>
  2649. <th/>
  2650. <th>Name</th>
  2651. <th>Type</th>
  2652. <th>Description</th>
  2653. </tr>
  2654. </thead>
  2655. <tbody>
  2656. <tr>
  2657. <td>
  2658. <strong>Parameters</strong>
  2659. </td>
  2660. <td>Context</td>
  2661. <td>ContextHandle</td>
  2662. <td>Handle of the context to get the code page for.</td>
  2663. </tr>
  2664. <tr>
  2665. <td/>
  2666. <td>Value</td>
  2667. <td>CodePage*</td>
  2668. <td>Current code page</td>
  2669. </tr>
  2670. <tr>
  2671. <td>
  2672. <strong>Returns</strong>
  2673. </td>
  2674. <td/>
  2675. <td>ErrorCode</td>
  2676. <td>Error code</td>
  2677. </tr>
  2678. </tbody>
  2679. </table>
  2680. <div id="ltscontextgetdefaultchar" class="anchor-wrap">
  2681. <h3>ltsContextGetDefaultChar<a class="anchor" href="#ltscontextgetdefaultchar">
  2682. <span class="octicon octicon-link"/>
  2683. </a>
  2684. </h3>
  2685. </div>
  2686. <p>Get the default char of a context. The default char is used when ever a char could not be displayed correctly. The default value is '?'.</p>
  2687. <table>
  2688. <thead>
  2689. <tr>
  2690. <th/>
  2691. <th>Name</th>
  2692. <th>Type</th>
  2693. <th>Description</th>
  2694. </tr>
  2695. </thead>
  2696. <tbody>
  2697. <tr>
  2698. <td>
  2699. <strong>Parameters</strong>
  2700. </td>
  2701. <td>Context</td>
  2702. <td>ContextHandle</td>
  2703. <td>Handle of the context to get the default char for</td>
  2704. </tr>
  2705. <tr>
  2706. <td/>
  2707. <td>Value</td>
  2708. <td>WideChar*</td>
  2709. <td>Current default char</td>
  2710. </tr>
  2711. <tr>
  2712. <td>
  2713. <strong>Returns</strong>
  2714. </td>
  2715. <td/>
  2716. <td>ErrorCode</td>
  2717. <td>Error code</td>
  2718. </tr>
  2719. </tbody>
  2720. </table>
  2721. <div id="ltscontextsetcodepage" class="anchor-wrap">
  2722. <h3>ltsContextSetCodePage<a class="anchor" href="#ltscontextsetcodepage">
  2723. <span class="octicon octicon-link"/>
  2724. </a>
  2725. </h3>
  2726. </div>
  2727. <p>Set the code page of a context.</p>
  2728. <table>
  2729. <thead>
  2730. <tr>
  2731. <th/>
  2732. <th>Name</th>
  2733. <th>Type</th>
  2734. <th>Description</th>
  2735. </tr>
  2736. </thead>
  2737. <tbody>
  2738. <tr>
  2739. <td>
  2740. <strong>Parameters</strong>
  2741. </td>
  2742. <td>Context</td>
  2743. <td>ContextHandle</td>
  2744. <td>Handle of context to set the code page for</td>
  2745. </tr>
  2746. <tr>
  2747. <td/>
  2748. <td>Value</td>
  2749. <td>CodePage</td>
  2750. <td>New code page</td>
  2751. </tr>
  2752. <tr>
  2753. <td>
  2754. <strong>Returns</strong>
  2755. </td>
  2756. <td/>
  2757. <td>ErrorCode</td>
  2758. <td>Error code</td>
  2759. </tr>
  2760. </tbody>
  2761. </table>
  2762. <div id="ltscontextsetdefaultchar" class="anchor-wrap">
  2763. <h3>ltsContextSetDefaultChar<a class="anchor" href="#ltscontextsetdefaultchar">
  2764. <span class="octicon octicon-link"/>
  2765. </a>
  2766. </h3>
  2767. </div>
  2768. <p>Set the default char of a context.</p>
  2769. <table>
  2770. <thead>
  2771. <tr>
  2772. <th/>
  2773. <th>Name</th>
  2774. <th>Type</th>
  2775. <th>Description</th>
  2776. </tr>
  2777. </thead>
  2778. <tbody>
  2779. <tr>
  2780. <td>
  2781. <strong>Parameters</strong>
  2782. </td>
  2783. <td>Context</td>
  2784. <td>ContextHandle</td>
  2785. <td>Handle of context to set default char for</td>
  2786. </tr>
  2787. <tr>
  2788. <td/>
  2789. <td>Value</td>
  2790. <td>WideChar</td>
  2791. <td>New default char</td>
  2792. </tr>
  2793. <tr>
  2794. <td>
  2795. <strong>Returns</strong>
  2796. </td>
  2797. <td/>
  2798. <td>ErrorCode</td>
  2799. <td>Error code</td>
  2800. </tr>
  2801. </tbody>
  2802. </table>
  2803. <div id="ltscontextansitowide" class="anchor-wrap">
  2804. <h3>ltsContextAnsiToWide<a class="anchor" href="#ltscontextansitowide">
  2805. <span class="octicon octicon-link"/>
  2806. </a>
  2807. </h3>
  2808. </div>
  2809. <p>Convert a AnsiString to a WideString using the contexts code page and default char.</p>
  2810. <table>
  2811. <thead>
  2812. <tr>
  2813. <th/>
  2814. <th>Name</th>
  2815. <th>Type</th>
  2816. <th>Description</th>
  2817. </tr>
  2818. </thead>
  2819. <tbody>
  2820. <tr>
  2821. <td>
  2822. <strong>Parameters</strong>
  2823. </td>
  2824. <td>Context</td>
  2825. <td>ContextHandle</td>
  2826. <td>Handle of context to use for convertion</td>
  2827. </tr>
  2828. <tr>
  2829. <td/>
  2830. <td>Text</td>
  2831. <td>AnsiString</td>
  2832. <td>Text to convert to WideString</td>
  2833. </tr>
  2834. <tr>
  2835. <td>
  2836. <strong>Returns</strong>
  2837. </td>
  2838. <td/>
  2839. <td>WideString</td>
  2840. <td>Converted string or NULL on Error (Check ltsGetLastErrorCode for details)</td>
  2841. </tr>
  2842. </tbody>
  2843. </table>
  2844. <div id="ltscontextdestroy" class="anchor-wrap">
  2845. <h3>ltsContextDestroy<a class="anchor" href="#ltscontextdestroy">
  2846. <span class="octicon octicon-link"/>
  2847. </a>
  2848. </h3>
  2849. </div>
  2850. <p>Destroy a context object.</p>
  2851. <table>
  2852. <thead>
  2853. <tr>
  2854. <th/>
  2855. <th>Name</th>
  2856. <th>Type</th>
  2857. <th>Description</th>
  2858. </tr>
  2859. </thead>
  2860. <tbody>
  2861. <tr>
  2862. <td>
  2863. <strong>Parameters</strong>
  2864. </td>
  2865. <td>Context</td>
  2866. <td>ContextHandle</td>
  2867. <td>Handle of context to destroy</td>
  2868. </tr>
  2869. <tr>
  2870. <td>
  2871. <strong>Returns</strong>
  2872. </td>
  2873. <td/>
  2874. <td>ErrorCode</td>
  2875. <td>Error code</td>
  2876. </tr>
  2877. </tbody>
  2878. </table>
  2879. <div id="renderer" class="anchor-wrap">
  2880. <h2>Renderer<a class="anchor" href="#renderer">
  2881. <span class="octicon octicon-link"/>
  2882. </a>
  2883. </h2>
  2884. </div>
  2885. <p>Renderers are objects to display text on the screen. You are able to decide which API you want to use for rendering. Out of the box OpenGL and OpenGLES is supported, but you are free to create your own renderer.</p>
  2886. <div id="ltsrenderercreate" class="anchor-wrap">
  2887. <h3>ltsRendererCreate<a class="anchor" href="#ltsrenderercreate">
  2888. <span class="octicon octicon-link"/>
  2889. </a>
  2890. </h3>
  2891. </div>
  2892. <p>Create a new renderer.</p>
  2893. <table>
  2894. <thead>
  2895. <tr>
  2896. <th/>
  2897. <th>Name</th>
  2898. <th>Type</th>
  2899. <th>Description</th>
  2900. </tr>
  2901. </thead>
  2902. <tbody>
  2903. <tr>
  2904. <td>
  2905. <strong>Parameters</strong>
  2906. </td>
  2907. <td>Context</td>
  2908. <td>ContextHandle</td>
  2909. <td>Handle of context to create renderer for</td>
  2910. </tr>
  2911. <tr>
  2912. <td/>
  2913. <td>Type</td>
  2914. <td>RendererType</td>
  2915. <td>Type of renderer to create</td>
  2916. </tr>
  2917. <tr>
  2918. <td/>
  2919. <td>Format</td>
  2920. <td>Format</td>
  2921. <td>Format to use for renderer</td>
  2922. </tr>
  2923. <tr>
  2924. <td>
  2925. <strong>Returns</strong>
  2926. </td>
  2927. <td/>
  2928. <td>RendererHandle</td>
  2929. <td>Handle of created renderer or NULL in failure (check ltsGetLastErrorCode for details)</td>
  2930. </tr>
  2931. </tbody>
  2932. </table>
  2933. <div id="ltsrenderercustomcreate" class="anchor-wrap">
  2934. <h3>ltsRendererCustomCreate<a class="anchor" href="#ltsrenderercustomcreate">
  2935. <span class="octicon octicon-link"/>
  2936. </a>
  2937. </h3>
  2938. </div>
  2939. <p>Create a custom renderer.</p>
  2940. <table>
  2941. <thead>
  2942. <tr>
  2943. <th/>
  2944. <th>Name</th>
  2945. <th>Type</th>
  2946. <th>Description</th>
  2947. </tr>
  2948. </thead>
  2949. <tbody>
  2950. <tr>
  2951. <td>
  2952. <strong>Parameters</strong>
  2953. </td>
  2954. <td>Context</td>
  2955. <td>ContextHandle</td>
  2956. <td>Handle of context to create renderer for</td>
  2957. </tr>
  2958. <tr>
  2959. <td/>
  2960. <td>Format</td>
  2961. <td>Format</td>
  2962. <td>Format of the renderer</td>
  2963. </tr>
  2964. <tr>
  2965. <td/>
  2966. <td>Data</td>
  2967. <td>CustomRendererData</td>
  2968. <td>Needed data for the custom render context</td>
  2969. </tr>
  2970. <tr>
  2971. <td>
  2972. <strong>Returns</strong>
  2973. </td>
  2974. <td/>
  2975. <td>RendererHandle</td>
  2976. <td>Handle of the created renderer or NULL in failure (Check ltsGetLastErrorCode for details)</td>
  2977. </tr>
  2978. </tbody>
  2979. </table>
  2980. <div id="ltsrendererbeginblock" class="anchor-wrap">
  2981. <h3>ltsRendererBeginBlock<a class="anchor" href="#ltsrendererbeginblock">
  2982. <span class="octicon octicon-link"/>
  2983. </a>
  2984. </h3>
  2985. </div>
  2986. <p>Begin a new text block.</p>
  2987. <table>
  2988. <thead>
  2989. <tr>
  2990. <th/>
  2991. <th>Name</th>
  2992. <th>Type</th>
  2993. <th>Description</th>
  2994. </tr>
  2995. </thead>
  2996. <tbody>
  2997. <tr>
  2998. <td>
  2999. <strong>Parameters</strong>
  3000. </td>
  3001. <td>Renderer</td>
  3002. <td>RendererHandle</td>
  3003. <td>Handle of renderer to create text block for</td>
  3004. </tr>
  3005. <tr>
  3006. <td/>
  3007. <td>Top</td>
  3008. <td>int32</td>
  3009. <td>Horizontal position of the text block</td>
  3010. </tr>
  3011. <tr>
  3012. <td/>
  3013. <td>Left</td>
  3014. <td>int32</td>
  3015. <td>Vertical position of the text block</td>
  3016. </tr>
  3017. <tr>
  3018. <td/>
  3019. <td>Width</td>
  3020. <td>int32</td>
  3021. <td>Width of the text block</td>
  3022. </tr>
  3023. <tr>
  3024. <td/>
  3025. <td>Height</td>
  3026. <td>int32</td>
  3027. <td>Height of the text block</td>
  3028. </tr>
  3029. <tr>
  3030. <td/>
  3031. <td>Flags</td>
  3032. <td>TextBlockFlags</td>
  3033. <td>Text block flags</td>
  3034. </tr>
  3035. <tr>
  3036. <td>
  3037. <strong>Returns</strong>
  3038. </td>
  3039. <td/>
  3040. <td>TextBlockHandle</td>
  3041. <td>Handle of the created text bolc or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  3042. </tr>
  3043. </tbody>
  3044. </table>
  3045. <div id="ltsrendererendblock" class="anchor-wrap">
  3046. <h3>ltsRendererEndBlock<a class="anchor" href="#ltsrendererendblock">
  3047. <span class="octicon octicon-link"/>
  3048. </a>
  3049. </h3>
  3050. </div>
  3051. <p>Close text block and render it's content. The text block object will be destroyed.</p>
  3052. <table>
  3053. <thead>
  3054. <tr>
  3055. <th/>
  3056. <th>Name</th>
  3057. <th>Type</th>
  3058. <th>Description</th>
  3059. </tr>
  3060. </thead>
  3061. <tbody>
  3062. <tr>
  3063. <td>
  3064. <strong>Parameters</strong>
  3065. </td>
  3066. <td>Renderer</td>
  3067. <td>RendererHandle</td>
  3068. <td>Handle of renderer</td>
  3069. </tr>
  3070. <tr>
  3071. <td/>
  3072. <td>TextBlock</td>
  3073. <td>TextBlockHandle</td>
  3074. <td>Handle of text block to close</td>
  3075. </tr>
  3076. <tr>
  3077. <td>
  3078. <strong>Returns</strong>
  3079. </td>
  3080. <td/>
  3081. <td>ErrorCode</td>
  3082. <td>Error code</td>
  3083. </tr>
  3084. </tbody>
  3085. </table>
  3086. <div id="ltsrendererabortblock" class="anchor-wrap">
  3087. <h3>ltsRendererAbortBlock<a class="anchor" href="#ltsrendererabortblock">
  3088. <span class="octicon octicon-link"/>
  3089. </a>
  3090. </h3>
  3091. </div>
  3092. <p>Close text block and do not render it's content. The text block object will be destroyed.</p>
  3093. <table>
  3094. <thead>
  3095. <tr>
  3096. <th/>
  3097. <th>Name</th>
  3098. <th>Type</th>
  3099. <th>Description</th>
  3100. </tr>
  3101. </thead>
  3102. <tbody>
  3103. <tr>
  3104. <td>
  3105. <strong>Parameters</strong>
  3106. </td>
  3107. <td>Renderer</td>
  3108. <td>RendererHandle</td>
  3109. <td>Handle of renderer</td>
  3110. </tr>
  3111. <tr>
  3112. <td/>
  3113. <td>TextBlock</td>
  3114. <td>TextBlockHandle</td>
  3115. <td>Handle of text block to close</td>
  3116. </tr>
  3117. <tr>
  3118. <td>
  3119. <strong>Returns</strong>
  3120. </td>
  3121. <td/>
  3122. <td>ErrorCode</td>
  3123. <td>Error code</td>
  3124. </tr>
  3125. </tbody>
  3126. </table>
  3127. <div id="ltsrenderergettextwidtha" class="anchor-wrap">
  3128. <h3>ltsRendererGetTextWidthA<a class="anchor" href="#ltsrenderergettextwidtha">
  3129. <span class="octicon octicon-link"/>
  3130. </a>
  3131. </h3>
  3132. </div>
  3133. <p>Get width of a given text.</p>
  3134. <table>
  3135. <thead>
  3136. <tr>
  3137. <th/>
  3138. <th>Name</th>
  3139. <th>Type</th>
  3140. <th>Description</th>
  3141. </tr>
  3142. </thead>
  3143. <tbody>
  3144. <tr>
  3145. <td>
  3146. <strong>Parameters</strong>
  3147. </td>
  3148. <td>Renderer</td>
  3149. <td>RendererHandle</td>
  3150. <td>Handle of renderer</td>
  3151. </tr>
  3152. <tr>
  3153. <td/>
  3154. <td>Font</td>
  3155. <td>FontHandle</td>
  3156. <td>Handle of font to use for the text</td>
  3157. </tr>
  3158. <tr>
  3159. <td/>
  3160. <td>Text</td>
  3161. <td>AnsiString</td>
  3162. <td>Text to get width for</td>
  3163. </tr>
  3164. <tr>
  3165. <td>
  3166. <strong>Returns</strong>
  3167. </td>
  3168. <td/>
  3169. <td>int32</td>
  3170. <td>Width of text of -1 on failure (Check ltsGetLastErrorCode for details)</td>
  3171. </tr>
  3172. </tbody>
  3173. </table>
  3174. <div id="ltsrenderergettextwidthw" class="anchor-wrap">
  3175. <h3>ltsRendererGetTextWidthW<a class="anchor" href="#ltsrenderergettextwidthw">
  3176. <span class="octicon octicon-link"/>
  3177. </a>
  3178. </h3>
  3179. </div>
  3180. <p>Get width of a given text.</p>
  3181. <table>
  3182. <thead>
  3183. <tr>
  3184. <th/>
  3185. <th>Name</th>
  3186. <th>Type</th>
  3187. <th>Description</th>
  3188. </tr>
  3189. </thead>
  3190. <tbody>
  3191. <tr>
  3192. <td>
  3193. <strong>Parameters</strong>
  3194. </td>
  3195. <td>Renderer</td>
  3196. <td>RendererHandle</td>
  3197. <td>Handle of renderer</td>
  3198. </tr>
  3199. <tr>
  3200. <td/>
  3201. <td>Font</td>
  3202. <td>FontHandle</td>
  3203. <td>Handle of font to use for the text</td>
  3204. </tr>
  3205. <tr>
  3206. <td/>
  3207. <td>Text</td>
  3208. <td>WideString</td>
  3209. <td>Text to get width for</td>
  3210. </tr>
  3211. <tr>
  3212. <td>
  3213. <strong>Returns</strong>
  3214. </td>
  3215. <td/>
  3216. <td>int32</td>
  3217. <td>Width of text of -1 on failure (Check ltsGetLastErrorCode for details)</td>
  3218. </tr>
  3219. </tbody>
  3220. </table>
  3221. <div id="ltsrendererdestroy" class="anchor-wrap">
  3222. <h3>ltsRendererDestroy<a class="anchor" href="#ltsrendererdestroy">
  3223. <span class="octicon octicon-link"/>
  3224. </a>
  3225. </h3>
  3226. </div>
  3227. <p>Destroy a renderer object.</p>
  3228. <table>
  3229. <thead>
  3230. <tr>
  3231. <th/>
  3232. <th>Name</th>
  3233. <th>Type</th>
  3234. <th>Description</th>
  3235. </tr>
  3236. </thead>
  3237. <tbody>
  3238. <tr>
  3239. <td>
  3240. <strong>Parameters</strong>
  3241. </td>
  3242. <td>Renderer</td>
  3243. <td>RendererHandle</td>
  3244. <td>Handle of renderer to destroy.</td>
  3245. </tr>
  3246. <tr>
  3247. <td>
  3248. <strong>Returns</strong>
  3249. </td>
  3250. <td/>
  3251. <td>ErrorCode</td>
  3252. <td>Error code</td>
  3253. </tr>
  3254. </tbody>
  3255. </table>
  3256. <div id="font-creator" class="anchor-wrap">
  3257. <h2>Font Creator<a class="anchor" href="#font-creator">
  3258. <span class="octicon octicon-link"/>
  3259. </a>
  3260. </h2>
  3261. </div>
  3262. <p>Font creators are objects that are used load glyphs for a certain char. Out of the box a GDI and a FreeType font creator are supported, but you are free to write your own one.</p>
  3263. <div id="ltsfontcreatorcreate" class="anchor-wrap">
  3264. <h3>ltsFontCreatorCreate<a class="anchor" href="#ltsfontcreatorcreate">
  3265. <span class="octicon octicon-link"/>
  3266. </a>
  3267. </h3>
  3268. </div>
  3269. <p>Create a new font creator object.</p>
  3270. <table>
  3271. <thead>
  3272. <tr>
  3273. <th/>
  3274. <th>Name</th>
  3275. <th>Type</th>
  3276. <th>Description</th>
  3277. </tr>
  3278. </thead>
  3279. <tbody>
  3280. <tr>
  3281. <td>
  3282. <strong>Parameters</strong>
  3283. </td>
  3284. <td>Context</td>
  3285. <td>ContextHandle</td>
  3286. <td>Handle of context to create font creator for</td>
  3287. </tr>
  3288. <tr>
  3289. <td/>
  3290. <td>Type</td>
  3291. <td>FontCreatorType</td>
  3292. <td>Type of font creator to create</td>
  3293. </tr>
  3294. <tr>
  3295. <td>
  3296. <strong>Returns</strong>
  3297. </td>
  3298. <td/>
  3299. <td>FontCreatorHandle</td>
  3300. <td>Handle of created font creator or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  3301. </tr>
  3302. </tbody>
  3303. </table>
  3304. <div id="ltsfontcreatorgetfontbyname" class="anchor-wrap">
  3305. <h3>ltsFontCreatorGetFontByName<a class="anchor" href="#ltsfontcreatorgetfontbyname">
  3306. <span class="octicon octicon-link"/>
  3307. </a>
  3308. </h3>
  3309. </div>
  3310. <p>Load a font by its name.</p>
  3311. <table>
  3312. <thead>
  3313. <tr>
  3314. <th/>
  3315. <th>Name</th>
  3316. <th>Type</th>
  3317. <th>Description</th>
  3318. </tr>
  3319. </thead>
  3320. <tbody>
  3321. <tr>
  3322. <td>
  3323. <strong>Parameters</strong>
  3324. </td>
  3325. <td>FontCreator</td>
  3326. <td>FontCreatorHandle</td>
  3327. <td>Handle of font creator to create font with</td>
  3328. </tr>
  3329. <tr>
  3330. <td/>
  3331. <td>Fontname</td>
  3332. <td>AnsiString</td>
  3333. <td>Name of the font to create</td>
  3334. </tr>
  3335. <tr>
  3336. <td/>
  3337. <td>Size</td>
  3338. <td>int32</td>
  3339. <td>Size of the font to create</td>
  3340. </tr>
  3341. <tr>
  3342. <td/>
  3343. <td>Style</td>
  3344. <td>FontStyle</td>
  3345. <td>Style of the font to create</td>
  3346. </tr>
  3347. <tr>
  3348. <td/>
  3349. <td>AnsiAliasing</td>
  3350. <td>AntiAliasing</td>
  3351. <td>Anti aliasing of the font to create</td>
  3352. </tr>
  3353. <tr>
  3354. <td>
  3355. <strong>Returns</strong>
  3356. </td>
  3357. <td/>
  3358. <td>FontHandle</td>
  3359. <td>Handle of created font or NULL on failue (Check ltsGetLastErrorCode for details)</td>
  3360. </tr>
  3361. </tbody>
  3362. </table>
  3363. <div id="ltsfontcreatorgetfontbyfile" class="anchor-wrap">
  3364. <h3>ltsFontCreatorGetFontByFile<a class="anchor" href="#ltsfontcreatorgetfontbyfile">
  3365. <span class="octicon octicon-link"/>
  3366. </a>
  3367. </h3>
  3368. </div>
  3369. <p>Load a font from a file.</p>
  3370. <table>
  3371. <thead>
  3372. <tr>
  3373. <th/>
  3374. <th>Name</th>
  3375. <th>Type</th>
  3376. <th>Description</th>
  3377. </tr>
  3378. </thead>
  3379. <tbody>
  3380. <tr>
  3381. <td>
  3382. <strong>Parameters</strong>
  3383. </td>
  3384. <td>FontCreator</td>
  3385. <td>FontCreatorHandle</td>
  3386. <td>Handle of font creator to create font with</td>
  3387. </tr>
  3388. <tr>
  3389. <td/>
  3390. <td>Filename</td>
  3391. <td>AnsiString</td>
  3392. <td>Filename to load font from</td>
  3393. </tr>
  3394. <tr>
  3395. <td/>
  3396. <td>Size</td>
  3397. <td>int32</td>
  3398. <td>Size of the font to create</td>
  3399. </tr>
  3400. <tr>
  3401. <td/>
  3402. <td>Style</td>
  3403. <td>FontStyle</td>
  3404. <td>Style of the font to create</td>
  3405. </tr>
  3406. <tr>
  3407. <td/>
  3408. <td>AnsiAliasing</td>
  3409. <td>AntiAliasing</td>
  3410. <td>Anti aliasing of the font to create</td>
  3411. </tr>
  3412. <tr>
  3413. <td>
  3414. <strong>Returns</strong>
  3415. </td>
  3416. <td/>
  3417. <td>FontHandle</td>
  3418. <td>Handle of created font or NULL on failue (Check ltsGetLastErrorCode for details)</td>
  3419. </tr>
  3420. </tbody>
  3421. </table>
  3422. <div id="ltsfontcreatorgetfontbystream" class="anchor-wrap">
  3423. <h3>ltsFontCreatorGetFontByStream<a class="anchor" href="#ltsfontcreatorgetfontbystream">
  3424. <span class="octicon octicon-link"/>
  3425. </a>
  3426. </h3>
  3427. </div>
  3428. <p>Load a font from a stream.</p>
  3429. <table>
  3430. <thead>
  3431. <tr>
  3432. <th/>
  3433. <th>Name</th>
  3434. <th>Type</th>
  3435. <th>Description</th>
  3436. </tr>
  3437. </thead>
  3438. <tbody>
  3439. <tr>
  3440. <td>
  3441. <strong>Parameters</strong>
  3442. </td>
  3443. <td>FontCreator</td>
  3444. <td>FontCreatorHandle</td>
  3445. <td>Handle of font creator to create font with</td>
  3446. </tr>
  3447. <tr>
  3448. <td/>
  3449. <td>Stream</td>
  3450. <td>StreamData*</td>
  3451. <td>libTextSuite stream interface</td>
  3452. </tr>
  3453. <tr>
  3454. <td/>
  3455. <td>Size</td>
  3456. <td>int32</td>
  3457. <td>Size of the font to create</td>
  3458. </tr>
  3459. <tr>
  3460. <td/>
  3461. <td>Style</td>
  3462. <td>FontStyle</td>
  3463. <td>Style of the font to create</td>
  3464. </tr>
  3465. <tr>
  3466. <td/>
  3467. <td>AnsiAliasing</td>
  3468. <td>AntiAliasing</td>
  3469. <td>Anti aliasing of the font to create</td>
  3470. </tr>
  3471. <tr>
  3472. <td>
  3473. <strong>Returns</strong>
  3474. </td>
  3475. <td/>
  3476. <td>FontHandle</td>
  3477. <td>Handle of created font or NULL on failue (Check ltsGetLastErrorCode for details)</td>
  3478. </tr>
  3479. </tbody>
  3480. </table>
  3481. <div id="ltsfontcreatordestroy" class="anchor-wrap">
  3482. <h3>ltsFontCreatorDestroy<a class="anchor" href="#ltsfontcreatordestroy">
  3483. <span class="octicon octicon-link"/>
  3484. </a>
  3485. </h3>
  3486. </div>
  3487. <p>Destroy a font creator object.</p>
  3488. <table>
  3489. <thead>
  3490. <tr>
  3491. <th/>
  3492. <th>Name</th>
  3493. <th>Type</th>
  3494. <th>Description</th>
  3495. </tr>
  3496. </thead>
  3497. <tbody>
  3498. <tr>
  3499. <td>
  3500. <strong>Parameters</strong>
  3501. </td>
  3502. <td>FontCreator</td>
  3503. <td>FontCreatorHandle</td>
  3504. <td>Handle of font creator to destroy</td>
  3505. </tr>
  3506. <tr>
  3507. <td>
  3508. <strong>Returns</strong>
  3509. </td>
  3510. <td/>
  3511. <td>ErrorCode</td>
  3512. <td>Error code</td>
  3513. </tr>
  3514. </tbody>
  3515. </table>
  3516. <div id="font" class="anchor-wrap">
  3517. <h2>Font<a class="anchor" href="#font">
  3518. <span class="octicon octicon-link"/>
  3519. </a>
  3520. </h2>
  3521. </div>
  3522. <p>Font objects are used to define the appearance (size, style, ...) of text. They are created using a font creator.</p>
  3523. <div id="ltsfontgetpostprocessor" class="anchor-wrap">
  3524. <h3>ltsFontGetPostProcessor<a class="anchor" href="#ltsfontgetpostprocessor">
  3525. <span class="octicon octicon-link"/>
  3526. </a>
  3527. </h3>
  3528. </div>
  3529. <p>Get the current post processor object assigned to a font.</p>
  3530. <table>
  3531. <thead>
  3532. <tr>
  3533. <th/>
  3534. <th>Name</th>
  3535. <th>Type</th>
  3536. <th>Description</th>
  3537. </tr>
  3538. </thead>
  3539. <tbody>
  3540. <tr>
  3541. <td>
  3542. <strong>Parameters</strong>
  3543. </td>
  3544. <td>Font</td>
  3545. <td>FontHandle</td>
  3546. <td>Handle of font to get the post processor for</td>
  3547. </tr>
  3548. <tr>
  3549. <td>
  3550. <strong>Returns</strong>
  3551. </td>
  3552. <td/>
  3553. <td>PostProcessorHandle</td>
  3554. <td>Handle of post processor assigned to this font.</td>
  3555. </tr>
  3556. </tbody>
  3557. </table>
  3558. <div id="ltsfontgettabwidth" class="anchor-wrap">
  3559. <h3>ltsFontGetTabWidth<a class="anchor" href="#ltsfontgettabwidth">
  3560. <span class="octicon octicon-link"/>
  3561. </a>
  3562. </h3>
  3563. </div>
  3564. <p>Get the current tab width of a font.</p>
  3565. <table>
  3566. <thead>
  3567. <tr>
  3568. <th/>
  3569. <th>Name</th>
  3570. <th>Type</th>
  3571. <th>Description</th>
  3572. </tr>
  3573. </thead>
  3574. <tbody>
  3575. <tr>
  3576. <td>
  3577. <strong>Parameters</strong>
  3578. </td>
  3579. <td>Font</td>
  3580. <td>FontHandle</td>
  3581. <td>Handle of font to get tab width for</td>
  3582. </tr>
  3583. <tr>
  3584. <td/>
  3585. <td>Value</td>
  3586. <td>int32*</td>
  3587. <td>Tab width of font</td>
  3588. </tr>
  3589. <tr>
  3590. <td>
  3591. <strong>Returns</strong>
  3592. </td>
  3593. <td/>
  3594. <td>ErrorCode</td>
  3595. <td>Error code</td>
  3596. </tr>
  3597. </tbody>
  3598. </table>
  3599. <div id="ltsfontgetcharspacing" class="anchor-wrap">
  3600. <h3>ltsFontGetCharSpacing<a class="anchor" href="#ltsfontgetcharspacing">
  3601. <span class="octicon octicon-link"/>
  3602. </a>
  3603. </h3>
  3604. </div>
  3605. <p>Get the current char spacing of a font.</p>
  3606. <table>
  3607. <thead>
  3608. <tr>
  3609. <th/>
  3610. <th>Name</th>
  3611. <th>Type</th>
  3612. <th>Description</th>
  3613. </tr>
  3614. </thead>
  3615. <tbody>
  3616. <tr>
  3617. <td>
  3618. <strong>Parameters</strong>
  3619. </td>
  3620. <td>Font</td>
  3621. <td>FontHandle</td>
  3622. <td>Handle of font to get char spacing for</td>
  3623. </tr>
  3624. <tr>
  3625. <td/>
  3626. <td>Value</td>
  3627. <td>int32*</td>
  3628. <td>Char spacing of the font</td>
  3629. </tr>
  3630. <tr>
  3631. <td>
  3632. <strong>Returns</strong>
  3633. </td>
  3634. <td/>
  3635. <td>ErrorCode</td>
  3636. <td>Error code</td>
  3637. </tr>
  3638. </tbody>
  3639. </table>
  3640. <div id="ltsfontgetlinespacing" class="anchor-wrap">
  3641. <h3>ltsFontGetLineSpacing<a class="anchor" href="#ltsfontgetlinespacing">
  3642. <span class="octicon octicon-link"/>
  3643. </a>
  3644. </h3>
  3645. </div>
  3646. <p>Get the current line spacing of a font.</p>
  3647. <table>
  3648. <thead>
  3649. <tr>
  3650. <th/>
  3651. <th>Name</th>
  3652. <th>Type</th>
  3653. <th>Description</th>
  3654. </tr>
  3655. </thead>
  3656. <tbody>
  3657. <tr>
  3658. <td>
  3659. <strong>Parameters</strong>
  3660. </td>
  3661. <td>Font</td>
  3662. <td>FontHandle</td>
  3663. <td>Handle of font to get line spacing for</td>
  3664. </tr>
  3665. <tr>
  3666. <td/>
  3667. <td>Value</td>
  3668. <td>int32*</td>
  3669. <td>Line spacing of the font</td>
  3670. </tr>
  3671. <tr>
  3672. <td>
  3673. <strong>Returns</strong>
  3674. </td>
  3675. <td/>
  3676. <td>ErrorCode</td>
  3677. <td>Error code</td>
  3678. </tr>
  3679. </tbody>
  3680. </table>
  3681. <div id="ltsfontgetmetric" class="anchor-wrap">
  3682. <h3>ltsFontGetMetric<a class="anchor" href="#ltsfontgetmetric">
  3683. <span class="octicon octicon-link"/>
  3684. </a>
  3685. </h3>
  3686. </div>
  3687. <p>Get the metric of a font.</p>
  3688. <table>
  3689. <thead>
  3690. <tr>
  3691. <th/>
  3692. <th>Name</th>
  3693. <th>Type</th>
  3694. <th>Description</th>
  3695. </tr>
  3696. </thead>
  3697. <tbody>
  3698. <tr>
  3699. <td>
  3700. <strong>Parameters</strong>
  3701. </td>
  3702. <td>Font</td>
  3703. <td>FontHandle</td>
  3704. <td>Handle of font to get metric for</td>
  3705. </tr>
  3706. <tr>
  3707. <td/>
  3708. <td>Value</td>
  3709. <td>FontMetric*</td>
  3710. <td>Metric of the font</td>
  3711. </tr>
  3712. <tr>
  3713. <td>
  3714. <strong>Returns</strong>
  3715. </td>
  3716. <td/>
  3717. <td>ErrorCode</td>
  3718. <td>Error code</td>
  3719. </tr>
  3720. </tbody>
  3721. </table>
  3722. <div id="ltsfontgetfontname" class="anchor-wrap">
  3723. <h3>ltsFontGetFontname<a class="anchor" href="#ltsfontgetfontname">
  3724. <span class="octicon octicon-link"/>
  3725. </a>
  3726. </h3>
  3727. </div>
  3728. <p>Get the name of a font</p>
  3729. <table>
  3730. <thead>
  3731. <tr>
  3732. <th/>
  3733. <th>Name</th>
  3734. <th>Type</th>
  3735. <th>Description</th>
  3736. </tr>
  3737. </thead>
  3738. <tbody>
  3739. <tr>
  3740. <td>
  3741. <strong>Parameters</strong>
  3742. </td>
  3743. <td>Font</td>
  3744. <td>FontHandle</td>
  3745. <td>Handle of font to get the name for</td>
  3746. </tr>
  3747. <tr>
  3748. <td>
  3749. <strong>Returns</strong>
  3750. </td>
  3751. <td/>
  3752. <td>AnsiString</td>
  3753. <td>Font name or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  3754. </tr>
  3755. </tbody>
  3756. </table>
  3757. <div id="ltsfontgetfacename" class="anchor-wrap">
  3758. <h3>ltsFontGetFacename<a class="anchor" href="#ltsfontgetfacename">
  3759. <span class="octicon octicon-link"/>
  3760. </a>
  3761. </h3>
  3762. </div>
  3763. <p>Get the face name of a font</p>
  3764. <table>
  3765. <thead>
  3766. <tr>
  3767. <th/>
  3768. <th>Name</th>
  3769. <th>Type</th>
  3770. <th>Description</th>
  3771. </tr>
  3772. </thead>
  3773. <tbody>
  3774. <tr>
  3775. <td>
  3776. <strong>Parameters</strong>
  3777. </td>
  3778. <td>Font</td>
  3779. <td>FontHandle</td>
  3780. <td>Handle of font to get the face name for</td>
  3781. </tr>
  3782. <tr>
  3783. <td>
  3784. <strong>Returns</strong>
  3785. </td>
  3786. <td/>
  3787. <td>AnsiString</td>
  3788. <td>Face name or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  3789. </tr>
  3790. </tbody>
  3791. </table>
  3792. <div id="ltsfontgetstylename" class="anchor-wrap">
  3793. <h3>ltsFontGetStylename<a class="anchor" href="#ltsfontgetstylename">
  3794. <span class="octicon octicon-link"/>
  3795. </a>
  3796. </h3>
  3797. </div>
  3798. <p>Get the style name of a font</p>
  3799. <table>
  3800. <thead>
  3801. <tr>
  3802. <th/>
  3803. <th>Name</th>
  3804. <th>Type</th>
  3805. <th>Description</th>
  3806. </tr>
  3807. </thead>
  3808. <tbody>
  3809. <tr>
  3810. <td>
  3811. <strong>Parameters</strong>
  3812. </td>
  3813. <td>Font</td>
  3814. <td>FontHandle</td>
  3815. <td>Handle of font to get the style name for</td>
  3816. </tr>
  3817. <tr>
  3818. <td>
  3819. <strong>Returns</strong>
  3820. </td>
  3821. <td/>
  3822. <td>AnsiString</td>
  3823. <td>Style name or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  3824. </tr>
  3825. </tbody>
  3826. </table>
  3827. <div id="ltsfontgetfullname" class="anchor-wrap">
  3828. <h3>ltsFontGetFullname<a class="anchor" href="#ltsfontgetfullname">
  3829. <span class="octicon octicon-link"/>
  3830. </a>
  3831. </h3>
  3832. </div>
  3833. <p>Get the full name of a font</p>
  3834. <table>
  3835. <thead>
  3836. <tr>
  3837. <th/>
  3838. <th>Name</th>
  3839. <th>Type</th>
  3840. <th>Description</th>
  3841. </tr>
  3842. </thead>
  3843. <tbody>
  3844. <tr>
  3845. <td>
  3846. <strong>Parameters</strong>
  3847. </td>
  3848. <td>Font</td>
  3849. <td>FontHandle</td>
  3850. <td>Handle of font to get the full name for</td>
  3851. </tr>
  3852. <tr>
  3853. <td>
  3854. <strong>Returns</strong>
  3855. </td>
  3856. <td/>
  3857. <td>AnsiString</td>
  3858. <td>Full name or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  3859. </tr>
  3860. </tbody>
  3861. </table>
  3862. <div id="ltsfontgetcopyright" class="anchor-wrap">
  3863. <h3>ltsFontGetCopyright<a class="anchor" href="#ltsfontgetcopyright">
  3864. <span class="octicon octicon-link"/>
  3865. </a>
  3866. </h3>
  3867. </div>
  3868. <p>Get the copyright of a font</p>
  3869. <table>
  3870. <thead>
  3871. <tr>
  3872. <th/>
  3873. <th>Name</th>
  3874. <th>Type</th>
  3875. <th>Description</th>
  3876. </tr>
  3877. </thead>
  3878. <tbody>
  3879. <tr>
  3880. <td>
  3881. <strong>Parameters</strong>
  3882. </td>
  3883. <td>Font</td>
  3884. <td>FontHandle</td>
  3885. <td>Handle of font to get the copyright for</td>
  3886. </tr>
  3887. <tr>
  3888. <td>
  3889. <strong>Returns</strong>
  3890. </td>
  3891. <td/>
  3892. <td>AnsiString</td>
  3893. <td>Copyright or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  3894. </tr>
  3895. </tbody>
  3896. </table>
  3897. <div id="ltsfontsetpostprocessor" class="anchor-wrap">
  3898. <h3>ltsFontSetPostProcessor<a class="anchor" href="#ltsfontsetpostprocessor">
  3899. <span class="octicon octicon-link"/>
  3900. </a>
  3901. </h3>
  3902. </div>
  3903. <p>Set the post processor of a font</p>
  3904. <table>
  3905. <thead>
  3906. <tr>
  3907. <th/>
  3908. <th>Name</th>
  3909. <th>Type</th>
  3910. <th>Description</th>
  3911. </tr>
  3912. </thead>
  3913. <tbody>
  3914. <tr>
  3915. <td>
  3916. <strong>Parameters</strong>
  3917. </td>
  3918. <td>Font</td>
  3919. <td>FontHandle</td>
  3920. <td>Handle of font to set the post processor for</td>
  3921. </tr>
  3922. <tr>
  3923. <td/>
  3924. <td>PostProcessor</td>
  3925. <td>PostProcessorHandle</td>
  3926. <td>Handle of post processor to assign to the font</td>
  3927. </tr>
  3928. <tr>
  3929. <td>
  3930. <strong>Returns</strong>
  3931. </td>
  3932. <td/>
  3933. <td>ErrorCode</td>
  3934. <td>Error code</td>
  3935. </tr>
  3936. </tbody>
  3937. </table>
  3938. <div id="ltsfontsettabwidth" class="anchor-wrap">
  3939. <h3>ltsFontSetTabWidth<a class="anchor" href="#ltsfontsettabwidth">
  3940. <span class="octicon octicon-link"/>
  3941. </a>
  3942. </h3>
  3943. </div>
  3944. <p>Set the tab width of a font</p>
  3945. <table>
  3946. <thead>
  3947. <tr>
  3948. <th/>
  3949. <th>Name</th>
  3950. <th>Type</th>
  3951. <th>Description</th>
  3952. </tr>
  3953. </thead>
  3954. <tbody>
  3955. <tr>
  3956. <td>
  3957. <strong>Parameters</strong>
  3958. </td>
  3959. <td>Font</td>
  3960. <td>FontHandle</td>
  3961. <td>Handle of font to set the tab width for</td>
  3962. </tr>
  3963. <tr>
  3964. <td/>
  3965. <td>Value</td>
  3966. <td>int32*</td>
  3967. <td>New tab width of the font</td>
  3968. </tr>
  3969. <tr>
  3970. <td>
  3971. <strong>Returns</strong>
  3972. </td>
  3973. <td/>
  3974. <td>ErrorCode</td>
  3975. <td>Error code</td>
  3976. </tr>
  3977. </tbody>
  3978. </table>
  3979. <div id="ltsfontsetcharspacing" class="anchor-wrap">
  3980. <h3>ltsFontSetCharSpacing<a class="anchor" href="#ltsfontsetcharspacing">
  3981. <span class="octicon octicon-link"/>
  3982. </a>
  3983. </h3>
  3984. </div>
  3985. <p>Set the char spacing of a font</p>
  3986. <table>
  3987. <thead>
  3988. <tr>
  3989. <th/>
  3990. <th>Name</th>
  3991. <th>Type</th>
  3992. <th>Description</th>
  3993. </tr>
  3994. </thead>
  3995. <tbody>
  3996. <tr>
  3997. <td>
  3998. <strong>Parameters</strong>
  3999. </td>
  4000. <td>Font</td>
  4001. <td>FontHandle</td>
  4002. <td>Handle of font to set the char spacing for</td>
  4003. </tr>
  4004. <tr>
  4005. <td/>
  4006. <td>Value</td>
  4007. <td>int32*</td>
  4008. <td>New char spacing of the font</td>
  4009. </tr>
  4010. <tr>
  4011. <td>
  4012. <strong>Returns</strong>
  4013. </td>
  4014. <td/>
  4015. <td>ErrorCode</td>
  4016. <td>Error code</td>
  4017. </tr>
  4018. </tbody>
  4019. </table>
  4020. <div id="ltsfontsetlinespacing" class="anchor-wrap">
  4021. <h3>ltsFontSetLineSpacing<a class="anchor" href="#ltsfontsetlinespacing">
  4022. <span class="octicon octicon-link"/>
  4023. </a>
  4024. </h3>
  4025. </div>
  4026. <p>Set the line spacing of a font</p>
  4027. <table>
  4028. <thead>
  4029. <tr>
  4030. <th/>
  4031. <th>Name</th>
  4032. <th>Type</th>
  4033. <th>Description</th>
  4034. </tr>
  4035. </thead>
  4036. <tbody>
  4037. <tr>
  4038. <td>
  4039. <strong>Parameters</strong>
  4040. </td>
  4041. <td>Font</td>
  4042. <td>FontHandle</td>
  4043. <td>Handle of font to set the line spacing for</td>
  4044. </tr>
  4045. <tr>
  4046. <td/>
  4047. <td>Value</td>
  4048. <td>int32*</td>
  4049. <td>New line spacing of the font</td>
  4050. </tr>
  4051. <tr>
  4052. <td>
  4053. <strong>Returns</strong>
  4054. </td>
  4055. <td/>
  4056. <td>ErrorCode</td>
  4057. <td>Error code</td>
  4058. </tr>
  4059. </tbody>
  4060. </table>
  4061. <div id="ltsfontdestroy" class="anchor-wrap">
  4062. <h3>ltsFontDestroy<a class="anchor" href="#ltsfontdestroy">
  4063. <span class="octicon octicon-link"/>
  4064. </a>
  4065. </h3>
  4066. </div>
  4067. <p>Destroy a font object</p>
  4068. <table>
  4069. <thead>
  4070. <tr>
  4071. <th/>
  4072. <th>Name</th>
  4073. <th>Type</th>
  4074. <th>Description</th>
  4075. </tr>
  4076. </thead>
  4077. <tbody>
  4078. <tr>
  4079. <td>
  4080. <strong>Parameters</strong>
  4081. </td>
  4082. <td>Font</td>
  4083. <td>FontHandle</td>
  4084. <td>Handle of font to destroy</td>
  4085. </tr>
  4086. <tr>
  4087. <td>
  4088. <strong>Returns</strong>
  4089. </td>
  4090. <td/>
  4091. <td>ErrorCode</td>
  4092. <td>Error code</td>
  4093. </tr>
  4094. </tbody>
  4095. </table>
  4096. <div id="text-block" class="anchor-wrap">
  4097. <h2>Text Block<a class="anchor" href="#text-block">
  4098. <span class="octicon octicon-link"/>
  4099. </a>
  4100. </h2>
  4101. </div>
  4102. <p>Text block objects are used to arrange text in a block: automatic line break, alignment, text color, text font, ...</p>
  4103. <div id="ltstextblockgetrect" class="anchor-wrap">
  4104. <h3>ltsTextBlockGetRect<a class="anchor" href="#ltstextblockgetrect">
  4105. <span class="octicon octicon-link"/>
  4106. </a>
  4107. </h3>
  4108. </div>
  4109. <p>Get the rect of a text block.</p>
  4110. <table>
  4111. <thead>
  4112. <tr>
  4113. <th/>
  4114. <th>Name</th>
  4115. <th>Type</th>
  4116. <th>Description</th>
  4117. </tr>
  4118. </thead>
  4119. <tbody>
  4120. <tr>
  4121. <td>
  4122. <strong>Parameters</strong>
  4123. </td>
  4124. <td>TextBlock</td>
  4125. <td>TextBlockHandle</td>
  4126. <td>Handle of text block to get the rect for</td>
  4127. </tr>
  4128. <tr>
  4129. <td/>
  4130. <td>Value</td>
  4131. <td>Rect*</td>
  4132. <td>Rect of the text block</td>
  4133. </tr>
  4134. <tr>
  4135. <td>
  4136. <strong>Returns</strong>
  4137. </td>
  4138. <td/>
  4139. <td>ErrorCode</td>
  4140. <td>Error code</td>
  4141. </tr>
  4142. </tbody>
  4143. </table>
  4144. <div id="ltstextblockgetwidth" class="anchor-wrap">
  4145. <h3>ltsTextBlockGetWidth<a class="anchor" href="#ltstextblockgetwidth">
  4146. <span class="octicon octicon-link"/>
  4147. </a>
  4148. </h3>
  4149. </div>
  4150. <p>Get the width of a text block.</p>
  4151. <table>
  4152. <thead>
  4153. <tr>
  4154. <th/>
  4155. <th>Name</th>
  4156. <th>Type</th>
  4157. <th>Description</th>
  4158. </tr>
  4159. </thead>
  4160. <tbody>
  4161. <tr>
  4162. <td>
  4163. <strong>Parameters</strong>
  4164. </td>
  4165. <td>TextBlock</td>
  4166. <td>TextBlockHandle</td>
  4167. <td>Handle of text block to get the width for</td>
  4168. </tr>
  4169. <tr>
  4170. <td/>
  4171. <td>Value</td>
  4172. <td>int32*</td>
  4173. <td>Width of the text block</td>
  4174. </tr>
  4175. <tr>
  4176. <td>
  4177. <strong>Returns</strong>
  4178. </td>
  4179. <td/>
  4180. <td>ErrorCode</td>
  4181. <td>Error code</td>
  4182. </tr>
  4183. </tbody>
  4184. </table>
  4185. <div id="ltstextblockgetheight" class="anchor-wrap">
  4186. <h3>ltsTextBlockGetHeight<a class="anchor" href="#ltstextblockgetheight">
  4187. <span class="octicon octicon-link"/>
  4188. </a>
  4189. </h3>
  4190. </div>
  4191. <p>Get the height of a text block.</p>
  4192. <table>
  4193. <thead>
  4194. <tr>
  4195. <th/>
  4196. <th>Name</th>
  4197. <th>Type</th>
  4198. <th>Description</th>
  4199. </tr>
  4200. </thead>
  4201. <tbody>
  4202. <tr>
  4203. <td>
  4204. <strong>Parameters</strong>
  4205. </td>
  4206. <td>TextBlock</td>
  4207. <td>TextBlockHandle</td>
  4208. <td>Handle of text block to get the height for</td>
  4209. </tr>
  4210. <tr>
  4211. <td/>
  4212. <td>Value</td>
  4213. <td>int32*</td>
  4214. <td>Height of the text block</td>
  4215. </tr>
  4216. <tr>
  4217. <td>
  4218. <strong>Returns</strong>
  4219. </td>
  4220. <td/>
  4221. <td>ErrorCode</td>
  4222. <td>Error code</td>
  4223. </tr>
  4224. </tbody>
  4225. </table>
  4226. <div id="ltstextblockgetflags" class="anchor-wrap">
  4227. <h3>ltsTextBlockGetFlags<a class="anchor" href="#ltstextblockgetflags">
  4228. <span class="octicon octicon-link"/>
  4229. </a>
  4230. </h3>
  4231. </div>
  4232. <p>Get the flags of a text block.</p>
  4233. <table>
  4234. <thead>
  4235. <tr>
  4236. <th/>
  4237. <th>Name</th>
  4238. <th>Type</th>
  4239. <th>Description</th>
  4240. </tr>
  4241. </thead>
  4242. <tbody>
  4243. <tr>
  4244. <td>
  4245. <strong>Parameters</strong>
  4246. </td>
  4247. <td>TextBlock</td>
  4248. <td>TextBlockHandle</td>
  4249. <td>Handle of text block to get the flags for</td>
  4250. </tr>
  4251. <tr>
  4252. <td/>
  4253. <td>Value</td>
  4254. <td>TextBlockFlags*</td>
  4255. <td>Flags of the text block</td>
  4256. </tr>
  4257. <tr>
  4258. <td>
  4259. <strong>Returns</strong>
  4260. </td>
  4261. <td/>
  4262. <td>ErrorCode</td>
  4263. <td>Error code</td>
  4264. </tr>
  4265. </tbody>
  4266. </table>
  4267. <div id="ltstextblockgettop" class="anchor-wrap">
  4268. <h3>ltsTextBlockGetTop<a class="anchor" href="#ltstextblockgettop">
  4269. <span class="octicon octicon-link"/>
  4270. </a>
  4271. </h3>
  4272. </div>
  4273. <p>Get the vertical position of a text block.</p>
  4274. <table>
  4275. <thead>
  4276. <tr>
  4277. <th/>
  4278. <th>Name</th>
  4279. <th>Type</th>
  4280. <th>Description</th>
  4281. </tr>
  4282. </thead>
  4283. <tbody>
  4284. <tr>
  4285. <td>
  4286. <strong>Parameters</strong>
  4287. </td>
  4288. <td>TextBlock</td>
  4289. <td>TextBlockHandle</td>
  4290. <td>Handle of text block to get vertical position for</td>
  4291. </tr>
  4292. <tr>
  4293. <td/>
  4294. <td>Value</td>
  4295. <td>int32*</td>
  4296. <td>Vertical position of the text block</td>
  4297. </tr>
  4298. <tr>
  4299. <td>
  4300. <strong>Returns</strong>
  4301. </td>
  4302. <td/>
  4303. <td>ErrorCode</td>
  4304. <td>Error code</td>
  4305. </tr>
  4306. </tbody>
  4307. </table>
  4308. <div id="ltstextblockgetleft" class="anchor-wrap">
  4309. <h3>ltsTextBlockGetLeft<a class="anchor" href="#ltstextblockgetleft">
  4310. <span class="octicon octicon-link"/>
  4311. </a>
  4312. </h3>
  4313. </div>
  4314. <p>Get the horizontal position of a text block.</p>
  4315. <table>
  4316. <thead>
  4317. <tr>
  4318. <th/>
  4319. <th>Name</th>
  4320. <th>Type</th>
  4321. <th>Description</th>
  4322. </tr>
  4323. </thead>
  4324. <tbody>
  4325. <tr>
  4326. <td>
  4327. <strong>Parameters</strong>
  4328. </td>
  4329. <td>TextBlock</td>
  4330. <td>TextBlockHandle</td>
  4331. <td>Handle of text block to get horizontal position for</td>
  4332. </tr>
  4333. <tr>
  4334. <td/>
  4335. <td>Value</td>
  4336. <td>int32*</td>
  4337. <td>Horizontal position of the text block</td>
  4338. </tr>
  4339. <tr>
  4340. <td>
  4341. <strong>Returns</strong>
  4342. </td>
  4343. <td/>
  4344. <td>ErrorCode</td>
  4345. <td>Error code</td>
  4346. </tr>
  4347. </tbody>
  4348. </table>
  4349. <div id="ltstextblockgetvertalign" class="anchor-wrap">
  4350. <h3>ltsTextBlockGetVertAlign<a class="anchor" href="#ltstextblockgetvertalign">
  4351. <span class="octicon octicon-link"/>
  4352. </a>
  4353. </h3>
  4354. </div>
  4355. <p>Get the vertical alignment of a text block.</p>
  4356. <table>
  4357. <thead>
  4358. <tr>
  4359. <th/>
  4360. <th>Name</th>
  4361. <th>Type</th>
  4362. <th>Description</th>
  4363. </tr>
  4364. </thead>
  4365. <tbody>
  4366. <tr>
  4367. <td>
  4368. <strong>Parameters</strong>
  4369. </td>
  4370. <td>TextBlock</td>
  4371. <td>TextBlockHandle</td>
  4372. <td>Handle of text block to get vertical alignment for</td>
  4373. </tr>
  4374. <tr>
  4375. <td/>
  4376. <td>Value</td>
  4377. <td>VerticalAlign*</td>
  4378. <td>Vertical alignment of the text block</td>
  4379. </tr>
  4380. <tr>
  4381. <td>
  4382. <strong>Returns</strong>
  4383. </td>
  4384. <td/>
  4385. <td>ErrorCode</td>
  4386. <td>Error code</td>
  4387. </tr>
  4388. </tbody>
  4389. </table>
  4390. <div id="ltstextblockgethorzalign" class="anchor-wrap">
  4391. <h3>ltsTextBlockGetHorzAlign<a class="anchor" href="#ltstextblockgethorzalign">
  4392. <span class="octicon octicon-link"/>
  4393. </a>
  4394. </h3>
  4395. </div>
  4396. <p>Get the horizontal alignment of a text block.</p>
  4397. <table>
  4398. <thead>
  4399. <tr>
  4400. <th/>
  4401. <th>Name</th>
  4402. <th>Type</th>
  4403. <th>Description</th>
  4404. </tr>
  4405. </thead>
  4406. <tbody>
  4407. <tr>
  4408. <td>
  4409. <strong>Parameters</strong>
  4410. </td>
  4411. <td>TextBlock</td>
  4412. <td>TextBlockHandle</td>
  4413. <td>Handle of text block to get horizontal alignment for</td>
  4414. </tr>
  4415. <tr>
  4416. <td/>
  4417. <td>Value</td>
  4418. <td>HorizontalAlign*</td>
  4419. <td>Horizontal alignment of the text block</td>
  4420. </tr>
  4421. <tr>
  4422. <td>
  4423. <strong>Returns</strong>
  4424. </td>
  4425. <td/>
  4426. <td>ErrorCode</td>
  4427. <td>Error code</td>
  4428. </tr>
  4429. </tbody>
  4430. </table>
  4431. <div id="ltstextblockgetclipping" class="anchor-wrap">
  4432. <h3>ltsTextBlockGetClipping<a class="anchor" href="#ltstextblockgetclipping">
  4433. <span class="octicon octicon-link"/>
  4434. </a>
  4435. </h3>
  4436. </div>
  4437. <p>Get the clipping of a text block.</p>
  4438. <table>
  4439. <thead>
  4440. <tr>
  4441. <th/>
  4442. <th>Name</th>
  4443. <th>Type</th>
  4444. <th>Description</th>
  4445. </tr>
  4446. </thead>
  4447. <tbody>
  4448. <tr>
  4449. <td>
  4450. <strong>Parameters</strong>
  4451. </td>
  4452. <td>TextBlock</td>
  4453. <td>TextBlockHandle</td>
  4454. <td>Handle of text block to get the clipping for</td>
  4455. </tr>
  4456. <tr>
  4457. <td/>
  4458. <td>Value</td>
  4459. <td>Clipping*</td>
  4460. <td>Clipping of the text block</td>
  4461. </tr>
  4462. <tr>
  4463. <td>
  4464. <strong>Returns</strong>
  4465. </td>
  4466. <td/>
  4467. <td>ErrorCode</td>
  4468. <td>Error code</td>
  4469. </tr>
  4470. </tbody>
  4471. </table>
  4472. <div id="ltstextblockgetcolor" class="anchor-wrap">
  4473. <h3>ltsTextBlockGetColor<a class="anchor" href="#ltstextblockgetcolor">
  4474. <span class="octicon octicon-link"/>
  4475. </a>
  4476. </h3>
  4477. </div>
  4478. <p>Get the current color of a text block.</p>
  4479. <table>
  4480. <thead>
  4481. <tr>
  4482. <th/>
  4483. <th>Name</th>
  4484. <th>Type</th>
  4485. <th>Description</th>
  4486. </tr>
  4487. </thead>
  4488. <tbody>
  4489. <tr>
  4490. <td>
  4491. <strong>Parameters</strong>
  4492. </td>
  4493. <td>TextBlock</td>
  4494. <td>TextBlockHandle</td>
  4495. <td>Handle of text block to get the color for</td>
  4496. </tr>
  4497. <tr>
  4498. <td/>
  4499. <td>Value</td>
  4500. <td>Color*</td>
  4501. <td>Current color of the text block</td>
  4502. </tr>
  4503. <tr>
  4504. <td>
  4505. <strong>Returns</strong>
  4506. </td>
  4507. <td/>
  4508. <td>ErrorCode</td>
  4509. <td>Error code</td>
  4510. </tr>
  4511. </tbody>
  4512. </table>
  4513. <div id="ltstextblockgetfont" class="anchor-wrap">
  4514. <h3>ltsTextBlockGetFont<a class="anchor" href="#ltstextblockgetfont">
  4515. <span class="octicon octicon-link"/>
  4516. </a>
  4517. </h3>
  4518. </div>
  4519. <p>Get the current font of a text block.</p>
  4520. <table>
  4521. <thead>
  4522. <tr>
  4523. <th/>
  4524. <th>Name</th>
  4525. <th>Type</th>
  4526. <th>Description</th>
  4527. </tr>
  4528. </thead>
  4529. <tbody>
  4530. <tr>
  4531. <td>
  4532. <strong>Parameters</strong>
  4533. </td>
  4534. <td>TextBlock</td>
  4535. <td>TextBlockHandle</td>
  4536. <td>Handle of text block to get the font for</td>
  4537. </tr>
  4538. <tr>
  4539. <td/>
  4540. <td>Value</td>
  4541. <td>FontHandle*</td>
  4542. <td>Current font of the text block</td>
  4543. </tr>
  4544. <tr>
  4545. <td>
  4546. <strong>Returns</strong>
  4547. </td>
  4548. <td/>
  4549. <td>ErrorCode</td>
  4550. <td>Error code</td>
  4551. </tr>
  4552. </tbody>
  4553. </table>
  4554. <div id="ltstextblocksettop" class="anchor-wrap">
  4555. <h3>ltsTextBlockSetTop<a class="anchor" href="#ltstextblocksettop">
  4556. <span class="octicon octicon-link"/>
  4557. </a>
  4558. </h3>
  4559. </div>
  4560. <p>Set the vertical position of a text block.</p>
  4561. <table>
  4562. <thead>
  4563. <tr>
  4564. <th/>
  4565. <th>Name</th>
  4566. <th>Type</th>
  4567. <th>Description</th>
  4568. </tr>
  4569. </thead>
  4570. <tbody>
  4571. <tr>
  4572. <td>
  4573. <strong>Parameters</strong>
  4574. </td>
  4575. <td>TextBlock</td>
  4576. <td>TextBlockHandle</td>
  4577. <td>Handle of text block to set the vertical position for</td>
  4578. </tr>
  4579. <tr>
  4580. <td/>
  4581. <td>Value</td>
  4582. <td>int32</td>
  4583. <td>New vertical position</td>
  4584. </tr>
  4585. <tr>
  4586. <td>
  4587. <strong>Returns</strong>
  4588. </td>
  4589. <td/>
  4590. <td>ErrorCode</td>
  4591. <td>Error code</td>
  4592. </tr>
  4593. </tbody>
  4594. </table>
  4595. <div id="ltstextblocksetleft" class="anchor-wrap">
  4596. <h3>ltsTextBlockSetLeft<a class="anchor" href="#ltstextblocksetleft">
  4597. <span class="octicon octicon-link"/>
  4598. </a>
  4599. </h3>
  4600. </div>
  4601. <p>Set the horizontal position of a text block.</p>
  4602. <table>
  4603. <thead>
  4604. <tr>
  4605. <th/>
  4606. <th>Name</th>
  4607. <th>Type</th>
  4608. <th>Description</th>
  4609. </tr>
  4610. </thead>
  4611. <tbody>
  4612. <tr>
  4613. <td>
  4614. <strong>Parameters</strong>
  4615. </td>
  4616. <td>TextBlock</td>
  4617. <td>TextBlockHandle</td>
  4618. <td>Handle of text block to set the horizontal position for</td>
  4619. </tr>
  4620. <tr>
  4621. <td/>
  4622. <td>Value</td>
  4623. <td>int32</td>
  4624. <td>New horizontal position</td>
  4625. </tr>
  4626. <tr>
  4627. <td>
  4628. <strong>Returns</strong>
  4629. </td>
  4630. <td/>
  4631. <td>ErrorCode</td>
  4632. <td>Error code</td>
  4633. </tr>
  4634. </tbody>
  4635. </table>
  4636. <div id="ltstextblocksetvertalign" class="anchor-wrap">
  4637. <h3>ltsTextBlockSetVertAlign<a class="anchor" href="#ltstextblocksetvertalign">
  4638. <span class="octicon octicon-link"/>
  4639. </a>
  4640. </h3>
  4641. </div>
  4642. <p>Set the vertical alignment of a text block.</p>
  4643. <table>
  4644. <thead>
  4645. <tr>
  4646. <th/>
  4647. <th>Name</th>
  4648. <th>Type</th>
  4649. <th>Description</th>
  4650. </tr>
  4651. </thead>
  4652. <tbody>
  4653. <tr>
  4654. <td>
  4655. <strong>Parameters</strong>
  4656. </td>
  4657. <td>TextBlock</td>
  4658. <td>TextBlockHandle</td>
  4659. <td>Handle of text block to set the vertical alignment for</td>
  4660. </tr>
  4661. <tr>
  4662. <td/>
  4663. <td>Value</td>
  4664. <td>VerticalAlign</td>
  4665. <td>New vertical alignment</td>
  4666. </tr>
  4667. <tr>
  4668. <td>
  4669. <strong>Returns</strong>
  4670. </td>
  4671. <td/>
  4672. <td>ErrorCode</td>
  4673. <td>Error code</td>
  4674. </tr>
  4675. </tbody>
  4676. </table>
  4677. <div id="ltstextblocksethorzalign" class="anchor-wrap">
  4678. <h3>ltsTextBlockSetHorzAlign<a class="anchor" href="#ltstextblocksethorzalign">
  4679. <span class="octicon octicon-link"/>
  4680. </a>
  4681. </h3>
  4682. </div>
  4683. <p>Set the horizontal alignment of a text block.</p>
  4684. <table>
  4685. <thead>
  4686. <tr>
  4687. <th/>
  4688. <th>Name</th>
  4689. <th>Type</th>
  4690. <th>Description</th>
  4691. </tr>
  4692. </thead>
  4693. <tbody>
  4694. <tr>
  4695. <td>
  4696. <strong>Parameters</strong>
  4697. </td>
  4698. <td>TextBlock</td>
  4699. <td>TextBlockHandle</td>
  4700. <td>Handle of text block to set the horizontal alignment for</td>
  4701. </tr>
  4702. <tr>
  4703. <td/>
  4704. <td>Value</td>
  4705. <td>HorizontalAlign</td>
  4706. <td>New horizontal alignment</td>
  4707. </tr>
  4708. <tr>
  4709. <td>
  4710. <strong>Returns</strong>
  4711. </td>
  4712. <td/>
  4713. <td>ErrorCode</td>
  4714. <td>Error code</td>
  4715. </tr>
  4716. </tbody>
  4717. </table>
  4718. <div id="ltstextblocksetclipping" class="anchor-wrap">
  4719. <h3>ltsTextBlockSetClipping<a class="anchor" href="#ltstextblocksetclipping">
  4720. <span class="octicon octicon-link"/>
  4721. </a>
  4722. </h3>
  4723. </div>
  4724. <p>Set the clipping of a text block.</p>
  4725. <table>
  4726. <thead>
  4727. <tr>
  4728. <th/>
  4729. <th>Name</th>
  4730. <th>Type</th>
  4731. <th>Description</th>
  4732. </tr>
  4733. </thead>
  4734. <tbody>
  4735. <tr>
  4736. <td>
  4737. <strong>Parameters</strong>
  4738. </td>
  4739. <td>TextBlock</td>
  4740. <td>TextBlockHandle</td>
  4741. <td>Handle of text block to set the clipping for</td>
  4742. </tr>
  4743. <tr>
  4744. <td/>
  4745. <td>Value</td>
  4746. <td>Clipping</td>
  4747. <td>New clipping</td>
  4748. </tr>
  4749. <tr>
  4750. <td>
  4751. <strong>Returns</strong>
  4752. </td>
  4753. <td/>
  4754. <td>ErrorCode</td>
  4755. <td>Error code</td>
  4756. </tr>
  4757. </tbody>
  4758. </table>
  4759. <div id="ltstextblocksetcolor" class="anchor-wrap">
  4760. <h3>ltsTextBlockSetColor<a class="anchor" href="#ltstextblocksetcolor">
  4761. <span class="octicon octicon-link"/>
  4762. </a>
  4763. </h3>
  4764. </div>
  4765. <p>Set the color of a text block. This will not affect already written Text!</p>
  4766. <table>
  4767. <thead>
  4768. <tr>
  4769. <th/>
  4770. <th>Name</th>
  4771. <th>Type</th>
  4772. <th>Description</th>
  4773. </tr>
  4774. </thead>
  4775. <tbody>
  4776. <tr>
  4777. <td>
  4778. <strong>Parameters</strong>
  4779. </td>
  4780. <td>TextBlock</td>
  4781. <td>TextBlockHandle</td>
  4782. <td>Handle of text block to set the color for</td>
  4783. </tr>
  4784. <tr>
  4785. <td/>
  4786. <td>Value</td>
  4787. <td>Color</td>
  4788. <td>New color</td>
  4789. </tr>
  4790. <tr>
  4791. <td>
  4792. <strong>Returns</strong>
  4793. </td>
  4794. <td/>
  4795. <td>ErrorCode</td>
  4796. <td>Error code</td>
  4797. </tr>
  4798. </tbody>
  4799. </table>
  4800. <div id="ltstextblocksetfont" class="anchor-wrap">
  4801. <h3>ltsTextBlockSetFont<a class="anchor" href="#ltstextblocksetfont">
  4802. <span class="octicon octicon-link"/>
  4803. </a>
  4804. </h3>
  4805. </div>
  4806. <p>Set the font of a text block. This will not affect already written text!</p>
  4807. <table>
  4808. <thead>
  4809. <tr>
  4810. <th/>
  4811. <th>Name</th>
  4812. <th>Type</th>
  4813. <th>Description</th>
  4814. </tr>
  4815. </thead>
  4816. <tbody>
  4817. <tr>
  4818. <td>
  4819. <strong>Parameters</strong>
  4820. </td>
  4821. <td>TextBlock</td>
  4822. <td>TextBlockHandle</td>
  4823. <td>Handle of text block to set the font for</td>
  4824. </tr>
  4825. <tr>
  4826. <td/>
  4827. <td>Value</td>
  4828. <td>FontHandle</td>
  4829. <td>New font</td>
  4830. </tr>
  4831. <tr>
  4832. <td>
  4833. <strong>Returns</strong>
  4834. </td>
  4835. <td/>
  4836. <td>ErrorCode</td>
  4837. <td>Error code</td>
  4838. </tr>
  4839. </tbody>
  4840. </table>
  4841. <div id="ltstextblockgetactualheight" class="anchor-wrap">
  4842. <h3>ltsTextBlockGetActualHeight<a class="anchor" href="#ltstextblockgetactualheight">
  4843. <span class="octicon octicon-link"/>
  4844. </a>
  4845. </h3>
  4846. </div>
  4847. <p>Get the actual used height of a text block.</p>
  4848. <table>
  4849. <thead>
  4850. <tr>
  4851. <th/>
  4852. <th>Name</th>
  4853. <th>Type</th>
  4854. <th>Description</th>
  4855. </tr>
  4856. </thead>
  4857. <tbody>
  4858. <tr>
  4859. <td>
  4860. <strong>Parameters</strong>
  4861. </td>
  4862. <td>TextBlock</td>
  4863. <td>TextBlockHandle</td>
  4864. <td>Handle of text block to get the actual height for</td>
  4865. </tr>
  4866. <tr>
  4867. <td>
  4868. <strong>Returns</strong>
  4869. </td>
  4870. <td/>
  4871. <td>int32</td>
  4872. <td>Actual height of the text block or -1 on failure (Chec ltsGetLastErrorCode for more details)</td>
  4873. </tr>
  4874. </tbody>
  4875. </table>
  4876. <div id="ltstextblockgettextwidtha" class="anchor-wrap">
  4877. <h3>ltsTextBlockGetTextWidthA<a class="anchor" href="#ltstextblockgettextwidtha">
  4878. <span class="octicon octicon-link"/>
  4879. </a>
  4880. </h3>
  4881. </div>
  4882. <p>Get the width of a text.</p>
  4883. <table>
  4884. <thead>
  4885. <tr>
  4886. <th/>
  4887. <th>Name</th>
  4888. <th>Type</th>
  4889. <th>Description</th>
  4890. </tr>
  4891. </thead>
  4892. <tbody>
  4893. <tr>
  4894. <td>
  4895. <strong>Parameters</strong>
  4896. </td>
  4897. <td>TextBlock</td>
  4898. <td>TextBlockHandle</td>
  4899. <td>Handle of text block to get the text width for</td>
  4900. </tr>
  4901. <tr>
  4902. <td/>
  4903. <td>Text</td>
  4904. <td>AnsiText</td>
  4905. <td>Text to get the width for</td>
  4906. </tr>
  4907. <tr>
  4908. <td>
  4909. <strong>Returns</strong>
  4910. </td>
  4911. <td/>
  4912. <td>int32</td>
  4913. <td>Text width or -1 on failure (Chec ltsGetLastErrorCode for more details)</td>
  4914. </tr>
  4915. </tbody>
  4916. </table>
  4917. <div id="ltstextblockgettextwidthw" class="anchor-wrap">
  4918. <h3>ltsTextBlockGetTextWidthW<a class="anchor" href="#ltstextblockgettextwidthw">
  4919. <span class="octicon octicon-link"/>
  4920. </a>
  4921. </h3>
  4922. </div>
  4923. <p>Get the width of a text.</p>
  4924. <table>
  4925. <thead>
  4926. <tr>
  4927. <th/>
  4928. <th>Name</th>
  4929. <th>Type</th>
  4930. <th>Description</th>
  4931. </tr>
  4932. </thead>
  4933. <tbody>
  4934. <tr>
  4935. <td>
  4936. <strong>Parameters</strong>
  4937. </td>
  4938. <td>TextBlock</td>
  4939. <td>TextBlockHandle</td>
  4940. <td>Handle of text block to get the text width for</td>
  4941. </tr>
  4942. <tr>
  4943. <td/>
  4944. <td>Text</td>
  4945. <td>WideText</td>
  4946. <td>Text to get the width for</td>
  4947. </tr>
  4948. <tr>
  4949. <td>
  4950. <strong>Returns</strong>
  4951. </td>
  4952. <td/>
  4953. <td>int32</td>
  4954. <td>Text width or -1 on failure (Chec ltsGetLastErrorCode for more details)</td>
  4955. </tr>
  4956. </tbody>
  4957. </table>
  4958. <div id="ltstextblocktextouta" class="anchor-wrap">
  4959. <h3>ltsTextBlockTextOutA<a class="anchor" href="#ltstextblocktextouta">
  4960. <span class="octicon octicon-link"/>
  4961. </a>
  4962. </h3>
  4963. </div>
  4964. <p>Write text to the text block. This will use the current color and the current font of the text block. A change of the color or the font will not take effect on already written text.</p>
  4965. <table>
  4966. <thead>
  4967. <tr>
  4968. <th/>
  4969. <th>Name</th>
  4970. <th>Type</th>
  4971. <th>Description</th>
  4972. </tr>
  4973. </thead>
  4974. <tbody>
  4975. <tr>
  4976. <td>
  4977. <strong>Parameters</strong>
  4978. </td>
  4979. <td>TextBlock</td>
  4980. <td>TextBlockHandle</td>
  4981. <td>Handle of text block to get the text width for</td>
  4982. </tr>
  4983. <tr>
  4984. <td/>
  4985. <td>Text</td>
  4986. <td>AnsiText</td>
  4987. <td>Text to get the width for</td>
  4988. </tr>
  4989. <tr>
  4990. <td>
  4991. <strong>Returns</strong>
  4992. </td>
  4993. <td/>
  4994. <td>ErrorCode</td>
  4995. <td>Error code</td>
  4996. </tr>
  4997. </tbody>
  4998. </table>
  4999. <div id="ltstextblocktextoutw" class="anchor-wrap">
  5000. <h3>ltsTextBlockTextOutW<a class="anchor" href="#ltstextblocktextoutw">
  5001. <span class="octicon octicon-link"/>
  5002. </a>
  5003. </h3>
  5004. </div>
  5005. <p>Write text to the text block. This will use the current color and the current font of the text block. A change of the color or the font will not take effect on already written text.</p>
  5006. <table>
  5007. <thead>
  5008. <tr>
  5009. <th/>
  5010. <th>Name</th>
  5011. <th>Type</th>
  5012. <th>Description</th>
  5013. </tr>
  5014. </thead>
  5015. <tbody>
  5016. <tr>
  5017. <td>
  5018. <strong>Parameters</strong>
  5019. </td>
  5020. <td>TextBlock</td>
  5021. <td>TextBlockHandle</td>
  5022. <td>Handle of text block to get the text width for</td>
  5023. </tr>
  5024. <tr>
  5025. <td/>
  5026. <td>Text</td>
  5027. <td>WideText</td>
  5028. <td>Text to get the width for</td>
  5029. </tr>
  5030. <tr>
  5031. <td>
  5032. <strong>Returns</strong>
  5033. </td>
  5034. <td/>
  5035. <td>ErrorCode</td>
  5036. <td>Error code</td>
  5037. </tr>
  5038. </tbody>
  5039. </table>
  5040. <div id="ltstextblockdestroy" class="anchor-wrap">
  5041. <h3>ltsTextBlockDestroy<a class="anchor" href="#ltstextblockdestroy">
  5042. <span class="octicon octicon-link"/>
  5043. </a>
  5044. </h3>
  5045. </div>
  5046. <p>Destroy a text block.</p>
  5047. <table>
  5048. <thead>
  5049. <tr>
  5050. <th/>
  5051. <th>Name</th>
  5052. <th>Type</th>
  5053. <th>Description</th>
  5054. </tr>
  5055. </thead>
  5056. <tbody>
  5057. <tr>
  5058. <td>
  5059. <strong>Parameters</strong>
  5060. </td>
  5061. <td>TextBlock</td>
  5062. <td>TextBlockHandle</td>
  5063. <td>Handle of text block to destroy</td>
  5064. </tr>
  5065. <tr>
  5066. <td>
  5067. <strong>Returns</strong>
  5068. </td>
  5069. <td/>
  5070. <td>ErrorCode</td>
  5071. <td>Error code</td>
  5072. </tr>
  5073. </tbody>
  5074. </table>
  5075. <div id="image" class="anchor-wrap">
  5076. <h2>Image<a class="anchor" href="#image">
  5077. <span class="octicon octicon-link"/>
  5078. </a>
  5079. </h2>
  5080. </div>
  5081. <p>Image objects are used to store glyph data. You can manipulate the stored data through a post processor before the glyph is rendered.</p>
  5082. <div id="ltsimagecreate" class="anchor-wrap">
  5083. <h3>ltsImageCreate<a class="anchor" href="#ltsimagecreate">
  5084. <span class="octicon octicon-link"/>
  5085. </a>
  5086. </h3>
  5087. </div>
  5088. <p>Create a new image object.</p>
  5089. <table>
  5090. <thead>
  5091. <tr>
  5092. <th/>
  5093. <th>Name</th>
  5094. <th>Type</th>
  5095. <th>Description</th>
  5096. </tr>
  5097. </thead>
  5098. <tbody>
  5099. <tr>
  5100. <td>
  5101. <strong>Parameters</strong>
  5102. </td>
  5103. <td>Context</td>
  5104. <td>ContextHandle</td>
  5105. <td>Handle of context to create the image for</td>
  5106. </tr>
  5107. <tr>
  5108. <td>
  5109. <strong>Returns</strong>
  5110. </td>
  5111. <td/>
  5112. <td>ImageHandle</td>
  5113. <td>Handle of created image or NULL on failure (Check ltsGetLastErrorCode for details)</td>
  5114. </tr>
  5115. </tbody>
  5116. </table>
  5117. <div id="ltsimageisempty" class="anchor-wrap">
  5118. <h3>ltsImageIsEmpty<a class="anchor" href="#ltsimageisempty">
  5119. <span class="octicon octicon-link"/>
  5120. </a>
  5121. </h3>
  5122. </div>
  5123. <p>Check is an image is empty.</p>
  5124. <table>
  5125. <thead>
  5126. <tr>
  5127. <th/>
  5128. <th>Name</th>
  5129. <th>Type</th>
  5130. <th>Description</th>
  5131. </tr>
  5132. </thead>
  5133. <tbody>
  5134. <tr>
  5135. <td>
  5136. <strong>Parameters</strong>
  5137. </td>
  5138. <td>Image</td>
  5139. <td>ImageHandle</td>
  5140. <td>Handle of image to check</td>
  5141. </tr>
  5142. <tr>
  5143. <td/>
  5144. <td>Value</td>
  5145. <td>boolean</td>
  5146. <td>TRUE if the image is empty, FALSE otherwise</td>
  5147. </tr>
  5148. <tr>
  5149. <td>
  5150. <strong>Returns</strong>
  5151. </td>
  5152. <td/>
  5153. <td>ErrorCode</td>
  5154. <td>Error code</td>
  5155. </tr>
  5156. </tbody>
  5157. </table>
  5158. <div id="ltsimagegetwidth" class="anchor-wrap">
  5159. <h3>ltsImageGetWidth<a class="anchor" href="#ltsimagegetwidth">
  5160. <span class="octicon octicon-link"/>
  5161. </a>
  5162. </h3>
  5163. </div>
  5164. <p>Get the width of an image.</p>
  5165. <table>
  5166. <thead>
  5167. <tr>
  5168. <th/>
  5169. <th>Name</th>
  5170. <th>Type</th>
  5171. <th>Description</th>
  5172. </tr>
  5173. </thead>
  5174. <tbody>
  5175. <tr>
  5176. <td>
  5177. <strong>Parameters</strong>
  5178. </td>
  5179. <td>Image</td>
  5180. <td>ImageHandle</td>
  5181. <td>Handle of image to get width for</td>
  5182. </tr>
  5183. <tr>
  5184. <td>
  5185. <strong>Returns</strong>
  5186. </td>
  5187. <td/>
  5188. <td>int32</td>
  5189. <td>Width of image or -1 on failure (Check ltsGetLastErrorCode for details)</td>
  5190. </tr>
  5191. </tbody>
  5192. </table>
  5193. <div id="ltsimagegetheight" class="anchor-wrap">
  5194. <h3>ltsImageGetHeight<a class="anchor" href="#ltsimagegetheight">
  5195. <span class="octicon octicon-link"/>
  5196. </a>
  5197. </h3>
  5198. </div>
  5199. <p>Get the height of an image.</p>
  5200. <table>
  5201. <thead>
  5202. <tr>
  5203. <th/>
  5204. <th>Name</th>
  5205. <th>Type</th>
  5206. <th>Description</th>
  5207. </tr>
  5208. </thead>
  5209. <tbody>
  5210. <tr>
  5211. <td>
  5212. <strong>Parameters</strong>
  5213. </td>
  5214. <td>Image</td>
  5215. <td>ImageHandle</td>
  5216. <td>Handle of image to get height for</td>
  5217. </tr>
  5218. <tr>
  5219. <td>
  5220. <strong>Returns</strong>
  5221. </td>
  5222. <td/>
  5223. <td>int32</td>
  5224. <td>Height of image or -1 on failure (Check ltsGetLastErrorCode for details)</td>
  5225. </tr>
  5226. </tbody>
  5227. </table>
  5228. <div id="ltsimagegetlinesize" class="anchor-wrap">
  5229. <h3>ltsImageGetLineSize<a class="anchor" href="#ltsimagegetlinesize">
  5230. <span class="octicon octicon-link"/>
  5231. </a>
  5232. </h3>
  5233. </div>
  5234. <p>Get the number of bytes used in each line of an image.</p>
  5235. <table>
  5236. <thead>
  5237. <tr>
  5238. <th/>
  5239. <th>Name</th>
  5240. <th>Type</th>
  5241. <th>Description</th>
  5242. </tr>
  5243. </thead>
  5244. <tbody>
  5245. <tr>
  5246. <td>
  5247. <strong>Parameters</strong>
  5248. </td>
  5249. <td>Image</td>
  5250. <td>ImageHandle</td>
  5251. <td>Handle of image to get line size for</td>
  5252. </tr>
  5253. <tr>
  5254. <td>
  5255. <strong>Returns</strong>
  5256. </td>
  5257. <td/>
  5258. <td>int32</td>
  5259. <td>Line size of image or -1 on failure (Check ltsGetLastErrorCode for details)</td>
  5260. </tr>
  5261. </tbody>
  5262. </table>
  5263. <div id="ltsimagegetdatasize" class="anchor-wrap">
  5264. <h3>ltsImageGetDataSize<a class="anchor" href="#ltsimagegetdatasize">
  5265. <span class="octicon octicon-link"/>
  5266. </a>
  5267. </h3>
  5268. </div>
  5269. <p>Get the number of bytes used to store the images data.</p>
  5270. <table>
  5271. <thead>
  5272. <tr>
  5273. <th/>
  5274. <th>Name</th>
  5275. <th>Type</th>
  5276. <th>Description</th>
  5277. </tr>
  5278. </thead>
  5279. <tbody>
  5280. <tr>
  5281. <td>
  5282. <strong>Parameters</strong>
  5283. </td>
  5284. <td>Image</td>
  5285. <td>ImageHandle</td>
  5286. <td>Handle of image to get data size for</td>
  5287. </tr>
  5288. <tr>
  5289. <td>
  5290. <strong>Returns</strong>
  5291. </td>
  5292. <td/>
  5293. <td>int32</td>
  5294. <td>Data size of image or -1 on failure (Check ltsGetLastErrorCode for details)</td>
  5295. </tr>
  5296. </tbody>
  5297. </table>
  5298. <div id="ltsimagegetformat" class="anchor-wrap">
  5299. <h3>ltsImageGetFormat<a class="anchor" href="#ltsimagegetformat">
  5300. <span class="octicon octicon-link"/>
  5301. </a>
  5302. </h3>
  5303. </div>
  5304. <p>Get the format of an image.</p>
  5305. <table>
  5306. <thead>
  5307. <tr>
  5308. <th/>
  5309. <th>Name</th>
  5310. <th>Type</th>
  5311. <th>Description</th>
  5312. </tr>
  5313. </thead>
  5314. <tbody>
  5315. <tr>
  5316. <td>
  5317. <strong>Parameters</strong>
  5318. </td>
  5319. <td>Image</td>
  5320. <td>ImageHandle</td>
  5321. <td>Handle of image to get the format for</td>
  5322. </tr>
  5323. <tr>
  5324. <td/>
  5325. <td>Format</td>
  5326. <td>Format*</td>
  5327. <td>Format of the image</td>
  5328. </tr>
  5329. <tr>
  5330. <td>
  5331. <strong>Returns</strong>
  5332. </td>
  5333. <td/>
  5334. <td>ErrorCode</td>
  5335. <td>Error code</td>
  5336. </tr>
  5337. </tbody>
  5338. </table>
  5339. <div id="ltsimagegetdata" class="anchor-wrap">
  5340. <h3>ltsImageGetData<a class="anchor" href="#ltsimagegetdata">
  5341. <span class="octicon octicon-link"/>
  5342. </a>
  5343. </h3>
  5344. </div>
  5345. <p>Get the raw data of an image.</p>
  5346. <table>
  5347. <thead>
  5348. <tr>
  5349. <th/>
  5350. <th>Name</th>
  5351. <th>Type</th>
  5352. <th>Description</th>
  5353. </tr>
  5354. </thead>
  5355. <tbody>
  5356. <tr>
  5357. <td>
  5358. <strong>Parameters</strong>
  5359. </td>
  5360. <td>Image</td>
  5361. <td>ImageHandle</td>
  5362. <td>Handle of image to get the data for</td>
  5363. </tr>
  5364. <tr>
  5365. <td>
  5366. <strong>Returns</strong>
  5367. </td>
  5368. <td/>
  5369. <td>pointer</td>
  5370. <td>Pointer to image data or NULL on failure (Check ltsGetLastErrorCode for more details)</td>
  5371. </tr>
  5372. </tbody>
  5373. </table>
  5374. <div id="ltsimagegetscanline" class="anchor-wrap">
  5375. <h3>ltsImageGetScanline<a class="anchor" href="#ltsimagegetscanline">
  5376. <span class="octicon octicon-link"/>
  5377. </a>
  5378. </h3>
  5379. </div>
  5380. <p>Get the raw data of a line inside of the image.</p>
  5381. <table>
  5382. <thead>
  5383. <tr>
  5384. <th/>
  5385. <th>Name</th>
  5386. <th>Type</th>
  5387. <th>Description</th>
  5388. </tr>
  5389. </thead>
  5390. <tbody>
  5391. <tr>
  5392. <td>
  5393. <strong>Parameters</strong>
  5394. </td>
  5395. <td>Image</td>
  5396. <td>ImageHandle</td>
  5397. <td>Handle of image to get the scanline for</td>
  5398. </tr>
  5399. <tr>
  5400. <td/>
  5401. <td>Index</td>
  5402. <td>int32</td>
  5403. <td>Index of the scanline</td>
  5404. </tr>
  5405. <tr>
  5406. <td>
  5407. <strong>Returns</strong>
  5408. </td>
  5409. <td/>
  5410. <td>pointer</td>
  5411. <td>Pointer to scanline data or NULL on failure (Check ltsGetLastErrorCode for more details)</td>
  5412. </tr>
  5413. </tbody>
  5414. </table>
  5415. <div id="ltsimagegetpixelat" class="anchor-wrap">
  5416. <h3>ltsImageGetPixelAt<a class="anchor" href="#ltsimagegetpixelat">
  5417. <span class="octicon octicon-link"/>
  5418. </a>
  5419. </h3>
  5420. </div>
  5421. <p>Get the color of a pixel inside the image.</p>
  5422. <table>
  5423. <thead>
  5424. <tr>
  5425. <th/>
  5426. <th>Name</th>
  5427. <th>Type</th>
  5428. <th>Description</th>
  5429. </tr>
  5430. </thead>
  5431. <tbody>
  5432. <tr>
  5433. <td>
  5434. <strong>Parameters</strong>
  5435. </td>
  5436. <td>Image</td>
  5437. <td>ImageHandle</td>
  5438. <td>Handle of image to get pixel color for</td>
  5439. </tr>
  5440. <tr>
  5441. <td/>
  5442. <td>X</td>
  5443. <td>int32</td>
  5444. <td>Horizontal pixel position</td>
  5445. </tr>
  5446. <tr>
  5447. <td/>
  5448. <td>Y</td>
  5449. <td>int32</td>
  5450. <td>Vertical pixel position</td>
  5451. </tr>
  5452. <tr>
  5453. <td/>
  5454. <td>Color</td>
  5455. <td>Color*</td>
  5456. <td>Pixel color</td>
  5457. </tr>
  5458. <tr>
  5459. <td>
  5460. <strong>Returns</strong>
  5461. </td>
  5462. <td/>
  5463. <td>ErrorCode</td>
  5464. <td>Error code</td>
  5465. </tr>
  5466. </tbody>
  5467. </table>
  5468. <div id="ltsimageassign" class="anchor-wrap">
  5469. <h3>ltsImageAssign<a class="anchor" href="#ltsimageassign">
  5470. <span class="octicon octicon-link"/>
  5471. </a>
  5472. </h3>
  5473. </div>
  5474. <p>Copy one image to another.</p>
  5475. <table>
  5476. <thead>
  5477. <tr>
  5478. <th/>
  5479. <th>Name</th>
  5480. <th>Type</th>
  5481. <th>Description</th>
  5482. </tr>
  5483. </thead>
  5484. <tbody>
  5485. <tr>
  5486. <td>
  5487. <strong>Parameters</strong>
  5488. </td>
  5489. <td>Image</td>
  5490. <td>ImageHandle</td>
  5491. <td>Handle of image to assign Source to</td>
  5492. </tr>
  5493. <tr>
  5494. <td/>
  5495. <td>Source</td>
  5496. <td>ImageHandle</td>
  5497. <td>Handle of image to copy to Image</td>
  5498. </tr>
  5499. <tr>
  5500. <td/>
  5501. <td>Color</td>
  5502. <td>Color*</td>
  5503. <td>Pixel color</td>
  5504. </tr>
  5505. <tr>
  5506. <td>
  5507. <strong>Returns</strong>
  5508. </td>
  5509. <td/>
  5510. <td>ErrorCode</td>
  5511. <td>Error code</td>
  5512. </tr>
  5513. </tbody>
  5514. </table>
  5515. <div id="ltsimagecreateempty" class="anchor-wrap">
  5516. <h3>ltsImageCreateEmpty<a class="anchor" href="#ltsimagecreateempty">
  5517. <span class="octicon octicon-link"/>
  5518. </a>
  5519. </h3>
  5520. </div>
  5521. <p>Clear image.</p>
  5522. <table>
  5523. <thead>
  5524. <tr>
  5525. <th/>
  5526. <th>Name</th>
  5527. <th>Type</th>
  5528. <th>Description</th>
  5529. </tr>
  5530. </thead>
  5531. <tbody>
  5532. <tr>
  5533. <td>
  5534. <strong>Parameters</strong>
  5535. </td>
  5536. <td>Image</td>
  5537. <td>ImageHandle</td>
  5538. <td>Handle of image to clear</td>
  5539. </tr>
  5540. <tr>
  5541. <td/>
  5542. <td>Format</td>
  5543. <td>Format</td>
  5544. <td>Format of image data</td>
  5545. </tr>
  5546. <tr>
  5547. <td/>
  5548. <td>Width</td>
  5549. <td>int32</td>
  5550. <td>Width of image</td>
  5551. </tr>
  5552. <tr>
  5553. <td/>
  5554. <td>Height</td>
  5555. <td>int32</td>
  5556. <td>Height of image</td>
  5557. </tr>
  5558. <tr>
  5559. <td>
  5560. <strong>Returns</strong>
  5561. </td>
  5562. <td/>
  5563. <td>ErrorCode</td>
  5564. <td>Error code</td>
  5565. </tr>
  5566. </tbody>
  5567. </table>
  5568. <div id="ltsimageloadfromfunc" class="anchor-wrap">
  5569. <h3>ltsImageLoadFromFunc<a class="anchor" href="#ltsimageloadfromfunc">
  5570. <span class="octicon octicon-link"/>
  5571. </a>
  5572. </h3>
  5573. </div>
  5574. <p>Load image data using a callback function.</p>
  5575. <table>
  5576. <thead>
  5577. <tr>
  5578. <th/>
  5579. <th>Name</th>
  5580. <th>Type</th>
  5581. <th>Description</th>
  5582. </tr>
  5583. </thead>
  5584. <tbody>
  5585. <tr>
  5586. <td>
  5587. <strong>Parameters</strong>
  5588. </td>
  5589. <td>Image</td>
  5590. <td>ImageHandle</td>
  5591. <td>Handle of image to load data for</td>
  5592. </tr>
  5593. <tr>
  5594. <td/>
  5595. <td>Callback</td>
  5596. <td>ImageLoadCallback</td>
  5597. <td>Callback to load image data</td>
  5598. </tr>
  5599. <tr>
  5600. <td/>
  5601. <td>UserArgs</td>
  5602. <td>pointer</td>
  5603. <td>User defined arguments the will passed to the callback</td>
  5604. </tr>
  5605. <tr>
  5606. <td>
  5607. <strong>Returns</strong>
  5608. </td>
  5609. <td/>
  5610. <td>ErrorCode</td>
  5611. <td>Error code</td>
  5612. </tr>
  5613. </tbody>
  5614. </table>
  5615. <div id="ltsimageresize" class="anchor-wrap">
  5616. <h3>ltsImageResize<a class="anchor" href="#ltsimageresize">
  5617. <span class="octicon octicon-link"/>
  5618. </a>
  5619. </h3>
  5620. </div>
  5621. <p>Resize an image.</p>
  5622. <table>
  5623. <thead>
  5624. <tr>
  5625. <th/>
  5626. <th>Name</th>
  5627. <th>Type</th>
  5628. <th>Description</th>
  5629. </tr>
  5630. </thead>
  5631. <tbody>
  5632. <tr>
  5633. <td>
  5634. <strong>Parameters</strong>
  5635. </td>
  5636. <td>Image</td>
  5637. <td>ImageHandle</td>
  5638. <td>Handle of image to resize</td>
  5639. </tr>
  5640. <tr>
  5641. <td/>
  5642. <td>Width</td>
  5643. <td>int32</td>
  5644. <td>New width of the image</td>
  5645. </tr>
  5646. <tr>
  5647. <td/>
  5648. <td>Height</td>
  5649. <td>int32</td>
  5650. <td>New height of the image</td>
  5651. </tr>
  5652. <tr>
  5653. <td/>
  5654. <td>X</td>
  5655. <td>int32</td>
  5656. <td>Horizontal position of the old image inside the new one</td>
  5657. </tr>
  5658. <tr>
  5659. <td/>
  5660. <td>Y</td>
  5661. <td>int32</td>
  5662. <td>Vertical position of the old image inside the new one</td>
  5663. </tr>
  5664. <tr>
  5665. <td>
  5666. <strong>Returns</strong>
  5667. </td>
  5668. <td/>
  5669. <td>ErrorCode</td>
  5670. <td>Error code</td>
  5671. </tr>
  5672. </tbody>
  5673. </table>
  5674. <div id="ltsimagefillcolor" class="anchor-wrap">
  5675. <h3>ltsImageFillColor<a class="anchor" href="#ltsimagefillcolor">
  5676. <span class="octicon octicon-link"/>
  5677. </a>
  5678. </h3>
  5679. </div>
  5680. <p>Fill image with given color.</p>
  5681. <table>
  5682. <thead>
  5683. <tr>
  5684. <th/>
  5685. <th>Name</th>
  5686. <th>Type</th>
  5687. <th>Description</th>
  5688. </tr>
  5689. </thead>
  5690. <tbody>
  5691. <tr>
  5692. <td>
  5693. <strong>Parameters</strong>
  5694. </td>
  5695. <td>Image</td>
  5696. <td>ImageHandle</td>
  5697. <td>Handle of image to fill with color</td>
  5698. </tr>
  5699. <tr>
  5700. <td/>
  5701. <td>Color</td>
  5702. <td>Color</td>
  5703. <td>Color to fill image with</td>
  5704. </tr>
  5705. <tr>
  5706. <td/>
  5707. <td>Mask</td>
  5708. <td>ColorChannels</td>
  5709. <td>Color channels the action will take effect on</td>
  5710. </tr>
  5711. <tr>
  5712. <td/>
  5713. <td>Modes</td>
  5714. <td>ImageModes</td>
  5715. <td>Modes how the action will take effect on</td>
  5716. </tr>
  5717. <tr>
  5718. <td>
  5719. <strong>Returns</strong>
  5720. </td>
  5721. <td/>
  5722. <td>ErrorCode</td>
  5723. <td>Error code</td>
  5724. </tr>
  5725. </tbody>
  5726. </table>
  5727. <div id="ltsimagefillpattern" class="anchor-wrap">
  5728. <h3>ltsImageFillPattern<a class="anchor" href="#ltsimagefillpattern">
  5729. <span class="octicon octicon-link"/>
  5730. </a>
  5731. </h3>
  5732. </div>
  5733. <p>Fill image with given pattern.</p>
  5734. <table>
  5735. <thead>
  5736. <tr>
  5737. <th/>
  5738. <th>Name</th>
  5739. <th>Type</th>
  5740. <th>Description</th>
  5741. </tr>
  5742. </thead>
  5743. <tbody>
  5744. <tr>
  5745. <td>
  5746. <strong>Parameters</strong>
  5747. </td>
  5748. <td>Image</td>
  5749. <td>ImageHandle</td>
  5750. <td>Handle of image to fill with pattern</td>
  5751. </tr>
  5752. <tr>
  5753. <td/>
  5754. <td>Pattern</td>
  5755. <td>ImageHandle</td>
  5756. <td>Handle of image to use as pattern</td>
  5757. </tr>
  5758. <tr>
  5759. <td/>
  5760. <td>X</td>
  5761. <td>int32</td>
  5762. <td>Horizontal position the pattern will be placed at</td>
  5763. </tr>
  5764. <tr>
  5765. <td/>
  5766. <td>Y</td>
  5767. <td>int32</td>
  5768. <td>Vertical position the pattern will be placed at</td>
  5769. </tr>
  5770. <tr>
  5771. <td/>
  5772. <td>Mask</td>
  5773. <td>ColorChannels</td>
  5774. <td>Color channels the action will take effect on</td>
  5775. </tr>
  5776. <tr>
  5777. <td/>
  5778. <td>Modes</td>
  5779. <td>ImageModes</td>
  5780. <td>Modes how the action will take effect on</td>
  5781. </tr>
  5782. <tr>
  5783. <td>
  5784. <strong>Returns</strong>
  5785. </td>
  5786. <td/>
  5787. <td>ErrorCode</td>
  5788. <td>Error code</td>
  5789. </tr>
  5790. </tbody>
  5791. </table>
  5792. <div id="ltsimageblend" class="anchor-wrap">
  5793. <h3>ltsImageBlend<a class="anchor" href="#ltsimageblend">
  5794. <span class="octicon octicon-link"/>
  5795. </a>
  5796. </h3>
  5797. </div>
  5798. <p>Blend an image into another image.</p>
  5799. <table>
  5800. <thead>
  5801. <tr>
  5802. <th/>
  5803. <th>Name</th>
  5804. <th>Type</th>
  5805. <th>Description</th>
  5806. </tr>
  5807. </thead>
  5808. <tbody>
  5809. <tr>
  5810. <td>
  5811. <strong>Parameters</strong>
  5812. </td>
  5813. <td>Image</td>
  5814. <td>ImageHandle</td>
  5815. <td>Handle of image to blend other image in</td>
  5816. </tr>
  5817. <tr>
  5818. <td/>
  5819. <td>Source</td>
  5820. <td>ImageHandle</td>
  5821. <td>Handle of image to blend into Image</td>
  5822. </tr>
  5823. <tr>
  5824. <td/>
  5825. <td>X</td>
  5826. <td>int32</td>
  5827. <td>Horizontal position the source image will be placed at</td>
  5828. </tr>
  5829. <tr>
  5830. <td/>
  5831. <td>Y</td>
  5832. <td>int32</td>
  5833. <td>Vertical position the source image will be placed at</td>
  5834. </tr>
  5835. <tr>
  5836. <td/>
  5837. <td>BlendFunc</td>
  5838. <td>ImageBlendCallback</td>
  5839. <td>Callback to handle blending</td>
  5840. </tr>
  5841. <tr>
  5842. <td/>
  5843. <td>UserArgs</td>
  5844. <td>pointer</td>
  5845. <td>User defined argument that will be passed to callback</td>
  5846. </tr>
  5847. <tr>
  5848. <td>
  5849. <strong>Returns</strong>
  5850. </td>
  5851. <td/>
  5852. <td>ErrorCode</td>
  5853. <td>Error code</td>
  5854. </tr>
  5855. </tbody>
  5856. </table>
  5857. <div id="ltsimageblur" class="anchor-wrap">
  5858. <h3>ltsImageBlur<a class="anchor" href="#ltsimageblur">
  5859. <span class="octicon octicon-link"/>
  5860. </a>
  5861. </h3>
  5862. </div>
  5863. <p>Blur an image.</p>
  5864. <table>
  5865. <thead>
  5866. <tr>
  5867. <th/>
  5868. <th>Name</th>
  5869. <th>Type</th>
  5870. <th>Description</th>
  5871. </tr>
  5872. </thead>
  5873. <tbody>
  5874. <tr>
  5875. <td>
  5876. <strong>Parameters</strong>
  5877. </td>
  5878. <td>Image</td>
  5879. <td>ImageHandle</td>
  5880. <td>Handle of image to blur</td>
  5881. </tr>
  5882. <tr>
  5883. <td/>
  5884. <td>HorzRadius</td>
  5885. <td>float</td>
  5886. <td>Horizontal blur radius</td>
  5887. </tr>
  5888. <tr>
  5889. <td/>
  5890. <td>HorzStrength</td>
  5891. <td>float</td>
  5892. <td>Horizontal blur strength</td>
  5893. </tr>
  5894. <tr>
  5895. <td/>
  5896. <td>VertRadius</td>
  5897. <td>float</td>
  5898. <td>Vertical blur radius</td>
  5899. </tr>
  5900. <tr>
  5901. <td/>
  5902. <td>VertStrength</td>
  5903. <td>float</td>
  5904. <td>Vertical blur strength</td>
  5905. </tr>
  5906. <tr>
  5907. <td/>
  5908. <td>Mask</td>
  5909. <td>ColorChannels</td>
  5910. <td>Color channels this action will take effect on</td>
  5911. </tr>
  5912. <tr>
  5913. <td>
  5914. <strong>Returns</strong>
  5915. </td>
  5916. <td/>
  5917. <td>ErrorCode</td>
  5918. <td>Error code</td>
  5919. </tr>
  5920. </tbody>
  5921. </table>
  5922. <div id="ltsimagedestroy" class="anchor-wrap">
  5923. <h3>ltsImageDestroy<a class="anchor" href="#ltsimagedestroy">
  5924. <span class="octicon octicon-link"/>
  5925. </a>
  5926. </h3>
  5927. </div>
  5928. <p>Destroy an image object.</p>
  5929. <table>
  5930. <thead>
  5931. <tr>
  5932. <th/>
  5933. <th>Name</th>
  5934. <th>Type</th>
  5935. <th>Description</th>
  5936. </tr>
  5937. </thead>
  5938. <tbody>
  5939. <tr>
  5940. <td>
  5941. <strong>Parameters</strong>
  5942. </td>
  5943. <td>Image</td>
  5944. <td>ImageHandle</td>
  5945. <td>Handle of image to destroy</td>
  5946. </tr>
  5947. <tr>
  5948. <td>
  5949. <strong>Returns</strong>
  5950. </td>
  5951. <td/>
  5952. <td>ErrorCode</td>
  5953. <td>Error code</td>
  5954. </tr>
  5955. </tbody>
  5956. </table>
  5957. <div id="post-processor" class="anchor-wrap">
  5958. <h2>Post Processor<a class="anchor" href="#post-processor">
  5959. <span class="octicon octicon-link"/>
  5960. </a>
  5961. </h2>
  5962. </div>
  5963. <p>Post processor objects are used to manipulate glyph data before it is rendered. You are able to add shadows, borders or something like that.</p>
  5964. <div id="ltspostprocessorfillcolorcreate" class="anchor-wrap">
  5965. <h3>ltsPostProcessorFillColorCreate<a class="anchor" href="#ltspostprocessorfillcolorcreate">
  5966. <span class="octicon octicon-link"/>
  5967. </a>
  5968. </h3>
  5969. </div>
  5970. <p>Create a fill color post processor</p>
  5971. <table>
  5972. <thead>
  5973. <tr>
  5974. <th/>
  5975. <th>Name</th>
  5976. <th>Type</th>
  5977. <th>Description</th>
  5978. </tr>
  5979. </thead>
  5980. <tbody>
  5981. <tr>
  5982. <td>
  5983. <strong>Parameters</strong>
  5984. </td>
  5985. <td>Context</td>
  5986. <td>ContextHandle</td>
  5987. <td>Handle of context to create post processor for</td>
  5988. </tr>
  5989. <tr>
  5990. <td/>
  5991. <td>Color</td>
  5992. <td>Color</td>
  5993. <td>Color to use for fill</td>
  5994. </tr>
  5995. <tr>
  5996. <td/>
  5997. <td>Modes</td>
  5998. <td>ImageModes</td>
  5999. <td>Modes how the action will take effect on</td>
  6000. </tr>
  6001. <tr>
  6002. <td/>
  6003. <td>Channels</td>
  6004. <td>ColorChannels</td>
  6005. <td>Color channels the action will take effect on</td>
  6006. </tr>
  6007. <tr>
  6008. <td>
  6009. <strong>Returns</strong>
  6010. </td>
  6011. <td/>
  6012. <td>PostProcessorHandle</td>
  6013. <td>Handle of created post processor or NULL on failure (Check ltsGetLastErrorCode for more detail)</td>
  6014. </tr>
  6015. </tbody>
  6016. </table>
  6017. <div id="ltspostprocessorfillpatterncreate" class="anchor-wrap">
  6018. <h3>ltsPostProcessorFillPatternCreate<a class="anchor" href="#ltspostprocessorfillpatterncreate">
  6019. <span class="octicon octicon-link"/>
  6020. </a>
  6021. </h3>
  6022. </div>
  6023. <p>Create a fill pattern post processor</p>
  6024. <table>
  6025. <thead>
  6026. <tr>
  6027. <th/>
  6028. <th>Name</th>
  6029. <th>Type</th>
  6030. <th>Description</th>
  6031. </tr>
  6032. </thead>
  6033. <tbody>
  6034. <tr>
  6035. <td>
  6036. <strong>Parameters</strong>
  6037. </td>
  6038. <td>Context</td>
  6039. <td>ContextHandle</td>
  6040. <td>Handle of context to create post processor for</td>
  6041. </tr>
  6042. <tr>
  6043. <td/>
  6044. <td>Pattern</td>
  6045. <td>ImageHandle</td>
  6046. <td>Handle to image to use as pattern</td>
  6047. </tr>
  6048. <tr>
  6049. <td/>
  6050. <td>OwnsPattern</td>
  6051. <td>boolean</td>
  6052. <td>TRUE: Pattern image will be destroyed with post processor; FALSE: Pattern image will not be destroyed</td>
  6053. </tr>
  6054. <tr>
  6055. <td/>
  6056. <td>Position</td>
  6057. <td>Position</td>
  6058. <td>Position the pattern will be placed</td>
  6059. </tr>
  6060. <tr>
  6061. <td/>
  6062. <td>Modes</td>
  6063. <td>ImageModes</td>
  6064. <td>Modes how the action will take effect on</td>
  6065. </tr>
  6066. <tr>
  6067. <td/>
  6068. <td>Channels</td>
  6069. <td>ColorChannels</td>
  6070. <td>Color channels the action will take effect on</td>
  6071. </tr>
  6072. <tr>
  6073. <td>
  6074. <strong>Returns</strong>
  6075. </td>
  6076. <td/>
  6077. <td>PostProcessorHandle</td>
  6078. <td>Handle of created post processor or NULL on failure (Check ltsGetLastErrorCode for more detail)</td>
  6079. </tr>
  6080. </tbody>
  6081. </table>
  6082. <div id="ltspostprocessorbordercreate" class="anchor-wrap">
  6083. <h3>ltsPostProcessorBorderCreate<a class="anchor" href="#ltspostprocessorbordercreate">
  6084. <span class="octicon octicon-link"/>
  6085. </a>
  6086. </h3>
  6087. </div>
  6088. <p>Create a border post processor</p>
  6089. <table>
  6090. <thead>
  6091. <tr>
  6092. <th/>
  6093. <th>Name</th>
  6094. <th>Type</th>
  6095. <th>Description</th>
  6096. </tr>
  6097. </thead>
  6098. <tbody>
  6099. <tr>
  6100. <td>
  6101. <strong>Parameters</strong>
  6102. </td>
  6103. <td>Context</td>
  6104. <td>ContextHandle</td>
  6105. <td>Handle of context to create post processor for</td>
  6106. </tr>
  6107. <tr>
  6108. <td/>
  6109. <td>Width</td>
  6110. <td>float</td>
  6111. <td>Width of the created border</td>
  6112. </tr>
  6113. <tr>
  6114. <td/>
  6115. <td>Strength</td>
  6116. <td>float</td>
  6117. <td>Strength of the created border</td>
  6118. </tr>
  6119. <tr>
  6120. <td/>
  6121. <td>Color</td>
  6122. <td>Color</td>
  6123. <td>Color of the created border</td>
  6124. </tr>
  6125. <tr>
  6126. <td/>
  6127. <td>KeepSize</td>
  6128. <td>boolean</td>
  6129. <td>TRUE: do not resize the glyph image; FALSE: resize the glyph image</td>
  6130. </tr>
  6131. <tr>
  6132. <td>
  6133. <strong>Returns</strong>
  6134. </td>
  6135. <td/>
  6136. <td>PostProcessorHandle</td>
  6137. <td>Handle of created post processor or NULL on failure (Check ltsGetLastErrorCode for more detail)</td>
  6138. </tr>
  6139. </tbody>
  6140. </table>
  6141. <div id="ltspostprocessorshadowcreate" class="anchor-wrap">
  6142. <h3>ltsPostProcessorShadowCreate<a class="anchor" href="#ltspostprocessorshadowcreate">
  6143. <span class="octicon octicon-link"/>
  6144. </a>
  6145. </h3>
  6146. </div>
  6147. <p>Create a shadow post processor</p>
  6148. <table>
  6149. <thead>
  6150. <tr>
  6151. <th/>
  6152. <th>Name</th>
  6153. <th>Type</th>
  6154. <th>Description</th>
  6155. </tr>
  6156. </thead>
  6157. <tbody>
  6158. <tr>
  6159. <td>
  6160. <strong>Parameters</strong>
  6161. </td>
  6162. <td>Context</td>
  6163. <td>ContextHandle</td>
  6164. <td>Handle of context to create post processor for</td>
  6165. </tr>
  6166. <tr>
  6167. <td/>
  6168. <td>Width</td>
  6169. <td>float</td>
  6170. <td>Width of the created shadow</td>
  6171. </tr>
  6172. <tr>
  6173. <td/>
  6174. <td>Strength</td>
  6175. <td>float</td>
  6176. <td>Strength of the created shadow</td>
  6177. </tr>
  6178. <tr>
  6179. <td/>
  6180. <td>Offset</td>
  6181. <td>Position</td>
  6182. <td>Offset of the created shadow</td>
  6183. </tr>
  6184. <tr>
  6185. <td/>
  6186. <td>Color</td>
  6187. <td>Color</td>
  6188. <td>Color of the created shadow</td>
  6189. </tr>
  6190. <tr>
  6191. <td>
  6192. <strong>Returns</strong>
  6193. </td>
  6194. <td/>
  6195. <td>PostProcessorHandle</td>
  6196. <td>Handle of created post processor or NULL on failure (Check ltsGetLastErrorCode for more detail)</td>
  6197. </tr>
  6198. </tbody>
  6199. </table>
  6200. <div id="ltspostprocessorcustomcreate" class="anchor-wrap">
  6201. <h3>ltsPostProcessorCustomCreate<a class="anchor" href="#ltspostprocessorcustomcreate">
  6202. <span class="octicon octicon-link"/>
  6203. </a>
  6204. </h3>
  6205. </div>
  6206. <p>Create a custom post processor</p>
  6207. <table>
  6208. <thead>
  6209. <tr>
  6210. <th/>
  6211. <th>Name</th>
  6212. <th>Type</th>
  6213. <th>Description</th>
  6214. </tr>
  6215. </thead>
  6216. <tbody>
  6217. <tr>
  6218. <td>
  6219. <strong>Parameters</strong>
  6220. </td>
  6221. <td>Context</td>
  6222. <td>ContextHandle</td>
  6223. <td>Handle of context to create post processor for</td>
  6224. </tr>
  6225. <tr>
  6226. <td/>
  6227. <td>Data</td>
  6228. <td>CustomPostProcessorData*</td>
  6229. <td>libTextSuite custom post processor interface</td>
  6230. </tr>
  6231. <tr>
  6232. <td>
  6233. <strong>Returns</strong>
  6234. </td>
  6235. <td/>
  6236. <td>PostProcessorHandle</td>
  6237. <td>Handle of created post processor or NULL on failure (Check ltsGetLastErrorCode for more detail)</td>
  6238. </tr>
  6239. </tbody>
  6240. </table>
  6241. <div id="ltspostprocessoraddrange" class="anchor-wrap">
  6242. <h3>ltsPostProcessorAddRange<a class="anchor" href="#ltspostprocessoraddrange">
  6243. <span class="octicon octicon-link"/>
  6244. </a>
  6245. </h3>
  6246. </div>
  6247. <p>Add range of characters the post processor will take effect on.</p>
  6248. <table>
  6249. <thead>
  6250. <tr>
  6251. <th/>
  6252. <th>Name</th>
  6253. <th>Type</th>
  6254. <th>Description</th>
  6255. </tr>
  6256. </thead>
  6257. <tbody>
  6258. <tr>
  6259. <td>
  6260. <strong>Parameters</strong>
  6261. </td>
  6262. <td>PostProcessor</td>
  6263. <td>PostProcessorHandle</td>
  6264. <td>Handle of post processor to add char range to</td>
  6265. </tr>
  6266. <tr>
  6267. <td/>
  6268. <td>Usage</td>
  6269. <td>RangeUsage</td>
  6270. <td>Usage of the passed char range</td>
  6271. </tr>
  6272. <tr>
  6273. <td/>
  6274. <td>Start</td>
  6275. <td>WideChar</td>
  6276. <td>First char of range</td>
  6277. </tr>
  6278. <tr>
  6279. <td/>
  6280. <td>Stop</td>
  6281. <td>WideChar</td>
  6282. <td>Last char of range</td>
  6283. </tr>
  6284. <tr>
  6285. <td>
  6286. <strong>Returns</strong>
  6287. </td>
  6288. <td/>
  6289. <td>ErrorCode</td>
  6290. <td>Error code</td>
  6291. </tr>
  6292. </tbody>
  6293. </table>
  6294. <div id="ltspostprocessoraddchars" class="anchor-wrap">
  6295. <h3>ltsPostProcessorAddChars<a class="anchor" href="#ltspostprocessoraddchars">
  6296. <span class="octicon octicon-link"/>
  6297. </a>
  6298. </h3>
  6299. </div>
  6300. <p>Add characters the post processor will take effect on.</p>
  6301. <table>
  6302. <thead>
  6303. <tr>
  6304. <th/>
  6305. <th>Name</th>
  6306. <th>Type</th>
  6307. <th>Description</th>
  6308. </tr>
  6309. </thead>
  6310. <tbody>
  6311. <tr>
  6312. <td>
  6313. <strong>Parameters</strong>
  6314. </td>
  6315. <td>PostProcessor</td>
  6316. <td>PostProcessorHandle</td>
  6317. <td>Handle of post processor to add chars to</td>
  6318. </tr>
  6319. <tr>
  6320. <td/>
  6321. <td>Usage</td>
  6322. <td>RangeUsage</td>
  6323. <td>Usage of the passed char range</td>
  6324. </tr>
  6325. <tr>
  6326. <td/>
  6327. <td>Chars</td>
  6328. <td>WideString</td>
  6329. <td>Characters to add</td>
  6330. </tr>
  6331. <tr>
  6332. <td>
  6333. <strong>Returns</strong>
  6334. </td>
  6335. <td/>
  6336. <td>ErrorCode</td>
  6337. <td>Error code</td>
  6338. </tr>
  6339. </tbody>
  6340. </table>
  6341. <div id="ltspostprocessorclearranges" class="anchor-wrap">
  6342. <h3>ltsPostProcessorClearRanges<a class="anchor" href="#ltspostprocessorclearranges">
  6343. <span class="octicon octicon-link"/>
  6344. </a>
  6345. </h3>
  6346. </div>
  6347. <p>Clear all character defines of a post processor.</p>
  6348. <table>
  6349. <thead>
  6350. <tr>
  6351. <th/>
  6352. <th>Name</th>
  6353. <th>Type</th>
  6354. <th>Description</th>
  6355. </tr>
  6356. </thead>
  6357. <tbody>
  6358. <tr>
  6359. <td>
  6360. <strong>Parameters</strong>
  6361. </td>
  6362. <td>PostProcessor</td>
  6363. <td>PostProcessorHandle</td>
  6364. <td>Handle of post processor to clear</td>
  6365. </tr>
  6366. <tr>
  6367. <td>
  6368. <strong>Returns</strong>
  6369. </td>
  6370. <td/>
  6371. <td>ErrorCode</td>
  6372. <td>Error code</td>
  6373. </tr>
  6374. </tbody>
  6375. </table>
  6376. <div id="ltspostprocessorexecute" class="anchor-wrap">
  6377. <h3>ltsPostProcessorExecute<a class="anchor" href="#ltspostprocessorexecute">
  6378. <span class="octicon octicon-link"/>
  6379. </a>
  6380. </h3>
  6381. </div>
  6382. <p>Execute the post processor.</p>
  6383. <table>
  6384. <thead>
  6385. <tr>
  6386. <th/>
  6387. <th>Name</th>
  6388. <th>Type</th>
  6389. <th>Description</th>
  6390. </tr>
  6391. </thead>
  6392. <tbody>
  6393. <tr>
  6394. <td>
  6395. <strong>Parameters</strong>
  6396. </td>
  6397. <td>PostProcessor</td>
  6398. <td>PostProcessorHandle</td>
  6399. <td>Handle of post processor to execute</td>
  6400. </tr>
  6401. <tr>
  6402. <td/>
  6403. <td>Char</td>
  6404. <td>CharHandle</td>
  6405. <td>Handle of char to execute the post processor on</td>
  6406. </tr>
  6407. <tr>
  6408. <td/>
  6409. <td>Image</td>
  6410. <td>ImageHandle</td>
  6411. <td>Handle of image to execute the post processor on</td>
  6412. </tr>
  6413. <tr>
  6414. <td>
  6415. <strong>Returns</strong>
  6416. </td>
  6417. <td/>
  6418. <td>ErrorCode</td>
  6419. <td>Error code</td>
  6420. </tr>
  6421. </tbody>
  6422. </table>
  6423. <div id="ltspostprocessordestroy" class="anchor-wrap">
  6424. <h3>ltsPostProcessorDestroy<a class="anchor" href="#ltspostprocessordestroy">
  6425. <span class="octicon octicon-link"/>
  6426. </a>
  6427. </h3>
  6428. </div>
  6429. <p>Destroy a post processor object.</p>
  6430. <table>
  6431. <thead>
  6432. <tr>
  6433. <th/>
  6434. <th>Name</th>
  6435. <th>Type</th>
  6436. <th>Description</th>
  6437. </tr>
  6438. </thead>
  6439. <tbody>
  6440. <tr>
  6441. <td>
  6442. <strong>Parameters</strong>
  6443. </td>
  6444. <td>PostProcessor</td>
  6445. <td>PostProcessorHandle</td>
  6446. <td>Handle of post processor to destroy</td>
  6447. </tr>
  6448. <tr>
  6449. <td>
  6450. <strong>Returns</strong>
  6451. </td>
  6452. <td/>
  6453. <td>ErrorCode</td>
  6454. <td>Error code</td>
  6455. </tr>
  6456. </tbody>
  6457. </table>
  6458. <div id="char" class="anchor-wrap">
  6459. <h2>Char<a class="anchor" href="#char">
  6460. <span class="octicon octicon-link"/>
  6461. </a>
  6462. </h2>
  6463. </div>
  6464. <p>Char objects are used to store the size of a glyph. The data can be manipulated using a post processor.</p>
  6465. <div id="ltschargetcharcode" class="anchor-wrap">
  6466. <h3>ltsCharGetCharCode<a class="anchor" href="#ltschargetcharcode">
  6467. <span class="octicon octicon-link"/>
  6468. </a>
  6469. </h3>
  6470. </div>
  6471. <p>Get the char code the char object is assigned to.</p>
  6472. <table>
  6473. <thead>
  6474. <tr>
  6475. <th/>
  6476. <th>Name</th>
  6477. <th>Type</th>
  6478. <th>Description</th>
  6479. </tr>
  6480. </thead>
  6481. <tbody>
  6482. <tr>
  6483. <td>
  6484. <strong>Parameters</strong>
  6485. </td>
  6486. <td>Char</td>
  6487. <td>CharHandle</td>
  6488. <td>Handle to char to get char code for</td>
  6489. </tr>
  6490. <tr>
  6491. <td/>
  6492. <td>Value</td>
  6493. <td>WideChar*</td>
  6494. <td>Char code of the char object is assigned to</td>
  6495. </tr>
  6496. <tr>
  6497. <td>
  6498. <strong>Returns</strong>
  6499. </td>
  6500. <td/>
  6501. <td>ErrorCode</td>
  6502. <td>Error code</td>
  6503. </tr>
  6504. </tbody>
  6505. </table>
  6506. <div id="ltschargetglyphmetric" class="anchor-wrap">
  6507. <h3>ltsCharGetGlyphMetric<a class="anchor" href="#ltschargetglyphmetric">
  6508. <span class="octicon octicon-link"/>
  6509. </a>
  6510. </h3>
  6511. </div>
  6512. <p>Get the glyph metric of a char.</p>
  6513. <table>
  6514. <thead>
  6515. <tr>
  6516. <th/>
  6517. <th>Name</th>
  6518. <th>Type</th>
  6519. <th>Description</th>
  6520. </tr>
  6521. </thead>
  6522. <tbody>
  6523. <tr>
  6524. <td>
  6525. <strong>Parameters</strong>
  6526. </td>
  6527. <td>Char</td>
  6528. <td>CharHandle</td>
  6529. <td>Handle to char to get glyph metric for</td>
  6530. </tr>
  6531. <tr>
  6532. <td/>
  6533. <td>Value</td>
  6534. <td>GlyphMetric*</td>
  6535. <td>Glyph metric of the char object</td>
  6536. </tr>
  6537. <tr>
  6538. <td>
  6539. <strong>Returns</strong>
  6540. </td>
  6541. <td/>
  6542. <td>ErrorCode</td>
  6543. <td>Error code</td>
  6544. </tr>
  6545. </tbody>
  6546. </table>
  6547. <div id="ltscharsetglyphmetric" class="anchor-wrap">
  6548. <h3>ltsCharSetGlyphMetric<a class="anchor" href="#ltscharsetglyphmetric">
  6549. <span class="octicon octicon-link"/>
  6550. </a>
  6551. </h3>
  6552. </div>
  6553. <p>Set the glyph metric of a char.</p>
  6554. <table>
  6555. <thead>
  6556. <tr>
  6557. <th/>
  6558. <th>Name</th>
  6559. <th>Type</th>
  6560. <th>Description</th>
  6561. </tr>
  6562. </thead>
  6563. <tbody>
  6564. <tr>
  6565. <td>
  6566. <strong>Parameters</strong>
  6567. </td>
  6568. <td>Char</td>
  6569. <td>CharHandle</td>
  6570. <td>Handle to char to get glyph metric for</td>
  6571. </tr>
  6572. <tr>
  6573. <td/>
  6574. <td>Value</td>
  6575. <td>GlyphMetric*</td>
  6576. <td>New glyph metric</td>
  6577. </tr>
  6578. <tr>
  6579. <td>
  6580. <strong>Returns</strong>
  6581. </td>
  6582. <td/>
  6583. <td>ErrorCode</td>
  6584. <td>Error code</td>
  6585. </tr>
  6586. </tbody>
  6587. </table>
  6588. </div>
  6589. </body>
  6590. </html>