Coder Social home page Coder Social logo

manusw / lcui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lc-soft/lcui

0.0 2.0 0.0 17.46 MB

A small C library for building user interfaces with C, XML and CSS.

Home Page: http://lcui.org

License: GNU General Public License v2.0

Makefile 0.54% Shell 0.09% CSS 0.36% C 89.98% C++ 6.42% M4 2.46% Objective-C 0.15%

lcui's Introduction

LCUI

A small C library for building user interfaces with C, XML and CSS.

Build Status Coverage Status License Github Release Github All Releases Repo size Code size

Table of contents

Introduction

LCUI is a freely available software library for building user interfaces. It is written in C, support the use XML and CSS to describe the graphical interface, you can use it to build simple desktop apps.

中文版说明文档

Features

  • written in C: Suitable for applications that are smaller and are primarily written in C.
  • Cross platform: Support for Windows and Linux, you can write Windows Desktop apps and Universal Windows Platform apps, as well as Linux Desktop apps.
  • XML parsing: Support for using XML markup language to describe the structure of the graphical user interface.
  • CSS parsing: Support for using CSS language to describing the presentation of the graphical user interface.
  • HTML-Like layout: Support the block, inline-block and simple flex layout, If you have web page development experience, then the use of LCUI will be easier to get started.
  • Flexible: Support for adapting the interface to screens of different pixel densities by setting global scaling, And also support for using screen density related sp and dp units to describe position and size of the elements.
  • Text rendering: Support for the text to set the global font, line height, horizontal alignment, and also support to set the color, background color, bold, italic for some text blocks separately.
  • Font management: Support for loading multiple font files, and support to use font of different family, weight and style.
  • Image processing: Provide image read interfaces, support for reading jpg, png and bmp format images.
  • Touch: Support multi-touch, but currently only support Windows system.

Screenshots

Hello, World!

LCUI.css

LCFinder

Documentation

API reference documentation has not yet been prepared, you can refer to the header files, source code, and tests.

Building

Bootstrap

To bootstrap the build you need to run ./configure (in the root of the source tree).

In the simplest case you would run:

git clone https://github.com/lc-soft/LCUI.git
cd LCUI
./autogen.sh
./configure
make
make install

If you want to experience the effect of demo, please run:

cd test
make
./hellowrold

If you want to custom building options, please read the INSTALL file for more details.

Prerequisites

If you want to build full-featured LCUI, we suggest you install the following dependent libraries:

  • libpng — PNG image compression library
  • libjpeg — JPEG image compression library
  • libxml2 — The XML C parser and toolkit
  • libx11 — X11 client-side library
  • freetype — Font engine

If you system is Ubuntu, you can run following command to install dependencies:

apt-get install libpng-dev libjpeg-dev libxml2-dev libfreetype6-dev libx11-dev

Building On Windows

LCUI is mainly develop in the Windows environment, you can use VisualStudio to open file build/windows/LCUI.sln and compile LCUI.

Contribution

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

License

The LCUI Project is released under the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

lcui's People

Contributors

lc-soft avatar fakeguru avatar frankhb avatar odknt avatar piamancini avatar gitter-badger avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.