Esempio n. 1
0
    public void Move(Widget w, double theta, uint r)
    {
        PolarFixedChild pfc = (PolarFixedChild)this[w];

        if (pfc != null)
        {
            pfc.Theta = theta;
            pfc.R     = r;
        }
    }
Esempio n. 2
0
    // invoked by Container.Remove (w)
    protected override void OnRemoved(Widget w)
    {
        PolarFixedChild pfc = (PolarFixedChild)this[w];

        if (pfc != null)
        {
            pfc.Child.Unparent();
            children.Remove(pfc);
            QueueResize();
        }
    }