move library to a folder

main
Clyne 2 months ago
parent 00f84e3b98
commit cd96a31b3e
Signed by: clyne
GPG Key ID: 1B74EE6C49C96795

@ -1,6 +1,8 @@
#include "view.hpp" #include "mbuoy/view.hpp"
#include "ui/button.hpp" #include "mbuoy/ui/button.hpp"
#include "ui/label.hpp" #include "mbuoy/ui/label.hpp"
#include <cstdio>
void drawButton(const mbuoy::position& pos, const mbuoy::dimensions& dim) void drawButton(const mbuoy::position& pos, const mbuoy::dimensions& dim)
{ {
@ -21,6 +23,7 @@ int main()
mbuoy::dimensions(40, 40), mbuoy::dimensions(40, 40),
mbuoy::ondraw(drawButton)>{} mbuoy::ondraw(drawButton)>{}
>; >;
test.render(); test.render();
} }

@ -1,12 +1,12 @@
#ifndef MBUOY_UI_BUTTON_HPP #ifndef MBUOY_UI_BUTTON_HPP
#define MBUOY_UI_BUTTON_HPP #define MBUOY_UI_BUTTON_HPP
#include "attr/dimensions.hpp" #include "../attr/dimensions.hpp"
#include "attr/ondraw.hpp" #include "../attr/ondraw.hpp"
#include "attr/position.hpp" #include "../attr/position.hpp"
#include "attr/string.hpp" #include "../attr/string.hpp"
#include "find.hpp" #include "../find.hpp"
#include "port.hpp" #include "../port.hpp"
namespace mbuoy { namespace mbuoy {

@ -1,10 +1,10 @@
#ifndef MBUOY_UI_LABEL_HPP #ifndef MBUOY_UI_LABEL_HPP
#define MBUOY_UI_LABEL_HPP #define MBUOY_UI_LABEL_HPP
#include "attr/position.hpp" #include "../attr/position.hpp"
#include "attr/string.hpp" #include "../attr/string.hpp"
#include "find.hpp" #include "../find.hpp"
#include "port.hpp" #include "../port.hpp"
namespace mbuoy { namespace mbuoy {
Loading…
Cancel
Save