Skip to content

Commit

Permalink
Extension hidden
Browse files Browse the repository at this point in the history
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
  • Loading branch information
huiyueun committed May 31, 2024
1 parent 1b65b3c commit 8aaf457
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tizen.AIAvatar/src/Extensions/AvatarExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@

using System.Collections.Generic;
using System.IO;
using System.ComponentModel;

using static Tizen.AIAvatar.AIAvatar;

namespace Tizen.AIAvatar
{
[EditorBrowsable(EditorBrowsableState.Never)]
public static class AvatarExtension
{
[EditorBrowsable(EditorBrowsableState.Never)]
public static List<AvatarInfo> GetDefaultAvatarList()
{
var list = new List<AvatarInfo>();
Expand Down
8 changes: 8 additions & 0 deletions src/Tizen.AIAvatar/src/Extensions/SceneViewExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@
*/

using Tizen.NUI.Scene3D;
using System.ComponentModel;

namespace Tizen.AIAvatar
{
[EditorBrowsable(EditorBrowsableState.Never)]
public static class SceneViewExtension
{
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetAlphaMaskUrl(this SceneView sceneView, string url)
{
var setValue = new Tizen.NUI.PropertyValue(url);
sceneView.SetProperty(Interop.AlphaMaskURLGet(), setValue);
setValue.Dispose();
}

[EditorBrowsable(EditorBrowsableState.Never)]
public static string GetAlphaMaskUrl(this SceneView sceneView)
{
var returnValue = "";
Expand All @@ -37,13 +41,15 @@ public static string GetAlphaMaskUrl(this SceneView sceneView)
return returnValue;
}

[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetMaskContentScaleFactor(this SceneView sceneView, float factor)
{
var setValue = new Tizen.NUI.PropertyValue(factor);
sceneView.SetProperty(Interop.MaskContentScaleGet(), setValue);
setValue.Dispose();
}

[EditorBrowsable(EditorBrowsableState.Never)]
public static float GetMaskContentScaleFactor(this SceneView sceneView)
{
var returnValue = 0.0f;
Expand All @@ -53,13 +59,15 @@ public static float GetMaskContentScaleFactor(this SceneView sceneView)
return returnValue;
}

[EditorBrowsable(EditorBrowsableState.Never)]
public static void EnableCropToMask(this SceneView sceneView, bool enableCropToMask)
{
var setValue = new Tizen.NUI.PropertyValue(enableCropToMask);
sceneView.SetProperty(Interop.CropToMaskGet(), setValue);
setValue.Dispose();
}

[EditorBrowsable(EditorBrowsableState.Never)]
public static bool IsEnabledCropToMask(this SceneView sceneView)
{
bool returnValue = false;
Expand Down

0 comments on commit 8aaf457

Please sign in to comment.