mirror of https://github.com/emilk/egui.git
Emil Ernerfeldt
4 years ago
31 changed files with 282 additions and 204 deletions
@ -0,0 +1,25 @@ |
|||
[package] |
|||
name = "egui_demo_lib" |
|||
version = "0.6.0" |
|||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"] |
|||
description = "Example library for Egui" |
|||
edition = "2018" |
|||
homepage = "https://github.com/emilk/egui" |
|||
license = "MIT OR Apache-2.0" |
|||
readme = "README.md" |
|||
repository = "https://github.com/emilk/egui" |
|||
categories = ["gui", "graphics"] |
|||
keywords = ["glium", "egui", "gui", "gamedev"] |
|||
include = [ "**/*.rs", "Cargo.toml"] |
|||
|
|||
[lib] |
|||
|
|||
[dependencies] |
|||
egui = { version = "0.6.0", path = "../egui" } |
|||
|
|||
[dev-dependencies] |
|||
criterion = { version = "0.3", default-features = false } |
|||
|
|||
[[bench]] |
|||
name = "benchmark" |
|||
harness = false |
@ -0,0 +1,8 @@ |
|||
# Egui Demo Library |
|||
|
|||
This crate contains example code for Egui. |
|||
|
|||
It is in a separate crate for two reasons: |
|||
|
|||
* To ensure it only uses the public `egui` API. |
|||
* To remove the amount of code in `egui` proper. |
@ -1,4 +1,4 @@ |
|||
use crate::{containers::*, widgets::*, *}; |
|||
use egui::{containers::*, widgets::*, *}; |
|||
use std::f32::consts::TAU; |
|||
|
|||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] |
@ -1,4 +1,5 @@ |
|||
use crate::{color::*, demos::LOREM_IPSUM_LONG, *}; |
|||
use crate::LOREM_IPSUM_LONG; |
|||
use egui::{color::*, *}; |
|||
|
|||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] |
|||
#[cfg_attr(feature = "serde", serde(default))] |
@ -1,4 +1,4 @@ |
|||
use crate::*; |
|||
use egui::*; |
|||
use std::f64::INFINITY; |
|||
|
|||
/// Showcase sliders
|
Loading…
Reference in new issue