Name: csapi-tizenfx
Summary: Assemblies of Tizen .NET
-Version: 4.0.0.309
+Version: 4.0.0.314
Release: 1
Group: Development/Libraries
License: Apache-2.0
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
./build.sh --full
./build.sh --dummy
-./build.sh --pack 4.0.0-preview1-00309
+./build.sh --pack 4.0.0-preview1-00314
%install
mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
[DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_extension_event_handler")]
internal static extern ErrorCode GetExtensionAction(NotificationSafeHandle handle, UserEventType type, out SafeAppControlHandle appcontrol);
+ [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_load")]
+ internal static extern IntPtr LoadNotification(string appID, int uniqueID);
+
internal static ErrorCode GetAppId(NotificationSafeHandle handle, out string appid)
{
ErrorCode err;
throw NotificationEventListenerErrorFactory.GetException(err, "failed to send event");
}
}
+
+ /// <summary>
+ /// Returns NotificationEventArgs by UniqueNumber.
+ /// </summary>
+ /// <param name="uniqueNumber">The unique number of the Notification.</param>
+ /// <exception cref="ArgumentException">Thrown in case of an invalid parameter.</exception>
+ /// <exception cref="UnauthorizedAccessException"> Thrown in case of a permission is denied.</exception>
+ /// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ /// <privilege>http://tizen.org/privilege/notification</privilege>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static NotificationEventArgs GetNotificationEventArgs(int uniqueNumber)
+ {
+ if (uniqueNumber <= 0)
+ {
+ throw NotificationEventListenerErrorFactory.GetException(Interop.NotificationEventListener.ErrorCode.InvalidParameter, "Invalid parameter");
+ }
+
+ IntPtr notificationPtr = Interop.NotificationEventListener.LoadNotification(null, uniqueNumber);
+ if (notificationPtr == IntPtr.Zero)
+ {
+ int err = Tizen.Internals.Errors.ErrorFacts.GetLastResult();
+ if (err.Equals((int)Interop.NotificationEventListener.ErrorCode.DbError))
+ {
+ throw NotificationEventListenerErrorFactory.GetException(Interop.NotificationEventListener.ErrorCode.InvalidParameter, "Not exist");
+ }
+ else
+ {
+ throw NotificationEventListenerErrorFactory.GetException((Interop.NotificationEventListener.ErrorCode)err, "failed to get NotificationEventArgs");
+ }
+ }
+
+ NotificationEventArgs eventArgs = new NotificationEventArgs();
+ eventArgs = NotificationEventArgsBinder.BindObject(notificationPtr, false);
+
+ return eventArgs;
+ }
}
}
[DllImport(Libraries.MediaContent, EntryPoint = "media_album_destroy")]
internal static extern MediaContentError Destroy(IntPtr album);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_album_clone")]
- internal static extern MediaContentError Clone(out IntPtr dst, IntPtr src);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_album_id")]
internal static extern MediaContentError GetId(IntPtr album, out int albumId);
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_media_count_from_db")]
internal static extern MediaContentError GetMediaCountFromDb(string folder_id, FilterHandle filter, out int count);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_folder_clone")]
- internal static extern MediaContentError Clone(out IntPtr dst, IntPtr src);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_destroy")]
internal static extern MediaContentError Destroy(IntPtr folder);
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_folder_id")]
internal static extern MediaContentError GetFolderId(IntPtr folder, out IntPtr folder_id);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_parent_folder_id")]
- internal static extern MediaContentError GetParentFolderId(IntPtr folder, out IntPtr parent_folder_id);
-
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_path")]
internal static extern MediaContentError GetPath(IntPtr folder, out IntPtr folderPath);
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_name")]
internal static extern MediaContentError GetName(IntPtr folder, out IntPtr folder_name);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_modified_time")]
- internal static extern MediaContentError GetModifiedTime(IntPtr folder, out IntPtr date);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_storage_type")]
internal static extern MediaContentError GetStorageType(IntPtr folder, out StorageType storage_type);
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_storage_id")]
internal static extern MediaContentError GetStorageId(IntPtr folder, out IntPtr storage_id);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_order")]
- internal static extern MediaContentError GetOrder(IntPtr folder, out int order);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_get_folder_from_db")]
internal static extern MediaContentError GetFolderFromDb(string id, out IntPtr folder);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_folder_set_name")]
- internal static extern MediaContentError SetName(IntPtr folder, string name);
-
- [DllImport(Libraries.MediaContent, EntryPoint = "media_folder_set_order")]
- internal static extern MediaContentError SetOrder(IntPtr folder, int order);
-
- [DllImport(Libraries.MediaContent, EntryPoint = "media_folder_update_to_db")]
- internal static extern MediaContentError UpdateToDb(IntPtr folder);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_folder_foreach_folder_from_db")]
internal static extern MediaContentError ForeachFolderFromDb(FilterHandle filter,
Common.ItemCallback callback, IntPtr userData = default(IntPtr));
[DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_model", CallingConvention = CallingConvention.Cdecl)]
internal static extern MediaContentError GetModel(IntPtr handle, out IntPtr model);
- [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_media_id", CallingConvention = CallingConvention.Cdecl)]
- internal static extern MediaContentError GetMediaId(IntPtr handle, out IntPtr mediaId);
-
[DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_width", CallingConvention = CallingConvention.Cdecl)]
internal static extern MediaContentError GetWidth(IntPtr handle, out int width);
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_altitude")]
internal static extern MediaContentError GetAltitude(MediaInfoHandle mediaInformationHandle, out double altitude);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_weather")]
- internal static extern MediaContentError GetWeather(MediaInfoHandle mediaInformationHandle, out IntPtr weather);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_rating")]
internal static extern MediaContentError GetRating(MediaInfoHandle mediaInformationHandle, out int rating);
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_favorite")]
internal static extern MediaContentError GetFavorite(MediaInfoHandle mediaInformationHandle, out bool favorite);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_provider")]
- internal static extern MediaContentError GetProvider(MediaInfoHandle mediaInformationHandle, out IntPtr provider);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_title")]
internal static extern MediaContentError GetTitle(MediaInfoHandle mediaInformationHandle, out IntPtr title);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_category")]
- internal static extern MediaContentError GetCategory(MediaInfoHandle mediaInformationHandle, out IntPtr category);
-
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_location_tag")]
- internal static extern MediaContentError GetLocationTag(MediaInfoHandle mediaInformationHandle, out IntPtr locationTag);
-
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_age_rating")]
- internal static extern MediaContentError GetAgeRating(MediaInfoHandle mediaInformationHandle, out IntPtr ageRating);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_storage_id")]
internal static extern MediaContentError GetStorageId(MediaInfoHandle mediaInformationHandle, out IntPtr storageId);
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_get_media_from_db")]
internal static extern MediaContentError GetMediaFromDB(string mediaId, out MediaInfoHandle handle);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_set_weather")]
- internal static extern MediaContentError SetWeather(MediaInfoHandle mediaInformationHandle, string weather);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_set_favorite")]
internal static extern MediaContentError SetFavorite(MediaInfoHandle mediaInformationHandle, bool favorite);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_set_provider")]
- internal static extern MediaContentError SetProvider(MediaInfoHandle mediaInformationHandle, string provider);
-
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_set_category")]
- internal static extern MediaContentError SetCategory(MediaInfoHandle mediaInformationHandle, string category);
-
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_set_location_tag")]
- internal static extern MediaContentError SetLocationTag(MediaInfoHandle mediaInformationHandle, string locationTag);
-
- [DllImport(Libraries.MediaContent, EntryPoint = "media_info_set_age_rating")]
- internal static extern MediaContentError SetAgeRating(MediaInfoHandle mediaInformationHandle, string ageRating);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_info_update_to_db")]
internal static extern MediaContentError UpdateToDB(MediaInfoHandle mediaInformationHandle);
[DllImport(Libraries.MediaContent, EntryPoint = "media_playlist_destroy")]
internal static extern MediaContentError Destroy(IntPtr playlist);
- [DllImport(Libraries.MediaContent, EntryPoint = "media_playlist_clone")]
- internal static extern MediaContentError Clone(out IntPtr dst, IntPtr src);
-
[DllImport(Libraries.MediaContent, EntryPoint = "media_playlist_get_playlist_id")]
internal static extern MediaContentError GetId(IntPtr playlist, out int id);
public static string Favorite => "MEDIA_FAVOURITE";
/// <summary>
- /// Gets the column name for the provider of media.
- /// </summary>
- /// <value>The column name for the provider of media.</value>
- /// <remarks>
- /// The value type is string.
- /// </remarks>
- /// <seealso cref="MediaInfo.Provider"/>
- public static string Provider => "MEDIA_PROVIDER";
-
- /// <summary>
- /// Gets the column name for the category of media.
- /// </summary>
- /// <value>The column name for the category of media.</value>
- /// <remarks>
- /// The value type is string.
- /// </remarks>
- /// <seealso cref="MediaInfo.Category"/>
- public static string Category => "MEDIA_CATEGORY";
-
- /// <summary>
- /// Gets the column name for the location tag of media.
- /// </summary>
- /// <value>The column name for the location tag of media.</value>
- /// <remarks>
- /// The value type is string.
- /// </remarks>
- /// <seealso cref="MediaInfo.LocationTag"/>
- public static string LocationTag => "MEDIA_LOCATION_TAG";
-
- /// <summary>
- /// Gets the column name for the age rating of media.
- /// </summary>
- /// <value>The column name for the age rating of media.</value>
- /// <remarks>
- /// The value type is string.
- /// </remarks>
- /// <seealso cref="MediaInfo.AgeRating"/>>
- public static string AgeRating => "MEDIA_AGE_RATING";
-
- /// <summary>
- /// Gets the column name for the weather information of media.
- /// </summary>
- /// <value>The column name for the weather information of media.</value>
- /// <remarks>
- /// The value type is string.
- /// </remarks>
- /// <seealso cref="MediaInfo.Weather"/>
- public static string Weather => "MEDIA_WEATHER";
-
- /// <summary>
/// Gets the column name for the drm of media.
/// </summary>
/// <value>The column name for the drm of media.</value>
/// Represents the information related to the media stored.
/// </summary>
/// <seealso cref="MediaInfoCommand"/>
- /// <seealso cref="MediaInfoUpdateValues"/>
public class MediaInfo
{
internal MediaInfo(Interop.MediaInfoHandle handle)
Latitude = InteropHelper.GetValue<double>(handle, Interop.MediaInfo.GetLatitude);
Altitude = InteropHelper.GetValue<double>(handle, Interop.MediaInfo.GetAltitude);
- Weather = InteropHelper.GetString(handle, Interop.MediaInfo.GetWeather);
Rating = InteropHelper.GetValue<int>(handle, Interop.MediaInfo.GetRating);
IsFavorite = InteropHelper.GetValue<bool>(handle, Interop.MediaInfo.GetFavorite);
- Provider = InteropHelper.GetString(handle, Interop.MediaInfo.GetProvider);
Title = InteropHelper.GetString(handle, Interop.MediaInfo.GetTitle);
- Category = InteropHelper.GetString(handle, Interop.MediaInfo.GetCategory);
- LocationTag = InteropHelper.GetString(handle, Interop.MediaInfo.GetLocationTag);
- AgeRating = InteropHelper.GetString(handle, Interop.MediaInfo.GetAgeRating);
StorageId = InteropHelper.GetString(handle, Interop.MediaInfo.GetStorageId);
IsDrm = InteropHelper.GetValue<bool>(handle, Interop.MediaInfo.IsDrm);
public double Altitude { get; }
/// <summary>
- /// Gets the weather information of media.
- /// </summary>
- /// <value>The weather information which a user sets.</value>
- public string Weather { get; }
-
- /// <summary>
/// Gets the rating of media.
/// </summary>
/// <value>The rating from the metadata.</value>
public bool IsFavorite { get; }
/// <summary>
- /// Gets the provider of media.
- /// </summary>
- /// <value>The provider which a user sets.</value>
- public string Provider { get; }
-
- /// <summary>
/// Gets the title of media.
/// </summary>
/// <value>The title of media.</value>
public string Title { get; }
/// <summary>
- /// Gets the category of media.
- /// </summary>
- /// <value>The category which a user sets.</value>
- public string Category { get; }
-
- /// <summary>
- /// Gets the location tag of media.
- /// </summary>
- /// <value>The location tag which a user sets.</value>
- public string LocationTag { get; }
-
- /// <summary>
- /// Gets the age rating of media.
- /// </summary>
- /// <value>The age rating which a user sets.</value>
- public string AgeRating { get; }
-
- /// <summary>
/// Gets the storage ID of the storage that the media is stored on.
/// </summary>
/// <value>The storage ID of the storage that the media is stored on.</value>
/// Rating.
/// </summary>
Rating = 20,
-
- /// <summary>
- /// Provider.
- /// </summary>
- Provider = 22,
-
- /// <summary>
- /// Category.
- /// </summary>
- Category = 24,
- /// <summary>
- /// Location tag.
- /// </summary>
- LocationTag,
- /// <summary>
- /// Age rating.
- /// </summary>
- AgeRating,
- /// <summary>
- /// Weather.
- /// </summary>
- Weather = 28
}
}
}
}
- private static void SetUpdateValue<T>(Interop.MediaInfoHandle handle, T value,
- Func<Interop.MediaInfoHandle, T, MediaContentError> func)
- {
- if (value != null)
- {
- func(handle, value).ThrowIfError("Failed to update");
- }
- }
-
- private static void SetUpdateValue<T>(Interop.MediaInfoHandle handle, Nullable<T> value,
- Func<Interop.MediaInfoHandle, T, MediaContentError> func) where T : struct
- {
- if (value.HasValue)
- {
- func(handle, value.Value).ThrowIfError("Failed to update");
- }
- }
-
/// <summary>
- /// Updates the media with the specified values.
+ /// Updates the media with the favorite value.
/// </summary>
/// <privilege>http://tizen.org/privilege/content.write</privilege>
/// <param name="mediaId">The media ID to update.</param>
- /// <param name="values">The values for update.</param>
+ /// <param name="value">The value indicating whether the media is favorite.</param>
/// <returns>true if the matched record was found and updated, otherwise false.</returns>
- /// <remarks>Only values set in the <see cref="MediaInfoUpdateValues"/> are updated.</remarks>
/// <exception cref="InvalidOperationException">The <see cref="MediaDatabase"/> is disconnected.</exception>
/// <exception cref="ObjectDisposedException">The <see cref="MediaDatabase"/> has already been disposed of.</exception>
/// <exception cref="MediaDatabaseException">An error occurred while executing the command.</exception>
- /// <exception cref="ArgumentNullException">
- /// <paramref name="mediaId"/> is null.\n
- /// -or-\n
- /// <paramref name="values"/> is null.
- /// </exception>
+ /// <exception cref="ArgumentNullException"><paramref name="mediaId"/> is null.</exception>
/// <exception cref="ArgumentException"><paramref name="mediaId"/> is a zero-length string, contains only white space.</exception>
/// <exception cref="UnauthorizedAccessException">The caller has no required privilege.</exception>
- public bool Update(string mediaId, MediaInfoUpdateValues values)
+ public bool UpdateFavorite(string mediaId, bool value)
{
ValidateDatabase();
ValidationUtil.ValidateNotNullOrEmpty(mediaId, nameof(mediaId));
- if (values == null)
- {
- throw new ArgumentNullException(nameof(values));
- }
-
if (CommandHelper.Count(
Interop.MediaInfo.GetMediaCount, $"{MediaInfoColumns.Id}='{mediaId}'") == 0)
{
try
{
- SetUpdateValue(handle, values.Weather, Interop.MediaInfo.SetWeather);
- SetUpdateValue(handle, values.IsFavorite, Interop.MediaInfo.SetFavorite);
- SetUpdateValue(handle, values.Provider, Interop.MediaInfo.SetProvider);
- SetUpdateValue(handle, values.Category, Interop.MediaInfo.SetCategory);
- SetUpdateValue(handle, values.LocationTag, Interop.MediaInfo.SetLocationTag);
- SetUpdateValue(handle, values.AgeRating, Interop.MediaInfo.SetAgeRating);
+ Interop.MediaInfo.SetFavorite(handle, value).ThrowIfError("Failed to update");
Interop.MediaInfo.UpdateToDB(handle).ThrowIfError("Failed to update");
return true;
+++ /dev/null
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-
-namespace Tizen.Content.MediaContent
-{
- /// <summary>
- /// Provides means to set values used for the update command.
- /// </summary>
- /// <remarks>
- /// The values only set in the object will be affected to the update command.
- /// </remarks>
- /// <seealso cref="MediaInfoCommand.Update(string, MediaInfoUpdateValues)"/>
- public class MediaInfoUpdateValues
- {
- /// <summary>
- /// Gets or sets the weather information for an update.
- /// </summary>
- /// <remarks>If the value is null, the update operation will have no effect on the field.</remarks>
- /// <value>A string for weather; the field will not be updated if null.</value>
- public string Weather { get; set; }
-
- /// <summary>
- /// Gets or sets the favorite status for an update.
- /// </summary>
- /// <remarks>If the value is null, the update operation will have no effect on the field.</remarks>
- /// <value>A value indicating whether the media is favorite; the field will not be updated if null.</value>
- public bool? IsFavorite { get; set; }
-
- /// <summary>
- /// Gets or sets the provider information for an update.
- /// </summary>
- /// <remarks>If the value is null, the update operation will have no effect on the field.</remarks>
- /// <value>A string for provider; the field will not be updated if null.</value>
- public string Provider { get; set; }
-
- /// <summary>
- /// Gets or sets the category information for an update.
- /// </summary>
- /// <remarks>If the value is null, the update operation will have no effect on the field.</remarks>
- /// <value>A string for category; the field will not be updated if null.</value>
- public string Category { get; set; }
-
-
- /// <summary>
- /// Gets or sets the location tag for an update.
- /// </summary>
- /// <remarks>If the value is null, the update operation will have no effect on the field.</remarks>
- /// <value>A string for location tag; the field will not be updated if null.</value>
- public string LocationTag { get; set; }
-
- /// <summary>
- /// Gets or sets the age rating information for an update.
- /// </summary>
- /// <remarks>If the value is null, the update operation will have no effect on the field.</remarks>
- /// <value>A string for age rating; the field will not be updated if null.</value>
- public string AgeRating { get; set; }
- }
-}
int ret = Interop.MediaPacket.GetVideoStrideWidth(packet.GetHandle(), index, out _strideWidth);
MultimediaDebug.AssertNoError(ret);
- ret = Interop.MediaPacket.GetVideoStrideWidth(packet.GetHandle(), index, out _strideHeight);
+ ret = Interop.MediaPacket.GetVideoStrideHeight(packet.GetHandle(), index, out _strideHeight);
MultimediaDebug.AssertNoError(ret);
Debug.Assert(_strideWidth >= 0 && _strideHeight >= 0, "size must not be negative!");
--- /dev/null
+/*
+ * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.Runtime.InteropServices;
+using System.ComponentModel;
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// Please do not use! this will be deprecated
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class KeyboardResizedSignalType : global::System.IDisposable
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal KeyboardResizedSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
+ {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyboardResizedSignalType obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ //A Flag to check who called Dispose(). (By User or DisposeQueue)
+ private bool isDisposeQueued = false;
+ /// <summary>
+ /// A Flat to check if it is already disposed.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected bool disposed = false;
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ ~KeyboardResizedSignalType()
+ {
+ if (!isDisposeQueued)
+ {
+ isDisposeQueued = true;
+ DisposeQueue.Instance.Add(this);
+ }
+ }
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ public void Dispose()
+ {
+ //Throw excpetion if Dispose() is called in separate thread.
+ if (!Window.IsInstalled())
+ {
+ throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+ }
+
+ if (isDisposeQueued)
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+ else
+ {
+ Dispose(DisposeTypes.Explicit);
+ System.GC.SuppressFinalize(this);
+ }
+ }
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ protected virtual void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ NDalicManualPINVOKE.delete_KeyboardResizedSignalType(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ disposed = true;
+ }
+
+ /// <summary>
+ /// Queries whether there are any connected slots.
+ /// </summary>
+ /// <returns>True if there are any slots connected to the signal</returns>
+ public bool Empty()
+ {
+ bool ret = NDalicManualPINVOKE.KeyboardResizedSignalType_Empty(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Queries the number of slots.
+ /// </summary>
+ /// <returns>The number of slots connected to this signal</returns>
+ public uint GetConnectionCount()
+ {
+ uint ret = NDalicManualPINVOKE.KeyboardResizedSignalType_GetConnectionCount(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Connects a function.
+ /// </summary>
+ /// <param name="func">The function to connect</param>
+ public void Connect(System.Delegate func)
+ {
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
+ {
+ NDalicManualPINVOKE.KeyboardResizedSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ /// <summary>
+ /// Disconnects a function.
+ /// </summary>
+ /// <param name="func">The function to disconnect</param>
+ public void Disconnect(System.Delegate func)
+ {
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
+ {
+ NDalicManualPINVOKE.KeyboardResizedSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ /// <summary>
+ /// Connects a member function.
+ /// </summary>
+ /// <param name="arg">The member function to connect</param>
+ public void Emit(int arg)
+ {
+ NDalicManualPINVOKE.KeyboardResizedSignalType_Emit(swigCPtr, arg);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// The contructor.
+ /// </summary>
+ public KeyboardResizedSignalType() : this(NDalicManualPINVOKE.new_KeyboardResizedSignalType(), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ }
+
+}
--- /dev/null
+/*
+ * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.Runtime.InteropServices;
+using System.ComponentModel;
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// Please do not use! this will be deprecated
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class LanguageChangedSignalType : global::System.IDisposable
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal LanguageChangedSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
+ {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LanguageChangedSignalType obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ //A Flag to check who called Dispose(). (By User or DisposeQueue)
+ private bool isDisposeQueued = false;
+ /// <summary>
+ /// A Flat to check if it is already disposed.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected bool disposed = false;
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ ~LanguageChangedSignalType()
+ {
+ if (!isDisposeQueued)
+ {
+ isDisposeQueued = true;
+ DisposeQueue.Instance.Add(this);
+ }
+ }
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ public void Dispose()
+ {
+ //Throw excpetion if Dispose() is called in separate thread.
+ if (!Window.IsInstalled())
+ {
+ throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+ }
+
+ if (isDisposeQueued)
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+ else
+ {
+ Dispose(DisposeTypes.Explicit);
+ System.GC.SuppressFinalize(this);
+ }
+ }
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ protected virtual void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ NDalicManualPINVOKE.delete_LanguageChangedSignalType(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ disposed = true;
+ }
+
+ /// <summary>
+ /// Queries whether there are any connected slots.
+ /// </summary>
+ /// <returns>True if there are any slots connected to the signal</returns>
+ public bool Empty()
+ {
+ bool ret = NDalicManualPINVOKE.LanguageChangedSignalType_Empty(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Queries the number of slots.
+ /// </summary>
+ /// <returns>The number of slots connected to this signal</returns>
+ public uint GetConnectionCount()
+ {
+ uint ret = NDalicManualPINVOKE.LanguageChangedSignalType_GetConnectionCount(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Connects a member function.
+ /// </summary>
+ /// <param name="func">The member function to connect</param>
+ public void Connect(System.Delegate func)
+ {
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
+ {
+ NDalicManualPINVOKE.LanguageChangedSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ /// <summary>
+ /// Disconnects a function.
+ /// </summary>
+ /// <param name="func">The function to disconnect</param>
+ public void Disconnect(System.Delegate func)
+ {
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
+ {
+ NDalicManualPINVOKE.LanguageChangedSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ /// <summary>
+ /// Emits the signal.
+ /// </summary>
+ public void Emit(int arg)
+ {
+ NDalicManualPINVOKE.LanguageChangedSignalType_Emit(swigCPtr, arg);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// The contructor.
+ /// </summary>
+ public LanguageChangedSignalType() : this(NDalicManualPINVOKE.new_LanguageChangedSignalType(), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ }
+
+}
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_KeyboardTypeSignalType")]
public static extern void delete_KeyboardTypeSignalType(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_LanguageChangedSignalType_Empty")]
+ public static extern bool LanguageChangedSignalType_Empty(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_LanguageChangedSignalType_GetConnectionCount")]
+ public static extern uint LanguageChangedSignalType_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_LanguageChangedSignalType_Connect")]
+ public static extern void LanguageChangedSignalType_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_LanguageChangedSignalType_Disconnect")]
+ public static extern void LanguageChangedSignalType_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_LanguageChangedSignalType_Emit")]
+ public static extern void LanguageChangedSignalType_Emit(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_LanguageChangedSignalType")]
+ public static extern global::System.IntPtr new_LanguageChangedSignalType();
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_LanguageChangedSignalType")]
+ public static extern void delete_LanguageChangedSignalType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_KeyboardResizedSignalType_Empty")]
+ public static extern bool KeyboardResizedSignalType_Empty(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_KeyboardResizedSignalType_GetConnectionCount")]
+ public static extern uint KeyboardResizedSignalType_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_KeyboardResizedSignalType_Connect")]
+ public static extern void KeyboardResizedSignalType_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_KeyboardResizedSignalType_Disconnect")]
+ public static extern void KeyboardResizedSignalType_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_KeyboardResizedSignalType_Emit")]
+ public static extern void KeyboardResizedSignalType_Emit(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_KeyboardResizedSignalType")]
+ public static extern global::System.IntPtr new_KeyboardResizedSignalType();
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_KeyboardResizedSignalType")]
+ public static extern void delete_KeyboardResizedSignalType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
//////////////////////InputMethodOptions
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_InputMethodOptions")]
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_WidgetView_Property_PERMANENT_DELETE_get")]
public static extern int WidgetView_Property_PERMANENT_DELETE_get();
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_WidgetView_Property_RETRY_TEXT_get")]
+ public static extern int WidgetView_Property_RETRY_TEXT_get();
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_WidgetView_Property_EFFECT_get")]
+ public static extern int WidgetView_Property_EFFECT_get();
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_WidgetView_Property")]
public static extern global::System.IntPtr new_WidgetView_Property();
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_WidgetView_ActivateFaultedWidget")]
public static extern void WidgetView_ActivateFaultedWidget(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_WidgetView_TerminateWidget")]
+ public static extern bool WidgetView_TerminateWidget(global::System.Runtime.InteropServices.HandleRef jarg1);
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_WidgetView_WidgetAddedSignal")]
public static extern global::System.IntPtr WidgetView_WidgetAddedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
public static extern global::System.IntPtr new_Property_Value__SWIG_15(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_Property_Value__SWIG_16")]
- public static extern global::System.IntPtr new_Property_Value__SWIG_16(int jarg1);
+ public static extern global::System.IntPtr new_Property_Value__SWIG_16(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_Property_Value__SWIG_17")]
- public static extern global::System.IntPtr new_Property_Value__SWIG_17(global::System.Runtime.InteropServices.HandleRef jarg1);
+ public static extern global::System.IntPtr new_Property_Value__SWIG_17(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_Property_Value__SWIG_18")]
+ public static extern global::System.IntPtr new_Property_Value__SWIG_18(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Property_Value_Assign")]
public static extern global::System.IntPtr Property_Value_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Property_Value_Get__SWIG_14")]
public static extern bool Property_Value_Get__SWIG_14(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Property_Value_Get__SWIG_15")]
+ public static extern bool Property_Value_Get__SWIG_15(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Property_Value_GetArray")]
public static extern global::System.IntPtr Property_Value_GetArray(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_View_Property_BACKGROUND_get")]
public static extern int View_Property_BACKGROUND_get();
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_View_Property_MARGIN_get")]
+ public static extern int View_Property_MARGIN_get();
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_View_Property_PADDING_get")]
+ public static extern int View_Property_PADDING_get();
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_View_Property")]
public static extern global::System.IntPtr new_View_Property();
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_VideoView_Property_VOLUME_get")]
public static extern int VideoView_Property_VOLUME_get();
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_VideoView_Property_UNDERLAY_get")]
+ public static extern int VideoView_Property_UNDERLAY_get();
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_VideoView_Property")]
public static extern global::System.IntPtr new_VideoView_Property();
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_WebViewLite_SWIGUpcast")]
public static extern global::System.IntPtr WebViewLite_SWIGUpcast(global::System.IntPtr jarg1);
-}
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_Extents__SWIG_0")]
+ public static extern global::System.IntPtr new_Extents__SWIG_0();
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_Extents__SWIG_1")]
+ public static extern global::System.IntPtr new_Extents__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_new_Extents__SWIG_2")]
+ public static extern global::System.IntPtr new_Extents__SWIG_2(ushort jarg1, ushort jarg2, ushort jarg3, ushort jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_Assign__SWIG_0")]
+ public static extern global::System.IntPtr Extents_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_Assign__SWIG_1")]
+ public static extern global::System.IntPtr Extents_Assign__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_EqualTo")]
+ public static extern bool Extents_EqualTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_NotEqualTo")]
+ public static extern bool Extents_NotEqualTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_start_set")]
+ public static extern void Extents_start_set(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_start_get")]
+ public static extern ushort Extents_start_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_end_set")]
+ public static extern void Extents_end_set(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_end_get")]
+ public static extern ushort Extents_end_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_top_set")]
+ public static extern void Extents_top_set(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_top_get")]
+ public static extern ushort Extents_top_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_bottom_set")]
+ public static extern void Extents_bottom_set(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_Extents_bottom_get")]
+ public static extern ushort Extents_bottom_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_delete_Extents")]
+ public static extern void delete_Extents(global::System.Runtime.InteropServices.HandleRef jarg1);
+ }
}
--- /dev/null
+/*
+* Copyright (c) 2017 Samsung Electronics Co., Ltd.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+namespace Tizen.NUI
+{
+ internal class SWIGTYPE_p_uint16_t
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+
+ internal SWIGTYPE_p_uint16_t(global::System.IntPtr cPtr, bool futureUse)
+ {
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_uint16_t()
+ {
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_uint16_t obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+ }
+
+}
* limitations under the License.
*
*/
-
+
using System;
using System.Runtime.InteropServices;
using Tizen.NUI.BaseComponents;
/// <summary>
/// WebViewLite.
/// </summary>
-public class WebViewLite : View
+internal class WebViewLite : View
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
/// WebViewLiteSignal.
/// </summary>
-public class WebViewLiteSignal : global::System.IDisposable {
+internal class WebViewLiteSignal : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
{
using System;
using System.Runtime.InteropServices;
+ using System.ComponentModel;
/// <summary>
/// ImageView is a class for displaying an image resource.<br />
private void OnResourceReady(IntPtr data)
{
ResourceReadyEventArgs e = new ResourceReadyEventArgs();
- if(data != null)
+ if (data != null)
{
e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
}
return;
}
- if(type == DisposeTypes.Explicit)
+ if (type == DisposeTypes.Explicit)
{
//Called by User
//Release your own managed resources here.
[Obsolete("Please do not use! this will be deprecated")]
public new static ImageView DownCast(BaseHandle handle)
{
- ImageView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ImageView;
+ ImageView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ImageView;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal ViewResourceReadySignal ResourceReadySignal(View view) {
+ internal ViewResourceReadySignal ResourceReadySignal(View view)
+ {
ViewResourceReadySignal ret = new ViewResourceReadySignal(NDalicPINVOKE.ResourceReadySignal(View.getCPtr(view)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// True if the resources are loaded and ready, false otherwise.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public new bool IsResourceReady()
+ public new bool IsResourceReady()
{
bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
{
get
{
- GetProperty(ImageView.Property.RESOURCE_URL).Get(out _url);
+ GetProperty(ImageView.Property.IMAGE).Get(out _url);
return _url;
}
set
}
/// <summary>
- /// ImageView ImageMap, type PropertyMap: string if it is a URL, map otherwise
+ /// This will be deprecated, please use Image instead. <br />
+ /// ImageView ImageMap, type PropertyMap: string if it is a URL, map otherwise.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
public PropertyMap ImageMap
{
get
}
/// <summary>
+ /// ImageView Image, type PropertyMap
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public PropertyMap Image
+ {
+ get
+ {
+ if (_border == null)
+ {
+ PropertyMap temp = new PropertyMap();
+ GetProperty(ImageView.Property.IMAGE).Get(temp);
+ return temp;
+ }
+ else
+ {
+ return null;
+ }
+ }
+ set
+ {
+ if (_border == null)
+ {
+ SetProperty(ImageView.Property.IMAGE, new Tizen.NUI.PropertyValue(value));
+ }
+ }
+ }
+
+ /// <summary>
/// ImageView PreMultipliedAlpha, type Boolean.<br />
/// Image must be initialized.<br />
/// </summary>
if (_synchronousLoading != null) _nPatchMap.Add(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading));
SetProperty(ImageView.Property.IMAGE, new PropertyValue(_nPatchMap));
}
- else if(_synchronousLoading != null)
+ else if (_synchronousLoading != null)
{ // for normal image, with synchronous loading property
PropertyMap imageMap = new PropertyMap();
imageMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
}
else
{ // just for normal image
- SetProperty(ImageView.Property.RESOURCE_URL, new PropertyValue(_url));
+ SetProperty(ImageView.Property.IMAGE, new PropertyValue(_url));
}
}
}
/// The Outline property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public string Outline
+ public PropertyMap Outline
{
get
{
- string temp;
- GetProperty(TextEditor.Property.OUTLINE).Get(out temp);
+ PropertyMap temp = new PropertyMap();
+ GetProperty(TextEditor.Property.OUTLINE).Get(temp);
return temp;
}
set
/// The following example demonstrates how to set the placeholder property.
/// <code>
/// PropertyMap propertyMap = new PropertyMap();
- /// propertyMap.Add("placeholderText", new PropertyValue("Setting Placeholder Text"));
- /// propertyMap.Add("placeholderTextFocused", new PropertyValue("Setting Placeholder Text Focused"));
- /// propertyMap.Add("placeholderColor", new PropertyValue(Color.Red));
- /// propertyMap.Add("placeholderFontFamily", new PropertyValue("Arial"));
- /// propertyMap.Add("placeholderPointSize", new PropertyValue(12.0f));
+ /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
+ /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
+ /// propertyMap.Add("color", new PropertyValue(Color.Red));
+ /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
+ /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
///
/// PropertyMap fontStyleMap = new PropertyMap();
/// fontStyleMap.Add("weight", new PropertyValue("bold"));
/// fontStyleMap.Add("width", new PropertyValue("condensed"));
/// fontStyleMap.Add("slant", new PropertyValue("italic"));
- /// propertyMap.Add("placeholderFontStyle", new PropertyValue(fontStyleMap));
+ /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
///
/// TextEditor editor = new TextEditor();
/// editor.Placeholder = propertyMap;
}
-}
\ No newline at end of file
+}
return;
}
- if(type == DisposeTypes.Explicit)
+ if (type == DisposeTypes.Explicit)
{
//Called by User
//Release your own managed resources here.
[Obsolete("Please do not use! this will be deprecated")]
public new static TextField DownCast(BaseHandle handle)
{
- TextField ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextField;
+ TextField ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextField;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// The Outline property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public string Outline
+ public PropertyMap Outline
{
get
{
- string temp;
- GetProperty(TextField.Property.OUTLINE).Get(out temp);
+ PropertyMap temp = new PropertyMap();
+ GetProperty(TextField.Property.OUTLINE).Get(temp);
return temp;
}
set
/// The following example demonstrates how to set the Placeholder property.
/// <code>
/// PropertyMap propertyMap = new PropertyMap();
- /// propertyMap.Add("placeholderText", new PropertyValue("Setting Placeholder Text"));
- /// propertyMap.Add("placeholderTextFocused", new PropertyValue("Setting Placeholder Text Focused"));
- /// propertyMap.Add("placeholderColor", new PropertyValue(Color.Red));
- /// propertyMap.Add("placeholderFontFamily", new PropertyValue("Arial"));
- /// propertyMap.Add("placeholderPointSize", new PropertyValue(12.0f));
+ /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
+ /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
+ /// propertyMap.Add("color", new PropertyValue(Color.Red));
+ /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
+ /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
///
/// PropertyMap fontStyleMap = new PropertyMap();
/// fontStyleMap.Add("weight", new PropertyValue("bold"));
/// fontStyleMap.Add("width", new PropertyValue("condensed"));
/// fontStyleMap.Add("slant", new PropertyValue("italic"));
- /// propertyMap.Add("placeholderFontStyle", new PropertyValue(fontStyleMap));
+ /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
///
/// TextField field = new TextField();
/// field.Placeholder = propertyMap;
}
-}
\ No newline at end of file
+}
/// The default outline parameters.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public string Outline
+ public PropertyMap Outline
{
get
{
- string temp;
- GetProperty(TextLabel.Property.OUTLINE).Get(out temp);
+ PropertyMap temp = new PropertyMap();
+ GetProperty(TextLabel.Property.OUTLINE).Get(temp);
return temp;
}
set
internal static readonly int LOOPING = NDalicPINVOKE.VideoView_Property_LOOPING_get();
internal static readonly int MUTED = NDalicPINVOKE.VideoView_Property_MUTED_get();
internal static readonly int VOLUME = NDalicPINVOKE.VideoView_Property_VOLUME_get();
+ internal static readonly int UNDERLAY = NDalicPINVOKE.VideoView_Property_UNDERLAY_get();
}
/// <summary>
}
/// <summary>
- /// Video file URL as string type or PropertyMap.
+ /// Video file setting type of PropertyMap.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public PropertyMap Video
}
}
+ /// <summary>
+ /// Video rendering by underlay, true or false.<br />
+ /// This shows video composited underneath the window by the system. This means it may ignore rotation of the video-view.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public bool Underlay
+ {
+ get
+ {
+ bool temp = false;
+ GetProperty(VideoView.Property.UNDERLAY).Get(out temp);
+ return temp;
+ }
+ set
+ {
+ SetProperty(VideoView.Property.UNDERLAY, new PropertyValue(value));
+ }
+ }
+
+ /// <summary>
+ /// Video file URL as string type.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public string ResourceUrl
+ {
+ get
+ {
+ string tmp;
+ GetProperty(VideoView.Property.VIDEO).Get(out tmp);
+ return tmp;
+ }
+ set
+ {
+ SetProperty(VideoView.Property.VIDEO, new PropertyValue(value));
+ }
+ }
+
}
}
\ No newline at end of file
internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
+ internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
+ internal static readonly int PADDINGEX = NDalicPINVOKE.View_Property_PADDING_get();
}
/// <summary>
}
set
{
- LeftFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ LeftFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ LeftFocusableViewId = -1;
+ }
}
}
}
set
{
- RightFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ RightFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ RightFocusableViewId = -1;
+ }
}
}
}
set
{
- UpFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ UpFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ UpFocusableViewId = -1;
+ }
}
}
}
set
{
- DownFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ DownFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ DownFocusableViewId = -1;
+ }
}
}
SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
}
}
+
+ /// <summary>
+ /// Gets or sets the Margin for use in layout.
+ /// </summary>
+ public Extents Margin
+ {
+ get
+ {
+ Extents temp = new Extents(0, 0, 0, 0);
+ GetProperty(View.Property.MARGIN).Get(temp);
+ return temp;
+ }
+ set
+ {
+ SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the Padding for use in layout.
+ /// </summary>
+ public Extents PaddingEX
+ {
+ get
+ {
+ Extents temp = new Extents(0, 0, 0, 0);
+ GetProperty(View.Property.PADDINGEX).Get(temp);
+ return temp;
+ }
+ set
+ {
+ SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
+ }
+ }
}
/// <summary>
/// </summary>
RTL
}
-}
\ No newline at end of file
+}
--- /dev/null
+/*
+* Copyright (c) 2017 Samsung Electronics Co., Ltd.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+namespace Tizen.NUI
+{
+ /// <summary>
+ /// Extents class describing the a collection of uint16_t.
+ /// </summary>
+ public class Extents : global::System.IDisposable
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal Extents(global::System.IntPtr cPtr, bool cMemoryOwn)
+ {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Extents obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ //A Flag to check who called Dispose(). (By User or DisposeQueue)
+ private bool isDisposeQueued = false;
+ //A Flat to check if it is already disposed.
+ protected bool disposed = false;
+
+ /// <summary>
+ /// Destructor.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ ~Extents()
+ {
+ if (!isDisposeQueued)
+ {
+ isDisposeQueued = true;
+ DisposeQueue.Instance.Add(this);
+ }
+ }
+
+ /// <summary>
+ /// To make a Extents instance be disposed.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public void Dispose()
+ {
+ //Throw excpetion if Dispose() is called in separate thread.
+ if (!Window.IsInstalled())
+ {
+ throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+ }
+
+ if (isDisposeQueued)
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+ else
+ {
+ Dispose(DisposeTypes.Explicit);
+ System.GC.SuppressFinalize(this);
+ }
+ }
+
+ protected virtual void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ NDalicPINVOKE.delete_Extents(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ disposed = true;
+ }
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public Extents() : this(NDalicPINVOKE.new_Extents__SWIG_0(), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Constructor.
+ /// </summary>
+ /// <param name="copy">A reference to the copied Extents.</param>
+ /// <since_tizen> 4 </since_tizen>
+ public Extents(Extents copy) : this(NDalicPINVOKE.new_Extents__SWIG_1(Extents.getCPtr(copy)), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Constructor.
+ /// <param name="start">Start extent.</param>
+ /// <param name="end">End extent.</param>
+ /// <param name="top">Top extent.</param>
+ /// <param name="bottom">Bottom extent.</param>
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public Extents(ushort start, ushort end, ushort top, ushort bottom) : this(NDalicPINVOKE.new_Extents__SWIG_2(start, end, top, bottom), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal Extents Assign(SWIGTYPE_p_uint16_t array)
+ {
+ Extents ret = new Extents(NDalicPINVOKE.Extents_Assign__SWIG_1(swigCPtr, SWIGTYPE_p_uint16_t.getCPtr(array)), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal Extents Assign(Extents copy)
+ {
+ Extents ret = new Extents(NDalicPINVOKE.Extents_Assign__SWIG_0(swigCPtr, Extents.getCPtr(copy)), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Equality operator.
+ /// </summary>
+ /// <param name="rhs">The Extents to test against.</param>
+ /// <returns>True if the extents are not equal.</returns>
+ /// <since_tizen> 4 </since_tizen>
+ public bool EqualTo(Extents rhs)
+ {
+ bool ret = NDalicPINVOKE.Extents_EqualTo(swigCPtr, Extents.getCPtr(rhs));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Inequality operator.
+ /// </summary>
+ /// <param name="rhs">The Extents to test against.</param>
+ /// <returns>True if the extents are not equal.</returns>
+ /// <since_tizen> 4 </since_tizen>
+ public bool NotEqualTo(Extents rhs)
+ {
+ bool ret = NDalicPINVOKE.Extents_NotEqualTo(swigCPtr, Extents.getCPtr(rhs));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// The Start extent.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public ushort Start
+ {
+ set
+ {
+ NDalicPINVOKE.Extents_start_set(swigCPtr, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ ushort ret = NDalicPINVOKE.Extents_start_get(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ /// <summary>
+ /// The End extend.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public ushort End
+ {
+ set
+ {
+ NDalicPINVOKE.Extents_end_set(swigCPtr, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ ushort ret = NDalicPINVOKE.Extents_end_get(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ /// <summary>
+ /// The Top extend.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public ushort Top
+ {
+ set
+ {
+ NDalicPINVOKE.Extents_top_set(swigCPtr, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ ushort ret = NDalicPINVOKE.Extents_top_get(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ /// <summary>
+ /// The Bottom Extend.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public ushort Bottom
+ {
+ set
+ {
+ NDalicPINVOKE.Extents_bottom_set(swigCPtr, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ ushort ret = NDalicPINVOKE.Extents_bottom_get(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ }
+
+}
}
}
- private delegate void ResizedEventCallbackType();
+ /// <summary>
+ /// ImfManager resized event.
+ /// </summary>
+ public class ResizedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// resized.
+ /// </summary>
+ public int Resized
+ {
+ get;
+ set;
+ }
+ }
+
+ private delegate void ResizedEventCallbackType(int resized);
private ResizedEventCallbackType _resizedEventCallback;
- private event EventHandler _resizedEventHandler;
+ private event EventHandler<ResizedEventArgs> _resizedEventHandler;
/// <summary>
/// ImfManager resized.
/// </summary>
/// <since_tizen> 4 </since_tizen>
- public event EventHandler Resized
+ public event EventHandler<ResizedEventArgs> Resized
{
add
{
}
}
- private void OnResized()
+ private void OnResized(int resized)
{
+ ResizedEventArgs e = new ResizedEventArgs();
+ e.Resized = resized;
+
if (_resizedEventHandler != null)
{
- _resizedEventHandler(this, null);
+ _resizedEventHandler(this, e);
}
}
/// </summary>
//Please do not use! this will be internal
[EditorBrowsable(EditorBrowsableState.Never)]
- public ImfVoidSignalType ResizedSignal()
+ public KeyboardResizedSignalType ResizedSignal()
{
- ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
+ KeyboardResizedSignalType ret = new KeyboardResizedSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
}
- private delegate void LanguageChangedEventCallbackType();
+ /// <summary>
+ /// ImfManager language changed event args.
+ /// </summary>
+ public class LanguageChangedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// language changed.
+ /// </summary>
+ public int LanguageChanged
+ {
+ get;
+ set;
+ }
+ }
+
+ private delegate void LanguageChangedEventCallbackType(int languageChanged);
private LanguageChangedEventCallbackType _languageChangedEventCallback;
- private event EventHandler _languageChangedEventHandler;
+ private event EventHandler<LanguageChangedEventArgs> _languageChangedEventHandler;
/// <summary>
/// ImfManager language changed.
/// </summary>
/// <since_tizen> 4 </since_tizen>
- public event EventHandler LanguageChanged
+ public event EventHandler<LanguageChangedEventArgs> LanguageChanged
{
add
{
}
}
- private void OnLanguageChanged()
+ private void OnLanguageChanged(int languageChanged)
{
+ LanguageChangedEventArgs e = new LanguageChangedEventArgs();
+ e.LanguageChanged = languageChanged;
+
if (_languageChangedEventHandler != null)
{
- _languageChangedEventHandler(this, null);
+ _languageChangedEventHandler(this, e);
}
}
/// </summary>
//Please do not use! this will be internal
[EditorBrowsable(EditorBrowsableState.Never)]
- public ImfVoidSignalType LanguageChangedSignal()
+ public LanguageChangedSignalType LanguageChangedSignal()
{
- ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
+ LanguageChangedSignalType ret = new LanguageChangedSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
{
get
{
- uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ return Convert.ToUInt32(Children.Count);
}
}
/// <summary>
/// A string key to PropertyValue mapping.
/// </summary>
- Map
+ Map,
+ /// <summary>
+ /// An extents type.
+ /// </summary>
+ Extents
}
/// <summary>
{
value = new PropertyValue((RelativeVector4)obj);
}
+ else if(type.Equals(typeof(Extents)))
+ {
+ value = new PropertyValue((Extents)obj);
+ }
else
{
throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
}
/// <summary>
+ /// Creates a Extents value.
+ /// </summary>
+ /// <param name="extentsValue">A Extents value.</param>
+ /// <since_tizen> 4 </since_tizen>
+ public PropertyValue(Extents extentsValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_16(Extents.getCPtr(extentsValue)), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
/// Creates a PropertyType value.
/// </summary>
/// <param name="type">A PropertyType value.</param>
/// <since_tizen> 3 </since_tizen>
- public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_16((int)type), true)
+ public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_17((int)type), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// </summary>
/// <param name="value">A PropertyValue value.</param>
/// <since_tizen> 3 </since_tizen>
- public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_17(PropertyValue.getCPtr(value)), true)
+ public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_18(PropertyValue.getCPtr(value)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+
+ /// <summary>
+ /// Retrieves a Extents value.
+ /// </summary>
+ /// <param name="extentsValue">On return, a extents.</param>
+ /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
+ /// <since_tizen> 4 </since_tizen>
+ public bool Get(Extents extentsValue)
+ {
+ bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_15(swigCPtr, Extents.getCPtr(extentsValue));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
}
}
\ No newline at end of file
internal static readonly int LOADING_TEXT = NDalicManualPINVOKE.WidgetView_Property_LOADING_TEXT_get();
internal static readonly int WIDGET_STATE_FAULTED = NDalicManualPINVOKE.WidgetView_Property_WIDGET_STATE_FAULTED_get();
internal static readonly int PERMANENT_DELETE = NDalicManualPINVOKE.WidgetView_Property_PERMANENT_DELETE_get();
+ internal static readonly int RETRY_TEXT = NDalicManualPINVOKE.WidgetView_Property_RETRY_TEXT_get();
+ internal static readonly int EFFECT = NDalicManualPINVOKE.WidgetView_Property_EFFECT_get();
}
/// <summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Terminate a widget instance.
+ /// </summary>
+ /// <returns>True on success, false otherwise</returns>
+ public bool TerminateWidget()
+ {
+ bool ret = NDalicManualPINVOKE.WidgetView_TerminateWidget(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
internal WidgetViewSignal WidgetAddedSignal()
{
WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetAddedSignal(swigCPtr), false);
}
}
+ /// <summary>
+ /// Gets or sets retry text.
+ /// </summary>
+ public PropertyMap RetryText
+ {
+ get
+ {
+ PropertyMap temp = new PropertyMap();
+ GetProperty(WidgetView.Property.RETRY_TEXT).Get(temp);
+ return temp;
+ }
+ set
+ {
+ SetProperty(WidgetView.Property.RETRY_TEXT, new Tizen.NUI.PropertyValue(value));
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets effect.
+ /// </summary>
+ public PropertyMap Effect
+ {
+ get
+ {
+ PropertyMap temp = new PropertyMap();
+ GetProperty(WidgetView.Property.EFFECT).Get(temp);
+ return temp;
+ }
+ set
+ {
+ SetProperty(WidgetView.Property.EFFECT, new Tizen.NUI.PropertyValue(value));
+ }
+ }
+
}
}
\ No newline at end of file
/// </summary>
protected override void Dispose(DisposeTypes type)
{
- if(disposed)
+ if (disposed)
{
return;
}
- if(type == DisposeTypes.Explicit)
+ if (type == DisposeTypes.Explicit)
{
//Called by User
//Release your own managed resources here.
return ret;
}
- internal static bool IsInstalled()
- {
+ internal static bool IsInstalled()
+ {
bool ret = NDalicPINVOKE.Stage_IsInstalled();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
- }
+ }
/// <summary>
/// Sets whether the window accepts a focus or not.
/// </summary>
/// <returns>The number of supported auxiliary hints.</returns>
/// <since_tizen> 3 </since_tizen>
- public uint GetSupportedAuxiliaryHintCount() {
+ public uint GetSupportedAuxiliaryHintCount()
+ {
uint ret = NDalicPINVOKE.GetSupportedAuxiliaryHintCount(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="index">The index of the supported auxiliary hint lists.</param>
/// <returns>The auxiliary hint string of the index.</returns>
/// <since_tizen> 3 </since_tizen>
- public string GetSupportedAuxiliaryHint(uint index) {
+ public string GetSupportedAuxiliaryHint(uint index)
+ {
string ret = NDalicPINVOKE.GetSupportedAuxiliaryHint(swigCPtr, index);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="value">The value string.</param>
/// <returns>The ID of created auxiliary hint, or 0 on failure.</returns>
/// <since_tizen> 3 </since_tizen>
- public uint AddAuxiliaryHint(string hint, string value) {
+ public uint AddAuxiliaryHint(string hint, string value)
+ {
uint ret = NDalicPINVOKE.AddAuxiliaryHint(swigCPtr, hint, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="id">The ID of the auxiliary hint.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
/// <since_tizen> 3 </since_tizen>
- public bool RemoveAuxiliaryHint(uint id) {
+ public bool RemoveAuxiliaryHint(uint id)
+ {
bool ret = NDalicPINVOKE.RemoveAuxiliaryHint(swigCPtr, id);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="value">The value string to be set.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
/// <since_tizen> 3 </since_tizen>
- public bool SetAuxiliaryHintValue(uint id, string value) {
+ public bool SetAuxiliaryHintValue(uint id, string value)
+ {
bool ret = NDalicPINVOKE.SetAuxiliaryHintValue(swigCPtr, id, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="id">The auxiliary hint ID.</param>
/// <returns>The string value of the auxiliary hint ID, or an empty string if none exists.</returns>
/// <since_tizen> 3 </since_tizen>
- public string GetAuxiliaryHintValue(uint id) {
+ public string GetAuxiliaryHintValue(uint id)
+ {
string ret = NDalicPINVOKE.GetAuxiliaryHintValue(swigCPtr, id);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="hint">The auxiliary hint string.</param>
/// <returns>The ID of auxiliary hint string, or 0 on failure.</returns>
/// <since_tizen> 3 </since_tizen>
- public uint GetAuxiliaryHintId(string hint) {
+ public uint GetAuxiliaryHintId(string hint)
+ {
uint ret = NDalicPINVOKE.GetAuxiliaryHintId(swigCPtr, hint);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="inputRegion">The region to accept input events.</param>
/// <since_tizen> 3 </since_tizen>
- public void SetInputRegion(Rectangle inputRegion) {
+ public void SetInputRegion(Rectangle inputRegion)
+ {
NDalicPINVOKE.SetInputRegion(swigCPtr, Rectangle.getCPtr(inputRegion));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <param name="level">The notification window level.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
/// <since_tizen> 3 </since_tizen>
- public bool SetNotificationLevel(NotificationLevel level) {
+ public bool SetNotificationLevel(NotificationLevel level)
+ {
bool ret = NDalicPINVOKE.SetNotificationLevel(swigCPtr, (int)level);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <returns>The notification window level.</returns>
/// <since_tizen> 3 </since_tizen>
- public NotificationLevel GetNotificationLevel() {
+ public NotificationLevel GetNotificationLevel()
+ {
NotificationLevel ret = (NotificationLevel)NDalicPINVOKE.GetNotificationLevel(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="opaque">Whether the window's visual state is opaque.</param>
/// <since_tizen> 3 </since_tizen>
- public void SetOpaqueState(bool opaque) {
+ public void SetOpaqueState(bool opaque)
+ {
NDalicPINVOKE.SetOpaqueState(swigCPtr, opaque);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// </summary>
/// <returns>True if the window's visual state is opaque, false otherwise.</returns>
/// <since_tizen> 3 </since_tizen>
- public bool IsOpaqueState() {
+ public bool IsOpaqueState()
+ {
bool ret = NDalicPINVOKE.IsOpaqueState(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="screenOffMode">The screen mode.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
/// <since_tizen> 3 </since_tizen>
- public bool SetScreenOffMode(ScreenOffMode screenOffMode) {
+ public bool SetScreenOffMode(ScreenOffMode screenOffMode)
+ {
bool ret = NDalicPINVOKE.SetScreenOffMode(swigCPtr, (int)screenOffMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <returns>The screen off mode.</returns>
/// <since_tizen> 3 </since_tizen>
- public ScreenOffMode GetScreenOffMode() {
+ public ScreenOffMode GetScreenOffMode()
+ {
ScreenOffMode ret = (ScreenOffMode)NDalicPINVOKE.GetScreenOffMode(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="brightness">The preferred brightness (0 to 100).</param>
/// <returns>True if no error occurred, false otherwise.</returns>
/// <since_tizen> 3 </since_tizen>
- public bool SetBrightness(int brightness) {
+ public bool SetBrightness(int brightness)
+ {
bool ret = NDalicPINVOKE.SetBrightness(swigCPtr, brightness);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <returns>The preferred brightness.</returns>
/// <since_tizen> 3 </since_tizen>
- public int GetBrightness() {
+ public int GetBrightness()
+ {
int ret = NDalicPINVOKE.GetBrightness(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
set
{
_windowTitle = value;
- SetClass( _windowTitle, "" );
+ SetClass(_windowTitle, "");
}
}
if (_rootLayer == null && Window.IsInstalled())
{
_rootLayer = new Layer(NDalicPINVOKE.Stage_GetRootLayer(stageCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
return _rootLayer;
}
internal void SetPosition(Position2D position)
{
- var val = new Uint16Pair( (uint)position.X, (uint)position.Y );
+ var val = new Uint16Pair((uint)position.X, (uint)position.Y);
NDalicManualPINVOKE.SetPosition(swigCPtr, Uint16Pair.getCPtr(val));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Contains and encapsulates Native Ecore Wayland Window handle.
+ /// Contains and encapsulates Native Window handle.
/// </summary>
- /// <remarks>
- /// To get System.IntPtr of Native Ecore Wayland Window handle, <br />
- /// DangerousGetHandle() method is used to get handle.
- /// </remarks>
/// <since_tizen> 4 </since_tizen>
- public class NativeWindowSafeHandle : SafeHandle
+ public class SafeNativeWindowHandle : SafeHandle
{
- internal NativeWindowSafeHandle(IntPtr handle) : base(handle, true)
+ /// <summary>
+ /// Contructor, Native window handle is set to handle.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ public SafeNativeWindowHandle() : base(IntPtr.Zero, false)
{
+ SetHandle(Tizen.NUI.Window.Instance.GetNativeWindowHandler());
}
/// <summary>
/// Null check if the handle is valid or not.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public override bool IsInvalid
{
get
/// <since_tizen> 4 </since_tizen>
protected override bool ReleaseHandle()
{
- this.SetHandle(IntPtr.Zero);
return true;
}
}
- /// <summary>
- /// Gets Native Ecore Wayland Window handle.
- /// </summary>
- /// <remarks>
- /// NativeWindowSafeHandle class contains System.IntPtr of Native Ecore Wayland Window handle, <br />
- /// DangerousGetHandle() method is used to get handle.
- /// </remarks>
- /// <since_tizen> 4 </since_tizen>
- public Window.NativeWindowSafeHandle NativeWindowHandle
- {
- get
- {
- return new NativeWindowSafeHandle(GetNativeWindowHandler());
- }
- }
+
}
}