microui.c 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,7 @@ A *tiny*, portable, immediate-mode UI library written in ANSI C
16
16
 
17
17
  Run:
18
18
 
19
- ```sh
19
+ ```bash
20
20
  $ npm i microui.c
21
21
  ```
22
22
 
@@ -25,33 +25,23 @@ And then include `microui.h` as follows:
25
25
  ```c
26
26
  // main.c
27
27
  #define MICROUI_IMPLEMENTATION
28
- #include "node_modules/microui.c/microui.h"
28
+ #include <microui.h>
29
29
 
30
30
  int main() { /* ... */ }
31
31
  ```
32
32
 
33
- And then compile with `clang` or `gcc` as usual.
33
+ Finally, compile while adding the path `node_modules/microui.c` to your compiler's include paths.
34
34
 
35
35
  ```bash
36
- $ clang main.c # or, use gcc
37
- $ gcc main.c
38
- ```
39
-
40
- You may also use a simpler approach:
41
-
42
- ```c
43
- // main.c
44
- #define MICROUI_IMPLEMENTATION
45
- #include <microui.h>
46
-
47
- int main() { /* ... */ }
36
+ $ clang -I./node_modules/microui.c main.c # or, use gcc
37
+ $ gcc -I./node_modules/microui.c main.c
48
38
  ```
49
39
 
50
- If you add the path `node_modules/microui.c` to your compiler's include paths.
40
+ You may also use a simpler approach with the [cpoach](https://www.npmjs.com/package/cpoach.sh) tool, which automatically adds the necessary include paths of all the installed dependencies for your project.
51
41
 
52
42
  ```bash
53
- $ clang -I./node_modules/microui.c main.c # or, use gcc
54
- $ gcc -I./node_modules/microui.c main.c
43
+ $ cpoach clang main.c # or, use gcc
44
+ $ cpoach gcc main.c
55
45
  ```
56
46
 
57
47
  <br>
@@ -109,6 +99,7 @@ the terms of the MIT license. See [LICENSE](LICENSE) for details.
109
99
  <br>
110
100
 
111
101
 
102
+ [![](https://raw.githubusercontent.com/qb40/designs/gh-pages/0/image/11.png)](https://wolfram77.github.io)<br>
112
103
  [![SRC](https://img.shields.io/badge/src-repo-green?logo=Org)](https://github.com/rxi/microui)
113
104
  [![ORG](https://img.shields.io/badge/org-nodef-green?logo=Org)](https://nodef.github.io)
114
105
  ![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/utf8.c)