And added to the README. Woo! (Also more TODOs.)
This commit is contained in:
parent
83b04cda47
commit
591b9c8772
|
@ -5,6 +5,9 @@ This README is being written.<br>
|
|||
|
||||
## Announcements
|
||||
|
||||
* **18 April 2018**
|
||||
* Introduced a new `uiTimer()` function for running code on a timer on the main thread. (Thanks to @cody271.)
|
||||
|
||||
* **18 March 2018**
|
||||
* Introduced an all-new formatted text API that allows you to process formatted text in ways that the old API wouldn't allow. You can read on the whole API [here](https://github.com/andlabs/libui/blob/8944a3fc5528445b9027b1294b6c86bae03eeb89/ui_attrstr.h). There is also a new examples for it: `drawtext`, which shows the whole API at a glance. It doesn't yet support measuring or manipulating text, nor does it currently support functions that would be necessary for things like text editors; all of this will be added back later.
|
||||
* libui also now uses my [utf library](https://github.com/andlabs/utf) for UTF-8 and UTF-16 processing, to allow consistent behavior across platforms. This usage is not completely propagated throughout libui, but the Windows port uses it in most places now, and eventually this will become what libui will use throughout.
|
||||
|
|
1
ui.h
1
ui.h
|
@ -67,6 +67,7 @@ _UI_EXTERN void uiQueueMain(void (*f)(void *data), void *data);
|
|||
// TODO (also in the above link) document that this cannot be called from any thread, unlike uiQueueMain()
|
||||
// TODO document that the minimum exact timing, either accuracy (timer burst, etc.) or granularity (15ms on Windows, etc.), is OS-defined
|
||||
// TODO also figure out how long until the initial tick is registered on all platforms to document
|
||||
// TODO also add a comment about how useful this could be in bindings, depending on the language being bound to
|
||||
_UI_EXTERN void uiTimer(int milliseconds, int (*f)(void *data), void *data);
|
||||
|
||||
_UI_EXTERN void uiOnShouldQuit(int (*f)(void *data), void *data);
|
||||
|
|
Loading…
Reference in New Issue