Home  >  Article  >  Backend Development  >  Gio user interface. How to make full screen

Gio user interface. How to make full screen

王林
王林forward
2024-02-09 21:40:091004browse

Gio user interface. How to make full screen

php editor Xinyi will introduce to you today how to create the full-screen effect of the GIO user interface. Gio User Interface is a powerful and highly customizable user interface library that can help developers quickly build modern application interfaces. The full-screen effect can add a more immersive experience to the application and improve the user experience. Next, we’ll detail how to achieve a full-screen effect by using the Gio UI library to make your application visually outstanding.

Question content

I want to use the gio ui framework to make a full-screen window. But the application is always in windowed mode.

As far as I understand, this code should generate a full screen application.

func main() {
    go func() {
        w := app.NewWindow(app.Title("fullscr"),
            app.Fullscreen.Option(),
            app.Decorated(false),
        )

        if err := draw(w); err != nil {
            log.Fatal(err)
        }
    }()
    app.Main()
}

Solution

Thanks to @kostix and his comment, I found the solution. I put w.Option(app.Fullscreen.Option()) inside the draw function

The above is the detailed content of Gio user interface. How to make full screen. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:stackoverflow.com. If there is any infringement, please contact admin@php.cn delete