Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created May 10, 2014 22:02
Show Gist options
  • Save jerstlouis/cc69b0d3d4e6717cc515 to your computer and use it in GitHub Desktop.
Save jerstlouis/cc69b0d3d4e6717cc515 to your computer and use it in GitHub Desktop.
import "ecere"
class Form1 : Window
{
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
clientSize = { 632, 438 };
void OnRedraw(Surface surface)
{
surface.DrawLine(50, 10, 10, 100);
surface.DrawLine(10, 100, 200, 200);
surface.DrawLine(200, 200, 50, 10);
}
}
Form1 form1 {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment