3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.tizenopensource.org/license
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 #include "UiVisualElement.h"
19 #include "UiVisualElementFrame.h"
21 using namespace Osp::App;
22 using namespace Osp::Base;
23 using namespace Osp::System;
24 using namespace Osp::Ui;
25 using namespace Osp::Ui::Controls;
27 UiVisualElement::UiVisualElement(void)
31 UiVisualElement::~UiVisualElement(void)
36 UiVisualElement::CreateInstance(void)
38 return new (std::nothrow) UiVisualElement();
42 UiVisualElement::OnAppInitializing(AppRegistry& appRegistry)
44 UiVisualElementFrame *pUiVisualElementFrame = new (std::nothrow) UiVisualElementFrame();
46 pUiVisualElementFrame->Construct();
47 pUiVisualElementFrame->SetName(L"UiVisualElement");
49 AddFrame(*pUiVisualElementFrame);
55 UiVisualElement::OnAppInitialized(void)
61 UiVisualElement::OnAppWillTerminate(void)
68 UiVisualElement::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
74 UiVisualElement::OnForeground(void)
76 UiVisualElementFrame* pFrame = static_cast<UiVisualElementFrame*>(GetFrame(L"UiVisualElement"));
77 pFrame->OnForeground();
81 UiVisualElement::OnBackground(void)
83 UiVisualElementFrame* pFrame = static_cast<UiVisualElementFrame*>(GetFrame(L"UiVisualElement"));
84 pFrame->OnBackground();
88 UiVisualElement::OnLowMemory(void)
93 UiVisualElement::OnBatteryLevelChanged(BatteryLevel batteryLevel)
98 UiVisualElement::OnScreenOn (void)
103 UiVisualElement::OnScreenOff (void)