X11workbench Toolkit
1.0
|
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... | |
Variables | |
Atom | aSCROLL_NOTIFY |
GC Utility functions for drawing 'Window Dressing', i.e. various standard windows components
GC Utility functions for drawing various standard window components, collectively known here as 'Window Dressing'. This includes scroll bars, 3D effects, rectangles, tabs, buttons, and other 'standard' components of modern GUI interfaces.
Structure that defines scroll bar info for both horizontal and vertical scroll bars.
This structure defines the scroll bar information for both vertical and horizontal scroll bars. You can have both a horizontal AND a vertical scroll bar at the same time. This structure is maintained by various API functions, particularly WBUpdateScrollBarGeometry().
enum WBScrollState_ENUM |
Enumeration of scroll state flags.
Definition at line 159 of file window_dressing.h.
void WBCalcHScrollBar | ( | WB_SCROLLINFO * | pScrollInfo, |
WB_GEOM * | pgeomClient, | ||
int | iVScrollWidth, | ||
int | iHScrollHeight, | ||
int | nListItems, | ||
int | nPos | ||
) |
Calculate the parameters for a horizontal scroll bar.
pScrollInfo | A pointer to the WB_SCROLLINFO structure to be initialized |
pgeomClient | A pointer to the WB_GEOM for the client area |
iVScrollWidth | The width of the vertical scroll bar in pixels |
iHScrollHeight | The height of the horizontal scroll bar in pixels |
nListItems | The number of items in a list of scrollable items |
nPos | The current position within the list of scrollable items |
Use this function to re-calculate the parameters associated with a horizontal scroll bar
Header File: window_dressing.h
Definition at line 693 of file window_dressing.c.
int WBCalcHScrollDragPos | ( | WB_SCROLLINFO * | pScrollInfo, |
int | iX | ||
) |
Calculate and assign the correct horizontal scroll bar position from mouse coordinates.
pScrollInfo | A pointer to the WB_SCROLLINFO structure |
iX | The mouse X coordinate from the most recent Motion event |
Use this function to calculate and assign the correct 'scroll position' for a horizontal scroll bar that is managed by a WB_SCROLLINFO structure
Header File: window_dressing.h
Definition at line 801 of file window_dressing.c.
void WBCalcVScrollBar | ( | WB_SCROLLINFO * | pScrollInfo, |
WB_GEOM * | pgeomClient, | ||
int | iVScrollWidth, | ||
int | iHScrollHeight, | ||
int | nListItems, | ||
int | nPos | ||
) |
Calculate the parameters for a vertical scroll bar.
pScrollInfo | A pointer to the WB_SCROLLINFO structure to be initialized |
pgeomClient | A pointer to the WB_GEOM for the client area |
iVScrollWidth | The width of the vertical scroll bar in pixels |
iHScrollHeight | The height of the horizontal scroll bar in pixels |
nListItems | The number of items in a list of scrollable items |
nPos | The current position within the list of scrollable items |
Use this function to re-calculate the parameters associated with a vertical scroll bar
Header File: window_dressing.h
Definition at line 634 of file window_dressing.c.
int WBCalcVScrollDragPos | ( | WB_SCROLLINFO * | pScrollInfo, |
int | iY | ||
) |
Calculate and assign the correct vertical scroll bar position from mouse coordinates.
pScrollInfo | A pointer to the WB_SCROLLINFO structure |
iY | The mouse Y coordinate from the most recent Motion event |
Use this function to calculate and assign the correct 'scroll position' for a vertical scroll bar that is managed by a WB_SCROLLINFO structure
Header File: window_dressing.h
Definition at line 754 of file window_dressing.c.
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.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomBorder | A WB_GEOM that identifies the bounding rectangle for the elipse to draw |
lBorderColor1 | A 'Pixel' color value to use when painting the border (upper, left) |
lBorderColor2 | A 'Pixel' color value to use when painting the border (lower, right) |
Use this function to draw a border elipse in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1621 of file window_dressing.c.
void WBDraw3DBorderRect | ( | Display * | pDisplay, |
Drawable | wID, | ||
WBGC | gc, | ||
WB_GEOM * | pgeomBorder, | ||
unsigned long | lBorderColor1, | ||
unsigned long | lBorderColor2 | ||
) |
Draw a 3D 'border' rectangle.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomBorder | A WB_GEOM that identifies the border rectangle to draw |
lBorderColor1 | A 'Pixel' color value to use when painting the border (upper, left) |
lBorderColor2 | A 'Pixel' color value to use when painting the border (lower, right) |
Use this function to draw a 3D border rectangle in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1517 of file window_dressing.c.
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.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomOutline | A WB_GEOM that identifies the rectangular border of the tab to draw |
fFocus | A flag value that indicates whether or not this tab has the 'focus', and whether or not the 'x' is being 'pressed'. A value of 0 indicates 'no focus'. A positive value is 'focus'. A negative value generally indicates 'pressing the "x" button'. Specifically, a -1 indicates 'focus', and any other negative value indicates 'no focus' while pressing the 'x'. This is necessary to properly implement UI feedback for the tab. Clicking 'x' does not imply getting the focus. |
lFGColor | The current 'foreground' 'Pixel' color for text and borders |
lBGColor | The current 'background' 'Pixel' color for areas outside of the tab |
lBorderColor1 | The upper, left 'Pixel' color to use when drawing the tab |
lBorderColor2 | The lower, right 'Pixel' color to use when drawing the tab |
lHighlightColor | The 'highlight' 'Pixel' color to use for a tab that has the focus |
pFont | The 'normal' WB_FONTC to render text in |
pFontBold | The 'bold' WB_FONTC to render text in (this includes the 'x' close button on the tab) |
aGraphic | An atom for the current (registered) pixmap graphic, or 'None' for no graphic |
szText | A const pointer to a character string containing the descriptive text for the tab |
Use this function to draw a tab within the specified 'Outline' geometry, in the specified Window, with the specified colors, graphic, and text.
Tabs are drawn differently when they have focus, so 'bFocus' determines whether or not the tab currently has focus. Non-focus tabs are greyish in appearance, whereas focus tabs have the 'Highlight Color' applied to them. A Highlight Color of 'WHITE' should be used whenever you do not want special colorization based on focus. Additional 'focus' tab characteristics include painting the background color across the bottom line, so that any 3D rectangle that was previously drawn will be overwritten underneath the tab.
For proper appearance, the 'focus' tab should be drawn last, and tabs should be drawn from right to left.
Header File: window_dressing.h
Definition at line 1802 of file window_dressing.c.
void WBDrawBorderElipse | ( | Display * | pDisplay, |
Drawable | wID, | ||
WBGC | gc, | ||
WB_GEOM * | pgeomBorder, | ||
unsigned long | lBorderColor | ||
) |
Draw a 'border' elipse within a bounding geometry.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomBorder | A WB_GEOM that identifies the bounding rectangle for the elipse to draw |
lBorderColor | A 'Pixel' color value to use when painting the border |
Use this function to draw a border elipse in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1605 of file window_dressing.c.
void WBDrawBorderRect | ( | Display * | pDisplay, |
Drawable | wID, | ||
WBGC | gc, | ||
WB_GEOM * | pgeomBorder, | ||
unsigned long | lBorderColor | ||
) |
Draw a 'border' rectangle.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomBorder | A WB_GEOM that identifies the border rectangle to draw |
lBorderColor | A 'Pixel' color value to use when painting the border |
Use this function to draw a border rectangle in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1482 of file window_dressing.c.
void WBDrawDashedRect | ( | Display * | pDisplay, |
Drawable | wID, | ||
WBGC | gc, | ||
WB_GEOM * | pgeomRect, | ||
unsigned long | lColor | ||
) |
Draw a 'dashed' rectangle.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomRect | A WB_GEOM that identifies the rectangle to draw |
lColor | A 'Pixel' color value to use when painting the dashed rectangle |
Use this function to draw a border rectangle in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1660 of file window_dressing.c.
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.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomRect | A WB_GEOM that identifies the rectangle within which to draw the arrow |
lColor | A 'Pixel' color value to use when painting the arrow as a polygon |
Use this function to draw a down arrow in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1773 of file window_dressing.c.
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.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomRect | A WB_GEOM that identifies the rectangle within which to draw the arrow |
lColor | A 'Pixel' color value to use when painting the arrow as a polygon |
Use this function to draw a left arrow in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1684 of file window_dressing.c.
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.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomRect | A WB_GEOM that identifies the rectangle within which to draw the arrow |
lColor | A 'Pixel' color value to use when painting the arrow as a polygon |
Use this function to draw a right arrow in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1743 of file window_dressing.c.
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.
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomRect | A WB_GEOM that identifies the rectangle within which to draw the arrow |
lColor | A 'Pixel' color value to use when painting the arrow as a polygon |
Use this function to draw an up arrow in the specified window, using the specified geometry.
Header File: window_dressing.h
Definition at line 1714 of file window_dressing.c.
|
static |
Initialization function for a 'WB_SCROLLINFO' structure.
pSI | A pointer to the WB_SCROLLINFO structure to be initialized |
Use this function to initialize a WB_SCROLLINFO structure in a standardized way
Header File: window_dressing.h
Definition at line 179 of file window_dressing.h.
void WBInvalidateHScrollGeom | ( | Window | wID, |
WB_SCROLLINFO * | pScrollInfo, | ||
int | bAll, | ||
int | bUpdate | ||
) |
Utility function to invalidate the geometry for the horizontal scroll bar.
wID | The Window ID for the scroll bar owner |
pScrollInfo | A pointer to the WB_SCROLLINFO structure for the window's scroll bars |
bAll | A flag to indicate whether the entire scrollbar should be invalidated; zero only invalidates the 'knob' area |
bUpdate | The 'update' flag to be sent to WBInvalidateGeom() |
Call this function to (efficiently) invalidate the horizontal scroll bar geometry for re-painting
Definition at line 953 of file window_dressing.c.
void WBInvalidateVScrollGeom | ( | Window | wID, |
WB_SCROLLINFO * | pScrollInfo, | ||
int | bAll, | ||
int | bUpdate | ||
) |
Utility function to invalidate the geometry for the vertical scroll bar.
wID | The Window ID for the scroll bar owner |
pScrollInfo | A pointer to the WB_SCROLLINFO structure for the window's scroll bars |
bAll | A flag to indicate whether the entire scrollbar should be invalidated; zero only invalidates the 'knob' area |
bUpdate | The 'update' flag to be sent to WBInvalidateGeom() |
Call this function to (efficiently) invalidate the vertical scroll bar geometry for re-painting
Definition at line 920 of file window_dressing.c.
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.
pScrollInfo | A pointer to the WB_SCROLLINFO structure to be initialized |
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomClient | A pointer to the WB_GEOM for the client area |
Use this function to paint the horizontal scroll bar within the specified window, based on WB_SCROLLINFO
Header File: window_dressing.h
Definition at line 1335 of file window_dressing.c.
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.
pScrollInfo | A pointer to the WB_SCROLLINFO structure to be initialized |
pDisplay | A pointer to the current display (or NULL to use the default Display) |
wID | the Drawable, typically the Window ID for the target window |
gc | The WBGC (graphics context) to use |
pgeomClient | A pointer to the WB_GEOM for the client area |
Use this function to paint the vertical scroll bar within the specified window, based on WB_SCROLLINFO
Header File: window_dressing.h
Definition at line 1403 of file window_dressing.c.
int WBScrollBarEvent | ( | Window | wID, |
XEvent * | pEvent, | ||
WB_SCROLLINFO * | pScrollInfo | ||
) |
Event handler for scroll bars.
wID | The Window ID for the scroll bar owner |
pEvent | A pointer to the XEvent to (possibly) be handled |
pScrollInfo | A pointer to the WB_SCROLLINFO structure for the window's scroll bars |
This function generically handles pointer and keyboard events associated with scroll bars, generating scroll bar notification (and related) ClientMessage events from mouse clicks, drags, and scrolling related to the scroll bars. The scroll bar geometry must have already been calculated for this to work properly. The function returns a non-zero value if the event was processed.
This function does NOT handle Expose events.
Definition at line 987 of file window_dressing.c.
void WBSetHScrollPos | ( | WB_SCROLLINFO * | pSI, |
int | iPos | ||
) |
Set the scroll range for a horizontal scrollbar in the WB_SCROLLINFO structure.
pSI | A pointer to the WB_SCROLLINFO structure |
iPos | The new scroll position |
Use this function to assign the correct 'scroll position' for a horizontal scroll bar that is managed by a WB_SCROLLINFO structure
Header File: window_dressing.h
Definition at line 295 of file window_dressing.c.
int WBSetHScrollRange | ( | WB_SCROLLINFO * | pSI, |
int | iMin, | ||
int | iMax | ||
) |
Set the scroll range for a horizontal scrollbar in the WB_SCROLLINFO structure.
pSI | A pointer to the WB_SCROLLINFO structure |
iMin | The minimum scroll value |
iMax | The maximum scroll value |
Use this function to assign the correct 'scroll range' for a horizontal scroll bar that is managed by a WB_SCROLLINFO structure.
Header File: window_dressing.h
Definition at line 276 of file window_dressing.c.
void WBSetVScrollPos | ( | WB_SCROLLINFO * | pSI, |
int | iPos | ||
) |
Set the scroll range for a vertical scrollbar in the WB_SCROLLINFO structure.
pSI | A pointer to the WB_SCROLLINFO structure |
iPos | The new scroll position |
Use this function to assign the correct 'scroll position' for a vertical scroll bar that is managed by a WB_SCROLLINFO structure
Header File: window_dressing.h
Definition at line 289 of file window_dressing.c.
int WBSetVScrollRange | ( | WB_SCROLLINFO * | pSI, |
int | iMin, | ||
int | iMax | ||
) |
Set the scroll range for a vertical scrollbar in the WB_SCROLLINFO structure.
pSI | A pointer to the WB_SCROLLINFO structure |
iMin | The minimum scroll value |
iMax | The maximum scroll value |
Use this function to assign the correct 'scroll range' for a vertical scroll bar that is managed by a WB_SCROLLINFO structure
Header File: window_dressing.h
Definition at line 263 of file window_dressing.c.
void WBUpdateScrollBarGeometry | ( | WB_SCROLLINFO * | pSI, |
WB_FONTC | pFontRef, | ||
WB_GEOM * | pgeomClient, | ||
WB_GEOM * | pgeomUsable | ||
) |
Update the scroll bar geometry within the WB_SCROLLINFO structure.
pSI | A pointer to the WB_SCROLLINFO structure |
pFontRef | The reference WB_FONTC for scroll bar size. Pass None to use the 'Default' font set. |
pgeomClient | The geometry of the client area where the scroll bars will be displayed. |
pgeomUsable | Returns the resulting 'usable' client area after scroll bar geometry calculations are done. |
Use this function to assign the correct 'scroll position' for a vertical scroll bar that is managed by a WB_SCROLLINFO structure
Header File: window_dressing.h
Definition at line 849 of file window_dressing.c.
Atom aSCROLL_NOTIFY |
Scroll notifications via ClientMessage
SCROLL_NOTIFY message format (relative to XEvent.xclient)
type == ClientMessage
message_type == aSCROLL_NOTIFY
format == 32 (always)
data.l[0] Identifies the bar (WB_SCROLL_VERTICAL, WB_SCROLL_HORIZONTAL, or WB_SCROLL_DEFAULT)
data.l[1] Indicates the notification type, one of the following:
data.l[2] Optional parameter, typically the absolute or relative scroll position
Definition at line 284 of file window_helper.c.