2 // System.Windows.Forms.Label.cs
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // implemented for Gtk+ by Rachel Hestilow (hestilow@ximian.com)
8 // (C) 2002 Ximian, Inc
11 namespace System.Windows.Forms {
18 public class Label : Control {
20 public Label () : base ()
25 //public virtual bool AutoSize {
27 // throw new NotImplementedException ();
30 // throw new NotImplementedException ();
34 //public FlatStyle FlatStyle {
36 // throw new NotImplementedException ();
39 // throw new NotImplementedException ();
43 //public Image Image {
45 // throw new NotImplementedException ();
48 // throw new NotImplementedException ();
52 //public ContentAlignment ImageAlign {
54 // throw new NotImplementedException ();
57 // throw new NotImplementedException ();
61 //public int ImageIndex {
63 // throw new NotImplementedException ();
66 // throw new NotImplementedException ();
70 //public ImageList ImageList {
72 // throw new NotImplementedException ();
75 // throw new NotImplementedException ();
79 //public ImeMode ImeMode {
81 // throw new NotImplementedException ();
84 // throw new NotImplementedException ();
88 //public int PreferredHeight {
90 // throw new NotImplementedException ();
94 //public int PreferredWidth {
96 // throw new NotImplementedException ();
100 //public bool TabStop {
102 // throw new NotImplementedException ();
105 // throw new NotImplementedException ();
109 public virtual ContentAlignment TextAlign {
111 throw new NotImplementedException ();
114 throw new NotImplementedException ();
118 //public bool UseMnemonic {
120 // throw new NotImplementedException ();
123 // throw new NotImplementedException ();
128 // --- Public Methods
131 //public virtual bool Equals(object o);
133 // throw new NotImplementedException ();
136 //public static bool Equals(object o1, object o2);
138 // throw new NotImplementedException ();
141 //public void Select()
143 // throw new NotImplementedException ();
146 //public override string ToString()
148 // throw new NotImplementedException ();
155 //public event EventHandler AutoSizeChanged {
157 // throw new NotImplementedException ();
160 // throw new NotImplementedException ();
164 //public event EventHandler TextAlignChanged {
166 // throw new NotImplementedException ();
169 // throw new NotImplementedException ();
174 // --- Protected Methods
177 //protected Rectangle CalcImageRenderBounds( Image image, Rectangle rect, ContentAlignment align)
179 // throw new NotImplementedException ();
182 //protected override AccessibleObject CreateAccessibilityInstance()
184 // throw new NotImplementedException ();
187 //protected void Dispose()
189 // throw new NotImplementedException ();
192 //protected override void Dispose(bool val)
194 // throw new NotImplementedException ();
197 //protected void DrawImage( Graphics g, Image img, Rectangle r, ContentAlignment align)
199 // throw new NotImplementedException ();
202 //protected override void OnEnabledChanged (EventArgs e)
204 // throw new NotImplementedException ();
207 //protected override void OnFontChanged (EventArgs e)
209 // throw new NotImplementedException ();
212 //protected override void OnPaint (PaintEventArgs e)
214 // throw new NotImplementedException ();
217 //protected override void OnParentChanged (EventArgs e)
219 // throw new NotImplementedException ();
222 protected override void OnTextChanged (EventArgs e)
224 ((Gtk.Label) Widget).Text = Text;
228 //protected override void OnVisibleChanged (EventArgs e)
230 // throw new NotImplementedException ();
233 //protected override bool ProcessMnemonic(char charCode)
235 // throw new NotImplementedException ();
238 //protected ContentAlignment RtlTranslateAlignment( ContentAlignment alignment)
240 // throw new NotImplementedException ();
243 //protected HorizontalAlignment RtlTranslateAlignment( HorizontalAlignment alignment)
245 // throw new NotImplementedException ();
248 //protected virtual void Select(bool val1, bool val2)
250 // throw new NotImplementedException ();
253 //protected override void SetBoundsCore( int x, int y, int width, int height BoundsSpecified specified)
255 // throw new NotImplementedException ();
258 //protected void UpdateBounds()
260 // throw new NotImplementedException ();
263 //protected void UpdateBounds(int b1, int b2, int b3, int b4)
265 // throw new NotImplementedException ();
268 //protected override void WndProc(ref Message m)
270 // throw new NotImplementedException ();
273 internal override Gtk.Widget CreateWidget () {
274 return new Gtk.Label (Text);