45 const float y = parent_height - child_height;
46 return y > 0.0f ? y : 0.0f;
96 return std::to_string(
static_cast<int>(r.width)) +
"x" +
97 std::to_string(
static_cast<int>(r.height)) +
"@" +
98 std::to_string(
static_cast<int>(r.x)) +
"," + std::to_string(
static_cast<int>(r.y));
102 return "parent=" + rect(g.parent_frame) +
" parent_bounds=" + rect(g.parent_bounds) +
103 " child=" + rect(g.child_frame) +
104 " window=" + (g.has_window ? rect(g.window_frame) : std::string(
"none")) +
105 " scale=" + std::to_string(g.backing_scale) + (g.parent_flipped ?
" flipped" :
"");