public override float Get(Cell cell) { return Get(cell.Layout.Table); }
public override float Get(Cell cell) { return 0; }
public override float Get(Cell cell) { return _value; }
public override float Get(Cell cell) { return Toolkit.Instance.Width(_widget) * _percent; }
public override float Get(Cell cell) { if (cell == null) throw new ArgumentNullException("Cell property not set."); object widget = cell.Widget; if (widget == null) return 0; return Toolkit.Instance.PrefWidth(widget); }
public float Height(Cell cell) { return Toolkit.Instance.Height(Get(cell)); }
public float Width(Cell cell) { return Toolkit.Instance.Width(Get(cell)); }
protected abstract void SetWidgetCore(object layout, Cell cell, object widget);
public abstract float Get(Cell cell);
public void SetWidget(object layout, Cell cell, object widget) { SetWidgetCore(layout, cell, widget); }
public abstract void FreeCell(Cell cell);
public Configurer(Cell cell) { _cell = cell; }
internal void Set(Cell defaults) { MinWidthValue = defaults.MinWidthValue; MinHeightValue = defaults.MinHeightValue; PrefWidthValue = defaults.PrefWidthValue; PrefHeightValue = defaults.PrefHeightValue; MaxWidthValue = defaults.MaxWidthValue; MaxHeightValue = defaults.MaxHeightValue; SpaceTopValue = defaults.SpaceTopValue; SpaceLeftValue = defaults.SpaceLeftValue; SpaceBottomValue = defaults.SpaceBottomValue; SpaceRightValue = defaults.SpaceRightValue; PadTopValue = defaults.PadTopValue; PadLeftValue = defaults.PadLeftValue; PadBottomValue = defaults.PadBottomValue; PadRightValue = defaults.PadRightValue; FillX = defaults.FillX; FillY = defaults.FillY; Align = defaults.Align; ExpandX = defaults.ExpandX; ExpandY = defaults.ExpandY; Ignore = defaults.Ignore; Colspan = defaults.Colspan; UniformX = defaults.UniformX; UniformY = defaults.UniformY; }
internal void Merge(Cell cell) { if (cell == null) return; MinWidthValue = (cell.MinWidthValue != null) ? cell.MinWidthValue : MinWidthValue; MinHeightValue = (cell.MinHeightValue != null) ? cell.MinHeightValue : MinHeightValue; PrefWidthValue = (cell.PrefWidthValue != null) ? cell.PrefWidthValue : PrefWidthValue; PrefHeightValue = (cell.PrefHeightValue != null) ? cell.PrefHeightValue : PrefHeightValue; MaxWidthValue = (cell.MaxWidthValue != null) ? cell.MaxWidthValue : MaxWidthValue; MaxHeightValue = (cell.MaxHeightValue != null) ? cell.MaxHeightValue : MaxHeightValue; SpaceTopValue = (cell.SpaceTopValue != null) ? cell.SpaceTopValue : SpaceTopValue; SpaceLeftValue = (cell.SpaceLeftValue != null) ? cell.SpaceLeftValue : SpaceLeftValue; SpaceBottomValue = (cell.SpaceBottomValue != null) ? cell.SpaceBottomValue : SpaceBottomValue; SpaceRightValue = (cell.SpaceRightValue != null) ? cell.SpaceRightValue : SpaceRightValue; PadTopValue = (cell.PadTopValue != null) ? cell.PadTopValue : PadTopValue; PadLeftValue = (cell.PadLeftValue != null) ? cell.PadLeftValue : PadLeftValue; PadBottomValue = (cell.PadBottomValue != null) ? cell.PadBottomValue : PadBottomValue; PadRightValue = (cell.PadRightValue != null) ? cell.PadRightValue : PadRightValue; FillX = (cell.FillX != null) ? cell.FillX : FillX; FillY = (cell.FillY != null) ? cell.FillY : FillY; Align = (cell.Align != null) ? cell.Align : Align; ExpandX = (cell.ExpandX != null) ? cell.ExpandX : ExpandX; ExpandY = (cell.ExpandY != null) ? cell.ExpandY : ExpandY; Ignore = (cell.Ignore != null) ? cell.Ignore : Ignore; Colspan = (cell.Colspan != null) ? cell.Colspan : Colspan; UniformX = (cell.UniformX != null) ? cell.UniformX : UniformX; UniformY = (cell.UniformY != null) ? cell.UniformY : UniformY; }