| 1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Diagnostics.CodeAnalysis;
- using Avalonia.Metadata;
- using Avalonia.Platform;
- namespace Avalonia.Controls.Platform
- {
- [Unstable]
- public interface INativeControlHostImpl
- {
- INativeControlHostDestroyableControlHandle CreateDefaultChild(IPlatformHandle parent);
- INativeControlHostControlTopLevelAttachment CreateNewAttachment(Func<IPlatformHandle, IPlatformHandle> create);
- INativeControlHostControlTopLevelAttachment CreateNewAttachment(IPlatformHandle handle);
- bool IsCompatibleWith(IPlatformHandle handle);
- }
- [Unstable]
- public interface INativeControlHostDestroyableControlHandle : IPlatformHandle
- {
- void Destroy();
- }
- [Unstable]
- public interface INativeControlHostControlTopLevelAttachment : IDisposable
- {
- INativeControlHostImpl? AttachedTo { get; set; }
- bool IsCompatibleWith(INativeControlHostImpl host);
- void HideWithSize(Size size);
- void ShowInBounds(Rect rect);
- }
- }
|