
unit Label
{
	link memory linka {} = #.linker.linka;
	
	//[i] linksysconst_uint8 ID;
	public const uint8 ID = 0;
	
	//[i] var_int32 X;
	public linka int32 X = #addr ID * 0x0100 + 0x01;
	//[i] var_int32 Y;
	public linka int32 Y = #addr ID * 0x0100 + 0x02;
	//[i] var_int32 Width;
	public linka int32 Width = #addr ID * 0x0100 + 0x03;
	//[i] var_int32 Height;
	public linka int32 Height = #addr ID * 0x0100 + 0x04;
	//[i] var_int32 BackColor;
	public linka int32 BackColor = #addr ID * 0x0100 + 0x05;
	//[i] var_int32 ForeColor;
	public linka int32 ForeColor = #addr ID * 0x0100 + 0x06;
	
	//[i] var_int32 Year;
	public linka int32 Year = #addr ID * 0x0100 + 0x20;
	//[i] var_int32 Month;
	public linka int32 Month = #addr ID * 0x0100 + 0x21;
	//[i] var_int32 Day;
	public linka int32 Day = #addr ID * 0x0100 + 0x22;
	//[i] var_int32 Hour;
	public linka int32 Hour = #addr ID * 0x0100 + 0x23;
	//[i] var_int32 Minute;
	public linka int32 Minute = #addr ID * 0x0100 + 0x24;
	//[i] var_int32 Second;
	public linka int32 Second = #addr ID * 0x0100 + 0x25;
	//[i] var_int32 DayOfWeek;
	public linka int32 DayOfWeek = #addr ID * 0x0100 + 0x26;
	
	//[i] var_uint8 OS_EventFlag;
	uint8 OS_EventFlag;
	//[i] event time_changed_event;
	
	//---------------------------------------------------
	//[i] function_void OS_init;
	public void OS_init()
	{
		OS_EventFlag = 0;
	}
	//---------------------------------------------------
	//[i] function_bool time_equal Time;
	public bool time_equal( [int8*?] time )
	{
		if( time[0] != 0 && time[0] != Year ) return false;
		if( time[1] != 0 && time[1] != Month ) return false;
		if( time[2] != 0 && time[2] != Day ) return false;
		if( time[3] != Hour ) return false;
		if( time[4] != Minute ) return false;
		if( time[5] != Second ) return false;
		return true;
	}
	//---------------------------------------------------
	//[i] function_void SetText Cstring;
	public void SetText( [#.code uint16*?] string )
	{
		#.linker.SetString( ID, 0x10, string );
	}
	//---------------------------------------------------
	//[i] function_void SetFont Cstring;
	public void SetFont( [#.code uint16*?] string )
	{
		#.linker.SetString( ID, 0x11, string );
	}
}



