gg: minor fixes
parent
0ed8199da2
commit
48f1f814d2
|
@ -73,7 +73,6 @@ fn main() {
|
||||||
window_title: 'Empty window'
|
window_title: 'Empty window'
|
||||||
user_data: app
|
user_data: app
|
||||||
bg_color: bg_color
|
bg_color: bg_color
|
||||||
init_fn: init_gui
|
|
||||||
frame_fn: frame
|
frame_fn: frame
|
||||||
font_path: os.resource_abs_path('../assets/fonts/RobotoMono-Regular.ttf')
|
font_path: os.resource_abs_path('../assets/fonts/RobotoMono-Regular.ttf')
|
||||||
//window_user_ptr: ctx
|
//window_user_ptr: ctx
|
||||||
|
|
|
@ -11,7 +11,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
pub struct FT {
|
pub struct FT {
|
||||||
pub:
|
pub:
|
||||||
fons &C.FONScontext
|
fons &C.FONScontext
|
||||||
|
|
||||||
font_normal int
|
font_normal int
|
||||||
|
@ -84,15 +84,15 @@ pub fn (ft &FT) flush(){
|
||||||
sfons.flush(ft.fons)
|
sfons.flush(ft.fons)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (ft &FT) text_width(s string) int {
|
pub fn (ft &Context) text_width(s string) int {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (ft &FT) text_height(s string) int {
|
pub fn (ft &Context) text_height(s string) int {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (ft &FT) text_size(s string) (int, int) {
|
pub fn (ft &Context) text_size(s string) (int, int) {
|
||||||
return 0,0
|
return 0,0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue