mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples: reduce C. prefix usage, rename fontstash enums (#14011)
This commit is contained in:
parent
cb969e0934
commit
07207db998
5 changed files with 87 additions and 75 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue