#pragma once
//! режимы растягивания вывода
enum class ResizeMode {
  MULTYPLY = 0, ///< 1:1
  Y_ONLY, ///< Y resizeble, X aspected
  ALL, ///< X & Y scalable
  MAX, ///< last item for counting
};
//! параметры ресайза окон
struct ResizeCtx {
  ResizeMode mode = ResizeMode::Y_ONLY;
  //! Window sizes:
  uint x = 0, y = 0;
  //! visible output rectangle
  uint sx = 0, sy = 0, ex = 0, ey = 0;
  bool bad() const { return ex <= sx or ey <= sy or !x or !y; }
};