mirror of https://github.com/AxioDL/metaforce.git
Added source stubs
This commit is contained in:
parent
9c1d1bb6a1
commit
ddead8978b
|
@ -0,0 +1,47 @@
|
|||
add_subdirectory(freetype2)
|
||||
|
||||
if(NOT DEFINED HECL_INCLUDE_DIR)
|
||||
message(FATAL_ERROR "Specter may only be built as a sub-project containing hecl with
|
||||
HECL_INCLUDE_DIR set")
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED BOO_INCLUDE_DIR)
|
||||
message(FATAL_ERROR "Specter may only be built as a sub-project containing boo with
|
||||
BOO_INCLUDE_DIR set")
|
||||
endif()
|
||||
|
||||
include_directories(include ${HECL_INCLUDE_DIR} ${BOO_INCLUDE_DIR})
|
||||
|
||||
list(APPEND SPECTER_HEADERS
|
||||
include/Specter/Specter.hpp
|
||||
include/Specter/View.hpp
|
||||
include/Specter/RootView.hpp
|
||||
include/Specter/Space.hpp
|
||||
include/Specter/Table.hpp
|
||||
include/Specter/Outliner.hpp
|
||||
include/Specter/Panel.hpp
|
||||
include/Specter/Control.hpp
|
||||
include/Specter/Button.hpp
|
||||
include/Specter/TextField.hpp
|
||||
include/Specter/NumericField.hpp
|
||||
include/Specter/Menu.hpp
|
||||
include/Specter/Node.hpp
|
||||
include/Specter/NodeSocket.hpp)
|
||||
|
||||
list(APPEND SPECTER_SOURCES
|
||||
lib/Specter.cpp
|
||||
lib/View.cpp
|
||||
lib/RootView.cpp
|
||||
lib/Space.cpp
|
||||
lib/Table.cpp
|
||||
lib/Outliner.cpp
|
||||
lib/Panel.cpp
|
||||
lib/Control.cpp
|
||||
lib/Button.cpp
|
||||
lib/TextField.cpp
|
||||
lib/NumericField.cpp
|
||||
lib/Menu.cpp
|
||||
lib/Node.cpp
|
||||
lib/NodeSocket.cpp)
|
||||
|
||||
add_library(Specter ${SPECTER_SOURCES} ${SPECTER_HEADERS})
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_BUTTON_HPP
|
||||
#define SPECTER_BUTTON_HPP
|
||||
|
||||
#endif // SPECTER_BUTTON_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_CONTROL_HPP
|
||||
#define SPECTER_CONTROL_HPP
|
||||
|
||||
#endif // SPECTER_CONTROL_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_MENU_HPP
|
||||
#define SPECTER_MENU_HPP
|
||||
|
||||
#endif // SPECTER_MENU_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_NODE_HPP
|
||||
#define SPECTER_NODE_HPP
|
||||
|
||||
#endif // SPECTER_NODE_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_NODESOCKET_HPP
|
||||
#define SPECTER_NODESOCKET_HPP
|
||||
|
||||
#endif // SPECTER_NODESOCKET_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_NUMERICFIELD_HPP
|
||||
#define SPECTER_NUMERICFIELD_HPP
|
||||
|
||||
#endif // SPECTER_NUMERICFIELD_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_OUTLINER_HPP
|
||||
#define SPECTER_OUTLINER_HPP
|
||||
|
||||
#endif // SPECTER_OUTLINER_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_PANEL_HPP
|
||||
#define SPECTER_PANEL_HPP
|
||||
|
||||
#endif // SPECTER_PANEL_HPP
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef SPECTER_ROOTVIEW_HPP
|
||||
#define SPECTER_ROOTVIEW_HPP
|
||||
|
||||
#include "View.hpp"
|
||||
#include <boo/boo.hpp>
|
||||
|
||||
namespace Specter
|
||||
{
|
||||
|
||||
class RootView : public View, boo::IWindowCallback
|
||||
{
|
||||
void resized(const boo::SWindowRect& rect);
|
||||
void mouseDown(const boo::SWindowCoord& coord, boo::EMouseButton button, boo::EModifierKey mods);
|
||||
void mouseUp(const boo::SWindowCoord& coord, boo::EMouseButton button, boo::EModifierKey mods);
|
||||
void mouseMove(const boo::SWindowCoord& coord);
|
||||
void mouseEnter(const boo::SWindowCoord& coord);
|
||||
void mouseLeave(const boo::SWindowCoord& coord);
|
||||
void scroll(const boo::SWindowCoord& coord, const boo::SScrollDelta& scroll);
|
||||
|
||||
void touchDown(const boo::STouchCoord& coord, uintptr_t tid);
|
||||
void touchUp(const boo::STouchCoord& coord, uintptr_t tid);
|
||||
void touchMove(const boo::STouchCoord& coord, uintptr_t tid);
|
||||
|
||||
void charKeyDown(unsigned long charCode, boo::EModifierKey mods, bool isRepeat);
|
||||
void charKeyUp(unsigned long charCode, boo::EModifierKey mods);
|
||||
void specialKeyDown(boo::ESpecialKey key, boo::EModifierKey mods, bool isRepeat);
|
||||
void specialKeyUp(boo::ESpecialKey key, boo::EModifierKey mods);
|
||||
void modKeyDown(boo::EModifierKey mod, bool isRepeat);
|
||||
void modKeyUp(boo::EModifierKey mod);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // SPECTER_ROOTVIEW_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_SPACE_HPP
|
||||
#define SPECTER_SPACE_HPP
|
||||
|
||||
#endif // SPECTER_SPACE_HPP
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef SPECTER_HPP
|
||||
#define SPECTER_HPP
|
||||
|
||||
#include "Space.hpp"
|
||||
#include "Table.hpp"
|
||||
#include "Outliner.hpp"
|
||||
#include "Panel.hpp"
|
||||
#include "Control.hpp"
|
||||
#include "Button.hpp"
|
||||
#include "TextField.hpp"
|
||||
#include "NumericField.hpp"
|
||||
#include "Menu.hpp"
|
||||
#include "Node.hpp"
|
||||
#include "NodeSocket.hpp"
|
||||
|
||||
#endif // SPECTER_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_TABLE_HPP
|
||||
#define SPECTER_TABLE_HPP
|
||||
|
||||
#endif // SPECTER_TABLE_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef SPECTER_TEXTFIELD_HPP
|
||||
#define SPECTER_TEXTFIELD_HPP
|
||||
|
||||
#endif // SPECTER_TEXTFIELD_HPP
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef SPECTER_VIEW_HPP
|
||||
#define SPECTER_VIEW_HPP
|
||||
|
||||
namespace Specter
|
||||
{
|
||||
|
||||
class View
|
||||
{
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // SPECTER_VIEW_HPP
|
|
@ -0,0 +1,3 @@
|
|||
#include "Specter/RootView.hpp"
|
||||
|
||||
|
Loading…
Reference in New Issue