snuk182 / nuklear-rust

The bindings to the Nuklear 2D immediate GUI library.
Apache License 2.0
359 stars 16 forks source link

No way of accessing clipboard struct on context #22

Closed GideonUng closed 5 years ago

GideonUng commented 5 years ago

On the context struct the internal nk_context struct is not accessable. but some members should be mutably accessable according to nuklear.

From the nk_context struct in c: / public: can be accessed freely /

And without that access i dont see a way to setup the clipboard callbacks

snuk182 commented 5 years ago

Got it.

GideonUng commented 5 years ago

I think Input and Style already have an accessor function. so this could probably also be done for the other couple structs that are marked as public on nk_context

snuk182 commented 5 years ago

Added some contents with https://github.com/snuk182/nuklear-rust/commit/d8946a800c13060a0dc686049f47bfa7414c9d99 . All that left requires far more effort, so I gonna make it separately. Please try v0.6.2 at crates.

GideonUng commented 5 years ago

Hey thanks cool stuff and man that was fast.

snuk182 commented 5 years ago

Just a luck as it's weekend and I'm free :) Have fun.