Managed GTK Theme Engine
Перейти к файлу
Aaron Bockover 76b2ad0ca2 Added back the run target 2010-11-09 23:29:28 -05:00
Maigre Fixed MD Makefile syncing 2010-11-09 23:18:04 -05:00
libmaigre Added back the run target 2010-11-09 23:29:28 -05:00
maigre-codegen The build now distchecks 2010-11-09 23:13:22 -05:00
.gitignore Added back the run target 2010-11-09 23:29:28 -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 Added back the run target 2010-11-09 23:29:28 -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 The build now distchecks 2010-11-09 23:13:22 -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;
        }
    }
}