Commit graph

110 commits

Author SHA1 Message Date
Benedikt Mandelkow
7d5df2f2d6 add wgpu example with option to make plot the same size as outer window 2020-10-30 11:57:51 +01:00
4bb4
564392f0bf [Action] Dependency installation fixes 2020-10-27 08:15:37 +01:00
4bb4
1a63603fa0 Added dependencies for examples to Github action 2020-10-27 08:14:33 +01:00
4bb4
a0ba674197 Added example building to test process 2020-10-27 08:09:55 +01:00
Benedikt Mandelkow
6bdfd76d51 only run bindgen on ImPlot... names
not sure why bindgen switches to i32 everywhere
moved imgui dependency up one step as this seems where its actually used
2020-10-27 08:08:37 +01:00
4bb4
cdc7e273c0
Merge pull request #6 from benmkw/alias
antialias by default
2020-10-19 22:25:04 +02:00
Benedikt Mandelkow
47bcb48e19 antialias by default 2020-10-19 01:33:00 +02:00
4bb4
d24a88afe8 Merge branch 'master' of github.com:4bb4/implot-rs into master 2020-10-18 18:31:08 +02:00
4bb4
a7e20c8075 Added CI badge 2020-10-18 18:30:59 +02:00
4bb4
8bf4231739
Renamed CI workflow to "Tests" 2020-10-18 18:29:40 +02:00
4bb4
0e4a50ed07
CI: Also check out submodules 2020-10-18 18:27:10 +02:00
4bb4
07e4779a86
Added initial CI from Github sample 2020-10-18 18:23:26 +02:00
4bb4
0af4203d4f Added better Y axis handling and API coverage 2020-10-18 16:22:37 +02:00
4bb4
44a065c8c7 Changed some strings to be stored as ImString directly 2020-10-13 17:02:10 +02:00
4bb4
f8bb5d07c4 Added metadata to Cargo.toml 2020-10-12 18:00:27 +02:00
4bb4
305c244373 Switched to released imgui-rs 0.5.0, adapted readme 2020-10-12 17:57:00 +02:00
4bb4
c0070bda38
Merge pull request #3 from benmkw/master
specify cpp standard to compiler
2020-10-11 21:14:22 +02:00
Benedikt Mandelkow
e5428c4093 specify cpp standard to compiler 2020-10-11 19:51:01 +02:00
4bb4
232cd6d095 Documentation updates, test fixes. 2020-10-11 17:17:29 +02:00
4bb4
c8bf29b408 Added missing todos to readme. 2020-10-11 16:34:10 +02:00
4bb4
ea960bd30d Linked context into things, adapted examples. 2020-10-11 16:33:26 +02:00
4bb4
5d4d570507 Added mutex-based locking mechanism as in imgui-rs 2020-10-11 16:33:26 +02:00
4bb4
74833663a9 Refactoring code into smaller files 2020-10-11 16:33:26 +02:00
4bb4
d717af71fa Added more notes on the context work 2020-10-11 16:33:26 +02:00
4bb4
f85c50657b Initial work on move to implot 0.7 compatibility. See notes.
- This updates the bindings generator, the low-level bindings as
  well as the higher-level bindings and the examples to work
  with a newer master of cimplot that links to implot 0.7.
- Several things are not done properly yet:
  - Contexts can be created and as long as they are not dropped
    things work out (shown in the examples). However, this should
    be done more imgui-rs like, where operations that require a context
    make that explicit by requiring a context reference to be passed.
  - The README has not been updated yet to all the new features that
    were added.
2020-10-11 16:33:26 +02:00
4bb4
e0ad0e892e README update to note the 0.7 branch 2020-10-04 14:53:29 +02:00
4bb4
a8f91a65a7 Added colormap support 2020-09-27 20:21:30 +02:00
4bb4
ef9531dfd9 Updated README to mention crates.io 2020-09-27 18:56:34 +02:00
4bb4
2efc464cb1 Removed unnecessary enum 2020-09-20 21:49:12 +02:00
4bb4
023d9a8f41 More rework on the tick setting internals. 2020-09-20 21:47:48 +02:00
4bb4
8a171e9528 Refactored ticks setting code, still not great. 2020-09-20 21:21:19 +02:00
4bb4
ed02caed56 Got tick label setting to work, but inelegantly 2020-09-20 20:34:19 +02:00
4bb4
9814e86d64 Cleaned up examples code more. 2020-09-13 16:11:57 +02:00
4bb4
03f9fefba7 Added bar plot support 2020-09-13 16:09:21 +02:00
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