no more submodule

This commit is contained in:
2024-09-15 22:40:48 +02:00
parent df3b8a3135
commit 0234b33671
5804 changed files with 943618 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
using System;
using Gtk;
namespace Samples
{
[Section(ContentType=typeof(SeatDemo), Category = Category.Miscellaneous)]
class SeatSection : ListSection
{
public SeatSection()
{
AddItem("Press button to output mouse location:", new SeatDemo("Press me"));
}
}
class SeatDemo : Button
{
public SeatDemo(string text) : base(text)
{
}
protected override void OnPressed()
{
base.OnPressed();
var seat = Display.DefaultSeat;
ApplicationOutput.WriteLine($"Default seat: {seat}");
seat.Pointer.GetPosition(null, out int x, out int y);
ApplicationOutput.WriteLine($"Position: ({x}, {y})");
}
}
}