[egui] prepare for 0.1.0 release
This commit is contained in:
parent
2f4a3a1273
commit
bea7e3a52e
5 changed files with 14 additions and 8 deletions
|
@ -177,13 +177,12 @@ function getInt32Memory0() {
|
|||
}
|
||||
/**
|
||||
* @param {string} canvas_id
|
||||
* @param {number} pixels_per_point
|
||||
* @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 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);
|
||||
};
|
||||
|
||||
|
|
Binary file not shown.
|
@ -57,7 +57,7 @@
|
|||
|
||||
function paint_gui(canvas) {
|
||||
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 = {
|
||||
|
|
|
@ -1,9 +1,16 @@
|
|||
[package]
|
||||
name = "egui"
|
||||
version = "0.1.0"
|
||||
authors = ["Emil Ernerfeldt <emilernerfeldt@gmail.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
||||
description = "Simple, portable immediate mode GUI library for Rust"
|
||||
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]
|
||||
|
||||
|
|
|
@ -203,8 +203,8 @@ impl<'open> Window<'open> {
|
|||
let content_rect = collapsing
|
||||
.add_contents(&mut frame.content_ui, |ui| {
|
||||
resize.show(ui, |ui| {
|
||||
// Add some spacing (item_spacing) between title and content:
|
||||
ui.allocate_space(Vec2::zero());
|
||||
// Add some spacing between title and content:
|
||||
ui.allocate_space(ui.style().item_spacing);
|
||||
|
||||
if let Some(scroll) = scroll {
|
||||
scroll.show(ui, add_contents)
|
||||
|
|
Loading…
Reference in a new issue