protected unsafe override void OnGetPreferredHeight(Widget widget, out int minimum_size, out int natural_size) { base.OnGetPreferredHeight(widget, out minimum_size, out natural_size); fixed(int *m = &minimum_size) fixed(int *n = &natural_size) { Safe.Assign(m, Math.Max(RowHeight, Safe.Default(m))); Safe.Assign(n, Math.Max(RowHeight, Safe.Default(n))); } }
protected unsafe override void OnGetPreferredWidth(Widget widget, out int minimum_size, out int natural_size) { base.OnGetPreferredWidth(widget, out minimum_size, out natural_size); fixed(int *m = &minimum_size) fixed(int *n = &natural_size) { Safe.Assign(m, 200); Safe.Assign(n, 200); } }