4 writes to _size
PresentationCore (4)
System\Windows\Media\MatrixStack.cs (4)
82
_size
++;
120
_size
++;
150
_size
++;
167
_size
--;
24 references to _size
PresentationCore (24)
System\Windows\Media\MatrixStack.cs (24)
46
if (
_size
== _items.Length)
48
Matrix[] newItems = new Matrix[s_growFactor *
_size
];
49
Array.Copy(_items, newItems,
_size
);
65
if (combine && (
_size
> 0))
70
_items[
_size
] = matrix;
73
MatrixUtil.MultiplyMatrix(ref _items[
_size
], ref _items[
_size
- 1]);
79
_items[
_size
] = matrix;
86
_highWaterMark = Math.Max(_highWaterMark,
_size
);
105
if (combine && (
_size
> 0))
112
transform.MultiplyValueByMatrix(ref _items[
_size
], ref _items[
_size
- 1]);
117
_items[
_size
] = transform.Value;
124
_highWaterMark = Math.Max(_highWaterMark,
_size
);
135
if (combine && (
_size
> 0))
138
_items[
_size
] = _items[
_size
-1];
144
_items[
_size
] = Matrix.Identity;
148
MatrixUtil.PrependOffset(ref _items[
_size
], offset.X, offset.Y);
154
_highWaterMark = Math.Max(_highWaterMark,
_size
);
165
_items[
_size
-1] = new Matrix();
176
return _items[
_size
-1];
182
public bool IsEmpty { get { return
_size
== 0; } }
191
Debug.Assert(
_size
== 0); // The stack must be empty before this is called.