Giter Site home page Giter Site logo

longui's Introduction

LongUI

Lightweight Direct2D GUI Library/Framework in C++
中文说明文档
Current Version : Alpha-Stage

Features in LongUI

Friendly with High-DPI

  • No GDI/GDI+, LongUI use Direct2D as rendering api, could zoom a container into any size

Friendly with Game

  • LongUI was designed that could be embedded in game (that use D2D1, D3D11 even D3D12)
  • also, you can use it in the standalone way

XML Layout

  • Easy way to create a window by xml

Light Weight

  • LongUI was designed to be a static-link framework.
  • The helloworld in only 100+kb(/MD in MSC).
  • Compiled in 5 sec.(through LongUI All In One).

Known Issues
Document
DemosShow

Requirements

For this repo, you need:

  • OS:
    • Windows 10 or later
  • Tool-chain/Environment A: MSC
    • Visual Stuidio 2015 - Express for Desktop/Community or higher
    • Windows SDK(10.0.10586.0)
  • Tool-chain/Environment B(would support in the future): GCC/Clang
    • Rakefile(ruby)
    • MinGW-W64

Remarks

Win10 supported only now

LongUI All In One

LongUI source files could be grouped in one file to reduce time for compiling file in _LongUIAllInOne.cpp yeah, you can compile this manually :)

LongUI Programming Style

  • class :
    • [C/I/?] UI ClassName, e.g. CUIManager, IUIInterface
    • except: class under LongUI::XXX(Component/Helper....)
  • member variable:
    • public: member_variable, e.g. parent, user_data
    • private/protected: m_typeMemberVariable, e.g, m_pWindow
  • method/function:
    • public: ClassMethod(), e.g. GetWindow(), Update()
    • private/protected: class_method(), e.g. refresh_this()
    • except: match STL-Style method: begin(), end(), insert(), but public
  • enum: see it
        enum class PointType : uint16_t {
            Type_None,      // None
            Type_Arrow1,    // Arrow1
            Type_Arrow2,    // Arrow2
            Type_Thumb,     // Thumb
            Type_Shaft,     // Shaft
        };
  • auto variable:
    • DEPENDS ON MY MOOD, e.g. int old_x, oldX, uOldX

PROJECTS LIST

  • 3rdparty/* , 3rdparty library, like dlmalloc
  • Demos/* , demos
    - more detail in DemosShow.md
  • Helper/* , helper projects
    1. ConsoleHelper -- helper for logging for debugging 2. ScriptInterfaceGenerator -- helper for binding script interface
  • LongUI -- core project, designed to be a static-link framework
  • TestUI -- my test project, just for me for debugging

License

  • LongUI under MIT License
  • pugixml parser - version 1.5 (MIT License)
  • dlmalloc-2.8.6 (public domain)
  • Scintilla-3.5.3 (License for Scintilla)
  • More detail, see License.txt

longui's People

Contributors

dustpg 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.