Skip to content

C# bindings for https://github.com/andlabs/libui targeting .NET Standard, and soon, .NET Framework and Mono.

License

Notifications You must be signed in to change notification settings

moolicc/LibUISharp

 
 

Repository files navigation

LibUISharp

License Build status CodeFactor NuGet

LibUISharp is a library containing bindings for libui. Currently, LibUISharp is only built as a .NET Standard 2.0 library, but can also support other frameworks as-per community interest.

Please Note: libui is mid-alpha software, meaning the underlying API in LibUISharp is a work-in-progress. Any LibUISharp releases up until v0.4.0 are CI builds, and are not guaranteed to work.

Looking for Contributors!

Currently, I don't have the free time to make LibUISharp complete on my own. Because of this, I am looking for help from the community. Whether an issue, or a new feature, nothing is to small.

Features

LibUISharp allows you to create native, cross-platform graphical user interface (GUI) applications containing various controls, such as a Button or a TabControl,

Check out the demos in the demos\ folder for examples.

Controls

  • Button
  • CheckBox
  • ColorPicker
  • ComboBox
  • DateTimePicker
  • FontPicker
  • Form
  • Grid
  • GroupBox
  • Label
  • MenuStrip/MenuStripItem
  • MessageBox
  • StackPanel
  • ProgressBar
  • RadioButtonGroup
  • Separator
  • Slider
  • SpinBox
  • TextBox
  • TabControl
  • Window

Drawing/Text

  • AttributedText
  • Brush
  • Context
  • Font
  • FontFeatures
  • Path
  • Surface
  • TextAttribute
  • TextLayout

Supported Platforms

LibUISharp supports 64-bit Windows, macOS, and Linux [source]:

Operating System Version Architecture Prerequiusites
Windows Client
Windows Server
7 SP1+, 8.1, 10 Build 1607+
2008 R2 SP1+
x64
x64
Mac OS X 10.12+ x64
Red Hat Enterprise Linux
CentOS
Oracle Linux
6, 7
7
7
x64 GTK+ 3.10+
Fedora 26, 27 x64 GTK+ 3.10+
Debian
Ubuntu
Linux Mint
8.7+, 9
14.04, 16.04, 17.10, 18.04
17, 18
x64 GTK+ 3.10+
openSUSE
SUSE Enterprise Linux (SLES)
42.3+
12 SP2+
x64 GTK+ 3.10+

Obtaining the Library

LibUISharp is almost up-to-par with libui and is now available on NuGet!

Just add this line to you project file:

<PackageReference Include="LibUISharp" Version="0.4.0-build-*" />

Building From Source

LibUISharp is built with .NET Core, so you can build LibUISharp with either Visual Studio, Visual Studio Code, or just by running a couple simple commands. Use the steps below to get started!

Prerequisites

Operating System Prerequisites
Windows 7/8.1/10 .NET Core 2.0 SDK

Optional:
Visual Studio 2017 (v15.6.x)
Visual Studio Code (With the C# extension)
Mac OS X .NET Core 2.0 SDK

Optional:
Visual Studio Code (With the C# extension)
Linux .NET Core 2.0 SDK

Optional:
Visual Studio Code (With the C# extension)

Build Using Visual Studio (Windows)

Ensure you have the latest version of Visual Studio 2017 installed with the .NET Core workload.

  1. Open the LibUISharp.sln file.
  2. Then, navigate to the Build>Build Solution menu item.

Build Using Visual Studio Code (Windows/MacOS/Linux)

This section is to-be-written. For now, refer to the next section.

Build Using a CLI

Run the following command in a command-line interface in the root directory of this repository:

  1. `dotnet build LibUISharp.sln'

Contributing

Contributing is as easy as filing an issue, fixing a bug, or suggesting a new feature.

Please see the CONTRIBUTING.md file for more information.

About

C# bindings for https://github.com/andlabs/libui targeting .NET Standard, and soon, .NET Framework and Mono.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%