Managed GTK Theme Engine
Перейти к файлу
Aaron Bockover c6179c2317 Fully bind MaigreRcStyle as well
Does the same thing to MaigreRcStyle as the previous commit did
to MaigreStyle. Also added back a ThemeModule static class with
Init and Exit methods.
2010-11-10 17:17:54 -05:00
Maigre Fully bind MaigreRcStyle as well 2010-11-10 17:17:54 -05:00
libmaigre Fully bind MaigreRcStyle as well 2010-11-10 17:17:54 -05:00
maigre-codegen Marshal GdkWindow as Gdk.Drawable 2010-11-10 13:47:23 -05:00
.gitignore Fully bind MaigreRcStyle as well 2010-11-10 17:17:54 -05:00
AUTHORS More build fixups and mako managed template 2010-11-09 22:57:07 -05:00
COPYING Added README and COPYING 2010-11-05 17:47:16 -04:00
Maigre.sln More simplification through code generation 2010-11-08 16:48:01 -05:00
Makefile.am Run twf if it's available 2010-11-10 13:46:37 -05:00
NEWS Partially ported to automake 2010-11-09 16:57:15 -05:00
README Updated README 2010-11-09 03:33:10 -05:00
autogen.sh Partially ported to automake 2010-11-09 16:57:15 -05:00
configure.ac Fixed MONO_LIBS typo against 2.8 2010-11-10 00:34:30 -05:00

README

Maigre is a managed GTK theme engine. It allows easily writing GTK themes
in managed code. Maigre takes care of implementing the GtkRcStyle, GtkStyle,
and theme module entry points, leaving the theme author to only have to worry
about rendering code.

An example:

using System;

public class MyTheme : Maigre.Theme
{
    protected override void ModuleInit ()
    {
    }

    protected override void DrawBox ()
    {
        switch (Detail) {
            case "button":
                Cr.Rectangle (0, 0, Width, Height);
                Cr.Color = new Cairo.Color (0, 0, 0);
                Cr.Fill ();
                break;
            default:
                base.DrawBox ();
                break;
        }
    }
}