MCUXpresso_LPC55S69/boards/lpcxpresso55s69/ew_gui_examples/ew_gui_waveform_generator/GeneratedCode/Application.c
2022-04-08 22:42:47 +08:00

107 lines
3.8 KiB
C

/*******************************************************************************
*
* E M B E D D E D W I Z A R D P R O J E C T
*
* Copyright (c) TARA Systems GmbH
* written by Paul Banach and Manfred Schweyer
*
********************************************************************************
*
* This software is delivered "as is" and shows the usage of other software
* components. It is provided as an example software which is intended to be
* modified and extended according to particular requirements.
*
* TARA Systems hereby disclaims all warranties and conditions with regard to the
* software, including all implied warranties and conditions of merchantability
* and non-infringement of any third party IPR or other rights which may result
* from the use or the inability to use the software.
*
* This file was generated automatically by Embedded Wizard Studio.
*
* Please do not make any modifications of this file! The modifications are lost
* when the file is generated again by Embedded Wizard Studio!
*
* Version : 10.0
* Date : 17.02.2021 8:00:50
* Profile : NxpLpc
* Platform : NXP.LPC.RGB565
*
*******************************************************************************/
#include "ewlocale.h"
#include "_ApplicationApplication.h"
#include "_CoreView.h"
#include "Application.h"
/* Constant values used in this 'C' module only. */
static const XRect _Const0000 = {{ 0, 0 }, { 320, 240 }};
/* Initializer for the class 'Application::Application' */
void ApplicationApplication__Init( ApplicationApplication _this, XObject aLink, XHandle aArg )
{
/* At first initialize the super class ... */
CoreRoot__Init( &_this->_Super, aLink, aArg );
/* Allow the Immediate Garbage Collection to evalute the members of this class. */
_this->_GCT = EW_CLASS_GCT( ApplicationApplication );
/* ... then construct all embedded objects */
WaveformWaveform__Init( &_this->Waveform, &_this->_XObject, 0 );
/* Setup the VMT pointer */
_this->_VMT = EW_CLASS( ApplicationApplication );
/* ... and initialize objects, variables, properties, etc. */
CoreRectView__OnSetBounds( _this, _Const0000 );
CoreGroup_Add((CoreGroup)_this, ((CoreView)&_this->Waveform ), 0 );
}
/* Re-Initializer for the class 'Application::Application' */
void ApplicationApplication__ReInit( ApplicationApplication _this )
{
/* At first re-initialize the super class ... */
CoreRoot__ReInit( &_this->_Super );
/* ... then re-construct all embedded objects */
WaveformWaveform__ReInit( &_this->Waveform );
}
/* Finalizer method for the class 'Application::Application' */
void ApplicationApplication__Done( ApplicationApplication _this )
{
/* Finalize this class */
_this->_Super._VMT = EW_CLASS( CoreRoot );
/* Finalize all embedded objects */
WaveformWaveform__Done( &_this->Waveform );
/* Don't forget to deinitialize the super class ... */
CoreRoot__Done( &_this->_Super );
}
/* Variants derived from the class : 'Application::Application' */
EW_DEFINE_CLASS_VARIANTS( ApplicationApplication )
EW_END_OF_CLASS_VARIANTS( ApplicationApplication )
/* Virtual Method Table (VMT) for the class : 'Application::Application' */
EW_DEFINE_CLASS( ApplicationApplication, CoreRoot, Waveform, Waveform, Waveform,
Waveform, _None, _None, "Application::Application" )
CoreRectView_initLayoutContext,
CoreRoot_GetRoot,
CoreRoot_Draw,
CoreView_HandleEvent,
CoreGroup_CursorHitTest,
CoreRectView_ArrangeView,
CoreRectView_MoveView,
CoreRectView_GetExtent,
CoreRoot_ChangeViewState,
CoreGroup_OnSetBounds,
CoreRoot_OnSetFocus,
CoreRoot_DispatchEvent,
CoreRoot_BroadcastEvent,
CoreGroup_UpdateViewState,
CoreRoot_InvalidateArea,
EW_END_OF_CLASS( ApplicationApplication )
/* Embedded Wizard */