using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Tizen.Applications;
using Tizen.Applications.ComponentBased.Common;
using Tizen.NUI;
namespace Tizen.NUI
{
///
/// The class for showing UI module
///
/// 6
[EditorBrowsable(EditorBrowsableState.Never)]
public class NUIFrameComponent : FrameComponent
{
private bool defaultWindowSet = false;
internal NUIWindowInfo NUIWindowInfo
{
get;
set;
}
[EditorBrowsable(EditorBrowsableState.Never)]
public Window Window
{
get;
set;
}
///
/// Overrides this method to create window. It will be called before OnCreate method.
///
/// Window object to use
[EditorBrowsable(EditorBrowsableState.Never)]
public override IWindowInfo CreateWindowInfo()
{
ComponentApplication instance = ComponentApplication.Instance as ComponentApplication;
if (instance != null)
{
if (!defaultWindowSet)
{
instance.GetWindow().WindowPositionSize = new Rectangle(0, 0, 1, 1);
instance.GetWindow().BackgroundColor = new Color(0, 0, 0, 0);
instance.GetWindow().Hide();
defaultWindowSet = true;
}
Window = new Window();
Window.Show();
}
NUIWindowInfo = new NUIWindowInfo(Window);
return NUIWindowInfo;
}
///
/// Overrides this method to handle behavior when the component is launched.
///
/// True if a service component is successfully created
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool OnCreate()
{
return true;
}
///
/// Overrides this method if want to handle behavior when the component receives the appcontrol message.
///
/// appcontrol object
/// True if it was restarted
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnStart(AppControl appControl, bool restarted)
{
base.OnStart(appControl, restarted);
}
///
/// Overrides this method if you want to handle the behavior when the component is resumed.
///
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnResume()
{
base.OnResume();
}
///
/// Overrides this method if you want to handle the behavior when the component is paused.
///
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnPause()
{
base.OnPause();
}
///
/// Overrides this method if you want to handle the behavior when the component is stopped.
///
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnStop()
{
base.OnStop();
}
///
/// Overrides this method if want to handle behavior when the component is destroyed.
///
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnDestroy()
{
base.OnDestroy();
}
}
}