226 Commits

Author SHA1 Message Date
Joonas Javanainen
c37bd8b1f9
Purge imgui-sys fully of legacy manual bindings 2019-06-27 22:12:35 +03:00
Joonas Javanainen
721bf46746
Pull input+winit stuff from 0.1-dev 2019-06-27 22:12:35 +03:00
Joonas Javanainen
b1e1b4f910
Pull Io struct and related things from 0.1-dev 2019-06-27 22:12:25 +03:00
Joonas Javanainen
9516e622be
Pull first part of 0.1 context API 2019-06-27 18:18:57 +03:00
Joonas Javanainen
f7f9deb321
Pull string updates from 0.1 2019-06-27 18:03:55 +03:00
Joonas Javanainen
92de1588f2
Use generated and wrapped style structs/enums 2019-06-27 17:55:33 +03:00
Joonas Javanainen
f7a7961cee
Replace ImCond with Condition 2019-06-27 17:29:09 +03:00
Joonas Javanainen
c1f48896e4
Use generated ImDraw* structs 2019-06-27 09:02:31 +03:00
Joonas Javanainen
e0264f8c9d
Use generated ImGuiIO, and font-related structs 2019-06-26 23:14:14 +03:00
Joonas Javanainen
713af16554
Merge pull request #221 from agersant/drag-delta
Exposed GetMouseDragDelta()
2019-06-03 21:09:07 +03:00
Joonas Javanainen
2124665293
Merge pull request #218 from agersant/allow-overlap
Exposed igSetItemAllowOverlap
2019-06-03 21:08:45 +03:00
Alexandru
a9a1c385fb Allow &[&ImString] as well as &[&ImStr] in combo and list_box 2019-05-18 21:05:51 +01:00
Antoine Gersant
c11d9dff15 Formatting 2019-04-30 19:44:09 -07:00
Antoine Gersant
55978a0366 Exposed 2019-04-30 19:43:10 -07:00
Antoine Gersant
2532b9efd1 Exposed igSetItemAllowOverlap 2019-04-23 23:56:01 -07:00
Joonas Javanainen
8fc605ed84
Don't end frame normally when panicking
igEndFrame might end up doing an assert that aborts the process, which
prevents the panic handler from doing its job.
2019-04-21 00:07:53 +03:00
Antoine Gersant
21a2b1c936 Fixed a bug where get_time() returned bogus values 2019-04-17 00:06:49 -07:00
Scott Harper
26a9eddc62 Implement keyboard focus command in Ui 2019-03-17 11:40:01 +09:00
Johan Andersson
a84de348af Add support for image buttons 2019-02-25 01:13:21 +01:00
Joonas Javanainen
91a961e06a
Use more 2018 edition idioms 2018-12-31 12:16:28 +02:00
Joonas Javanainen
20139851e2
Upgrade to Rust 2018 edition
We might as well do this since we've been forced to 1.31...
2018-12-31 11:51:34 +02:00
Joonas Javanainen
490ffe056d
Merge pull request #185 from agersant/content-region
Content region
2018-12-16 21:24:25 +02:00
Antoine Gersant
17b82e5cbb Added is_window_hovered_with_flags 2018-12-14 00:22:12 -08:00
Antoine Gersant
cd2f7570e6 Added is_item_hovered_with_flags 2018-12-13 22:00:24 -08:00
Antoine Gersant
2b15498654 Exposed a few functions related to content regions 2018-12-04 21:06:33 -08:00
Joonas Javanainen
eea2c8b00e
Use nonUDT2 variants of functions that return ImVec2/4 2018-11-29 21:43:52 +02:00
Malik Olivier Boussejra
713d669783 [Ui] Add with_text_wrap_pos
Wrap igPushTextWrapPos and igPopTextWrapPos.
2018-11-23 21:33:14 +09:00
Joonas Javanainen
b4edc01574
Adapt to 1.65 changes 2018-10-12 22:41:15 +03:00
Joonas Javanainen
6ccfbf0305
Merge pull request #154 from SpaceManiac/patch/textures
Add custom texture support (both renderers)
2018-10-05 20:43:17 +03:00
Joonas Javanainen
6d6577bdc4
Merge pull request #160 from SpaceManiac/patch/key_super
Add missing key_super method
2018-10-01 22:14:55 +03:00
Malik Olivier Boussejra
add8bdbd16 [Ui] Add documentation for Ui::close_current_group 2018-09-26 14:28:02 +09:00
Malik Olivier Boussejra
88b5b2e3f5 [popup_modal] Add documentation 2018-09-26 14:27:35 +09:00
Malik Olivier Boussejra
e68047efd1 [Ui] Add popup_modal wrapper 2018-09-26 09:50:03 +09:00
Tad Hardesty
cbe118f4ec Add missing key_super method 2018-09-20 09:33:56 -07:00
Tad Hardesty
a2b69395d1 Rename set_texture_id to set_font_texture_id 2018-09-19 22:29:04 -07:00
Malik Olivier Boussejra
d62845f4c2 [ImGui] Wrap igGetWindowPos 2018-09-19 09:51:17 +09:00
Malik Olivier Boussejra
3b26f6bde9 [ImGui] Wrap igIsWindowFocused
Wrap with three different functions, one for each of the possible values of
ImGuiFocusedFlags given as argument to igIsWindowFocused.
2018-09-13 18:49:33 +09:00
Tad Hardesty
e9b1552f05 Make ImTexture a newtype for additional type safety 2018-09-10 00:59:55 -07:00
Tad Hardesty
fb7ea044e2 Split the ImTexture allocator into a generic struct 2018-09-10 00:54:00 -07:00
Tad Hardesty
456258524e Add simplest possible image support for gfx renderer 2018-09-10 00:40:02 -07:00
Joonas Javanainen
1eab502d01
Add Drop implementation for Ui 2018-08-14 22:42:36 +03:00
Joonas Javanainen
b8a1abf1b7
Add mouse_down accessor function 2018-08-13 23:03:43 +03:00
Joonas Javanainen
21d85afee0
Remove deprecated things 2018-08-12 20:25:43 +03:00
Joonas Javanainen
da9ee9302b
Fixes recommended by clippy 2018-08-12 19:20:14 +03:00
Joonas Javanainen
329f24d221
Fix compilation errors 2018-08-12 14:22:08 +03:00
Joonas Javanainen
319f7aa4c6
Reformat everything 2018-08-12 14:16:56 +03:00
Joonas Javanainen
aa4ae70054
Make HiDPI rendering better
+ use linear filtering in both renderers. Nearest just won't work
  anymore if we have a non-integer scaling factor (which winit can give
  us on 1440p screens for example)
+ pass around FrameSize which has the necessary info with full f64
  precision
+ extra care with conversions to/from f32 and u32 and rounding
2018-08-12 14:16:21 +03:00
OKAMURA, Yasunobu
72ef7f681e fix conflict 2018-06-22 21:28:37 +09:00
Joonas Javanainen
a8cd16ef90
Merge pull request #137 from Gekkio/feature/drawdata-renderer
Renderers take DrawData, not DrawList
2018-06-03 20:25:50 +03:00
Joonas Javanainen
d8676b90de
Merge pull request #133 from michaelfairley/pushid_overloads_take3
Allow using strings and pointers with push_id
2018-06-03 20:25:31 +03:00