Table of Contents

Class Calendar

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Calendar : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
Inheritance
Calendar
Implements
Inherited Members

Constructors

Calendar()

public Calendar()

Calendar(params ConstructArgument[])

protected Calendar(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Calendar(IntPtr, bool)

protected Calendar(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

DayPropertyDefinition

public static readonly Property<int, Calendar> DayPropertyDefinition

Field Value

Property<int, Calendar>

DaySelectedSignal

Signal Descriptor for OnDaySelected.

public static readonly Signal<Calendar> DaySelectedSignal

Field Value

Signal<Calendar>

MonthPropertyDefinition

public static readonly Property<int, Calendar> MonthPropertyDefinition

Field Value

Property<int, Calendar>

NextMonthSignal

Signal Descriptor for OnNextMonth.

public static readonly Signal<Calendar> NextMonthSignal

Field Value

Signal<Calendar>

NextYearSignal

Signal Descriptor for OnNextYear.

public static readonly Signal<Calendar> NextYearSignal

Field Value

Signal<Calendar>

PrevMonthSignal

Signal Descriptor for OnPrevMonth.

public static readonly Signal<Calendar> PrevMonthSignal

Field Value

Signal<Calendar>

PrevYearSignal

Signal Descriptor for OnPrevYear.

public static readonly Signal<Calendar> PrevYearSignal

Field Value

Signal<Calendar>

ShowDayNamesPropertyDefinition

public static readonly Property<bool, Calendar> ShowDayNamesPropertyDefinition

Field Value

Property<bool, Calendar>

ShowHeadingPropertyDefinition

public static readonly Property<bool, Calendar> ShowHeadingPropertyDefinition

Field Value

Property<bool, Calendar>

ShowWeekNumbersPropertyDefinition

public static readonly Property<bool, Calendar> ShowWeekNumbersPropertyDefinition

Field Value

Property<bool, Calendar>

YearPropertyDefinition

public static readonly Property<int, Calendar> YearPropertyDefinition

Field Value

Property<int, Calendar>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

Day

public int Day { get; set; }

Property Value

int

Month

public int Month { get; set; }

Property Value

int

ShowDayNames

public bool ShowDayNames { get; set; }

Property Value

bool

ShowHeading

public bool ShowHeading { get; set; }

Property Value

bool

ShowWeekNumbers

public bool ShowWeekNumbers { get; set; }

Property Value

bool

Year

public int Year { get; set; }

Property Value

int

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

ClearMarks()

public void ClearMarks()

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetDate()

public DateTime GetDate()

Returns

DateTime

GetDay()

[Version("4.14")]
public int GetDay()

Returns

int

GetDayIsMarked(uint)

public bool GetDayIsMarked(uint day)

Parameters

day uint

Returns

bool

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetMonth()

[Version("4.14")]
public int GetMonth()

Returns

int

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetShowDayNames()

public bool GetShowDayNames()

Returns

bool

GetShowHeading()

public bool GetShowHeading()

Returns

bool

GetShowWeekNumbers()

public bool GetShowWeekNumbers()

Returns

bool

GetYear()

[Version("4.14")]
public int GetYear()

Returns

int

MarkDay(uint)

public void MarkDay(uint day)

Parameters

day uint

New()

public static Calendar New()

Returns

Calendar

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SelectDay(DateTime)

public void SelectDay(DateTime date)

Parameters

date DateTime

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetDay(int)

[Version("4.14")]
public void SetDay(int day)

Parameters

day int

SetMonth(int)

[Version("4.14")]
public void SetMonth(int month)

Parameters

month int

SetShowDayNames(bool)

public void SetShowDayNames(bool value)

Parameters

value bool

SetShowHeading(bool)

public void SetShowHeading(bool value)

Parameters

value bool

SetShowWeekNumbers(bool)

public void SetShowWeekNumbers(bool value)

Parameters

value bool

SetYear(int)

[Version("4.14")]
public void SetYear(int year)

Parameters

year int

UnmarkDay(uint)

public void UnmarkDay(uint day)

Parameters

day uint

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

Events

OnDaySelected

public event SignalHandler<Calendar> OnDaySelected

Event Type

SignalHandler<Calendar>

OnNextMonth

public event SignalHandler<Calendar> OnNextMonth

Event Type

SignalHandler<Calendar>

OnNextYear

public event SignalHandler<Calendar> OnNextYear

Event Type

SignalHandler<Calendar>

OnPrevMonth

public event SignalHandler<Calendar> OnPrevMonth

Event Type

SignalHandler<Calendar>

OnPrevYear

public event SignalHandler<Calendar> OnPrevYear

Event Type

SignalHandler<Calendar>