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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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_SBitinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbuffer(int capacity) static FTC_SBitcreate(long address) Returns a newFTC_SBitinstance for the specified memory address.static FTC_SBit.Buffercreate(long address, int capacity) Create aFTC_SBit.Bufferinstance at the specified memory.static @Nullable FTC_SBitcreateSafe(long address) static @Nullable FTC_SBit.BuffercreateSafe(long address, int capacity) byteformat()byteheight()byteleft()bytestatic ByteBuffernbuffer(long struct, int capacity) Unsafe version ofbuffer.static bytenformat(long struct) Unsafe version offormat().static bytenheight(long struct) Unsafe version ofheight().static bytenleft(long struct) Unsafe version ofleft().static bytenmax_grays(long struct) Unsafe version ofmax_grays().static shortnpitch(long struct) Unsafe version ofpitch().static bytentop(long struct) Unsafe version oftop().static bytenwidth(long struct) Unsafe version ofwidth().static bytenxadvance(long struct) Unsafe version ofxadvance().static bytenyadvance(long struct) Unsafe version ofyadvance().shortpitch()intsizeof()Returnssizeof(struct).bytetop()bytewidth()bytexadvance()byteyadvance()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_SBitinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct). -
width
public byte width()- Returns:
- the value of the
widthfield.
-
height
public byte height()- Returns:
- the value of the
heightfield.
-
left
public byte left()- Returns:
- the value of the
leftfield.
-
top
public byte top()- Returns:
- the value of the
topfield.
-
format
public byte format()- Returns:
- the value of the
formatfield.
-
max_grays
public byte max_grays()- Returns:
- the value of the
max_graysfield.
-
pitch
public short pitch()- Returns:
- the value of the
pitchfield.
-
xadvance
public byte xadvance()- Returns:
- the value of the
xadvancefield.
-
yadvance
public byte yadvance()- Returns:
- the value of the
yadvancefield.
-
buffer
- Returns:
- a
ByteBufferview of the data pointed to by thebufferfield.
-
create
Returns a newFTC_SBitinstance for the specified memory address. -
createSafe
-
create
Create aFTC_SBit.Bufferinstance 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.
-