4 writes to _size
PresentationCore (4)
System\Windows\Media\MatrixStack.cs (4)
77
_size
++;
115
_size
++;
145
_size
++;
162
_size
--;
24 references to _size
PresentationCore (24)
System\Windows\Media\MatrixStack.cs (24)
41
if (
_size
== _items.Length)
43
Matrix[] newItems = new Matrix[s_growFactor *
_size
];
44
Array.Copy(_items, newItems,
_size
);
60
if (combine && (
_size
> 0))
65
_items[
_size
] = matrix;
68
MatrixUtil.MultiplyMatrix(ref _items[
_size
], ref _items[
_size
- 1]);
74
_items[
_size
] = matrix;
81
_highWaterMark = Math.Max(_highWaterMark,
_size
);
100
if (combine && (
_size
> 0))
107
transform.MultiplyValueByMatrix(ref _items[
_size
], ref _items[
_size
- 1]);
112
_items[
_size
] = transform.Value;
119
_highWaterMark = Math.Max(_highWaterMark,
_size
);
130
if (combine && (
_size
> 0))
133
_items[
_size
] = _items[
_size
-1];
139
_items[
_size
] = Matrix.Identity;
143
MatrixUtil.PrependOffset(ref _items[
_size
], offset.X, offset.Y);
149
_highWaterMark = Math.Max(_highWaterMark,
_size
);
160
_items[
_size
-1] = new Matrix();
171
return _items[
_size
-1];
177
public bool IsEmpty { get { return
_size
== 0; } }
186
Debug.Assert(
_size
== 0); // The stack must be empty before this is called.