20 private bool _isShown;
41 PointF anchor =
default,
42 string? nickname =
null)
43 : base(renderSurfaceHost, mode, anchor, nickname)
47 #endregion constructors
49 #region public properties
56 #endregion public properties
58 #region public methods
62 bool keepCurrentOffset =
true,
63 Vector2? explicitLocalOffsetPx =
null)
65 ArgumentNullException.ThrowIfNull(child);
73 explicitLocalOffsetPx);
89 ArgumentNullException.ThrowIfNull(child);
106 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
113 #endregion public methods
115 #region protected methods
132 Vector2 localOffsetPx)
135 ArgumentNullException.ThrowIfNull(widget);
139 keepCurrentOffset:
false,
140 explicitLocalOffsetPx: localOffsetPx);
161 bool dispose =
false)
163 ArgumentNullException.ThrowIfNull(widget);
180 base.OnChildAdded(child);
183 widget.KeyboardInput += OnChildKeyboardInput;
191 widget.KeyboardInput -= OnChildKeyboardInput;
193 base.OnChildRemoved(child);
203 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
210 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
221 base.ProcessActivated();
225 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
232 foreach (
WidgetBase child
in GetChildWidgetSnapshot())
238 #endregion protected methods
240 #region private methods
242 private void OnChildKeyboardInput(
255 DispatchKeyboardInput(parentArgs);
257 args.Handled = parentArgs.Handled;
267 #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.