public LabeledControlComponent(IDrawingContext parent, string label, BaseRenderComponent component) : base(parent) { this.label = label.ToCharArray(); this.component = component; component.SetParent(this); Width = component.Width + PADDING_RIGHT; }
public void AddChild(BaseRenderComponent child, AlignVertical alignment) { child.Width = Width; children.Add(new ComponentChild { alignment = alignment, component = child }); child.SetParent(this); LayoutInvalidate(); }
public BaseRenderComponent AddChild(BaseRenderComponent child, AlignHorizontal alignment) { child.Height = Height; children.Add(new ComponentChild { alignment = alignment, component = child }); child.SetParent(this); LayoutInvalidate(); return(child); }
public BaseRenderComponent AddChild(BaseRenderComponent child, AlignHorizontal alignment, int width) { child.Width = width; return(AddChild(child, alignment)); }
public void AddChild(BaseRenderComponent child, AlignVertical alignment, int height) { child.Height = height; AddChild(child, alignment); }
public void AddChild(BaseRenderComponent child, int width, int height) { child.Width = width; child.Height = height; AddChild(child); }
public void AddChild(BaseRenderComponent child) { children.Add(child); LayoutInvalidate(); }