Table of Contents

Class Bitset

Namespace
Gtk
Assembly
Gtk-4.0.dll
public sealed class Bitset : BoxedRecord, IEquatable<Bitset>
Inheritance
Bitset
Implements
Inherited Members

Constructors

Bitset(BitsetOwnedHandle)

public Bitset(BitsetOwnedHandle handle)

Parameters

handle BitsetOwnedHandle

Properties

Handle

public BitsetOwnedHandle Handle { get; }

Property Value

BitsetOwnedHandle

Methods

Add(uint)

public bool Add(uint value)

Parameters

value uint

Returns

bool

AddRange(uint, uint)

public void AddRange(uint start, uint nItems)

Parameters

start uint
nItems uint

AddRangeClosed(uint, uint)

public void AddRangeClosed(uint first, uint last)

Parameters

first uint
last uint

AddRectangle(uint, uint, uint, uint)

public void AddRectangle(uint start, uint width, uint height, uint stride)

Parameters

start uint
width uint
height uint
stride uint

Contains(uint)

public bool Contains(uint value)

Parameters

value uint

Returns

bool

Copy()

public Bitset Copy()

Returns

Bitset

Difference(Bitset)

public void Difference(Bitset other)

Parameters

other Bitset

Equals(Bitset?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Bitset? other)

Parameters

other Bitset

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetGType()

public static Type GetGType()

Returns

Type

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

uint

GetMinimum()

public uint GetMinimum()

Returns

uint

GetNth(uint)

public uint GetNth(uint nth)

Parameters

nth uint

Returns

uint

GetSize()

public ulong GetSize()

Returns

ulong

GetSizeInRange(uint, uint)

public ulong GetSizeInRange(uint first, uint last)

Parameters

first uint
last uint

Returns

ulong

Intersect(Bitset)

public void Intersect(Bitset other)

Parameters

other Bitset

IsEmpty()

public bool IsEmpty()

Returns

bool

NativeEquals(Bitset)

public bool NativeEquals(Bitset other)

Parameters

other Bitset

Returns

bool

NewEmpty()

public static Bitset NewEmpty()

Returns

Bitset

NewRange(uint, uint)

public static Bitset NewRange(uint start, uint nItems)

Parameters

start uint
nItems uint

Returns

Bitset

Ref()

public Bitset Ref()

Returns

Bitset

Remove(uint)

public bool Remove(uint value)

Parameters

value uint

Returns

bool

RemoveAll()

public void RemoveAll()

RemoveRange(uint, uint)

public void RemoveRange(uint start, uint nItems)

Parameters

start uint
nItems uint

RemoveRangeClosed(uint, uint)

public void RemoveRangeClosed(uint first, uint last)

Parameters

first uint
last uint

RemoveRectangle(uint, uint, uint, uint)

public void RemoveRectangle(uint start, uint width, uint height, uint stride)

Parameters

start uint
width uint
height uint
stride uint

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

position uint
removed uint
added uint

Subtract(Bitset)

public void Subtract(Bitset other)

Parameters

other Bitset

Union(Bitset)

public void Union(Bitset other)

Parameters

other Bitset

Unref()

public void Unref()