1
// ------------------------------------------------------------------------------
3
// This code was generated by a tool.
6
// Changes to this file may cause incorrect behavior and will be lost if
7
// the code is regenerated.
9
// ------------------------------------------------------------------------------
15
private static bool initialized;
17
internal static void Initialize(Gtk.Widget iconRenderer) {
18
if ((Stetic.Gui.initialized == false)) {
19
Stetic.Gui.initialized = true;
24
internal class IconLoader {
26
public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size, int sz) {
27
Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
33
return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
35
catch (System.Exception ) {
36
if ((name != "gtk-missing-image")) {
37
return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size, sz);
40
Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz);
41
Gdk.GC gc = new Gdk.GC(pmap);
42
gc.RgbFgColor = new Gdk.Color(255, 255, 255);
43
pmap.DrawRectangle(gc, true, 0, 0, sz, sz);
44
gc.RgbFgColor = new Gdk.Color(0, 0, 0);
45
pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1));
46
gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
47
gc.RgbFgColor = new Gdk.Color(255, 0, 0);
48
pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
49
pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
50
return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
57
internal class ActionGroups {
59
public static Gtk.ActionGroup GetActionGroup(System.Type type) {
60
return Stetic.ActionGroups.GetActionGroup(type.FullName);
63
public static Gtk.ActionGroup GetActionGroup(string name) {
2
// This file has been generated by the GUI designer. Do not modify.
7
private static bool initialized;
9
static internal void Initialize (Gtk.Widget iconRenderer)
11
if ((Stetic.Gui.initialized == false)) {
12
Stetic.Gui.initialized = true;
17
internal class IconLoader
19
public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size)
21
Gdk.Pixbuf res = widget.RenderIcon (name, size, null);
27
global::Gtk.Icon.SizeLookup (size, out sz, out sy);
29
return Gtk.IconTheme.Default.LoadIcon (name, sz, 0);
30
} catch (System.Exception) {
31
if ((name != "gtk-missing-image")) {
32
return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size);
34
Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz);
35
Gdk.GC gc = new Gdk.GC (pmap);
36
gc.RgbFgColor = new Gdk.Color (255, 255, 255);
37
pmap.DrawRectangle (gc, true, 0, 0, sz, sz);
38
gc.RgbFgColor = new Gdk.Color (0, 0, 0);
39
pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1));
40
gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
41
gc.RgbFgColor = new Gdk.Color (255, 0, 0);
42
pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
43
pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
44
return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
51
internal class ActionGroups
53
public static Gtk.ActionGroup GetActionGroup (System.Type type)
55
return Stetic.ActionGroups.GetActionGroup (type.FullName);
58
public static Gtk.ActionGroup GetActionGroup (string name)