本文整理汇总了C++中FRAMEWIN_GetDefaultClientColor函数的典型用法代码示例。如果您正苦于以下问题:C++ FRAMEWIN_GetDefaultClientColor函数的具体用法?C++ FRAMEWIN_GetDefaultClientColor怎么用?C++ FRAMEWIN_GetDefaultClientColor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FRAMEWIN_GetDefaultClientColor函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: _OnPaint
/**
* @brief Paints of the owner drawn button.
* @param hObj: pointer to button handle
* @retval None
*/
static void _OnPaint(BUTTON_Handle hObj) {
int Index;
GUI_RECT Rect;
Index = (WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED) ? 1 : 0;
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
WM_GetClientRect(&Rect);
/* Draw button background */
if(Index)
{
GUI_SetColor(0x40000000 | GUI_GRAY);
}
else
{
GUI_SetColor(0x40000000 | GUI_DARKGRAY);
}
GUI_FillRectEx(&Rect);
/* Draw black shape */
GUI_SetColor(GUI_DARKGRAY);
GUI_DrawRectEx(&Rect);
GUI_DrawBitmap(&bmSTLogo40x20, 0, 0);
}
开发者ID:EarnestHein89,项目名称:STM32Cube_FW_F4,代码行数:34,代码来源:k_menu.c
示例2: _OnPaint_pause
/**
* @brief Paints pause button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_pause(BUTTON_Handle hObj) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if((RecorderMode == RECORDER_MODE_REC_IDLE)||
(RecorderMode == RECORDER_MODE_PLAY_IDLE)||
(RecorderMode == RECORDER_MODE_REC_DISABLED))
{
GUI_DrawBitmapMag(&record_bmpause_des, 0, 0, 2, 2);
}
else
{
if((WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED))
{
GUI_DrawBitmapMag(&record_bmpause_pressed, 0, 0, 2, 2);
}
else
{
if((AUDIO_RECORDER_GetState() == AUDIO_RECORDER_PLAY_PAUSE)||
(AUDIO_RECORDER_GetState() == AUDIO_RECORDER_RECORD_PAUSE))
{
GUI_DrawBitmapMag(&record_bmpause_pressed, 0, 0, 2, 2);
}
else
{
GUI_DrawBitmapMag(&record_bmpause, 0, 0, 2, 2);
}
}
}
}
开发者ID:z80,项目名称:stm32f429,代码行数:38,代码来源:audio_recorder_win.c
示例3: _OnPaint_play
/**
* @brief Paints play button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_play(BUTTON_Handle hObj) {
int Index;
Index = (WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED) ? 1 : 0;
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if((VideoPlayer_State == VIDEO_IDLE) || (VideoPlayer_State == VIDEO_PAUSE))
{
if(Index)
{
GUI_DrawBitmap(&bmplay_pressed, 0, 0);
}
else
{
GUI_DrawBitmap(&bmplay_not_pressed, 0, 0);
}
}
else
{
if(Index)
{
GUI_DrawBitmap(&bmpause_pressed, 0, 0);
}
else
{
GUI_DrawBitmap(&bmpause_not_pressed, 0, 0);
}
}
}
开发者ID:eemei,项目名称:library-stm32f4,代码行数:37,代码来源:videoplayer_win.c
示例4: _OnPaint_play
/**
* @brief Paints Play button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_play(BUTTON_Handle hObj) {
int Index;
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
Index = (WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED) ? 1 : 0;
if(Index)
{
if(slideshow_state == ON)
{
GUI_DrawBitmap(&bmpause_pressed, 0, 0);
}
else if(slideshow_state == OFF)
{
GUI_DrawBitmap(&bmplay_pressed, 0, 0);
}
}
else
{
if(slideshow_state == ON)
{
GUI_DrawBitmap(&bmpause_not_pressed, 0, 0);
}
else if(slideshow_state == OFF)
{
GUI_DrawBitmap(&bmplay_not_pressed, 0, 0);
}
}
}
开发者ID:Joe-Merten,项目名称:Stm32-Tools-Evaluation,代码行数:36,代码来源:imagebrowser_win.c
示例5: _OnPaint_start
/**
* @brief Paints record button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_start(BUTTON_Handle hObj) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if(VNC_GetState() == VNC_IDLE)
{
if ((WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED))
{
GUI_DrawBitmap(&bmvnc_play_pressed, 0, 0);
}
else
{
GUI_DrawBitmap(&vnc_bmplay_unpressed, 0, 0);
}
}
else
{
if ((WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED))
{
GUI_DrawBitmap(&bmstop_pressed, 0, 0);
}
else
{
GUI_DrawBitmap(&bmstop_unpressed, 0, 0);
}
}
}
开发者ID:MrZANE42,项目名称:verisure1512,代码行数:34,代码来源:vnc_server_win.c
示例6: _OnPaint_play
/**
* @brief Paints Play button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_play(BUTTON_Handle hObj) {
int Index;
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
Index = (WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED) ? 1 : 0;
if(Index)
{
if(AUDIOPLAYER_GetState() == AUDIOPLAYER_PLAY)
{
if(PlayerSettings.b.pause == PAUSE_ACTIVE)
{
GUI_DrawBitmap(&bmplay_pressed, 0, 0);
}
else if(PlayerSettings.b.pause == PLAY_ACTIVE)
{
GUI_DrawBitmap(&bmpause_pressed, 0, 0);
}
}
else if(AUDIOPLAYER_GetState() == AUDIOPLAYER_STOP)
{
if(PlayerSettings.b.pause == PLAY_ACTIVE)
{
GUI_DrawBitmap(&bmplay_pressed, 0, 0);
}
else if(PlayerSettings.b.pause == PAUSE_ACTIVE)
{
GUI_DrawBitmap(&bmpause_pressed, 0, 0);
}
}
}
else
{
if(AUDIOPLAYER_GetState() == AUDIOPLAYER_PLAY)
{
if(PlayerSettings.b.pause == PAUSE_ACTIVE)
{
GUI_DrawBitmap(&bmplay_not_pressed, 0, 0);
}
else if(PlayerSettings.b.pause == PLAY_ACTIVE)
{
GUI_DrawBitmap(&bmpause_not_pressed, 0, 0);
}
}
else if(AUDIOPLAYER_GetState() == AUDIOPLAYER_STOP)
{
if(PlayerSettings.b.pause == PLAY_ACTIVE)
{
GUI_DrawBitmap(&bmplay_not_pressed, 0, 0);
}
else if(PlayerSettings.b.pause == PAUSE_ACTIVE)
{
GUI_DrawBitmap(&bmpause_not_pressed, 0, 0);
}
}
}
}
开发者ID:PaxInstruments,项目名称:STM32CubeF4,代码行数:64,代码来源:audioplayer_win.c
示例7: _OnPaint_exit
/**
* @brief Paints exit button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_exit(BUTTON_Handle hObj) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
GUI_SetColor(0x00DCA939);
GUI_AA_FillCircle(70, 0, 70);
GUI_SetBkColor(0x00DCA939);
GUI_SetColor(GUI_WHITE);
GUI_SetFont(&GUI_Font20B_1);
GUI_DispStringAt("Menu", 10, 15);
}
开发者ID:vlsi1217,项目名称:STM32F7Cube,代码行数:18,代码来源:gardening_control_win.c
示例8: _OnPaint_exit
/**
* @brief Paints exit button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_exit(BUTTON_Handle hObj) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
GUI_SetColor(GUI_STCOLOR_LIGHTBLUE);
GUI_AA_FillCircle(60, 0, 60);
GUI_SetBkColor(GUI_STCOLOR_LIGHTBLUE);
GUI_SetColor(GUI_WHITE);
GUI_SetFont(&GUI_FontLubalGraph16);
GUI_DispStringAt("Menu", 15, 13);
}
开发者ID:MrZANE42,项目名称:verisure1512,代码行数:18,代码来源:settings_win.c
示例9: _OnPaint_speaker
/**
* @brief Paints speaker button
* @param speaker_status: speaker button status
* @retval None
*/
static void _OnPaint_speaker(uint32_t speaker_status) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if(PlayerSettings.b.mute == MUTE_ON)
{
GUI_DrawBitmap(&bmspeaker_mute, 0, 0);
}
else if(PlayerSettings.b.mute == MUTE_OFF)
{
GUI_DrawBitmap(&bmspeaker_not_mute, 0, 0);
}
}
开发者ID:PaxInstruments,项目名称:STM32CubeF4,代码行数:19,代码来源:audioplayer_win.c
示例10: _OnPaint_alarm
/**
* @brief Paints alarm button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_alarm(BUTTON_Handle hObj, uint32_t alarm_status) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if(HomeSettings.b.alarm == ALARM_OFF)
{
GUI_DrawBitmap(&bmdes_alarm, 0, 0);
}
else
{
GUI_DrawBitmap(&bmalarm, 0, 0);
}
}
开发者ID:Lembed,项目名称:STM32CubeF4-mirrors,代码行数:19,代码来源:home_alarm_win.c
示例11: _OnPaint_record
/**
* @brief Paints record button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_record(BUTTON_Handle hObj) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if(RecorderMode == RECORDER_MODE_REC_DISABLED)
{
GUI_DrawBitmap(&bmrecord_disabled, 0, 0);
}
else if(RecorderMode == RECORDER_MODE_PLAYING)
{
GUI_DrawBitmap(&record_bmplay_pressed, 0, 0);
}
else if(RecorderMode == RECORDER_MODE_REC_IDLE)
{
if((WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED))
{
GUI_DrawBitmap(&bmrecord_pressed, 0, 0);
}
else
{
GUI_DrawBitmap(&bmrecord, 0, 0);
}
}
else if(RecorderMode == RECORDER_MODE_PLAY_IDLE)
{
if((WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED))
{
GUI_DrawBitmap(&record_bmplay_pressed, 0, 0);
}
else
{
GUI_DrawBitmap(&record_bmplay, 0, 0);
}
}
else if(RecorderMode == RECORDER_MODE_RECORDING)
{
if((WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED))
{
GUI_DrawBitmap(&bmcancel, 0, 0);
}
else
{
GUI_DrawBitmap(&bmcancel_unpressed, 0, 0);
}
}
}
开发者ID:acrepina,项目名称:STM32F7_serverWEB,代码行数:53,代码来源:audio_recorder_win.c
示例12: _OnPaint_lock
/**
* @brief Paints lock button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_lock(BUTTON_Handle hObj) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if (VNC_GetLockState())
{
GUI_DrawBitmap(&bmlock, 0, 0);
}
else
{
GUI_DrawBitmap(&bmunlock, 0, 0);
}
}
开发者ID:MrZANE42,项目名称:verisure1512,代码行数:21,代码来源:vnc_server_win.c
示例13: _OnPaint_fullscreen
/**
* @brief Paints Full Screen button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_fullscreen(BUTTON_Handle hObj) {
int Index;
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
Index = (WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED) ? 1 : 0;
if(Index)
{
GUI_DrawBitmap(&bmwindowfullscreen, 0, 0);
}
else
{
GUI_DrawBitmap(&bmwindownofullscreen, 0, 0);
}
}
开发者ID:eemei,项目名称:library-stm32f4,代码行数:22,代码来源:videoplayer_win.c
示例14: _OnPaint_close
/**
* @brief Paints Close button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_close(BUTTON_Handle hObj) {
int Index;
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
Index = (WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED) ? 1 : 0;
if(Index)
{
GUI_DrawBitmap(&bmclose_pressed, 0, 0);
}
else
{
GUI_DrawBitmap(&bmclose_not_pressed, 0, 0);
}
}
开发者ID:eemei,项目名称:library-stm32f4,代码行数:22,代码来源:videoplayer_win.c
示例15: _OnPaint_drowise
/**
* @brief Paints drowise button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_drowise(BUTTON_Handle hObj) {
int Index;
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
Index = (WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED) ? 1 : 0;
if(Index)
{
GUI_DrawBitmap(&bmdes_water_sub, 0, 0);
}
else
{
GUI_DrawBitmap(&bmwater_sub, 0, 0);
}
}
开发者ID:z80,项目名称:stm32f429,代码行数:22,代码来源:gardening_control_win.c
示例16: _OnPaint_repeat
/**
* @brief Paints repeat button
* @param repeat_status: repeat button status
* @retval None
*/
static void _OnPaint_repeat(uint32_t repeat_status) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if(PlayerSettings.b.repeat == REPEAT_NONE)
{
GUI_DrawBitmap(&bmrepeat_off, 0, 0);
}
else if(PlayerSettings.b.repeat == REPEAT_ONCE)
{
GUI_DrawBitmap(&bmrepeat1, 0, 0);
}
else if(PlayerSettings.b.repeat == REPEAT_ALL)
{
GUI_DrawBitmap(&bmrepeat_all, 0, 0);
}
}
开发者ID:eemei,项目名称:library-stm32f4,代码行数:23,代码来源:videoplayer_win.c
示例17: _OnPaint_camera
/**
* @brief Paints camera button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_camera(BUTTON_Handle hObj, uint32_t alarm_status, uint32_t camera_status) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
GUI_DrawBitmap(&bmcamera, 0, 0);
if(HomeSettings.b.alarm == ALARM_ON)
{
if(HomeSettings.b.camera != CAM_DESACTIVATED)
{
GUI_DrawBitmap(&bmdes_camera, 0, 0);
}
}
else
{
GUI_DrawBitmap(&bmcamera, 0, 0);
}
}
开发者ID:Lembed,项目名称:STM32CubeF4-mirrors,代码行数:24,代码来源:home_alarm_win.c
示例18: _OnPaint_stop
/**
* @brief Paints Stop button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_stop(BUTTON_Handle hObj) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
if((RecorderMode == RECORDER_MODE_REC_IDLE)||
(RecorderMode == RECORDER_MODE_REC_DISABLED))
{
GUI_DrawBitmapMag(&record_bmstop_des, 0, 0, 2, 2);
}
else
{
if((WIDGET_GetState(hObj) & BUTTON_STATE_PRESSED))
{
GUI_DrawBitmapMag(&record_bmstop_pressed, 0, 0, 2, 2);
}
else
{
GUI_DrawBitmapMag(&record_bmstop, 0, 0, 2, 2);
}
}
}
开发者ID:z80,项目名称:stm32f429,代码行数:27,代码来源:audio_recorder_win.c
示例19: _OnPaint_cam5_1
/**
* @brief Paints cam5_1 button
* @param hObj: button handle
* @retval None
*/
static void _OnPaint_cam5_1(BUTTON_Handle hObj, uint32_t alarm_status, uint32_t camera_status) {
GUI_SetBkColor(FRAMEWIN_GetDefaultClientColor());
GUI_Clear();
GUI_DrawBitmap(&bmB6_OFF, 0, 0);
if(HomeSettings.b.alarm == ALARM_ON)
{
if(HomeSettings.b.camera == CAM_5)
{
GUI_DrawBitmap(&bmB6_ON, 0, 0);
}
else
{
GUI_DrawBitmap(&bmB6_DES, 0, 0);
}
}
else
{
GUI_DrawBitmap(&bmB6_OFF, 0, 0);
}
}
开发者ID:Lembed,项目名称:STM32CubeF4-mirrors,代码行数:28,代码来源:home_alarm_win.c
注:本文中的FRAMEWIN_GetDefaultClientColor函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论