#define BUTTON_IMAGE(name,graphic) \
__ICLASS __BGN; \
  __NAME "BUTTON_"name;\
  __NORMAL "images/button_"graphic"_1.png";\
  __EDGE_SCALING 2 2 2 2;\
  __HILITED "images/button_"graphic"_2.png";\
  __EDGE_SCALING 2 2 2 2;\
  __CLICKED "images/button_"graphic"_3.png";\
  __EDGE_SCALING 2 2 2 2;\
  __NORMAL_ACTIVE "images/button_"graphic"_1.png";\
  __EDGE_SCALING 2 2 2 2;\
  __HILITED_ACTIVE "images/button_"graphic"_2.png";\
  __EDGE_SCALING 2 2 2 2;\
  __CLICKED_ACTIVE "images/button_"graphic"_3.png";\
  __EDGE_SCALING 2 2 2 2;\
  __NORMAL_STICKY "images/button_"graphic"_1.png";\
  __EDGE_SCALING 2 2 2 2;\
  __HILITED_STICKY "images/button_"graphic"_2.png";\
  __EDGE_SCALING 2 2 2 2;\
  __CLICKED_STICKY "images/button_"graphic"_3.png";\
  __EDGE_SCALING 2 2 2 2;\
  __NORMAL_ACTIVE_STICKY "images/button_"graphic"_1.png";\
  __EDGE_SCALING 2 2 2 2;\
  __NORMAL_ACTIVE_HILITED "images/button_"graphic"_2.png";\
  __EDGE_SCALING 2 2 2 2;\
  __NORMAL_ACTIVE_CLICKED "images/button_"graphic"_3.png";\
  __EDGE_SCALING 2 2 2 2;\
__END;\

__ICLASS __BGN
  __NAME BUTTON
  __NORMAL "images/button_1.png"
  __EDGE_SCALING 2 2 2 2
  __HILITED "images/button_2.png"
  __EDGE_SCALING 2 2 2 2
  __CLICKED "images/button_3.png"
  __EDGE_SCALING 2 2 2 2
  __NORMAL_ACTIVE "images/button_1.png"
  __EDGE_SCALING 2 2 2 2
  __HILITED_ACTIVE "images/button_2.png"
  __EDGE_SCALING 2 2 2 2
  __CLICKED_ACTIVE "images/button_3.png"
  __EDGE_SCALING 2 2 2 2
  __NORMAL_STICKY "images/button_1.png"
  __EDGE_SCALING 2 2 2 2
  __HILITED_STICKY "images/button_2.png"
  __EDGE_SCALING 2 2 2 2
  __CLICKED_STICKY "images/button_3.png"
  __EDGE_SCALING 2 2 2 2
  __NORMAL_ACTIVE_STICKY "images/button_1.png"
  __EDGE_SCALING 2 2 2 2
  __NORMAL_ACTIVE_HILITED "images/button_2.png"
  __EDGE_SCALING 2 2 2 2
  __NORMAL_ACTIVE_CLICKED "images/button_3.png"
  __EDGE_SCALING 2 2 2 2

__END


BUTTON_IMAGE(KILL,kill);
BUTTON_IMAGE(ICONIFY,iconify);
BUTTON_IMAGE(STICK,stick);
BUTTON_IMAGE(SLIDEOUT,slideout_right);
BUTTON_IMAGE(MAXIMISE,maximise);
BUTTON_IMAGE(SHADE,up_bar);
BUTTON_IMAGE(MAXIMISE_HORIZONTAL,maximise_horizontal);
BUTTON_IMAGE(MAXIMISE_VERTICAL,maximise_vertical);
BUTTON_IMAGE(SWIRL,swirl);
BUTTON_IMAGE(ARROW_UP,arrow_up);
BUTTON_IMAGE(ARROW_DOWN,arrow_down);
BUTTON_IMAGE(ARROW_RIGHT,arrow_right);
BUTTON_IMAGE(ARROW_LEFT,arrow_left);

__ICLASS __BGN
  __NAME BUTTON_BLACK
  __NORMAL "images/black.png"
__END

