public void size(Widget self, Fan.Fwt.Size size) { if (m_control == null) { this.m_size = size; return; } m_control.Size = new System.Drawing.Size((int)size.m_w.val, (int)size.m_h.val); }
public void bounds(Widget self, Rect b) { if (m_control == null) { m_pos = b.pos(); m_size = b.size(); return; } m_control.Bounds = new Rectangle((int)b.m_x.val, (int)b.m_y.val, (int)b.m_w.val, (int)b.m_h.val); }
public void size(Widget self, Fan.Fwt.Size size) { if (m_control == null) { this.m_size = size; return; } m_control.Size = new System.Drawing.Size((int)size.m_w.val, (int)size.m_h.val); }