Gio user interface. How to make full screen

王林
Release: 2024-02-09 21:40:09
forward
1007 people have browsed it

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()
}
Copy after login

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!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!