Package org.lwjgl.util.freetype
Class FTC_SBit
- All Implemented Interfaces:
Pointer
struct FTC_SBitRec {
FT_Byte width;
FT_Byte height;
FT_Char left;
FT_Char top;
FT_Byte format;
FT_Byte max_grays;
FT_Short pitch;
FT_Char xadvance;
FT_Char yadvance;
FT_Byte * buffer;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFTC_SBit
(ByteBuffer container) Creates aFTC_SBit
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbuffer
(int capacity) static FTC_SBit
create
(long address) Returns a newFTC_SBit
instance for the specified memory address.static FTC_SBit.Buffer
create
(long address, int capacity) Create aFTC_SBit.Buffer
instance at the specified memory.static @Nullable FTC_SBit
createSafe
(long address) static @Nullable FTC_SBit.Buffer
createSafe
(long address, int capacity) byte
format()
byte
height()
byte
left()
byte
static ByteBuffer
nbuffer
(long struct, int capacity) Unsafe version ofbuffer
.static byte
nformat
(long struct) Unsafe version offormat()
.static byte
nheight
(long struct) Unsafe version ofheight()
.static byte
nleft
(long struct) Unsafe version ofleft()
.static byte
nmax_grays
(long struct) Unsafe version ofmax_grays()
.static short
npitch
(long struct) Unsafe version ofpitch()
.static byte
ntop
(long struct) Unsafe version oftop()
.static byte
nwidth
(long struct) Unsafe version ofwidth()
.static byte
nxadvance
(long struct) Unsafe version ofxadvance()
.static byte
nyadvance
(long struct) Unsafe version ofyadvance()
.short
pitch()
int
sizeof()
Returnssizeof(struct)
.byte
top()
byte
width()
byte
xadvance()
byte
yadvance()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
LEFT
public static final int LEFTThe struct member offsets. -
TOP
public static final int TOPThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
MAX_GRAYS
public static final int MAX_GRAYSThe struct member offsets. -
PITCH
public static final int PITCHThe struct member offsets. -
XADVANCE
public static final int XADVANCEThe struct member offsets. -
YADVANCE
public static final int YADVANCEThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets.
-
-
Constructor Details
-
FTC_SBit
Creates aFTC_SBit
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
width
public byte width()- Returns:
- the value of the
width
field.
-
height
public byte height()- Returns:
- the value of the
height
field.
-
left
public byte left()- Returns:
- the value of the
left
field.
-
top
public byte top()- Returns:
- the value of the
top
field.
-
format
public byte format()- Returns:
- the value of the
format
field.
-
max_grays
public byte max_grays()- Returns:
- the value of the
max_grays
field.
-
pitch
public short pitch()- Returns:
- the value of the
pitch
field.
-
xadvance
public byte xadvance()- Returns:
- the value of the
xadvance
field.
-
yadvance
public byte yadvance()- Returns:
- the value of the
yadvance
field.
-
buffer
- Returns:
- a
ByteBuffer
view of the data pointed to by thebuffer
field.
-
create
Returns a newFTC_SBit
instance for the specified memory address. -
createSafe
-
create
Create aFTC_SBit.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nwidth
public static byte nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static byte nheight(long struct) Unsafe version ofheight()
. -
nleft
public static byte nleft(long struct) Unsafe version ofleft()
. -
ntop
public static byte ntop(long struct) Unsafe version oftop()
. -
nformat
public static byte nformat(long struct) Unsafe version offormat()
. -
nmax_grays
public static byte nmax_grays(long struct) Unsafe version ofmax_grays()
. -
npitch
public static short npitch(long struct) Unsafe version ofpitch()
. -
nxadvance
public static byte nxadvance(long struct) Unsafe version ofxadvance()
. -
nyadvance
public static byte nyadvance(long struct) Unsafe version ofyadvance()
. -
nbuffer
Unsafe version ofbuffer
.
-