mirror of
https://github.com/odin-lang/Odin.git
synced 2026-11-05 02:03:16 -05:00
54 lines
2.2 KiB
Odin
54 lines
2.2 KiB
Odin
// Generated by core/sys/android/_gen/generate.py from the Android NDK headers. DO NOT EDIT.
|
|
// Source: <android/font.h>, <android/font_matcher.h>, <android/system_fonts.h> (NDK r30, 30.0.16248370)
|
|
#+build linux
|
|
package android
|
|
|
|
import "core:c"
|
|
|
|
foreign import libandroid "system:android"
|
|
|
|
AFONT_WEIGHT_MIN :: 0
|
|
AFONT_WEIGHT_THIN :: 100
|
|
AFONT_WEIGHT_EXTRA_LIGHT :: 200
|
|
AFONT_WEIGHT_LIGHT :: 300
|
|
AFONT_WEIGHT_NORMAL :: 400
|
|
AFONT_WEIGHT_MEDIUM :: 500
|
|
AFONT_WEIGHT_SEMI_BOLD :: 600
|
|
AFONT_WEIGHT_BOLD :: 700
|
|
AFONT_WEIGHT_EXTRA_BOLD :: 800
|
|
AFONT_WEIGHT_BLACK :: 900
|
|
AFONT_WEIGHT_MAX :: 1000
|
|
|
|
AFont :: struct {}
|
|
|
|
AFamilyVariant :: enum i32 {
|
|
DEFAULT = 0,
|
|
COMPACT = 1,
|
|
ELEGANT = 2,
|
|
}
|
|
|
|
AFontMatcher :: struct {}
|
|
ASystemFontIterator :: struct {}
|
|
|
|
@(default_calling_convention="c")
|
|
foreign libandroid {
|
|
AFont_close :: proc(font: ^AFont) ---
|
|
AFont_getFontFilePath :: proc(font: ^AFont) -> cstring ---
|
|
AFont_getWeight :: proc(font: ^AFont) -> u16 ---
|
|
AFont_isItalic :: proc(font: ^AFont) -> bool ---
|
|
AFont_getLocale :: proc(font: ^AFont) -> cstring ---
|
|
AFont_getCollectionIndex :: proc(font: ^AFont) -> c.size_t ---
|
|
AFont_getAxisCount :: proc(font: ^AFont) -> c.size_t ---
|
|
AFont_getAxisTag :: proc(font: ^AFont, axisIndex: u32) -> u32 ---
|
|
AFont_getAxisValue :: proc(font: ^AFont, axisIndex: u32) -> f32 ---
|
|
AFontMatcher_create :: proc() -> ^AFontMatcher ---
|
|
AFontMatcher_destroy :: proc(matcher: ^AFontMatcher) ---
|
|
AFontMatcher_setStyle :: proc(matcher: ^AFontMatcher, weight: u16, italic: bool) ---
|
|
AFontMatcher_setLocales :: proc(matcher: ^AFontMatcher, languageTags: cstring) ---
|
|
AFontMatcher_setFamilyVariant :: proc(matcher: ^AFontMatcher, familyVariant: AFamilyVariant) ---
|
|
AFontMatcher_match :: proc(matcher: ^AFontMatcher, familyName: cstring, text: ^u16, textLength: u32, runLengthOut: ^u32) -> ^AFont ---
|
|
ASystemFontIterator_open :: proc() -> ^ASystemFontIterator ---
|
|
ASystemFontIterator_close :: proc(iterator: ^ASystemFontIterator) ---
|
|
ASystemFontIterator_next :: proc(iterator: ^ASystemFontIterator) -> ^AFont ---
|
|
}
|