Class Bitset
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public sealed class Bitset : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Bitset>, IDisposable
- Inheritance
-
Bitset
- Implements
- Inherited Members
Constructors
Bitset(BitsetOwnedHandle)
public Bitset(BitsetOwnedHandle handle)
Parameters
handle
BitsetOwnedHandle
Properties
Handle
public BitsetOwnedHandle Handle { get; }
Property Value
Methods
Add(uint)
public bool Add(uint value)
Parameters
value
uint
Returns
AddRange(uint, uint)
public void AddRange(uint start, uint nItems)
Parameters
AddRangeClosed(uint, uint)
public void AddRangeClosed(uint first, uint last)
Parameters
AddRectangle(uint, uint, uint, uint)
public void AddRectangle(uint start, uint width, uint height, uint stride)
Parameters
Contains(uint)
public bool Contains(uint value)
Parameters
value
uint
Returns
Copy()
public Bitset Copy()
Returns
Difference(Bitset)
public void Difference(Bitset other)
Parameters
other
Bitset
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(Bitset?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Bitset? other)
Parameters
other
BitsetAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetMaximum()
public uint GetMaximum()
Returns
GetMinimum()
public uint GetMinimum()
Returns
GetNth(uint)
public uint GetNth(uint nth)
Parameters
nth
uint
Returns
GetSize()
public ulong GetSize()
Returns
GetSizeInRange(uint, uint)
public ulong GetSizeInRange(uint first, uint last)
Parameters
Returns
Intersect(Bitset)
public void Intersect(Bitset other)
Parameters
other
Bitset
IsEmpty()
public bool IsEmpty()
Returns
NativeEquals(Bitset)
public bool NativeEquals(Bitset other)
Parameters
other
Bitset
Returns
NewEmpty()
public static Bitset NewEmpty()
Returns
NewRange(uint, uint)
public static Bitset NewRange(uint start, uint nItems)
Parameters
Returns
Ref()
public Bitset Ref()
Returns
Remove(uint)
public bool Remove(uint value)
Parameters
value
uint
Returns
RemoveAll()
public void RemoveAll()
RemoveRange(uint, uint)
public void RemoveRange(uint start, uint nItems)
Parameters
RemoveRangeClosed(uint, uint)
public void RemoveRangeClosed(uint first, uint last)
Parameters
RemoveRectangle(uint, uint, uint, uint)
public void RemoveRectangle(uint start, uint width, uint height, uint stride)
Parameters
ShiftLeft(uint)
public void ShiftLeft(uint amount)
Parameters
amount
uint
ShiftRight(uint)
public void ShiftRight(uint amount)
Parameters
amount
uint
Splice(uint, uint, uint)
public void Splice(uint position, uint removed, uint added)
Parameters
Subtract(Bitset)
public void Subtract(Bitset other)
Parameters
other
Bitset
Union(Bitset)
public void Union(Bitset other)
Parameters
other
Bitset
Unref()
public void Unref()