Skip to content

Commit

Permalink
Update v0.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
george012 committed Jun 15, 2024
1 parent 8da3159 commit 5b1d7f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/flex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ package main

import (
"github.com/george012/fltk_go"
"runtime"
"strconv"
)

var i = 0

func main() {
// 锁定当前的 goroutine 到操作系统线程
runtime.LockOSThread()
// 锁定 FLTK 库
fltk_go.Lock()

win := fltk_go.NewWindow(300, 200)
column := fltk_go.NewFlex(0, 0, 300, 200)
column.SetType(fltk_go.COLUMN)
Expand Down

0 comments on commit 5b1d7f8

Please sign in to comment.