Skip to content

Commit 3226066

Browse files
author
XorTroll
committed
Last commit before 0.1 gets released
1 parent 1d1e71e commit 3226066

File tree

267 files changed

+4035
-2021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+4035
-2021
lines changed

Doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PROJECT_NUMBER = "0.1"
4444
# for a project that appears at the top of each page and should give viewer a
4545
# quick idea about the purpose of the project. Keep the description short.
4646

47-
PROJECT_BRIEF = "Ready to make simple homebrew UIs?"
47+
PROJECT_BRIEF = "Simple UI framework for libnx and SDL2"
4848

4949
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
5050
# in the documentation. The maximum height of the logo should not exceed 55

Plutonium/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ include $(DEVKITPRO)/libnx/switch_rules
1717
#---------------------------------------------------------------------------------
1818
BUILD := Build
1919
TARGET := pu
20-
SOURCES := Source Source/pu Source/pu/draw Source/pu/element Source/pu/render Source/pu/horizon Source/pu/horizon/button
21-
INCLUDES := Include Include/pu Include/pu/draw Include/pu/element Include/pu/render Include/pu/horizon Include/pu/horizon/button
20+
SOURCES := Source Source/pu Source/pu/draw Source/pu/element Source/pu/render
21+
INCLUDES := Include Include/pu Include/pu/draw Include/pu/element Include/pu/render
2222

2323
#---------------------------------------------------------------------------------
2424
# options for code generation

README.md

+33-11
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,52 @@
22

33
## What is Plutonium?
44

5-
- Plutonium is a high-level, C++ graphical library with the aim of making UIs in a more user-firendly way.
5+
Plutonium is a high-level, C++ graphical library with the aim of making UIs in a more user-firendly way.
66

7-
- It uses libnx and SDL2, so both libraries are required.
7+
It uses libnx and SDL2, so both libraries are required.
88

9-
- Exactly, these extra libraries are required:
9+
To be more exact, this libraries should be installed via pacman:
1010

