This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class Min3D : Window | |
{ | |
caption = "Hello, 3D"; | |
borderStyle = sizable; | |
hasMaximize = true; | |
hasMinimize = true; | |
hasClose = true; | |
clientSize = { 640, 480 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
{ | |
int a; | |
int privateMethod() | |
{ | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int currentYear = 2008; | |
class Person { | |
public: | |
struct | |
{ | |
operator int () | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include "ecere.hpp" | |
class HelloForm : public Window | |
{ | |
public: | |
Label label; | |
HelloForm() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
// #define __CONSOLE_APP__ | |
#include "ecere.hpp" | |
class HelloForm2 : public Window | |
{ | |
public: | |
Button button; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button.notifyClicked = +[](HelloForm2 & self, Button & btn, int x, int y, Modifiers mods) | |
{ | |
MessageBox msgBox; | |
msgBox.caption = self.button.caption; | |
msgBox.contents = $("C++ Bindings!"); | |
msgBox.modal(); | |
return true; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo { }; | |
class Bar : Foo { }; | |
class Test { public: void (* fn)(Foo &); }; | |
void test() | |
{ | |
Test t; | |
t.fn = +[](Bar & self) { }; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include "ecere.hpp" | |
GuiApplication app; | |
main_DEFINITION; | |
class HelloForm2 : public Window | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MODULE_NAME "HelloForm" | |
#include <ecere> | |
GuiApplication app; | |
main_DEFINITION; | |
class HelloForm2 : public Window | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void test() | |
{ | |
unsigned int size = 5; | |
void (** foo)(void); | |
foo = new (void(*[size])(void)); | |
} |