protected void OnAllocationChanged() { if (ParentGroup != null) { ParentGroup.OnAllocationChanged(); } else { AllocationChanged?.Invoke(this, EventArgs.Empty); } }
public void Free() { Texture texture; lock (_syncObj) { texture = _texture; _texture = null; } if (texture != null) { AllocationChanged?.Invoke(-AllocationSize); texture.Dispose(); _charSet.Clear(); _currentX = 0; _rowHeight = 0; _currentY = 0; } }