Example #1
0
	App() {
		Sizeable().Zoomable();

		slider << THISFN(Slider);
		slider.Range(700);
		slider <<= 250;
		Add(slider.BottomPosZ(5, 30).HSizePos(10, 10));
		Slider();

		dynarect.Color(SRed);
		Add(dynarect.VSizePos(40, 40));

		Add(text.LeftPos(0, 200).TopPos(0, 40));
	}
Example #2
0
void Ctrl::InitFB()
{
	Ctrl::GlobalBackBuffer();
	Ctrl::InitTimer();
	framebuffer.Create(1, 1);

#ifdef PLATFORM_POSIX
	SetStdFont(ScreenSans(12)); //FIXME general handling
#endif
	ChStdSkin();

	static StaticRect x;
	x.Color(Cyan());
	SetDesktop(x);
}
Example #3
0
	void Slider() {
		dynarect.SetRectX(50, ~slider);
		text = "\1[C6*/@b " + AsString(~slider);
	}