-
Notifications
You must be signed in to change notification settings - Fork 0
/
Grid.cs
98 lines (79 loc) · 2.62 KB
/
Grid.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
using System;
using Gtk3.Native;
namespace Gtk3
{
public class Grid : Widget
{
public override IntPtr Handle { get; }
public Grid() {
Handle = GtkGrid.gtk_grid_new();
}
public void Attach(Widget child, int left, int top, int width, int height) {
GtkGrid.gtk_grid_attach(Handle, child.Handle, left, top, width, height);
}
public virtual void InsertRow(int position)
{
GtkGrid.gtk_grid_insert_row(Handle, position);
}
public virtual void InsertColumn(int position)
{
GtkGrid.gtk_grid_insert_column(Handle, position);
}
public virtual void RemoveRow(int position)
{
GtkGrid.gtk_grid_remove_row(Handle, position);
}
public virtual void RemoveColumn(int position)
{
GtkGrid.gtk_grid_remove_column(Handle, position);
}
public virtual void SetRowHomogeneous(bool homogeneous)
{
GtkGrid.gtk_grid_set_row_homogeneous(Handle, homogeneous);
}
public virtual bool GetRowHomogeneous()
{
return GtkGrid.gtk_grid_get_row_homogeneous(Handle);
}
public virtual void SetRowSpacing(uint spacing)
{
GtkGrid.gtk_grid_set_row_spacing(Handle, spacing);
}
public virtual uint GetRowSpacing()
{
return GtkGrid.gtk_grid_get_row_spacing(Handle);
}
public virtual void SetColumnHomogeneous(bool homogeneous)
{
GtkGrid.gtk_grid_set_column_homogeneous(Handle, homogeneous);
}
public virtual bool GetColumnHomogeneous()
{
return GtkGrid.gtk_grid_get_column_homogeneous(Handle);
}
public virtual void SetColumnSpacing(uint spacing)
{
GtkGrid.gtk_grid_set_column_spacing(Handle, spacing);
}
public virtual uint GetColumnSpacing()
{
return GtkGrid.gtk_grid_get_column_spacing(Handle);
}
public virtual void SetBaselineRow(int row)
{
GtkGrid.gtk_grid_set_baseline_row(Handle, row);
}
public virtual int GetBaselineRow()
{
return GtkGrid.gtk_grid_get_baseline_row(Handle);
}
public virtual void SetRowBaselinePosition(int row, GtkBaselinePosition pos)
{
GtkGrid.gtk_grid_set_row_baseline_position(Handle, row, pos);
}
public virtual GtkBaselinePosition GetBaselineRow(int row)
{
return GtkGrid.gtk_grid_get_row_baseline_position(Handle, row);
}
}
}