fix things

This commit is contained in:
Nishi 2026-04-17 21:26:28 +09:00
commit 2c44efeb2f
Signed by: nishi
GPG key ID: 27EF69B208EB9343
48 changed files with 315 additions and 394 deletions

View file

@ -5,25 +5,25 @@
#include <iostream>
class MyButton : public MwCXX::Button {
protected:
void OnActivate() {
std::cout << "Hello" << std::endl;
}
protected:
void OnActivate() {
std::cout << "Hello" << std::endl;
}
public:
MWCXX_CONSTRUCTOR(MyButton, MwCXX::Button) {
this->SetText("Hello, world!");
}
public:
MWCXX_CONSTRUCTOR(MyButton, MwCXX::Button) {
this->SetText("Hello, world!");
}
};
class MyWindow : public MwCXX::Window {
private:
MyButton* epic;
private:
MyButton* epic;
public:
MWCXX_CONSTRUCTOR(MyWindow, MwCXX::Window) {
this->epic = new MyButton("epic app", this, 10, 10, 640 - 10 * 2, 480 - 10 * 2);
}
public:
MWCXX_CONSTRUCTOR(MyWindow, MwCXX::Window) {
this->epic = new MyButton("epic app", this, 10, 10, 640 - 10 * 2, 480 - 10 * 2);
}
};
int main() {