/// You can also set the color of the fadeout.
/// </summary>
/// <since_tizen> 8 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public class Title : TextLabel
{
- private static readonly string VERTEX_SHADER =
+ private const string VERTEX_SHADER =
"attribute mediump vec2 aPosition;\n" +
"varying mediump vec2 vTexCoord;\n" +
"uniform highp mat4 uMvpMatrix;\n" +
" vTexCoord = aPosition + vec2(0.5);\n" +
"}\n";
- private static readonly string FRAGMENT_SHADER =
+ private const string FRAGMENT_SHADER =
"uniform lowp vec4 uColor;\n" +
"varying mediump vec2 vTexCoord;\n" +
"uniform sampler2D sTexture;\n" +
/// <summary>
/// </summary>
/// <since_tizen> 8 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
static Title() { }
/// <summary>
/// Construct Title with null.
/// </summary>
/// <since_tizen> 8 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Title() : base()
{
Initialize();
}
- public TextLabelStyle Style => ViewStyle as TextLabelStyle;
/// <summary>
/// The constructor of the Title class with specific Style.
/// </summary>
/// <param name="textLabelStyle">Construct Style</param>
/// <since_tizen> 8 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Title(TextLabelStyle textLabelStyle) : base(textLabelStyle)
{
/// </summary>
/// <param name="style"> style name </param>
/// <since_tizen> 8 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Title(string style) : base(style)
{
/// Sets the start and end color of the fadeout.
/// </summary>
/// <since_tizen> 8 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Color FadeOutColor
{
/// Gets or Sets the width of the fadeout effect.
/// </summary>
/// <since_tizen> 8 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public int FadeOutWidth
{
/// </summary>
/// <param name="type">dispose types.</param>
/// <since_tizen> 8 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
private void UpdateImage()
{
- leftImage.Size.Width = fadeOutWidth;
- rightImage.Size.Width = fadeOutWidth;
+ leftImage.SizeWidth = fadeOutWidth;
+ rightImage.SizeWidth = fadeOutWidth;
if (fadeOutWidth > 0)
{
private void TitlePropertyChanged(object sender, PropertyChangedEventArgs e)
{
- if (isFadeOutColorSet == false && e.PropertyName.Equals("BackgroundColor") )
+ if (isFadeOutColorSet == false && e.PropertyName is var propName && propName != null && propName.Equals("BackgroundColor") )
{
fadeOutColor = this.BackgroundColor;
UpdateImage();
pixelBuffer[6] = (byte)(0xFF * color2.Z);
pixelBuffer[7] = (byte)(0xFF * color2.W);
- PixelData pixelData = new PixelData(pixelBuffer, size, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.DeleteArray );
+ PixelData pixelData = new PixelData(pixelBuffer, size, width, height, PixelFormat.RGBA8888);
Texture texture = new Texture(TextureType.TEXTURE_2D, PixelFormat.RGBA8888, width, height);
texture.Upload(pixelData);