rename CallableFunc to CallableLambda

This commit is contained in:
Nishi 2026-05-29 01:10:45 +09:00
commit aa7189dd25
8 changed files with 43 additions and 19 deletions

View file

@ -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

View file

@ -6,5 +6,6 @@
#include <fishbone/mixer.h>
#include <fishbone/thread.h>
#include <fishbone/file.h>
#include <fishbone/window.h>
#endif

View file

@ -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();

View 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