X11workbench 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  tagWB_SCROLL_INFO
 Structure that defines scroll bar info for both horizontal and vertical scroll bars. More...
 

Typedefs

typedef struct tagWB_SCROLL_INFO 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...
 
int WBSetVScrollRange (WB_SCROLLINFO *pSI, int iMin, int iMax)
 Set the scroll range for a vertical scrollbar in the WB_SCROLLINFO structure. More...
 
int 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...
 
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 WBUpdateScrollBarGeometry (WB_SCROLLINFO *pSI, WB_FONTC pFontRef, WB_GEOM *pgeomClient, WB_GEOM *pgeomUsable)
 Update the scroll bar geometry within the WB_SCROLLINFO structure. More...
 
void WBInvalidateVScrollGeom (Window wID, WB_SCROLLINFO *pScrollInfo, int bAll, int bUpdate)
 Utility function to invalidate the geometry for the vertical scroll bar. More...
 
void WBInvalidateHScrollGeom (Window wID, WB_SCROLLINFO *pScrollInfo, int bAll, int bUpdate)
 Utility function to invalidate the geometry for the horizontal scroll bar. More...
 
int WBScrollBarEvent (Window wID, XEvent *pEvent, WB_SCROLLINFO *pScrollInfo)
 Event handler for scroll bars. More...
 
void WBPaintVScrollBar (WB_SCROLLINFO *pScrollInfo, Display *pDisplay, Drawable wID, WBGC 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, WBGC gc, WB_GEOM *pgeomClient)
 Paint the horizontal scroll bar within a window based on WB_SCROLLINFO. More...
 
void WBDrawBorderRect (Display *pDisplay, Drawable wID, WBGC gc, WB_GEOM *pgeomBorder, unsigned long lBorderColor)
 Draw a 'border' rectangle. More...
 
void WBDraw3DBorderRect (Display *pDisplay, Drawable wID, WBGC gc, WB_GEOM *pgeomBorder, unsigned long lBorderColor1, unsigned long lBorderColor2)
 Draw a 3D 'border' rectangle. More...
 
void WBDrawBorderElipse (Display *pDisplay, Drawable wID, WBGC gc, WB_GEOM *pgeomBorder, unsigned long lBorderColor)
 Draw a 'border' elipse within a bounding geometry. More...
 
void WBDraw3DBorderElipse (Display *pDisplay, Drawable wID, WBGC gc, WB_GEOM *pgeomBorder, unsigned long lBorderColor1, unsigned long lBorderColor2)
 Draw a 3D 'border' elipse within a bounding geometry. More...
 
void WBDrawDashedRect (Display *pDisplay, Drawable wID, WBGC gc, WB_GEOM *pgeomRect, unsigned long lColor)
 Draw a 'dashed' rectangle. More...
 
void WBDrawLeftArrow (Display *pDisplay, Drawable wID, WBGC 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, WBGC 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, WBGC 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, WBGC 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, WBGC gc, WB_GEOM *pgeomOutline, int fFocus, unsigned long lFGColor, unsigned long lBGColor, unsigned long lBorderColor1, unsigned long lBorderColor2, unsigned long lHighlightColor, WB_FONTC pFont, WB_FONTC pFontBold, 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.