1111
```
1212
-lnx -lfreetype -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs`
1313
```
1414

1515
## Internal structure and performance
1616

17-
- This library uses software-accelerated SDL2 rendering.
17+
Plutonium uses software-accelerated SDL2 rendering.
1818

19-
- This library's performance is based on WPF's system. The user doesn't directly interact with the rendering, as it's done via a main rendering system and different objects to render.
19+
Plutonium's performance is based on WPF's system. The user doesn't directly interact with the rendering, as it's done via a main rendering system and different objects to render.
2020

21-
- Same way WPF does, you can create an UI by making a custom Application class inheriting from `pu::Application` class, or simply creating a variable and adding elements to it.
21+
Same way WPF does, you can create an UI by making a custom Application class inheriting from `pu::Application` class, or simply creating a variable and adding elements to it.
2222

23-
- The main function to initialize the application is `Show()`.
23+
The main function to initialize the application is `Show()`.
2424

25-
- Check the [examples](Examples) for a basic usage of the libraries.
25+
Check the [examples](Examples) for a basic usage of the libraries. In case you want to see a really powerful app which really shows what Plutonium is capable of, take a look at [Goldleaf](https://github.com/XorTroll/Goldleaf).
2626

27-
- Check the [documentation](https://XorTroll.github.io/Plutonium/) for a more detailed explanation of the library's usage.
27+
Check the [documentation](https://XorTroll.github.io/Plutonium/) for a more detailed explanation of the library's usage.
2828

29-
## Patreon
29+
## Using this libraries
3030

31-
If you like my work, you should take a look at my [Patreon](https://patreon.com/xortroll)!
31+
On the [releases](https://github.com/XorTroll/Plutonium/releases) page you have all the released versions. All of them are zipped files, containing `include` and `lib` directories.
32+
33+
To link them to a devkitPro libnx project, on the `LIBDIRS` variable of the Makefile add the folder containing the two folders mentioned above. (if you set `plutonium`, place the other two folders as `plutonium/include` and `plutonium/lib`)
34+
35+
Include the main header:
36+
37+
```cpp
38+
#include <pu/Plutonium>
39+
```
40+
41+
And don't forget to add the libraries mentioned in the first section!
42+
43+
## Building
44+
45+
Clone the repository, go into `Plutonium` directory and run `make`.
46+
47+
You will need devkitPro, libnx and all the libraries mentioned above installed via pacman.
48+
49+
## Support
50+
51+
If you would like to be more informed about my projects' status and support, you should check [H&H](https://discord.gg/3KpFyaH), my Discord server. It's a simple server for Homebrew and Hacking, focused on my projects. If you would like to be a beta-tester, you might be interested on the nightly building system we have there for testers.
52+
53+
If you like my work, you should take a look at my [Patreon](https://patreon.com/xortroll) page. For those who support me, you will be credited on my projects, and you'll gain some nice extras on H&H!

docs/annotated.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
55
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6-
<meta name="generator" content="Doxygen 1.8.14"/>
6+
<meta name="generator" content="Doxygen 1.8.15"/>
77
<meta name="viewport" content="width=device-width, initial-scale=1"/>
88
<title>Plutonium framework API: Class List</title>
99
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@@ -32,14 +32,14 @@
3232
<div id="projectname">Plutonium framework API
3333
&#160;<span id="projectnumber">0.1</span>
3434
</div>
35-
<div id="projectbrief">Ready to make simple homebrew UIs?</div>
35+
<div id="projectbrief">Simple UI framework for libnx and SDL2</div>
3636
</td>
3737
</tr>
3838
</tbody>
3939
</table>
4040
</div>
4141
<!-- end header part -->
42-
<!-- Generated by Doxygen 1.8.14 -->
42+
<!-- Generated by Doxygen 1.8.15 -->
4343
<script type="text/javascript">
4444
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
4545
var searchBox = new SearchBox("searchBox", "search",false,'Search');
@@ -120,7 +120,7 @@
120120
<ul>
121121
<li class="footer">Generated by
122122
<a href="http://www.doxygen.org/index.html">
123-
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
123+
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
124124
</ul>
125125
</div>
126126
</body>

docs/classes.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
55
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6-
<meta name="generator" content="Doxygen 1.8.14"/>
6+
<meta name="generator" content="Doxygen 1.8.15"/>
77
<meta name="viewport" content="width=device-width, initial-scale=1"/>
88
<title>Plutonium framework API: Class Index</title>
99
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@@ -32,14 +32,14 @@
3232
<div id="projectname">Plutonium framework API
3333
&#160;<span id="projectnumber">0.1</span>
3434
</div>
35-
<div id="projectbrief">Ready to make simple homebrew UIs?</div>
35+
<div id="projectbrief">Simple UI framework for libnx and SDL2</div>
3636
</td>
3737
</tr>
3838
</tbody>
3939
</table>
4040
</div>
4141
<!-- end header part -->
42-
<!-- Generated by Doxygen 1.8.14 -->
42+
<!-- Generated by Doxygen 1.8.15 -->
4343
<script type="text/javascript">
4444
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
4545
var searchBox = new SearchBox("searchBox", "search",false,'Search');
@@ -98,21 +98,21 @@
9898
</td><td rowspan="2" valign="bottom"><a name="letter_l"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;l&#160;&#160;</div></td></tr></table>
9999
</td><td rowspan="2" valign="bottom"><a name="letter_r"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;r&#160;&#160;</div></td></tr></table>
100100
</td><td></td></tr>
101-
<tr><td></td></tr>
101+
<tr><td></td><td></td><td></td><td></td><td></td></tr>
102102
<tr><td valign="top"><a class="el" href="d7/d15/classpu_1_1_application.html">Application</a> (<a class="el" href="da/df2/namespacepu.html">pu</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="d0/d22/classpu_1_1_dialog.html">Dialog</a> (<a class="el" href="da/df2/namespacepu.html">pu</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="d0/dcb/classpu_1_1_layout.html">Layout</a> (<a class="el" href="da/df2/namespacepu.html">pu</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="db/d72/classpu_1_1element_1_1_rectangle.html">Rectangle</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td></tr>
103103
<tr><td rowspan="2" valign="bottom"><a name="letter_b"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;b&#160;&#160;</div></td></tr></table>
104104
</td><td rowspan="2" valign="bottom"><a name="letter_e"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;e&#160;&#160;</div></td></tr></table>
105105
</td><td rowspan="2" valign="bottom"><a name="letter_m"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;m&#160;&#160;</div></td></tr></table>
106106
</td><td valign="top"><a class="el" href="d6/dba/classpu_1_1render_1_1_renderer.html">Renderer</a> (<a class="el" href="d8/d89/namespacepu_1_1render.html">pu::render</a>)&#160;&#160;&#160;</td><td></td></tr>
107-
<tr><td rowspan="2" valign="bottom"><a name="letter_t"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;t&#160;&#160;</div></td></tr></table>
107+
<tr><td></td><td></td><td></td><td rowspan="2" valign="bottom"><a name="letter_t"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;t&#160;&#160;</div></td></tr></table>
108108
</td><td></td></tr>
109-
<tr><td valign="top"><a class="el" href="d8/d02/classpu_1_1element_1_1_button.html">Button</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="d6/d14/classpu_1_1element_1_1_element.html">Element</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="d5/d9b/classpu_1_1element_1_1_menu.html">Menu</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td></tr>
109+
<tr><td valign="top"><a class="el" href="d8/d02/classpu_1_1element_1_1_button.html">Button</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="d6/d14/classpu_1_1element_1_1_element.html">Element</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="d5/d9b/classpu_1_1element_1_1_menu.html">Menu</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td><td></td></tr>
110110
<tr><td rowspan="2" valign="bottom"><a name="letter_c"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;c&#160;&#160;</div></td></tr></table>
111111
</td><td rowspan="2" valign="bottom"><a name="letter_i"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;i&#160;&#160;</div></td></tr></table>
112112
</td><td valign="top"><a class="el" href="d0/dcd/classpu_1_1element_1_1_menu_item.html">MenuItem</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="d0/d38/classpu_1_1element_1_1_text_block.html">TextBlock</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td></tr>
113-
<tr><td rowspan="2" valign="bottom"><a name="letter_p"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;p&#160;&#160;</div></td></tr></table>
113+
<tr><td></td><td></td><td rowspan="2" valign="bottom"><a name="letter_p"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;p&#160;&#160;</div></td></tr></table>
114114
</td><td valign="top"><a class="el" href="d9/d2a/classpu_1_1element_1_1_toggle.html">Toggle</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td></tr>
115-
<tr><td valign="top"><a class="el" href="d4/d7e/structpu_1_1draw_1_1_color.html">Color</a> (<a class="el" href="dd/d08/namespacepu_1_1draw.html">pu::draw</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="df/d74/classpu_1_1element_1_1_image.html">Image</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td><td></td></tr>
115+
<tr><td valign="top"><a class="el" href="d4/d7e/structpu_1_1draw_1_1_color.html">Color</a> (<a class="el" href="dd/d08/namespacepu_1_1draw.html">pu::draw</a>)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="df/d74/classpu_1_1element_1_1_image.html">Image</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td><td></td><td></td></tr>
116116
<tr><td></td><td></td><td valign="top"><a class="el" href="d1/d83/classpu_1_1element_1_1_progress_bar.html">ProgressBar</a> (<a class="el" href="d4/dab/namespacepu_1_1element.html">pu::element</a>)&#160;&#160;&#160;</td><td></td><td></td></tr>
117117
<tr><td></td><td></td><td></td><td></td><td></td></tr>
118118
</table>
@@ -124,7 +124,7 @@
124124
<ul>
125125
<li class="footer">Generated by
126126
<a href="http://www.doxygen.org/index.html">
127-
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
127+
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
128128
</ul>
129129
</div>
130130
</body>

docs/d0/d09/structpu_1_1draw_1_1_color-members.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
55
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6-
<meta name="generator" content="Doxygen 1.8.14"/>
6+
<meta name="generator" content="Doxygen 1.8.15"/>
77
<meta name="viewport" content="width=device-width, initial-scale=1"/>
88
<title>Plutonium framework API: Member List</title>
99
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -32,14 +32,14 @@
3232
<div id="projectname">Plutonium framework API
3333
&#160;<span id="projectnumber">0.1</span>
3434
</div>
35-
<div id="projectbrief">Ready to make simple homebrew UIs?</div>
35+
<div id="projectbrief">Simple UI framework for libnx and SDL2</div>
3636
</td>
3737
</tr>
3838
</tbody>
3939
</table>
4040
</div>
4141
<!-- end header part -->
42-
<!-- Generated by Doxygen 1.8.14 -->
42+
<!-- Generated by Doxygen 1.8.15 -->
4343
<script type="text/javascript">
4444
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
4545
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
@@ -107,7 +107,7 @@
107107
<ul>
108108
<li class="footer">Generated by
109109
<a href="http://www.doxygen.org/index.html">
110-
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
110+
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
111111
</ul>
112112
</div>
113113
</body>

0 commit comments

Comments
 (0)