Box

from acron.layout import Box
class Box(corner: str, x: float, y: float, w: float, h: float)

Bases: object

One panel: a size, and where its top-left corner sits.

corner is a acron.hud.PixelFrame anchor (tl, tr, bl, br, tc). x and y are measured from it in authored pixels, y down — so a bottom-anchored panel has a NEGATIVE y, which is the honest way to say “up from the bottom edge”.

Inheritance diagram

digraph inheritance19f5e9ca04 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Box" [URL="acron.layout.Box.html#acron.layout.Box",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="One panel: a size, and where its top-left corner sits."]; }
corner
h
w
x
y