Esempio n. 1
0
/** 添加按钮部件类型 */
void LCUIWidget_AddButton( void )
{
	LCUI_WidgetClass *wc = LCUIWidget_AddClass( "button" );
	wc->methods.init = Button_OnInit;
	wc->methods.paint = Button_OnPaint;
	wc->methods.set_text = Button_SetText;
	wc->methods.destroy = Button_OnDestroy;
	wc->task_handler = Button_OnTask;
	LCUI_LoadCSSString( button_css, NULL );
}
Esempio n. 2
0
void LCUIWidget_AddSideBar(void)
{
	LCUI_WidgetClass *wc;
	wc = LCUIWidget_AddClass("sidebar");
	wc->methods.init = SideBar_OnInit;
	wc->methods.destroy = SideBar_OnDestroy;
	wc = LCUIWidget_AddClass("sidebar-item");
	wc->methods.init = SideBarItem_OnInit;
	wc->methods.destroy = SideBarItem_OnDestroy;
	wc = LCUIWidget_AddClass("sidebar-toggle");
	wc->methods.init = SideBarToggle_OnInit;
	LCUI_LoadCSSString( sidebar_css, NULL );
}