X11 Work Bench Toolkit  1.0
window_dressing.h File Reference
#include "window_helper.h"
#include "font_helper.h"

Go to the source code of this file.

Data Structures

struct  __WB_SCROLLINFO__
 Structure that defines scroll bar info for both horizontal and vertical scroll bars. More...
 

Typedefs

typedef struct __WB_SCROLLINFO__ WB_SCROLLINFO
 Structure that defines scroll bar info for both horizontal and vertical scroll bars. More...
 

Enumerations

enum  WBScrollState_ENUM {
  WBScrollState_LDRAG = 1, WBScrollState_RDRAG = 2, WBScrollState_MDRAG = 4, WBScrollState_HLDRAG = 8,
  WBScrollState_HRDRAG = 16, WBScrollState_HMDRAG = 32
}
 

Functions

static __inline__ void WBInitScrollInfo (WB_SCROLLINFO *pSI)
 Initialization function for a 'WB_SCROLLINFO' structure. More...
 
void WBSetVScrollRange (WB_SCROLLINFO *pSI, int iMin, int iMax)
 Set the scroll range for a vertical scrollbar in the WB_SCROLLINFO structure. More...
 
void WBSetHScrollRange (WB_SCROLLINFO *pSI, int iMin, int iMax)
 Set the scroll range for a horizontal scrollbar in the WB_SCROLLINFO structure. More...
 
void WBSetVScrollPos (WB_SCROLLINFO *pSI, int iPos)
 Set the scroll range for a vertical scrollbar in the WB_SCROLLINFO structure. More...
 
void WBSetHScrollPos (WB_SCROLLINFO *pSI, int iPos)
 Set the scroll range for a horizontal scrollbar in the WB_SCROLLINFO structure. More...
 
void WBUpdateScrollBarGeometry (WB_SCROLLINFO *pSI, XFontSet fontSetRef, WB_GEOM *pgeomClient, WB_GEOM *pgeomUsable)
 Update the scroll bar geometry within the WB_SCROLLINFO structure. More...
 
int WBCalcVScrollDragPos (WB_SCROLLINFO *pScrollInfo, int iY)
 Calculate and assign the correct vertical scroll bar position from mouse coordinates. More...
 
int WBCalcHScrollDragPos (WB_SCROLLINFO *pScrollInfo, int iX)
 Calculate and assign the correct horizontal scroll bar position from mouse coordinates. More...
 
void WBCalcVScrollBar (WB_SCROLLINFO *pScrollInfo, WB_GEOM *pgeomClient, int iVScrollWidth, int iHScrollHeight, int nListItems, int nPos)
 Calculate the parameters for a vertical scroll bar. More...
 
void WBCalcHScrollBar (WB_SCROLLINFO *pScrollInfo, WB_GEOM *pgeomClient, int iVScrollWidth, int iHScrollHeight, int nListItems, int nPos)
 Calculate the parameters for a horizontal scroll bar. More...
 
void WBPaintVScrollBar (WB_SCROLLINFO *pScrollInfo, Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomClient)
 Paint the vertical scroll bar within a window based on WB_SCROLLINFO. More...
 
void WBPaintHScrollBar (WB_SCROLLINFO *pScrollInfo, Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomClient)
 Paint the horizontal scroll bar within a window based on WB_SCROLLINFO. More...
 
void WBDrawBorderRect (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomBorder, unsigned long lBorderColor)
 Draw a 'border' rectangle. More...
 
void WBDraw3DBorderRect (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomBorder, unsigned long lBorderColor1, unsigned long lBorderColor2)
 Draw a 3D 'border' rectangle. More...
 
void WBDrawDashedRect (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomRect, unsigned long lColor)
 Draw a 'dashed' rectangle. More...
 
void WBDrawLeftArrow (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomRect, unsigned long lColor)
 Draw a left arrow in a window within a specified geometry. More...
 
void WBDrawRightArrow (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomRect, unsigned long lColor)
 Draw a right arrow in a window within a specified geometry. More...
 
void WBDrawUpArrow (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomRect, unsigned long lColor)
 Draw an up arrow in a window within a specified geometry. More...
 
void WBDrawDownArrow (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomRect, unsigned long lColor)
 Draw a down arrow in a window within a specified geometry. More...
 
void WBDraw3DBorderTab (Display *pDisplay, Drawable wID, GC gc, WB_GEOM *pgeomOutline, int fFocus, unsigned long lFGColor, unsigned long lBGColor, unsigned long lBorderColor1, unsigned long lBorderColor2, unsigned long lHighlightColor, XFontSet fontSet, XFontSet fontSetBold, Atom aGraphic, const char *szText)
 Draw a 'tab' within a specified 'outline' rectangle. More...
 

Detailed Description

Utilities for painting and handling standard components of windows

Definition in file window_dressing.h.