Jnlib layout files are used to define positions of elements on the screen. These files are BNCL, BNBL, and BNLL. They share a common header and coordinate structure. The header of these files is structured as:
Offset | Type | Meaning |
---|---|---|
0x00 | char[4] | File signature as a 4-character tag. |
0x04 | u16 | File format version. |
0x06 | u16 | Number of entries. |
Jnlib layout files use a common structure for storing coordinates. This allows for storing a coordinate relative to one of 9 points on the layout element. These take the following structure:
AA OO XXXXXXXXXXXX | | | | | +----------- The coordinate as a signed 12-bit integer. | +-------------- The origin. Can be 0 (left/top), 1 (center), or 2 (right/bottom). +----------------- Text alignment. Can be 0 (left), 1 (center), or 2 (right).
The text alignment field is only used for rendering text elements, and is ignored for other kinds of file.
The origin position sets the position of the layout element with respect to one of 9 points on the element. These points are illustrated below:
![]() |
Add new attachment
Only authorized users are allowed to upload new attachments.
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
png |
image_2024-05-01_212804849.png | 2.5 kB | 1 | 01-May-2024 21:28 | Garhoogin | jnlib origin position diagram |
«
This page (revision-3) was last changed on 22-Jan-2025 20:15 by Garhoogin
JSPWiki v2.10.4