gg: minor fixes

pull/5710/head
Alexander Medvednikov 2020-07-06 20:40:54 +02:00
parent 0ed8199da2
commit 48f1f814d2
2 changed files with 4 additions and 5 deletions

View File

@ -73,7 +73,6 @@ fn main() {
window_title: 'Empty window'
user_data: app
bg_color: bg_color
init_fn: init_gui
frame_fn: frame
font_path: os.resource_abs_path('../assets/fonts/RobotoMono-Regular.ttf')
//window_user_ptr: ctx

View File

@ -11,7 +11,7 @@ const (
)
pub struct FT {
pub:
pub:
fons &C.FONScontext
font_normal int
@ -84,15 +84,15 @@ pub fn (ft &FT) flush(){
sfons.flush(ft.fons)
}
pub fn (ft &FT) text_width(s string) int {
pub fn (ft &Context) text_width(s string) int {
return 0
}
pub fn (ft &FT) text_height(s string) int {
pub fn (ft &Context) text_height(s string) int {
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
}