Skip to content

Commit

Permalink
Updated REAMDE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaberek committed Dec 9, 2016
1 parent 71c43af commit a63557f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
## Status

- [x] Wrapper code is complete; new features will be added as they arrive in [libui](https://github.com/andlabs/libui).
- [x] ~~Waiting on the completion of [#25](https://github.com/andlabs/libui/issues/25) in order to consider the wrapper stable for release.~~ (done)
- [ ] Testing is incomplete. More examples are welcome.

This wrapper should be stable but keep in mind that [libui](https://github.com/andlabs/libui) is still in [alpha](https://github.com/andlabs/libui/blob/master/TODO.md) status.
This wrapper should be stable but keep in mind that [libui](https://github.com/andlabs/libui) is still in
[alpha](https://github.com/andlabs/libui/blob/master/TODO.md) status.

## History

### December 9, 2016

* Added new position functions
* Added more `uiDrawBrush` functions
* Removed old position functions

### June 17, 2016

* Added `uiFormDelete()`
Expand Down Expand Up @@ -56,7 +62,11 @@ This wrapper should be stable but keep in mind that [libui](https://github.com/a

### Wrapper Style

A keen observer might notice the seemingly unorthodox C wrapper code used in `ui.e`. What I've done here, is use a `map` to provide string lookups for function names instead of using constants. This is an experiment in providing a cleaner C library wrapper. The calls to `define_c_func/proc` look a lot more like [attributes](https://msdn.microsoft.com/en-us/library/z0w1kczw.aspx) used in C# or VB.NET. I have not compared this method to using constants, so I'm not sure if or by how much this might be slower.
A keen observer might notice the seemingly unorthodox C wrapper code used in `ui.e`. What I've done here, is use a `map`
to provide string lookups for function names instead of using constants. This is an experiment in providing a cleaner
C library wrapper. The calls to `define_c_func/proc` look a lot more like [attributes](https://msdn.microsoft.com/en-us/library/z0w1kczw.aspx)
used in C# or VB.NET. I have not compared this method to using constants, so I'm not sure if or by how much this might
be slower.

#### Original Code

Expand Down

0 comments on commit a63557f

Please sign in to comment.