📄 ylscrollwidget.h
字号:
#ifndef __YLSCROLLWIDGET_H__
#define __YLSCROLLWIDGET_H__
#include "AEECLSID_YLSCROLLWIDGET_bid.h"
#include "AEEScrollWidget.h"
#include "AEEWModel.h"
#include "DecoratorWidget.h"
#include "Border.h"
#include "ScrollWidget.h"
#include "wutil.h"
typedef struct YLScrollbarWidget {
ScrollbarWidget base;
RGBVAL rgbArrow; //箭头颜色;颜色渐变时表示箭头的结束颜色
RGBVAL rgbStartBlank; //颜色渐变时空白处的起始颜色
RGBVAL rgbStartHandle;//颜色渐变时滑块的起始颜色
RGBVAL rgbStartArrow; //颜色渐变时箭头的起始颜色
uint8 nGradientStyle:1;//颜色渐变类型--水平渐变
uint8 nReserve1;//字节对齐
uint8 nReserve2;//字节对齐
uint8 nReserve3;//字节对齐
} YLScrollbarWidget;
static __inline IDecorator *YLSCROLLBARWIDGET_TO_IDECORATOR(YLScrollbarWidget *me) {
return (IDecorator *)me;
}
static __inline IWidget *YLSCROLLBARWIDGET_TO_IWIDGET(YLScrollbarWidget *me) {
return (IWidget *)me;
}
int YLScrollbarWidget_New (IDecorator **ppo, IShell *piShell, IModule *piModule);
void YLScrollbarWidget_Ctor (YLScrollbarWidget *me, AEEVTBL(IDecorator) *pvt,
IShell *piShell, IModule *piModule, PFNHANDLER pfnDefHandler);
boolean YLScrollbarWidget_HandleEvent (IDecorator *po, AEEEvent evt, uint16 wParam, uint32 dwParam);
void YLScrollbarWidget_Draw (IDecorator *po, ICanvas *piCanvas, int x, int y);
void YLScrollbarWidget_SetExtent (IDecorator *po, WExtent *pe);
void YLScrollbarWidget_GetExtent (IDecorator *po, WExtent *pe);
uint32 YLScrollbarWidget_Release (IDecorator *po);
/////////////////////////////////////////////////////////////////
// Utility functions
int IWidget_WrapInYLScrollbar(IWidget **ppioChild, IShell *piShell, IModule *piModule);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -