📄 uulistitemdrawer.h
字号:
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Jabber
* Copyright (C) 2004 Xie Tian Lu http://sabber.jabberstudio.org/
*/
#ifndef __UULISTITEMDRAWER_H__
#define __UULISTITEMDRAWER_H__
#include <eiklbi.h>
#define KRgbCurItemFrm1 TRgb( 0xffeccc )
#define KRgbCurItemFrm2 TRgb( 0xffffff )
#define KRgbCurItemFrm3 TRgb( 0xffbb99 )
#define KRgbCurItemFrm4 TRgb( 0xee9911 )
#define KRgbCurItemFrm5 TRgb( 0x000000 )
class CUUListBoxModel;
class CUUListItemDrawer : public CListItemDrawer
{
public:
CUUListItemDrawer();
~CUUListItemDrawer();
public:
virtual void ClearRect(const TRect& aRect) const;
virtual void DrawFrame(CWindowGc& aGc,const TRect& aRect,TInt aFlags) const;
virtual void DrawItem(TInt aItemIndex, TPoint aItemRectPos, TBool aItemIsSelected, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed) const;
virtual void DrawActualItem( TInt aItemIndex, const TRect& aActualItemRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed, TBool aItemIsSelected ) const;
public:
void SetModel( CUUListBoxModel* aModel );
void SetItemIndice( TInt cur, TInt top, TInt btm );
void SetCurItemExtraHeight( TInt h );
void ShowCurItemIndex( TBool aBool );
void SetFont(CFont * aFont);
protected:
void DrawCurItemFrame( CWindowGc* gc, TRect aRect ) const;
protected:
TInt iCurItemExtraHeight;
TInt iCurItemIndex;
TInt iTopItemIndex;
TInt iBtmItemIndex;
TBool iShowCurItemIndex;
CUUListBoxModel* iModel;
CFont* iFont;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -