Skip to content

vgtk/vgtk3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

af3e33c · Oct 31, 2022
Jan 17, 2021
Jan 16, 2021
Jan 30, 2021
Jan 18, 2021
Jan 18, 2021
Jan 3, 2021
Jan 30, 2021
Jan 18, 2021
Jan 18, 2021
Nov 6, 2019
Jan 5, 2021
Feb 4, 2020
Jan 16, 2021
Oct 31, 2022
Jan 16, 2021
Oct 29, 2020
Jan 28, 2020

Repository files navigation

VGTK3 GitHub Workflow Status (branch) GitHub release (latest by date)

What is this?

This is a manual wrapper for gtk3 for V. The advantage compared to using C.<function> directly is that vgtk3 uses V structs and does it best to have a good V style when "translating" gtk3 to V. This is mostly why the functions aren't auto-generated, as this doesn't create any helpful structures nor does it splits the files, because it doesn't know what a container is, this wrapper knows it and offers a Container interface ready for use.

Notes: We are still combining everything together here, will be separated after everything is finished

Dependencies

  • gtk3 development package
  • pkgconfig

Get Started

module main

import gtk

fn main() {
    window := gtk.new_window()
    window.set_title('Window Title')
    window.set_default_size(500, 600)
    window.set_position(.center)
    window.show()
    gtk.main()
}

Examples

Please checkout the examples folder. To compile all examples, simply run make examples command.

Progress

  • GTK
    • AccelMap
    • ActionBar
    • Application
    • Box
    • Button
    • ComboBox
    • Container
    • Dialog
    • Entry
    • Grid
    • Image
    • Label
    • Menu
    • MenuItem
    • WidgetPath
    • Widget
    • Window
  • GDK
    • Device
    • Window
  • GIO
    • File
  • GLIB
    • Array
    • List
    • Node
    • SList
    • String

Notes

  • You need the latest GTK+ installed.

License

Gtk is available under the MIT License, please refer to it.