App.hx 439 B

123456789101112131415161718192021
  1. package arm;
  2. class App {
  3. public static function w():Int {
  4. if (UINodes.show) return Std.int((kha.System.windowWidth() - UITrait.windowW) / 2);
  5. else return kha.System.windowWidth() - UITrait.windowW;
  6. }
  7. public static function h():Int {
  8. return kha.System.windowHeight();
  9. }
  10. public static function realw():Int {
  11. return kha.System.windowWidth();
  12. }
  13. public static function realh():Int {
  14. return kha.System.windowHeight();
  15. }
  16. }