Draw Class Reference

#include <draw.h>

List of all members.

Static Public Member Functions

static void drawMenuButton (Window window, GC gc, Rectangle *rect, unsigned long background, unsigned long shineBorder, unsigned long shadowBorder, unsigned long shineFigure, unsigned long shadowFigure)
static void drawDetachButton (Window window, GC gc, Rectangle *rect, unsigned long background, unsigned long shineBorder, unsigned long shadowBorder, unsigned long shineFigure, unsigned long shadowFigure)
static void drawMaxButton (Window window, GC gc, Rectangle *rect, unsigned long background, unsigned long shineBorder, unsigned long shadowBorder, unsigned long shineFigure, unsigned long shadowFigure, bool fill=false)
static void drawFloatButton (Window window, GC gc, Rectangle *rect, unsigned long background, unsigned long shineBorder, unsigned long shadowBorder, unsigned long shineFigure, unsigned long shadowFigure, bool fill=false)
static void drawCloseButton (Window window, GC gc, Rectangle *rect, unsigned long background, unsigned long shineBorder, unsigned long shadowBorder, unsigned long shineFigure, unsigned long shadowFigure)
static void drawInputModeButton (Window window, GC gc, Rectangle *rect, unsigned long background, unsigned long shineBorder, unsigned long shadowBorder, unsigned long shineFigure, unsigned long shadowFigure)
static void drawMeter (Window window, GC gc, Rectangle *rect, unsigned int percentage, unsigned long background, unsigned long highFigure, unsigned long normalFigure, unsigned long lowFigure, unsigned long shineBorder, unsigned long shadowBorder)
static void drawBorder (Window window, GC commonGC, GC borderGC, Rectangle *rect, unsigned long background, unsigned long shine, unsigned long shadow, unsigned int titleBarHeight, unsigned int borderWidth)
static void drawFloatBorderAnchors (Window window, GC gc, Rectangle *rect, unsigned long shine, unsigned long shadow, unsigned int titleBarHeight, unsigned int borderWidth)
static void drawShineBorder (Window window, GC gc, Rectangle *rect, unsigned long shine)
static void drawShadowBorder (Window window, GC gc, Rectangle *rect, unsigned long shadow)
static void drawRectBorder (Window window, GC gc, Rectangle *rect, unsigned long shine, unsigned long shadow)
static void drawStickyNotifier (Window window, GC gc, Rectangle *rect, unsigned long shine, unsigned long shadow, unsigned int textWidth)
static void drawTransRectangle (Window window, GC gc, Rectangle *rect, unsigned int barHeight, unsigned int borderWidth)


Detailed Description

Main class of all low-level drawing methods used by NCWM.

Definition at line 19 of file draw.h.


Member Function Documentation

void Draw::drawMenuButton ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  background,
unsigned long  shineBorder,
unsigned long  shadowBorder,
unsigned long  shineFigure,
unsigned long  shadowFigure 
) [static]

Definition at line 92 of file draw.cpp.

References drawRectBorder(), FIGURE_DISTANCE, Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by ClientBar::updateMenuButton().

Here is the call graph for this function:

void Draw::drawDetachButton ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  background,
unsigned long  shineBorder,
unsigned long  shadowBorder,
unsigned long  shineFigure,
unsigned long  shadowFigure 
) [static]

Definition at line 18 of file draw.cpp.

References drawRectBorder(), FIGURE_DISTANCE, Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by Thing::illuminateBorder().

Here is the call graph for this function:

void Draw::drawMaxButton ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  background,
unsigned long  shineBorder,
unsigned long  shadowBorder,
unsigned long  shineFigure,
unsigned long  shadowFigure,
bool  fill = false 
) [static]

Definition at line 50 of file draw.cpp.

References drawRectBorder(), FIGURE_DISTANCE, Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by Thing::illuminateBorder(), and ClientBar::updateModeButton().

Here is the call graph for this function:

void Draw::drawFloatButton ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  background,
unsigned long  shineBorder,
unsigned long  shadowBorder,
unsigned long  shineFigure,
unsigned long  shadowFigure,
bool  fill = false 
) [static]

