-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
75 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include <functional> | ||
#include <spaic/VNode.hpp> | ||
|
||
namespace spaic::comp | ||
{ | ||
using ShouldRender = bool; | ||
using Update = std::function<ShouldRender()>; | ||
using Render = std::function<spaic::vnode::VNode()>; | ||
|
||
template <typename Props, typename StateSet> | ||
Component<Props> create_component(Props props, StateSet state, Update update, Render render); | ||
} // namespace spaic::comp | ||
|
||
#include <spaic/detail/ComponentPart.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
#pragma once | ||
|
||
#include <functional> | ||
#include <variant> | ||
#include <spaic/VNode.hpp> | ||
#include <spaic/Component.hpp> | ||
#include <spaic/Property.hpp> | ||
#include <spaic/State.hpp> | ||
|
||
namespace spaic::comp | ||
{ | ||
template <typename Props, typename StateSet> | ||
Component<Props> create_component(Props props, StateSet state, Update update, Render render) | ||
{ | ||
// TODO: create_component(props, state, update, render) | ||
return Component<Props>(); | ||
} | ||
} // namespace spaic::comp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <spaic-css/Stylesheet.hpp> | ||
|
||
namespace spaic::css | ||
{ | ||
Stylesheet::Stylesheet() {} | ||
} // namespace spaic::css |