Ejemplo n.º 1
0
 public override float Get(Cell cell)
 {
     return Get(cell.Layout.Table);
 }
Ejemplo n.º 2
0
 public override float Get(Cell cell)
 {
     return 0;
 }
Ejemplo n.º 3
0
 public override float Get(Cell cell)
 {
     return _value;
 }
Ejemplo n.º 4
0
 public override float Get(Cell cell)
 {
     return Toolkit.Instance.Width(_widget) * _percent;
 }
Ejemplo n.º 5
0
            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);
            }
Ejemplo n.º 6
0
 public float Height(Cell cell)
 {
     return Toolkit.Instance.Height(Get(cell));
 }
Ejemplo n.º 7
0
 public float Width(Cell cell)
 {
     return Toolkit.Instance.Width(Get(cell));
 }
Ejemplo n.º 8
0
 protected abstract void SetWidgetCore(object layout, Cell cell, object widget);
Ejemplo n.º 9
0
 public abstract float Get(Cell cell);
Ejemplo n.º 10
0
 public void SetWidget(object layout, Cell cell, object widget)
 {
     SetWidgetCore(layout, cell, widget);
 }
Ejemplo n.º 11
0
 public abstract void FreeCell(Cell cell);
Ejemplo n.º 12
0
 public Configurer(Cell cell)
 {
     _cell = cell;
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 14
0
        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;
        }