Definition at line 133 of file draw.cpp.

References drawRectBorder(), FIGURE_DISTANCE, Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by Thing::illuminateBorder(), and ClientBar::updateModeButton().

Here is the call graph for this function:

void Draw::drawCloseButton ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  background,
unsigned long  shineBorder,
unsigned long  shadowBorder,
unsigned long  shineFigure,
unsigned long  shadowFigure 
) [static]

Definition at line 196 of file draw.cpp.

References drawRectBorder(), FIGURE_DISTANCE, Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by Thing::illuminateBorder().

Here is the call graph for this function:

void Draw::drawInputModeButton ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  background,
unsigned long  shineBorder,
unsigned long  shadowBorder,
unsigned long  shineFigure,
unsigned long  shadowFigure 
) [static]

Definition at line 230 of file draw.cpp.

References drawRectBorder(), FIGURE_DISTANCE, Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by StatusBar::updateInputModeButton().

Here is the call graph for this function:

void Draw::drawMeter ( Window  window,
GC  gc,
Rectangle rect,
unsigned int  percentage,
unsigned long  background,
unsigned long  highFigure,
unsigned long  normalFigure,
unsigned long  lowFigure,
unsigned long  shineBorder,
unsigned long  shadowBorder 
) [static]

Definition at line 277 of file draw.cpp.

References drawRectBorder(), Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by StatusBar::updateMeters().

Here is the call graph for this function:

void Draw::drawBorder ( Window  window,
GC  commonGC,
GC  borderGC,
Rectangle rect,
unsigned long  background,
unsigned long  shine,
unsigned long  shadow,
unsigned int  titleBarHeight,
unsigned int  borderWidth 
) [static]

Definition at line 302 of file draw.cpp.

References Rectangle::height(), Rectangle::width(), and XCORE.

Referenced by Thing::illuminateBorder().

Here is the call graph for this function:

void Draw::drawFloatBorderAnchors ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  shine,
unsigned long  shadow,
unsigned int  titleBarHeight,
unsigned int  borderWidth 
) [static]

Definition at line 355 of file draw.cpp.

References Rectangle::height(), Rectangle::width(), and XCORE.

Referenced by Client::illuminate().

Here is the call graph for this function:

void Draw::drawShineBorder ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  shine 
) [static]

Definition at line 402 of file draw.cpp.

References Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by drawRectBorder(), and Label::update().

Here is the call graph for this function:

void Draw::drawShadowBorder ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  shadow 
) [static]

Definition at line 417 of file draw.cpp.

References Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by drawRectBorder(), and Label::update().

Here is the call graph for this function:

void Draw::drawRectBorder ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  shine,
unsigned long  shadow 
) [static]

Definition at line 432 of file draw.cpp.

References drawShadowBorder(), and drawShineBorder().

Referenced by Bar::drawBorder(), drawCloseButton(), drawDetachButton(), drawFloatButton(), drawInputModeButton(), drawMaxButton(), drawMenuButton(), drawMeter(), Menu::illuminate(), Frame::illuminate(), and Box::illuminate().

Here is the call graph for this function:

void Draw::drawStickyNotifier ( Window  window,
GC  gc,
Rectangle rect,
unsigned long  shine,
unsigned long  shadow,
unsigned int  textWidth 
) [static]

Definition at line 439 of file draw.cpp.

References FIGURE_DISTANCE, Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by Client::illuminate(), ClientBar::updateClientInfo(), and ClientBar::updateClientPager().

Here is the call graph for this function:

void Draw::drawTransRectangle ( Window  window,
GC  gc,
Rectangle rect,
unsigned int  barHeight,
unsigned int  borderWidth 
) [static]

Definition at line 495 of file draw.cpp.

References Rectangle::height(), Rectangle::width(), Rectangle::x(), XCORE, and Rectangle::y().

Referenced by Monitor::illuminateTransRect().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu May 24 15:20:04 2007 for ncwm by  doxygen 1.5.1