All positions in hb_glyph_position_t are relative to the current point.
struct hb_glyph_position_t {
hb_position_t x_advance;
hb_position_t y_advance;
hb_position_t x_offset;
hb_position_t y_offset;
hb_var_int_t var;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | hb_glyph_position_t.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VAR
The struct member offsets. |
| public static final int | X_ADVANCE
The struct member offsets. |
| public static final int | X_OFFSET
The struct member offsets. |
| public static final int | Y_ADVANCE
The struct member offsets. |
| public static final int | Y_OFFSET
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | hb_glyph_position_t(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static hb_glyph_position_t | |
| public static hb_glyph_position_t. | calloc(int
the buffer capacity capacity)Returns a new |
| public static hb_glyph_position_t | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static hb_glyph_position_t. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected hb_glyph_position_t | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static hb_glyph_position_t | |
| public static hb_glyph_position_t | |
| public static hb_glyph_position_t. | create(int
the buffer capacity capacity)Returns a new |
| public static hb_glyph_position_t. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static hb_glyph_position_t | |
| public static hb_glyph_position_t. | |
| public static hb_glyph_position_t | |
| public static hb_glyph_position_t. | malloc(int
the buffer capacity capacity)Returns a new |
| public static hb_glyph_position_t | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static hb_glyph_position_t. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static hb_var_int_t | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public hb_glyph_position_t | set(int x_advance, int y_advance, int x_offset, int y_offset)
Initializes this struct with the specified values. |
| public hb_glyph_position_t | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | x_advance()
how much the line advances after drawing this glyph when setting text in horizontal direction |
| public hb_glyph_position_t | |
| public int | x_offset()
how much the glyph moves on the X-axis before drawing it, this should not affect how much the line advances |
| public hb_glyph_position_t | |
| public int | y_advance()
how much the line advances after drawing this glyph when setting text in vertical direction |
| public hb_glyph_position_t | |
| public int | y_offset()
how much the glyph moves on the Y-axis before drawing it, this should not affect how much the line advances. |
| public hb_glyph_position_t |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VAR | back to summary |
|---|---|
| public static final int VAR The struct member offsets. | |
| X_ADVANCE | back to summary |
|---|---|
| public static final int X_ADVANCE The struct member offsets. | |
| X_OFFSET | back to summary |
|---|---|
| public static final int X_OFFSET The struct member offsets. | |
| Y_ADVANCE | back to summary |
|---|---|
| public static final int Y_ADVANCE The struct member offsets. | |
| Y_OFFSET | back to summary |
|---|---|
| public static final int Y_OFFSET The struct member offsets. | |
| hb_glyph_position_t | back to summary |
|---|---|
| protected hb_glyph_position_t(long address, ByteBuffer container) | |
| hb_glyph_position_t | back to summary |
|---|---|
| public hb_glyph_position_t(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static hb_glyph_position_t calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static hb_glyph_position_t. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static hb_glyph_position_t calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static hb_glyph_position_t. Returns a new
| |
| create | back to summary |
|---|---|
| protected hb_glyph_position_t create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static hb_glyph_position_t create() Returns a new | |
| create | back to summary |
|---|---|
| public static hb_glyph_position_t create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static hb_glyph_position_t. Returns a new
| |
| create | back to summary |
|---|---|
| public static hb_glyph_position_t. Create a
| |
| createSafe | back to summary |
|---|---|
| public static hb_glyph_position_t createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static hb_glyph_position_t. Like
| |
| malloc | back to summary |
|---|---|
| public static hb_glyph_position_t malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static hb_glyph_position_t. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static hb_glyph_position_t malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static hb_glyph_position_t. Returns a new
| |
| nvar | back to summary |
|---|---|
| public static hb_var_int_t nvar(long struct) | |
| nvar | back to summary |
|---|---|
| public static void nvar(long struct, hb_var_int_t value) | |
| nx_advance | back to summary |
|---|---|
| public static int nx_advance(long struct) Unsafe version of | |
| nx_advance | back to summary |
|---|---|
| public static void nx_advance(long struct, int value) Unsafe version of | |
| nx_offset | back to summary |
|---|---|
| public static int nx_offset(long struct) Unsafe version of | |
| nx_offset | back to summary |
|---|---|
| public static void nx_offset(long struct, int value) Unsafe version of | |
| ny_advance | back to summary |
|---|---|
| public static int ny_advance(long struct) Unsafe version of | |
| ny_advance | back to summary |
|---|---|
| public static void ny_advance(long struct, int value) Unsafe version of | |
| ny_offset | back to summary |
|---|---|
| public static int ny_offset(long struct) Unsafe version of | |
| ny_offset | back to summary |
|---|---|
| public static void ny_offset(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public hb_glyph_position_t set(int x_advance, int y_advance, int x_offset, int y_offset) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public hb_glyph_position_t set(hb_glyph_position_t src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| x_advance | back to summary |
|---|---|
| public int x_advance() how much the line advances after drawing this glyph when setting text in horizontal direction
| |
| x_advance | back to summary |
|---|---|
| public hb_glyph_position_t x_advance(int value) Sets the specified value to the | |
| x_offset | back to summary |
|---|---|
| public int x_offset() how much the glyph moves on the X-axis before drawing it, this should not affect how much the line advances
| |
| x_offset | back to summary |
|---|---|
| public hb_glyph_position_t x_offset(int value) Sets the specified value to the | |
| y_advance | back to summary |
|---|---|
| public int y_advance() how much the line advances after drawing this glyph when setting text in vertical direction
| |
| y_advance | back to summary |
|---|---|
| public hb_glyph_position_t y_advance(int value) Sets the specified value to the | |
| y_offset | back to summary |
|---|---|
| public int y_offset() how much the glyph moves on the Y-axis before drawing it, this should not affect how much the line advances.
| |
| y_offset | back to summary |
|---|---|
| public hb_glyph_position_t y_offset(int value) Sets the specified value to the | |
hb_glyph_position_t structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final hb_glyph_position_t |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected hb_glyph_position_t | |
| protected hb_glyph_position_t. | |
| public int | |
| public hb_glyph_position_t. | |
| public int | |
| public hb_glyph_position_t. | |
| public int | |
| public hb_glyph_position_t. | |
| public int | |
| public hb_glyph_position_t. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final hb_glyph_position_t ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected hb_glyph_position_t getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected hb_glyph_position_t. Implements abstract org.
| |
| x_advance | back to summary |
|---|---|
public int x_advance()
| |
| x_advance | back to summary |
|---|---|
| public hb_glyph_position_t. Sets the specified value to the | |
| x_offset | back to summary |
|---|---|
public int x_offset()
| |
| x_offset | back to summary |
|---|---|
| public hb_glyph_position_t. Sets the specified value to the | |
| y_advance | back to summary |
|---|---|
public int y_advance()
| |
| y_advance | back to summary |
|---|---|
| public hb_glyph_position_t. Sets the specified value to the | |
| y_offset | back to summary |
|---|---|
public int y_offset()
| |
| y_offset | back to summary |
|---|---|
| public hb_glyph_position_t. Sets the specified value to the | |