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