⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listbox_default.c

📁 MCB2300_ucgui_LCD320240.rar LPC2368的uc/gui的移植
💻 C
字号:
/*
*********************************************************************************************************
*   											 uC/GUI
*   					 Universal graphic software for embedded applications
*
*   					(c) Copyright 2002, Micrium Inc., Weston, FL
*   					(c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
*   		   礐/GUI is protected by international copyright laws. Knowledge of the
*   		   source code may not be used to write a similar product. This file may
*   		   only be used in accordance with a license and should not be redistributed
*   		   in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File		: LISTBOX_Default.c
Purpose 	: Implementation of listbox widget
---------------------------END-OF-HEADER------------------------------
*/

#include "LISTBOX_Private.h"

#if GUI_WINSUPPORT

/*********************************************************************
*
*   	Exported routines:  Various methods
*
**********************************************************************
*/
/*********************************************************************
*
*   	LISTBOX_SetDefaultFont
*/
void LISTBOX_SetDefaultFont(const GUI_FONT GUI_UNI_PTR *pFont)
{
	LISTBOX_DefaultProps.pFont = pFont;
}

/*********************************************************************
*
*   	LISTBOX_GetDefaultFont
*/
const GUI_FONT GUI_UNI_PTR * LISTBOX_GetDefaultFont(void)
{
	return LISTBOX_DefaultProps.pFont;
}

/*********************************************************************
*
*   	LISTBOX_SetDefaultScrollStepH
*/
void LISTBOX_SetDefaultScrollStepH(int Value)
{
	LISTBOX_DefaultProps.ScrollStepH = Value;
}

/*********************************************************************
*
*   	LISTBOX_GetDefaultScrollStepH
*/
int LISTBOX_GetDefaultScrollStepH(void)
{
	return LISTBOX_DefaultProps.ScrollStepH;
}

/*********************************************************************
*
*   	LISTBOX_SetDefaultBkColor
*/
void LISTBOX_SetDefaultBkColor(unsigned Index, GUI_COLOR Color)
{
	if (Index < GUI_COUNTOF(LISTBOX_DefaultProps.aBackColor))
	{
		LISTBOX_DefaultProps.aBackColor[Index] = Color;
	}
}

/*********************************************************************
*
*   	LISTBOX_GetDefaultBkColor
*/
GUI_COLOR LISTBOX_GetDefaultBkColor(unsigned Index)
{
	if (Index < GUI_COUNTOF(LISTBOX_DefaultProps.aBackColor))
	{
		return LISTBOX_DefaultProps.aBackColor[Index];
	}
	return GUI_INVALID_COLOR;
}

/*********************************************************************
*
*   	LISTBOX_SetDefaultTextColor
*/
void LISTBOX_SetDefaultTextColor(unsigned Index, GUI_COLOR Color)
{
	if (Index < GUI_COUNTOF(LISTBOX_DefaultProps.aTextColor))
	{
		LISTBOX_DefaultProps.aTextColor[Index] = Color;
	}
}

/*********************************************************************
*
*   	LISTBOX_GetDefaultTextColor
*/
GUI_COLOR LISTBOX_GetDefaultTextColor(unsigned Index)
{
	if (Index < GUI_COUNTOF(LISTBOX_DefaultProps.aTextColor))
	{
		return LISTBOX_DefaultProps.aTextColor[Index];
	}
	return GUI_INVALID_COLOR;
}

#else   						 /* Avoid problems with empty object modules */
void LISTBOX_Default_C(void)
{
}
#endif

/*************************** End of file ****************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -