LCUI

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

LCUI

#1 Post by sc0ttman »

https://lcui.org/

Build simple desktop apps with C, XML and CSS
LCUI is a simple GUI library, it is written in C, support XML and CSS, you can use C, XML and CSS to build simple desktop applications, at present it is mainly supported Windows, subsequent versions will improve support for Linux.

If you have web development experience, then the use of LCUI will be easier to get started, because LCUI's XML, CSS, and element layout processing effect are similar to web browser, you can refer to the sample code on the left to learn about the effect.

To get started with LCUI, you can using lcui-cli to create an LCUI project, then compile and run it. But before using lcui-cli you need to install the following tools on your computer:

Git
Node.js
LCPkg
CMake Or XMake

Just one sample application is not enough? You can try LC Design, a component library designed and developed specifically for LCUI.
Seems good...

I'm always looking for the most lightweight, portable way to compile a borderless webview, that supports HTML5, CSS3 and JavaScript (ES5 or ES6)

(something like Electron, or webkit2gtk, but easier, smaller....)

This might be it.

Examples apps:

Image

Image
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#2 Post by sc0ttman »

Though there is also this:

https://github.com/zserge/webview
A tiny cross-platform webview library for C/C++/Golang to build modern cross-platform GUIs. Also, there are Rust bindings, Python bindings, Nim bindings, Haskell and C# bindings available.

Webview for C/C++ developers

Download webview.h and include it in your C/C++ code:

Code: Select all

// main.c
#define WEBVIEW_IMPLEMENTATION
#include "webview.h"

#ifdef WIN32
int WINAPI WinMain(HINSTANCE hInt, HINSTANCE hPrevInst, LPSTR lpCmdLine,
                   int nCmdShow) {
#else
int main() {
#endif
  /* Open wikipedia in a 800x600 resizable window */
  webview("Minimal webview example",
	  "https://en.m.wikipedia.org/wiki/Main_Page", 800, 600, 1);
  return 0;
}

^ it looks like we could replace that URL with any other - web based frontends for things running on localhost (in cgi bin), READMEs, help files, etc...

8)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply