Skip to content

Instantly share code, notes, and snippets.

@jkells
Created December 9, 2009 04:36
Show Gist options
  • Save jkells/252264 to your computer and use it in GitHub Desktop.
Save jkells/252264 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include "sample.h"
#include "ail/view.h"
#include "ail/label.h"
using namespace std;
Application* ailGetApplication(){
return new AppSample();
}
void AppSample::onLoad(){
View* v = new View();
Label* l = new Label();
v->init(50,50,200,200);
l->init(50,50,100,100);
l->setText(string("Hello World"));
v->addSubView(l);
setRootView(v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment