Commit graph

26 commits

Author SHA1 Message Date
4bb4
ff96a07ef3 Added scatter plot support 2020-09-13 15:06:59 +02:00
4bb4
f05d681d25 Added a text plot example 2020-09-13 14:40:53 +02:00
4bb4
3d6e1ee938 Pinned imgui dependency to a fixed commit 2020-09-13 13:57:01 +02:00
4bb4
e847f23fb2 Refactored example and added to README. 2020-09-06 16:59:25 +02:00
4bb4
a257332f59 Added marker, stylevar and querying support 2020-08-30 11:01:28 +02:00
4bb4
a43a58d819 Added plot style colors and some misc utils. See comments.
- Also exposed the sys crate's ImPlotRange, ImPlotLimits and ImPlotPoint
  to the user as well as changing the limit-setting interface to using
  those. I'm not super sure about doing this yet though, because it is
  more verbose for no real reason to the user and for the purposes of
  the abstraction it may be better to add facade types anyway.

- There is no protection against calling things like `is_hovered` from
  outside a plot. Will need to think about how to make this impossible
  by design - we could for example pass an object to Plot's closure
  that has these methods, and that object is not created anywhere
  else.
2020-08-23 21:26:27 +02:00
4bb4
90f7dba1a7 Added text plot support 2020-08-23 20:31:28 +02:00
4bb4
84d10092be Added axis and plot flag support 2020-08-23 20:10:24 +02:00
4bb4
42ae2779bb Added a safeguard against empty vector plotting, this would segfault 2020-08-09 13:56:09 +02:00
4bb4
411086483e Added x and y limit setting API 2020-08-09 13:16:48 +02:00
4bb4
70eff2e3bf Updated readme, renamed example 2020-08-08 16:01:51 +02:00
4bb4
a747fa2d91 Added both the build() and the begin()+end() options for Plot
- Copied the trick from imgui-rs to notice if a begin() is left
  unmatched
- Changed plot_line to be a struct, but might go away from that
  again. Initial idea was to add things like setting markers and
  colors to this as struct methods, but it seems this will lead
  to lots of code overhead compared to the pushing and popping
  stylevars approach taken in the C++ implementation.
2020-08-08 15:40:04 +02:00
4bb4
b832924fad Refactored Plot building, various example updates 2020-08-08 14:42:22 +02:00
4bb4
7d09c30892 Found linguist-generated, using that instead 2020-08-04 22:15:41 +02:00
4bb4
8805819d22 Treat generated bindings as binary file 2020-08-04 22:13:34 +02:00
4bb4
ee910152b7 Added main crate and some initial code for idiomatic bindings 2020-08-04 22:05:04 +02:00
4bb4
db4d307b85 Updated readme with current state and next steps 2020-08-03 21:52:45 +02:00
4bb4
0f11df5989 Added a separate bindgen building crate and pre-generated bindings 2020-08-03 21:50:03 +02:00
4bb4
c1ccb4eb6f Got initial unsafe bindings working. See comments.
- This now builds the bindings (still with cbindgen in build.rs,
  will change that in a bit) and links to them successfully. Everything
  currently points to the master branch at Gekkio/imgui-rs, because
  there has not been a release yet with the PR merged that exposes
  the defines in the sys crate.

- I have now included a little demo crate that calls into the unsafe
  generated bindings as a proof of concept. Next there will need to
  be safe and more Rust-y bindings written around this, just like
  imgui-rs has them.
2020-08-01 18:28:17 +02:00
4bb4
5d293f8f79 Addressed some feedback in build script 2020-07-12 22:25:27 +02:00
4bb4
d1ce31d8cf Got include to work, but bindgen still errors out 2020-07-12 14:29:02 +02:00
4bb4
42adfb57fb Added submodule for cimplot and some build code
This points to aloucks' fork instead of imgui-rs directly
so I can try out the PR. Doesn't seem to work as expected
yet though, trying to read the env var doesn't show anything.

I'm probably doing it wrong.
2020-07-02 21:15:22 +02:00
4bb4
2d83f4f4b0
Update README.md 2020-07-01 21:50:14 +02:00
4bb4
f3e24283d1 Added initial skeleton files 2020-07-01 21:46:33 +02:00
4bb4
895e4e6366
Create README.md 2020-07-01 19:41:31 +02:00
4bb4
6c7d54d944
Initial commit 2020-07-01 19:40:18 +02:00