can't use intradoc...yet

This commit is contained in:
Jack Mac 2021-09-12 18:41:01 -04:00
parent c62c609de5
commit ee1d921799
2 changed files with 4 additions and 9 deletions

View File

@ -10,12 +10,12 @@
![Hello world](hello_world.png)
```rust
Window::new(im_str!("Hello world"))
Window::new("Hello world")
.size([300.0, 100.0], Condition::FirstUseEver)
.build(&ui, || {
ui.text(im_str!("Hello world!"));
ui.text(im_str!("こんにちは世界!"));
ui.text(im_str!("This...is...imgui-rs!"));
ui.text("Hello world!");
ui.text("こんにちは世界!");
ui.text("This...is...imgui-rs!");
ui.separator();
let mouse_pos = ui.io().mouse_pos;
ui.text(format!(
@ -41,10 +41,6 @@ Window::new(im_str!("Hello world"))
is not 100%, but will keep improving over time.
- Builder structs for use cases where the original C++ library uses optional
function parameters
- `&ImStr` / `ImString` types and `im_str!` macro for defining and passing
null-terminated UTF-8 to Dear ImGui, which doesn't accept Rust `&str` /
`String` values. See [issue #7](https://github.com/Gekkio/imgui-rs/issues/7)
for more information and justification for this design.
- Easy integration with Glium / pre-ll gfx (renderer)
- Easy integration with winit (backend platform)
- Optional support for the freetype font rasterizer

View File

@ -1,5 +1,4 @@
#![cfg_attr(debug_assertions, allow(clippy::float_cmp))]
#![deny(rustdoc::broken_intra_doc_links)]
pub extern crate imgui_sys as sys;
use std::cell;