Examples
Each example, which is part of the git repository which runs this site, is fully runnable rust code.
Once you have rust installed (see the setup page), here is how to run any example:
# Do this once to get the code
git clone https://github.com/appcove/egui.info.git
# Enter the egui.info directory
cd egui.info
# Examples can be built with
cargo build -p egui-101-basic
# And run with
cargo run -p egui-101-basic
101: Basic Examples
- egui-101-basic: A heading, label, and button.
- egui-101-menu: A menu bar with several menus
- egui-101-moving-circle: A circle which moves across the screen
112: Basic Interactions
- egui-112-circle-follow-mouse: Following the mouse pointer with a circle
- egui-112-button-move-circle: Buttons that effect a circle on the screen
- egui-112-keypress-move-circle: Moving a circle around the screen using keypresses
- egui-112-keypress-move-circle-with-velocity: Moving a circle around the screen using keypresses to change velocity
122: Basic Widgets
- egui-122-checkbox-functionality Using Checkboxes to change the circle color
- egui-122-slider Using Sliders to change the circle color
- egui-122-combo-box A simple example of an egui combo box
- egui-122-button-grid A example of buttons, sliders, and grids in egui
- egui-122-multiple-choice A multiple choice/radio button example
- egui-122-text-size Text size example in egui
- egui-122-check-box A widget for check boxes in egui
144: Basic Interactive Games
- egui-144-clicker-game: Gets points for clicks
- egui-144-color-clicker: Four circles that you have to turn off
- egui-144-circle-chaser: A circle and a target, Touch the target
215: Intermediate Examples
- egui-215-todo-list: A multi-window todo list.