examples: reduce C. prefix usage, rename fontstash enums (#14011)

This commit is contained in:
Larpon 2022-04-11 21:23:06 +02:00 committed by GitHub
parent cb969e0934
commit 07207db998
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 87 additions and 75 deletions

View file

@ -178,7 +178,17 @@ pub fn (s &Context) set_blur(blur f32) {
// See also: clear_state
[inline]
pub fn (s &Context) set_align(align int) {
C.fonsSetAlign(s, align)
C.fonsSetAlign(s, int(align))
}
// set_alignment sets the font aligning to the `align` flags.
//
// See also: push_state
// See also: pop_state
// See also: clear_state
[inline]
pub fn (s &Context) set_alignment(align Align) {
C.fonsSetAlign(s, int(align))
}
// set_font sets the font used for this render on the active state.