This commit is contained in:
@@ -15,11 +15,14 @@ namespace studio {
|
||||
class StudioUI;
|
||||
|
||||
struct Context {
|
||||
StudioUI &ui;
|
||||
Project *project = nullptr;
|
||||
turbine::Context &tctx;
|
||||
Context(StudioUI &pUi, turbine::Context &pTctx) noexcept:
|
||||
ui(pUi), tctx(pTctx) {}
|
||||
public:
|
||||
friend StudioUI;
|
||||
StudioUI &ui;
|
||||
Project *project = nullptr;
|
||||
turbine::Context &tctx;
|
||||
protected:
|
||||
Context(StudioUI &pUi, turbine::Context &pTctx) noexcept:
|
||||
ui{pUi}, tctx{pTctx} {}
|
||||
};
|
||||
|
||||
[[nodiscard]]
|
||||
@@ -27,6 +30,11 @@ inline keel::Context &keelCtx(Context &ctx) noexcept {
|
||||
return keelCtx(ctx.tctx);
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
inline keel::Context const &keelCtx(Context const &ctx) noexcept {
|
||||
return keelCtx(ctx.tctx);
|
||||
}
|
||||
|
||||
void navigateTo(Context &ctx, ox::StringParam filePath, ox::StringParam navArgs = "") noexcept;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user