Skip to content

Latest commit

 

History

History

ringlibui

RingLibui Extension

Introduction

This extension provides complete support for the Libui library

Libui URL: https://github.com/andlabs/libui

Using this extension we can develop and distribute lightweight GUI Applications using Ring (Less than 1 MB)

Runtime files and their size

  • Ring.dll (448 KB)
  • Libui.dll (210 KB)
  • Ring_Libui.dll (633 KB)
  • Total : 1,291 KB without compressing the files
  • After compressing the files (To ZIP file) - Total : 504 KB

Install

We can install this extension using the Ring Package Manager

ringpm install ringlibui from ringpackages

Samples

We have the samples in the ring/samples/UsingLibUI folder

URL: https://github.com/ring-lang/ring/tree/master/samples/UsingLibUI

Example

load "libui.ring"

oWindow = uiNewWindow( "Hello, World", 400, 400, True)
uiWindowOnClosing(oWindow,"closeApp()")

uiControlShow( oWindow )
uiMain()

func closeApp
	uiQuit()

Screen Shots

Hello World

RingLibuiScreenShot

Message Box

RingLibuiScreenShot

Using Buttons

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

Controls

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

Say Something

RingLibuiScreenShot

RingLibuiScreenShot

Menubar

RingLibuiScreenShot

RingLibuiScreenShot

Histogram

RingLibuiScreenShot

Drawing Text

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

Drawing Shapes

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot

RingLibuiScreenShot