Guest User

Window stuff

a guest
May 7th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. class ui_system
  2. {  
  3.     int base_window(ui_system::window win, int xb, int yb, int zb);
  4.     int window(int xw, int yw, int zw);
  5.  
  6. } ui_system;
  7.  
  8. int ui_system::window(int xw, int yw, int zw)
  9. {
  10.     //draw window and set it's default position
  11. }
  12.  
  13. int ui_system::base_window(ui_system::window win, int xb, int yb, int zb){
  14.     win.xw = xb/2 //however you would do that... this would center the window inside the base window on the x axis
  15.     win.yw = yb/2 //same thing but for y axis
  16. }
  17.  
  18.  
  19. int main(int argc, char *Argv[])
  20. {
  21.     ui_system uis;
  22.     int windowhandle uis.window(10,10,1);
  23.     uis.base_window(windowhandle, 25, 25, 0);
  24. };
Add Comment
Please, Sign In to add comment