?? slider.h
字號:
const tFont *pF = pFnt; \
pW->pFont = pF; \
} \
while(0)
//*****************************************************************************
//
//! Changes the image drawn on the active area of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to be modified.
//! \param pImg is a pointer to the image to draw onto the slider.
//!
//! This function changes the image that is drawn on the active area of the
//! slider. This image will be centered within the widget rectangle and the
//! portion represented by the current slider value will be visible. The
//! display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderImageSet(pWidget, pImg) \
do \
{ \
tSliderWidget *pW = pWidget; \
const unsigned char *pI = pImg; \
pW->pucImage = pI; \
} \
while(0)
//*****************************************************************************
//
//! Changes the image drawn on the background area of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to be modified.
//! \param pImg is a pointer to the image to draw onto the background area of
//! the slider.
//!
//! This function changes the image that is drawn onto the background area of
//! the slider. This image will be centered within the widget rectangle and
//! the portion in the area not represented by the current slider value will
//! be visible. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderBackgroundImageSet(pWidget, pImg) \
do \
{ \
tSliderWidget *pW = pWidget; \
const unsigned char *pI = pImg; \
pW->pucBackgroundImage = pI; \
} \
while(0)
//*****************************************************************************
//
//! Disables the image on the active area of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function disables the drawing of an image on the active area of a
//! slider widget. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderImageOff(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle &= ~(SL_STYLE_IMG); \
} \
while(0)
//*****************************************************************************
//
//! Enables the image on the active area of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function enables the drawing of an image on the active area of a
//! slider widget. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderImageOn(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle |= SL_STYLE_IMG; \
} \
while(0)
//*****************************************************************************
//
//! Disables the image on the background area of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function disables the drawing of an image on the background area of a
//! slider widget. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderBackgroundImageOff(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle &= ~(SL_STYLE_BACKG_IMG); \
} \
while(0)
//*****************************************************************************
//
//! Enables the image on the background area of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function enables the drawing of an image on the background area of a
//! slider widget. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderBackgroundImageOn(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle |= SL_STYLE_BACKG_IMG; \
} \
while(0)
//*****************************************************************************
//
//! Sets the outline color of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to be modified.
//! \param ulColor is the 24-bit RGB color to use to outline the slider.
//!
//! This function changes the color used to outline the slider on the
//! display. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderOutlineColorSet(pWidget, ulColor) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulOutlineColor = ulColor; \
} \
while(0)
//*****************************************************************************
//
//! Disables outlining of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function disables the outlining of a slider widget. The display
//! is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderOutlineOff(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle &= ~(SL_STYLE_OUTLINE); \
} \
while(0)
//*****************************************************************************
//
//! Enables outlining of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function enables the outlining of a slider widget. The display
//! is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderOutlineOn(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle |= SL_STYLE_OUTLINE; \
} \
while(0)
//*****************************************************************************
//
//! Sets the text color of the active portion of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to be modified.
//! \param ulColor is the 24-bit RGB color to use to draw text on the slider.
//!
//! This function changes the color used to draw text on the active portion of
//! the slider on the display. The display is not updated until the next paint
//! request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderTextColorSet(pWidget, ulColor) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulTextColor = ulColor; \
} \
while(0)
//*****************************************************************************
//
//! Sets the background text color of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to be modified.
//! \param ulColor is the 24-bit RGB color to use to draw background text on
//! the slider.
//!
//! This function changes the color used to draw text on the slider's
//! background portion on the display. The display is not updated until the
//! next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderBackgroundTextColorSet(pWidget, ulColor) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulBackgroundTextColor = ulColor; \
} \
while(0)
//*****************************************************************************
//
//! Disables the text on the active portion of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function disables the drawing of text on the active portion of a
//! slider widget. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderTextOff(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle &= ~(SL_STYLE_TEXT); \
} \
while(0)
//*****************************************************************************
//
//! Enables the text on the active portion of a slider widget.
//!
//! \param pWidget is a pointer to the slider widget to modify.
//!
//! This function enables the drawing of text on the active portion of a slider
//! widget. The display is not updated until the next paint request.
//!
//! \return None.
//
//*****************************************************************************
#define SliderTextOn(pWidget) \
do \
{ \
tSliderWidget *pW = pWidget; \
pW->ulStyle |= SL_STYLE_TEXT; \
} \
while(0)
//*****************************************************************************
//
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -