Exemplo n.º 1
0
 virtual void OnResize(UPixelScalar width, UPixelScalar height) {
   SingleWindow::OnResize(width, height);
   key_code_dumper.move(0, 0, width, (height + 1) / 2);
   close_button.move(0, (height + 1) / 2, width, height / 2);
 }
Exemplo n.º 2
0
 virtual bool on_resize(unsigned width, unsigned height) {
   SingleWindow::on_resize(width, height);
   key_code_dumper.move(0, 0, width, (height + 1) / 2);
   close_button.move(0, (height + 1) / 2, width, height / 2);
   return true;
 }