Class DesktopWindowListBuffer
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
A class providing a reference implementation for Maa Toolkit Desktop Window List Buffer section of MaaFramework.Binding.Interop.Native.MaaToolkit.
public class DesktopWindowListBuffer : MaaListBuffer<nint, DesktopWindowInfo>, IMaaListBuffer<nint, DesktopWindowInfo>, IMaaListBuffer<DesktopWindowInfo>, IList<DesktopWindowInfo>, ICollection<DesktopWindowInfo>, IEnumerable<DesktopWindowInfo>, IEnumerable, IMaaBuffer<nint, IMaaListBuffer<DesktopWindowInfo>>, IMaaBuffer<IMaaListBuffer<DesktopWindowInfo>>, IMaaDisposableHandle<nint>, IMaaDisposable, IDisposable, IDesktopWindowListBufferStatic<nint>
Inheritance
Implements
Inherited Members
Constructors
- DesktopWindowListBuffer(nint)
-
Creates a MaaFramework.Binding.Buffers.DesktopWindowListBuffer instance.
- DesktopWindowListBuffer()
-
Creates a MaaFramework.Binding.Buffers.DesktopWindowListBuffer instance.
Properties
- IsEmpty
-
Gets a value indicates whether the MaaFramework.Binding.Buffers.IMaaListBuffer`1 is empty.
- IsReadOnly
-
Gets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only.
- MaaSizeCount
-
Gets the number of elements contained in the MaaFramework.Binding.Buffers.IMaaListBuffer`1.
- this[ulong]
-
Gets the element at the specified index.
Methods
- ReleaseHandle()
-
When overridden in a derived class, executes the code required to free the handle.
- TryAdd(DesktopWindowInfo)
-
Adds (Copys) an element to the MaaFramework.Binding.Buffers.IMaaListBuffer`1.
- TryClear()
-
Removes all elements from the MaaFramework.Binding.Buffers.IMaaListBuffer`1.
- TryCopyTo(nint)
-
Copies all values of the current buffer to the specified buffer.
- TryGetList(nint, out IList<DesktopWindowInfo>)
-
Gets the MaaFramework.Binding.DesktopWindowInfo list from a DesktopWindowListBuffer.
- TryGetList(out IList<DesktopWindowInfo>, Func<nint, bool>)
-
Gets the MaaFramework.Binding.DesktopWindowInfo list from a function using DesktopWindowListBuffer.
- TryIndexOf(DesktopWindowInfo, out ulong)
-
Attempts to get index of the specified element.
- TryRemoveAt(ulong)
-
Removes the element at the specified index.