20 private bool _isShown;
42 PointF anchor =
default,
43 string? nickname =
null)
52 #endregion constructors
54 #region public properties
61 #endregion public properties
63 #region public methods
68 bool keepCurrentOffset =
true,
69 Vector2? explicitLocalOffsetPx =
null)
71 ArgumentNullException.ThrowIfNull(child);
79 explicitLocalOffsetPx);
95 ArgumentNullException.ThrowIfNull(child);
104 return base.
Remove(child);
112 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
119 #endregion public methods
121 #region protected methods
138 Vector2 localOffsetPx)
141 ArgumentNullException.ThrowIfNull(widget);
145 keepCurrentOffset:
false,
146 explicitLocalOffsetPx: localOffsetPx);
167 bool dispose =
false)
169 ArgumentNullException.ThrowIfNull(widget);
186 base.OnChildAdded(child);
189 widget.KeyboardInput += OnChildKeyboardInput;
197 widget.KeyboardInput -= OnChildKeyboardInput;
199 base.OnChildRemoved(child);
209 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
216 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
227 base.ProcessActivated();
231 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
238 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
244 #endregion protected methods
246 #region private methods
248 private void OnChildKeyboardInput(
261 DispatchKeyboardInput(parentArgs);
263 args.Handled = parentArgs.Handled;
273 #endregion private methods
virtual DirectComposite Remove(IDirectCompositeChild child)
Removes a child without disposing it.
ReadOnlyCollection< IDirectCompositeChild > Children
Gets the children owned by the composite.
virtual DirectComposite Clear()
Removes every child without disposing them.
virtual void Dispose()
Disposes the composite and every child it owns.
DirectComposite(RenderSurfaceHostBase renderSurfaceHost, DirectDrawingMode mode, PointF anchor=default, string? nickname=null)
Initializes a new instance of the DirectComposite class.
Represents a base class for hosting a render surface, providing functionality for managing rendering ...
Defines a movable direct drawable that may be owned by a DirectComposite.
DirectDrawingMode
Specifies where direct drawing operations are applied within the rendering pipeline.