private void AlignToGauge() { int x = gauge.GetX(); int y = gauge.GetY(); if (x + TOOLTIP_WIDTH + 10 < Screen.width) { SetPosition(x + gauge.GetWidth(), y); } else { SetPosition(x - TOOLTIP_WIDTH, y); } }
public void SetWindowPosition(AbstractGauge gauge) { currentGaugeSet.SetWindowPosition(gauge.GetWindowId(), gauge.GetX(), gauge.GetY()); }
public void snap(AbstractGauge gauge) { checkSnap(gauge, gauge.GetX(), gauge.GetY(), gauge.GetWidth(), gauge.GetHeight()); }