void GUIDEMO_HardwareInfo(void) {
  #if (LCD_CONTROLLER == 1375) | (LCD_CONTROLLER == 13705) | (LCD_CONTROLLER == 1386) | (LCD_CONTROLLER == 13806)
    GUIDEMO_ShowIntro("Hardware info",   "" );
    GUI_Clear();
    #if GUIDEMO_LARGE
      GUI_SetFont(&GUI_FontComic24B_ASCII);
    #else
      GUI_SetFont(&GUI_FontComic18B_ASCII);
    #endif
    GUIDEMO_SetColor(GUI_WHITE);
    #if (LCD_CONTROLLER == 1375) | (LCD_CONTROLLER == 13705)
      #if GUIDEMO_LARGE
        GUI_DispStringAt("EPSON 13705\n", 10, 65 );
      #else
        GUI_DispStringHCenterAt("EPSON 13705\n", LCD_XSIZE >> 1, LCD_YSIZE / 14);
      #endif
      _Show("On chip VRAM",  "80 kb");
      _Show("Max. colors",   "4096 (4 bit per color)");
      _Show("Display types", "Mono / color / TFT");
      _Show("LUT",           "256 index colors");
    #elif (LCD_CONTROLLER == 1386) | (LCD_CONTROLLER == 13806)
      #if GUIDEMO_LARGE
        GUI_DispStringAt("EPSON 13806\n", 10, 65 );
      #else
        GUI_DispStringHCenterAt("EPSON 13806\n", LCD_XSIZE >> 1, LCD_YSIZE / 14);
      #endif
      _Show("On chip VRAM",  "1200 kb");
      _Show("Max. colors",   "65536 (up to 16 bpp)");
      _Show("Display types", "Mono / color / TFT (analog / digital)");
      _Show("LUT",           "256 index colors");
    #endif
    GUIDEMO_Delay(1500);
  #endif
}
Beispiel #2
0
/*********************************************************************
*
*       GUI_CURSOR_Select
*/
const GUI_CURSOR GUI_UNI_PTR * GUI_CURSOR_Select(const GUI_CURSOR GUI_UNI_PTR * pCursor) {
  int AllocSize;
  const GUI_BITMAP GUI_UNI_PTR * pBM;
  const GUI_CURSOR GUI_UNI_PTR * pOldCursor;
  GUI_LOCK();
  pOldCursor = _pCursor;
  if (pCursor != _pCursor) {
    int i;
    pBM = pCursor->pBitmap;
    i = pBM->pPal->NumEntries > 4 ? 4 : pBM->pPal->NumEntries;
    while (i--) {
      LCD_COLOR Color = *(pBM->pPal->pPalEntries + i);
      _ColorIndex[i] = LCD_Color2Index(Color);
    }
    _Hide();
    AllocSize = pBM->XSize * pBM->YSize * sizeof(LCD_PIXELINDEX);
    if (AllocSize != _AllocSize) {
      GUI_ALLOC_Free(_hBuffer);
      _hBuffer = 0;
    }
    _hBuffer = GUI_ALLOC_AllocZero(AllocSize);
    _CursorOn = 1;
    _pCursor = pCursor;
    _CalcRect();
    _Show();
  }
  GUI_UNLOCK();
  return pOldCursor;
}
Beispiel #3
0
/*********************************************************************
*
*       GUI_CURSOR_Activate
*/
void GUI_CURSOR_Activate(void) {
  GUI_LOCK();
  if ((--_CursorDeActCnt) ==0) {
    _Show();
  }
  GUI_UNLOCK();
}
Beispiel #4
0
void _HYPlatformWindow::_Activate(void)
{
    if (!GTK_WIDGET_REALIZED (theWindow))
        _Show();

    _SetMenuBar ();
}
Beispiel #5
0
/*********************************************************************
*
*       GUI_CURSOR_Show
*/
void GUI_CURSOR_Show(void) {
  GUI_LOCK();
  LCDDEV_L0_GetRect(&_ClipRect);
  _Hide();
  _CursorOn = 1;
  /* Set function pointer which window manager can use */
  GUI_CURSOR_pfTempHide   = _TempHide;
  GUI_CURSOR_pfTempUnhide = _TempUnhide;
  if (!_pCursor) {
    GUI_CURSOR_Select(GUI_DEFAULT_CURSOR);
  } else {
    _Show();
  }
  GUI_UNLOCK();
}
void bbTooltip::_Activate(RECT *rect, char *text)
{
    strcpy(m_Text, text);

    for (char *p = &m_Text[0]; *p; ++p)
        if (*p == '^')
            *p = 10;

    m_ActivationRect = *rect;

    if (m_bInitial && m_pInfo->delay > 0)
        SetTimer(m_TipHwnd, _INITIAL_TIMER, m_pInfo->delay, NULL);
    else
        _Show();

    SetTimer(m_TipHwnd, _UPDATE_TIMER, 50, NULL);
}
inline void bbTooltip::_Timer(WPARAM wParam)
{
    switch (wParam)
    {
        case _INITIAL_TIMER:
            KillTimer(m_TipHwnd, _INITIAL_TIMER);
            _Show();
            break;

        case _UPDATE_TIMER:
            GetCursorPos(&m_timer_point);
            GetWindowRect(m_hHost, &m_timer_rect);
            if (!PtInRect(&m_timer_rect, m_timer_point)) {
                ScreenToClient(m_hHost, &m_timer_point);
                MouseEvent(m_timer_point, WM_MOUSEMOVE);
            }
    }
}
Beispiel #8
0
/*********************************************************************
*
*       _TempUnhide
*/
static void _TempUnhide(void) {
  _Show();
}
Beispiel #9
0
void _HYPlatformWindow::_SelectWindow (void)
{
    _Show();
}
Beispiel #10
0
void _HYPlatformWindow::_BringWindowToFront(void)
{
    _Show();
}