Package org.lwjgl.util.freetype
Class PS_FontInfo
- All Implemented Interfaces:
Pointer
struct PS_FontInfoRec {
FT_String * version;
FT_String * notice;
FT_String * full_name;
FT_String * family_name;
FT_String * weight;
FT_Long italic_angle;
FT_Bool is_fixed_pitch;
FT_Short underline_position;
FT_UShort underline_thickness;
}-
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 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
ConstructorsConstructorDescriptionPS_FontInfo(ByteBuffer container) Creates aPS_FontInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic PS_FontInfocreate(long address) Returns a newPS_FontInfoinstance for the specified memory address.static PS_FontInfo.Buffercreate(long address, int capacity) Create aPS_FontInfo.Bufferinstance at the specified memory.static @Nullable PS_FontInfocreateSafe(long address) static @Nullable PS_FontInfo.BuffercreateSafe(long address, int capacity) booleanlongstatic ByteBuffernfamily_name(long struct) Unsafe version offamily_name().static Stringnfamily_nameString(long struct) Unsafe version offamily_nameString().static ByteBuffernfull_name(long struct) Unsafe version offull_name().static Stringnfull_nameString(long struct) Unsafe version offull_nameString().static booleannis_fixed_pitch(long struct) Unsafe version ofis_fixed_pitch().static longnitalic_angle(long struct) Unsafe version ofitalic_angle().static ByteBuffernnotice(long struct) Unsafe version ofnotice().static StringnnoticeString(long struct) Unsafe version ofnoticeString().notice()static shortnunderline_position(long struct) Unsafe version ofunderline_position().static shortnunderline_thickness(long struct) Unsafe version ofunderline_thickness().static ByteBuffernversion(long struct) Unsafe version ofversion().static StringnversionString(long struct) Unsafe version ofversionString().static ByteBuffernweight(long struct) Unsafe version ofweight().static StringnweightString(long struct) Unsafe version ofweightString().intsizeof()Returnssizeof(struct).shortshortversion()weight()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. -
VERSION
public static final int VERSIONThe struct member offsets. -
NOTICE
public static final int NOTICEThe struct member offsets. -
FULL_NAME
public static final int FULL_NAMEThe struct member offsets. -
FAMILY_NAME
public static final int FAMILY_NAMEThe struct member offsets. -
WEIGHT
public static final int WEIGHTThe struct member offsets. -
ITALIC_ANGLE
public static final int ITALIC_ANGLEThe struct member offsets. -
IS_FIXED_PITCH
public static final int IS_FIXED_PITCHThe struct member offsets. -
UNDERLINE_POSITION
public static final int UNDERLINE_POSITIONThe struct member offsets. -
UNDERLINE_THICKNESS
public static final int UNDERLINE_THICKNESSThe struct member offsets.
-
-
Constructor Details
-
PS_FontInfo
Creates aPS_FontInfoinstance 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).- Specified by:
sizeofin classStruct<PS_FontInfo>
-
version
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theversionfield.
-
versionString
- Returns:
- the null-terminated string pointed to by the
versionfield.
-
notice
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenoticefield.
-
noticeString
- Returns:
- the null-terminated string pointed to by the
noticefield.
-
full_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thefull_namefield.
-
full_nameString
- Returns:
- the null-terminated string pointed to by the
full_namefield.
-
family_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thefamily_namefield.
-
family_nameString
- Returns:
- the null-terminated string pointed to by the
family_namefield.
-
weight
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theweightfield.
-
weightString
- Returns:
- the null-terminated string pointed to by the
weightfield.
-
italic_angle
public long italic_angle()- Returns:
- the value of the
italic_anglefield.
-
is_fixed_pitch
public boolean is_fixed_pitch()- Returns:
- the value of the
is_fixed_pitchfield.
-
underline_position
public short underline_position()- Returns:
- the value of the
underline_positionfield.
-
underline_thickness
public short underline_thickness()- Returns:
- the value of the
underline_thicknessfield.
-
create
Returns a newPS_FontInfoinstance for the specified memory address. -
createSafe
-
create
Create aPS_FontInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nversion
Unsafe version ofversion(). -
nversionString
Unsafe version ofversionString(). -
nnotice
Unsafe version ofnotice(). -
nnoticeString
Unsafe version ofnoticeString(). -
nfull_name
Unsafe version offull_name(). -
nfull_nameString
Unsafe version offull_nameString(). -
nfamily_name
Unsafe version offamily_name(). -
nfamily_nameString
Unsafe version offamily_nameString(). -
nweight
Unsafe version ofweight(). -
nweightString
Unsafe version ofweightString(). -
nitalic_angle
public static long nitalic_angle(long struct) Unsafe version ofitalic_angle(). -
nis_fixed_pitch
public static boolean nis_fixed_pitch(long struct) Unsafe version ofis_fixed_pitch(). -
nunderline_position
public static short nunderline_position(long struct) Unsafe version ofunderline_position(). -
nunderline_thickness
public static short nunderline_thickness(long struct) Unsafe version ofunderline_thickness().
-