* Shop + Plugin is now functionnal, sample Plugin provided to connect to the default...
[circ.git] / Circ.Frontend.GtkSharp / GtkText.cs
blob7b06c744fb91fd2f1d915209239c5aaae3bf4045
1 #region License
2 /* Circ.Frontend.GtkSharp : GTK# frontend for Circ
3 * Copyright (C) 2007 LAVAL Jérémie
5 * This file is licensed under the terms of the LGPL.
7 * For the complete licence see the file COPYING.
8 */
9 #endregion
10 using System;
11 using Gtk;
12 using System.Collections.Generic;
14 namespace Circ.Frontend.GtkSharp
16 public class GtkText
18 public GtkText(string text)
20 this.text = text;
23 public string text;
24 public readonly Queue<TextTransformation> textTrans = new Queue<TextTransformation>();
27 public struct TextTransformation
29 public readonly int startIndex;
30 public readonly int endIndex;
32 public readonly TextTag[] tags;
33 public readonly Gdk.Pixbuf image;
35 public TextTransformation(int start, int end, TextTag[] tags)
37 this.startIndex = start;
38 this.endIndex = end;
39 this.tags = tags;
40 image = null;
43 public TextTransformation(int start, int end, TextTag tag): this(start, end, new TextTag[] { tag })
47 public TextTransformation(int start, int end, Gdk.Pixbuf img)
49 this.startIndex = start;
50 this.endIndex = end;
51 this.image = img;
53 tags = null;