andlabs/ui: Platform-native GUI library for Go. - GitHub

文章推薦指數: 80 %
投票人數:10人

This is a library that aims to provide simple GUI software development in Go. It is based on my libui, a simple cross-platform library that does the same thing, ... Skiptocontent {{message}} andlabs / ui Public Notifications Star 8k Fork 727 Platform-nativeGUIlibraryforGo. Viewlicense 8k stars 727 forks Star Notifications Code Issues 106 Pullrequests 14 Actions Projects 0 Wiki Security Insights More Code Issues Pullrequests Actions Projects Wiki Security Insights master Branches Tags Couldnotloadbranches Nothingtoshow Loading {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default Loading 1 branch 1 tag Code Loading Latestcommit andlabs Mergepullrequest#385fromVorstenbosch/added-example-for-ui-update … 70a69d6 Jun10,2020 Mergepullrequest#385fromVorstenbosch/added-example-for-ui-update AddedanexamplethatshowshowtoupdatetheUI 70a69d6 Gitstats 2,784 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime examples DifferentiatingbetweenUIchangesfromthemainthreadandanotherg… Jun5,2020 winmanifest AddedawinmanifestpackageforincludingagenericWindowsmanifest.… Sep2,2018 LICENSE AddedlicenseandREADME. Feb17,2014 README.md Oops Sep2,2018 TODO.md MoreTODOs. Jan7,2016 area.go AndfinallymigratedAreaback. Aug26,2018 areahandler.go AndfinallymigratedAreaback. Aug26,2018 box.go Migratedwindow.go,box.go,button.go,andcheckbox.goback. Aug26,2018 button.go Migratedwindow.go,box.go,button.go,andcheckbox.goback. Aug26,2018 checkbox.go Migratedwindow.go,box.go,button.go,andcheckbox.goback. Aug26,2018 colorbutton.go Migrateddrawtext.goandfontbutton.go. Aug26,2018 combobox.go Migratedmorecontrols. Aug26,2018 control.go Migratethelink_darwin_amd64.goandcontrol.gofilesback;fixedup… Aug26,2018 datetimepicker.go Migrateddatetimepicker.goandbroughtstddialogs.gobackagain. Aug26,2018 draw.go Andmigratedtheexamplesback;alsofixedaspotImissed. Aug26,2018 drawtext.go Migrateddrawtext.goandfontbutton.go. Aug26,2018 dummy_windows.cpp SetuptheWindowsbuilds.Almostworking! Jun5,2016 editablecombobox.go Migratedmorecontrols. Aug26,2018 entry.go Migratedmorecontrols. Aug26,2018 fontbutton.go Migrateddrawtext.goandfontbutton.go. Aug26,2018 form.go Migratedmorecontrols. Aug26,2018 grid.go Migratedmorecontrols. Aug26,2018 group.go Migratedmorecontrols. Aug26,2018 image.go Changedimage.NRGBAtoimage.RGBAforAlpha4.1. Sep1,2018 label.go Migratedmorecontrols. Aug26,2018 libui_darwin_amd64.a Andlet'strythealpha4.1releaseagain. Sep2,2018 libui_linux_386.a Andlet'strythealpha4.1releaseagain. Sep2,2018 libui_linux_amd64.a Andlet'strythealpha4.1releaseagain. Sep2,2018 libui_windows_386.a AndfinallyreplacedtheWindowsbinarieswithAlpha4.1. Sep2,2018 libui_windows_amd64.a AndfinallyreplacedtheWindowsbinarieswithAlpha4.1. Sep2,2018 link_darwin_amd64.go Migratethelink_darwin_amd64.goandcontrol.gofilesback;fixedup… Aug26,2018 link_linux_386.go Migratedlink_linux_386.goback.Nicetoseeitreallyworkingatlast. Sep2,2018 link_linux_amd64.go OfcourseIhadtoredothatrelease.Anywayalsomergelink_linux_am… Sep2,2018 link_windows_386.go Andmovedtheotherlinkfilesback.Itworks! Sep2,2018 link_windows_amd64.go Andmovedtheotherlinkfilesback.Itworks! Sep2,2018 main.go Migratedutil.goandmain.gotothenewpkguiconventionandCfile.… Aug26,2018 multilineentry.go Morecontrolmigration.Everythingbeyondthispointisnontrivial. Aug26,2018 pkgui.c AndFINALLYportedTable.Nowtowriteanexampleprogram. Aug26,2018 pkgui.h AndFINALLYportedTable.Nowtowriteanexampleprogram. Aug26,2018 progressbar.go Migratedmorecontrols. Aug26,2018 radiobuttons.go Morecontrolmigration.Everythingbeyondthispointisnontrivial. Aug26,2018 separator.go Morecontrolmigration.Everythingbeyondthispointisnontrivial. Aug26,2018 slider.go Morecontrolmigration.Everythingbeyondthispointisnontrivial. Aug26,2018 spinbox.go Morecontrolmigration.Everythingbeyondthispointisnontrivial. Aug26,2018 stddialogs.go Migrateddatetimepicker.goandbroughtstddialogs.gobackagain. Aug26,2018 tab.go Morecontrolmigration.Everythingbeyondthispointisnontrivial. Aug26,2018 table.go AndFINALLYportedTable.Nowtowriteanexampleprogram. Aug26,2018 tablemodel.go Andmigratedtablemodel.goback.Andnowwecanfinallybuilditprop… Aug26,2018 ui.h Updatedui.handtheOSXandLinuxbinariesforAlpha4.1.Needtow… Sep1,2018 util.go Zero-fillpkguiAlloc()'soutput. Aug26,2018 window.go Migratedwindow.go,box.go,button.go,andcheckbox.goback. Aug26,2018 Viewcode ui:platform-nativeGUIlibraryforGo Status Installation Documentation Windowsmanifests macOSprogramexecution README.md ui:platform-nativeGUIlibraryforGo ThisisalibrarythataimstoprovidesimpleGUIsoftwaredevelopmentinGo.Itisbasedonmylibui,asimplecross-platformlibrarythatdoesthesamething,butwritteninC. Itrunson/requires: Windows:cgo,WindowsVistaSP2withPlatformUpdateandnewer MacOSX:cgo,MacOSX10.8andnewer otherUnixes:cgo,GTK+3.10andnewer Debian,Ubuntu,etc.:sudoapt-getinstalllibgtk-3-dev RedHat/Fedora,etc.:sudodnfinstallgtk3-devel ItalsorequiresGo1.8ornewer. Itcurrentlyalignstolibui'sAlpha4.1,withonlyasmallhandfuloffunctionsnotavailable. Status Packageuiiscurrentlymid-alphasoftware.Muchofwhatiscurrentlypresentrunsstabilyenoughfortheexamplesandperhapssomesmallprogramstowork,butthestabilityisstillawork-in-progress,muchofwhatisalreadythereisnotfeature-complete,someofitwillbebuggyoncertainplatforms,andthere'salotofstuffmissing.ThelibuiREADMEhasmoreinformation. Installation Onceyouhavethedependenciesinstalled,asimple gogetgithub.com/andlabs/ui/... shouldsuffice. Documentation Thein-codedocumentationissufficienttogetstarted,butneedsimprovement. Somesimpleexampleprogramsareintheexamplesdirectory.Youcangobuildeachofthemindividually. Windowsmanifests PackageuirequiresamanifestthatspecifiesCommonControlsv6torunonWindows.ItshouldatleastalsostateassupportedWindowsVistaandWindows7,thoughtoavoidsurpriseswithotherpackages(orwithGoitself;seethisissue)youshouldstatecompatibilitywithhigherversionsofWindowstoo. Thesimplestoptionisprovidedasasubpackagewinmanifest;youcansimplyimportitwithoutaname,andit'llsetthingsupproperly: import_"github.com/andlabs/ui/winmanifest" Youdonothavetoworryaboutimportingthisinnon-Windows-onlyfiles;itdoesnothingonnon-Windowsplatforms. Ifyouwishtouseyourownmanifestinstead,youcanusetheoneinwinmanifestasatemplatetoseewhat'srequiredandhow.You'llneedtospecifythetemplateina.rcfileandusewindresinMinGW-w64togeneratea.sysofileasfollows: windres-iresources.rc-owinmanifest_windows_GOARCH.syso-Ocoff Youmayalsobeinterestedinthegithub.com/akavel/rsrcandgithub.com/josephspurrier/goversioninfopackages,whichprovideotherGo-likeoptionsforembeddingthemanifest. Notethatifyouchoosetoshipamanifestasaseparate.exe.manifestfileinsteadofembeddingitinyourbinary,andyouuseCygwinorMSYS2asthesourceofyourMinGW-w64,CygwinandMSYS2instructgcctoembedadefaultmanifestofitsownifnoneisspecified.Thisdefaultwilloverrideyourmanifestfile!Seethisissueformoredetails,includingworkaroundinstructions. macOSprogramexecution IfyourunamacOSprogrambinarydirectlyfromthecommandline,itwillstartinthebackground.Thisisintentional;seethisformoredetails. About Platform-nativeGUIlibraryforGo. Resources Readme License Viewlicense Releases 1 tags Packages0 Nopackagespublished Usedby122 +114 Contributors11 Languages Go 59.1% C 40.8% C++ 0.1% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?