__ICLASS __BGN
  __NAME TITLE_BAR_HORIZONTAL
  __NORMAL  "images/bar_horizontal_1.png"
  __EDGE_SCALING 3 3 2 2
  __HILITED "images/bar_horizontal_2.png"
  __EDGE_SCALING 3 3 2 2
  __CLICKED "images/bar_horizontal_3.png"
  __EDGE_SCALING 3 3 2 2
  __NORMAL_ACTIVE  "images/bar_amber_horizontal_1.png"
  __EDGE_SCALING 3 3 3 3
  __HILITED_ACTIVE "images/bar_amber_horizontal_2.png"
  __EDGE_SCALING 3 3 3 3
  __CLICKED_ACTIVE "images/bar_amber_horizontal_3.png"
  __EDGE_SCALING 3 3 3 3
  __NORMAL_STICKY  "images/bar_horizontal_1.png"
  __EDGE_SCALING 3 3 2 2
  __HILITED_STICKY "images/bar_horizontal_2.png"
  __EDGE_SCALING 3 3 2 2
  __CLICKED_STICKY "images/bar_horizontal_3.png"
  __EDGE_SCALING 3 3 2 2
  __NORMAL_ACTIVE_STICKY  "images/bar_horizontal_1.png"
  __EDGE_SCALING 3 3 2 2
  __NORMAL_ACTIVE_HILITED "images/bar_horizontal_2.png"
  __EDGE_SCALING 3 3 2 2
  __NORMAL_ACTIVE_CLICKED "images/bar_horizontal_3.png"
  __EDGE_SCALING 3 3 2 2
  __PADDING 2 2 1 1
__END


__ICLASS __BGN
  __NAME TITLE_BAR_VERTICAL
  __NORMAL  "images/bar_vertical_1.png"
  __EDGE_SCALING 2 2 3 3
  __HILITED "images/bar_vertical_2.png"
  __EDGE_SCALING 2 2 3 3
  __CLICKED "images/bar_vertical_3.png"
  __EDGE_SCALING 2 2 3 3
  __NORMAL_ACTIVE  "images/bar_amber_vertical_1.png"
  __EDGE_SCALING 3 3 3 3
  __HILITED_ACTIVE "images/bar_amber_vertical_2.png"
  __EDGE_SCALING 3 3 3 3
  __CLICKED_ACTIVE "images/bar_amber_vertical_3.png"
  __EDGE_SCALING 3 3 3 3
  __NORMAL_STICKY  "images/bar_vertical_1.png"
  __EDGE_SCALING 2 2 3 3
  __HILITED_STICKY "images/bar_vertical_2.png"
  __EDGE_SCALING 2 2 3 3
  __CLICKED_STICKY "images/bar_vertical_3.png"
  __EDGE_SCALING 2 2 3 3
  __NORMAL_ACTIVE_STICKY  "images/bar_vertical_1.png"
  __EDGE_SCALING 2 2 3 3
  __NORMAL_ACTIVE_HILITED "images/bar_vertical_2.png"
  __EDGE_SCALING 2 2 3 3
  __NORMAL_ACTIVE_CLICKED "images/bar_vertical_3.png"
  __EDGE_SCALING 2 2 3 3
  __PADDING 1 1 2 2
__END

__ICLASS __BGN
  __NAME BAR_HORIZONTAL
  __NORMAL  "images/bar_horizontal_1.png"
  __EDGE_SCALING 3 3 1 1
  __HILITED "images/bar_horizontal_2.png"
  __EDGE_SCALING 3 3 1 1
  __CLICKED "images/bar_horizontal_3.png"
  __EDGE_SCALING 3 3 1 1
  __NORMAL_ACTIVE  "images/bar_horizontal_1.png"
  __EDGE_SCALING 3 3 1 1
  __HILITED_ACTIVE "images/bar_horizontal_2.png"
  __EDGE_SCALING 3 3 1 1
  __CLICKED_ACTIVE "images/bar_horizontal_3.png"
  __EDGE_SCALING 3 3 1 1
  __NORMAL_STICKY  "images/bar_horizontal_1.png"
  __EDGE_SCALING 3 3 1 1
  __HILITED_STICKY "images/bar_horizontal_2.png"
  __EDGE_SCALING 3 3 1 1
  __CLICKED_STICKY "images/bar_horizontal_3.png"
  __EDGE_SCALING 3 3 1 1
  __NORMAL_ACTIVE_STICKY  "images/bar_horizontal_1.png"
  __EDGE_SCALING 3 3 1 1
  __NORMAL_ACTIVE_HILITED "images/bar_horizontal_2.png"
  __EDGE_SCALING 3 3 1 1
  __NORMAL_ACTIVE_CLICKED "images/bar_horizontal_3.png"
  __EDGE_SCALING 3 3 1 1
__END



