Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Misc.cs « wrapper « libstetic « MonoDevelop.GtkCore « addins « src « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 757ab62afd9676be1eb7c971080705c06b2190c4 (plain)
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

using System;

namespace Stetic.Wrapper
{
	public class Misc: Widget
	{
		public bool AlignLeft {
			get {
				return ((Gtk.Misc)Wrapped).Xalign == 0;
			}
			set {
				((Gtk.Misc)Wrapped).Xalign = 0;
			}
		}
		
		public bool AlignRight {
			get {
				return ((Gtk.Misc)Wrapped).Xalign == 1;
			}
			set {
				((Gtk.Misc)Wrapped).Xalign = 1;
			}
		}
		
		public bool AlignCenter {
			get {
				return ((Gtk.Misc)Wrapped).Xalign == 0.5f;
			}
			set {
				((Gtk.Misc)Wrapped).Xalign = 0.5f;
			}
		}

		public static Gtk.Image CreateInstance ()
		{
			return new Gtk.Image (Gtk.Stock.MissingImage, Gtk.IconSize.Menu);
		}
	}
}