Giter Site home page Giter Site logo

nicmr / easygui-rs Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 546 KB

Extremely easy-to-use conrod API. GUI interactions are invoked via simple function calls instead of an event-driven approach. Early WIP.

License: MIT License

Rust 100.00%
conrod easygui gui simple-api rust

easygui-rs's Introduction

easygui-rs

An extremely easy-to-use conrod interface for Rust. GUI interactions are invoked via simple function calls instead of an event-driven approach.

Introduction

Conrod is one of the most popular pure Rust GUI libraries. One of its goals is being easy to use. Unfortunately, it still lacks a complete tutorial and requires a fair bit of boilerplate. This results in a disproportionate time investment for those that are just looking for basic GUI functionality.

Easygui intends to provide an extremely accessible interface for these basic gui needs.

We achieve this by building an abstract interface on top of conrod, that allows invoking basic GUI interaction via simple function calls instead of an event-driven approach.

extern crate easygui;
use easygui::ynbox;

let choice: bool = ynbox("Can the maker repair what he makes?", "Title", "Yes", "No");

Python's easygui successfully provides similar functionality for Tk, so we will try to model our interface after easygui for the early stages of development.

Implemented parts of the interface:

  • msgbox
  • ynbox
  • listbox (choicebox in python)
  • multchoicebox
  • buttonbox
  • indexbox
  • boolbox
  • enterbox
  • integerbox
  • multenterbox
  • passwordbox
  • multpasswordbox
  • textbox
  • codebox
  • diropenbox
  • fileopenbox
  • filesavebox
  • EgStore ?
  • exceptionbox ?

Scrapped parts of the interface:

  • ccbox basically just a ynbox

Later on, we're going to carefully expose more complexity to the user (e.g, color schemes), or add handy features like reading the user's preferred color schemes from dotfiles.

easygui-rs's People

Contributors

nicmr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

easygui-rs's Issues

Improve code reusage

There's a lot of duplicate code in both src/lib.rs and /src/mod/boxes.rs that should either be delegated to functions or added with macros instead

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.