當前位置: 首頁>>代碼示例>>C++>>正文


C++ FRAMEWIN_GetDefaultClientColor函數代碼示例

本文整理匯總了C++中FRAMEWIN_GetDefaultClientColor函數的典型用法代碼示例。如果您正苦於以下問題:C++ FRAMEWIN_GetDefaultClientColor函數的具體用法?C++ FRAMEWIN_GetDefaultClientColor怎麽用?C++ FRAMEWIN_GetDefaultClientColor使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了FRAMEWIN_GetDefaultClientColor函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的FRAMEWIN_GetDefaultClientColor函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。