rename CallableFunc to CallableLambda
This commit is contained in:
parent
ee8ff11712
commit
aa7189dd25
8 changed files with 43 additions and 19 deletions
|
|
@ -7,11 +7,13 @@ namespace fishbone {
|
|||
|
||||
#include <fishbone/machdep.h>
|
||||
#include <fishbone/sound.h>
|
||||
#include <fishbone/window.h>
|
||||
|
||||
namespace fishbone {
|
||||
class Client {
|
||||
public:
|
||||
fishbone::SoundDriver sound;
|
||||
fishbone::Window window;
|
||||
};
|
||||
}; // namespace fishbone
|
||||
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@
|
|||
#include <fishbone/mixer.h>
|
||||
#include <fishbone/thread.h>
|
||||
#include <fishbone/file.h>
|
||||
#include <fishbone/window.h>
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@ namespace fishbone {
|
|||
|
||||
public:
|
||||
using Callable = void(*)(fishbone::Thread* thread, void* arg);
|
||||
using CallableFunc = std::function<void(fishbone::Thread* thread)>;
|
||||
using CallableLambda = std::function<void(fishbone::Thread* thread)>;
|
||||
|
||||
Thread(Callable call, void* arg);
|
||||
Thread(CallableFunc call);
|
||||
Thread(CallableLambda call);
|
||||
~Thread();
|
||||
|
||||
void join();
|
||||
|
|
|
|||
21
engine/include/fishbone/window.h
Normal file
21
engine/include/fishbone/window.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef __FISHBONE_WINDOW_H__
|
||||
#define __FISHBONE_WINDOW_H__
|
||||
|
||||
namespace fishbone {
|
||||
class Window;
|
||||
}; // namespace fishbone
|
||||
|
||||
#include <fishbone/machdep.h>
|
||||
|
||||
namespace fishbone {
|
||||
class Window {
|
||||
struct Impl;
|
||||
Impl* impl;
|
||||
|
||||
public:
|
||||
Window(std::string title, int width, int height);
|
||||
~Window();
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue