Skip to content

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

License

Notifications You must be signed in to change notification settings

nicmr/easygui-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages