JWM Source Documentation
Functions
button.c File Reference

Functions for rendering buttons. More...

#include "jwm.h"
#include "button.h"
#include "border.h"
#include "main.h"
#include "icon.h"
#include "image.h"
#include "misc.h"
#include "settings.h"

Go to the source code of this file.

Functions

void DrawButton (ButtonNode *bp)
 Draw a button.
 
void ResetButton (ButtonNode *bp, Drawable d)
 Reset a button node with default values.
 

Detailed Description

Functions for rendering buttons.

Author
Joe Wingbermuehle
Date
2004-2006

Definition in file button.c.

Function Documentation

void DrawButton ( ButtonNode bp)

Draw a button.

Definition at line 20 of file button.c.

References ALIGN_CENTER, ButtonNode::alignment, Assert, ButtonNode::border, BUTTON_LABEL, BUTTON_MENU, BUTTON_MENU_ACTIVE, BUTTON_TASK, BUTTON_TASK_ACTIVE, BUTTON_TRAY, BUTTON_TRAY_ACTIVE, COLOR_MENU_ACTIVE_BG1, COLOR_MENU_ACTIVE_BG2, COLOR_MENU_ACTIVE_DOWN, COLOR_MENU_ACTIVE_FG, COLOR_MENU_ACTIVE_UP, COLOR_MENU_BG, COLOR_MENU_DOWN, COLOR_MENU_FG, COLOR_MENU_UP, COLOR_TASKLIST_ACTIVE_BG1, COLOR_TASKLIST_ACTIVE_BG2, COLOR_TASKLIST_ACTIVE_DOWN, COLOR_TASKLIST_ACTIVE_FG, COLOR_TASKLIST_ACTIVE_UP, COLOR_TASKLIST_BG1, COLOR_TASKLIST_BG2, COLOR_TASKLIST_DOWN, COLOR_TASKLIST_FG, COLOR_TASKLIST_UP, COLOR_TRAYBUTTON_ACTIVE_BG1, COLOR_TRAYBUTTON_ACTIVE_BG2, COLOR_TRAYBUTTON_ACTIVE_DOWN, COLOR_TRAYBUTTON_ACTIVE_FG, COLOR_TRAYBUTTON_ACTIVE_UP, COLOR_TRAYBUTTON_BG1, COLOR_TRAYBUTTON_BG2, COLOR_TRAYBUTTON_DOWN, COLOR_TRAYBUTTON_FG, COLOR_TRAYBUTTON_UP, colors, DECO_MOTIF, display, down, ButtonNode::drawable, DrawHorizontalGradient(), emptyIcon, ButtonNode::fill, ButtonNode::font, GetStringHeight(), GetStringWidth(), IconNode::height, ButtonNode::height, ButtonNode::icon, JXCreateGC, JXDrawLine, JXDrawRectangle, JXFillRectangle, JXFreeGC, JXSetForeground, Settings::menuDecorations, Min, PutIcon(), RenderString(), settings, Settings::taskListDecorations, ButtonNode::text, Settings::trayDecorations, ButtonNode::type, up, IconNode::width, ButtonNode::width, ButtonNode::x, and ButtonNode::y.

Referenced by Draw(), DrawButtons(), DrawMenuItem(), and Render().

void ResetButton ( ButtonNode bp,
Drawable  d 
)

joewing.net / Projects / JWM