[egui] prepare for 0.1.0 release

This commit is contained in:
Emil Ernerfeldt 2020-05-30 18:22:33 +02:00
parent 2f4a3a1273
commit bea7e3a52e
5 changed files with 14 additions and 8 deletions

View file

@ -177,13 +177,12 @@ function getInt32Memory0() {
} }
/** /**
* @param {string} canvas_id * @param {string} canvas_id
* @param {number} pixels_per_point
* @returns {State} * @returns {State}
*/ */
__exports.new_webgl_gui = function(canvas_id, pixels_per_point) { __exports.new_webgl_gui = function(canvas_id) {
var ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN; var len0 = WASM_VECTOR_LEN;
var ret = wasm.new_webgl_gui(ptr0, len0, pixels_per_point); var ret = wasm.new_webgl_gui(ptr0, len0);
return State.__wrap(ret); return State.__wrap(ret);
}; };

Binary file not shown.

View file

@ -57,7 +57,7 @@
function paint_gui(canvas) { function paint_gui(canvas) {
if (g_wasm_app === null) { if (g_wasm_app === null) {
g_wasm_app = wasm_bindgen.new_webgl_gui("canvas", pixels_per_point()); g_wasm_app = wasm_bindgen.new_webgl_gui("canvas");
} }
let input = { let input = {

View file

@ -1,9 +1,16 @@
[package] [package]
name = "egui" name = "egui"
version = "0.1.0" version = "0.1.0"
authors = ["Emil Ernerfeldt <emilernerfeldt@gmail.com>"] authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
license = "MIT OR Apache-2.0" description = "Simple, portable immediate mode GUI library for Rust"
edition = "2018" edition = "2018"
homepage = "https://github.com/emilk/emigui/"
license = "MIT OR Apache-2.0"
readme = "../README.md"
repository = "https://github.com/emilk/emigui"
categories = ["gui", "graphics"]
keywords = ["gui", "imgui", "immediate", "portable", "gamedev"]
include = [ "**/*.rs", "Cargo.toml", "fonts/ProggyClean.ttf", "fonts/Comfortaa-Regular.ttf"]
[lib] [lib]

View file

@ -203,8 +203,8 @@ impl<'open> Window<'open> {
let content_rect = collapsing let content_rect = collapsing
.add_contents(&mut frame.content_ui, |ui| { .add_contents(&mut frame.content_ui, |ui| {
resize.show(ui, |ui| { resize.show(ui, |ui| {
// Add some spacing (item_spacing) between title and content: // Add some spacing between title and content:
ui.allocate_space(Vec2::zero()); ui.allocate_space(ui.style().item_spacing);
if let Some(scroll) = scroll { if let Some(scroll) = scroll {
scroll.show(ui, add_contents) scroll.show(ui, add_contents)