From cabe71bf4ecd10af9a34fb18502db7f70c16982f Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 14 Mar 2017 19:47:06 +0900 Subject: [PATCH] nui 1.0.2 release Change-Id: I0f03097337d1f51c53841674e2d69670c055014b Signed-off-by: dongsug.song --- .../NUISamples.TizenTV/NUISamples.TizenTV.csproj | 7 +- .../examples/AnimationSample-1.cs | 125 - .../examples/control-dashboard.cs | 858 +++---- .../NUISamples.TizenTV/examples/custom-control.cs | 252 -- .../NUISamples.TizenTV/examples/dali-test.cs | 432 ---- .../examples/date-picker-using-json.cs | 62 +- .../NUISamples.TizenTV/examples/date-picker.cs | 67 +- .../NUISamples.TizenTV/examples/hello-test.cs | 143 -- .../NUISamples.TizenTV/examples/hello-world.cs | 208 +- .../NUISamples.TizenTV/examples/image-view.cs | 239 -- .../NUISamples.TizenTV/examples/json-loader.cs | 94 - .../NUISamples.TizenTV/examples/scroll-view.cs | 203 -- .../NUISamples.TizenTV/examples/transition.cs | 162 -- .../examples/user-alphafunction.cs | 197 -- NUISamples/NUISamples.TizenTV/firstscreen/App.cs | 477 ---- .../NUISamples.TizenTV/firstscreen/Constants.cs | 51 - .../NUISamples.TizenTV/firstscreen/FocusData.cs | 107 - .../NUISamples.TizenTV/firstscreen/FocusEffect.cs | 206 -- .../NUISamples.TizenTV/firstscreen/IFocusEffect.cs | 16 - .../NUISamples.TizenTV/firstscreen/Program.cs | 15 - .../firstscreen/ScrollContainer.cs | 629 ----- .../res/json/control-dashboard-theme.json | 154 +- .../res/json/date-picker-theme.json | 29 + packaging/csapi-nui.spec | 2 +- src/Tizen.NUI/Tizen.NUI.csproj | 34 +- src/Tizen.NUI/src/internal/ActorTouchDataSignal.cs | 4 +- src/Tizen.NUI/src/internal/ActorWheelSignal.cs | 4 +- src/Tizen.NUI/src/internal/AlignType.cs | 50 +- src/Tizen.NUI/src/internal/AngleAxis.cs | 4 +- src/Tizen.NUI/src/internal/AngleThresholdPair.cs | 4 +- .../AnimatablePropertyComponentRegistration.cs | 4 +- .../src/internal/AnimatablePropertyRegistration.cs | 4 +- src/Tizen.NUI/src/internal/AnimationSignal.cs | 4 +- src/Tizen.NUI/src/internal/Any.cs | 4 +- src/Tizen.NUI/src/internal/Application.cs | 24 +- .../src/internal/ApplicationControlSignal.cs | 164 +- .../src/internal/ApplicationExtensions.cs | 6 +- src/Tizen.NUI/src/internal/ApplicationSignal.cs | 164 +- src/Tizen.NUI/src/internal/AsyncImageLoader.cs | 4 +- src/Tizen.NUI/src/internal/BaseHandle.cs | 6 +- src/Tizen.NUI/src/internal/BaseObject.cs | 4 +- src/Tizen.NUI/src/internal/BlendEquationType.cs | 4 +- src/Tizen.NUI/src/internal/BlendFactorType.cs | 4 +- src/Tizen.NUI/src/internal/BlendModeType.cs | 4 +- src/Tizen.NUI/src/internal/BufferImage.cs | 4 +- src/Tizen.NUI/src/internal/Builder.cs | 8 +- src/Tizen.NUI/src/internal/ButtonSignal.cs | 4 +- .../src/internal/ChildPropertyRegistration.cs | 4 +- src/Tizen.NUI/src/internal/ClampState.cs | 4 +- src/Tizen.NUI/src/internal/ClampState2D.cs | 4 +- src/Tizen.NUI/src/internal/ConnectionTracker.cs | 4 +- .../src/internal/ConnectionTrackerInterface.cs | 4 +- src/Tizen.NUI/src/internal/ControlKeySignal.cs | 4 +- .../src/internal/ControlOrientationType.cs | 4 +- src/Tizen.NUI/src/internal/CustomActor.cs | 6 +- src/Tizen.NUI/src/internal/CustomActorImpl.cs | 6 +- src/Tizen.NUI/src/internal/DaliEnumConstants.cs | 18 +- src/Tizen.NUI/src/internal/DaliEventHandler.cs | 20 +- src/Tizen.NUI/src/internal/DaliException.cs | 4 +- .../src/internal/DefaultItemLayoutProperty.cs | 4 +- .../src/internal/DefaultItemLayoutType.cs | 4 +- src/Tizen.NUI/src/internal/DefaultRuler.cs | 4 +- src/Tizen.NUI/src/internal/DepthFunctionType.cs | 4 +- src/Tizen.NUI/src/internal/DepthTestModeType.cs | 4 +- src/Tizen.NUI/src/internal/DepthWriteModeType.cs | 4 +- src/Tizen.NUI/src/internal/DirectionBias.cs | 4 +- src/Tizen.NUI/src/internal/DirectionType.cs | 4 +- src/Tizen.NUI/src/internal/DragAndDropDetector.cs | 4 +- src/Tizen.NUI/src/internal/EncodedBufferImage.cs | 4 +- src/Tizen.NUI/src/internal/FaceCullingModeType.cs | 4 +- src/Tizen.NUI/src/internal/FilterModeType.cs | 4 +- src/Tizen.NUI/src/internal/FittingModeType.cs | 15 +- src/Tizen.NUI/src/internal/FixedRuler.cs | 4 +- src/Tizen.NUI/src/internal/FloatSignal.cs | 4 +- src/Tizen.NUI/src/internal/FocusChangedSignal.cs | 4 +- .../src/internal/FocusGroupChangedSignal.cs | 4 +- src/Tizen.NUI/src/internal/FrameBuffer.cs | 4 +- src/Tizen.NUI/src/internal/FrameBufferImage.cs | 4 +- src/Tizen.NUI/src/internal/GaussianBlurView.cs | 6 +- .../src/internal/GaussianBlurViewSignal.cs | 4 +- src/Tizen.NUI/src/internal/Geometry.cs | 4 +- src/Tizen.NUI/src/internal/GestureDetector.cs | 6 +- .../src/internal/GradientVisualSpreadMethodType.cs | 4 +- .../src/internal/GradientVisualUnitsType.cs | 4 +- src/Tizen.NUI/src/internal/Handle.cs | 376 ++- src/Tizen.NUI/src/internal/Image.cs | 6 +- src/Tizen.NUI/src/internal/ImageSignal.cs | 4 +- src/Tizen.NUI/src/internal/Item.cs | 4 +- src/Tizen.NUI/src/internal/ItemContainer.cs | 4 +- src/Tizen.NUI/src/internal/ItemFactory.cs | 13 +- src/Tizen.NUI/src/internal/ItemIdContainer.cs | 4 +- src/Tizen.NUI/src/internal/ItemLayout.cs | 4 +- src/Tizen.NUI/src/internal/ItemRange.cs | 4 +- src/Tizen.NUI/src/internal/ItemView.cs | 6 +- src/Tizen.NUI/src/internal/KeyEventSignal.cs | 4 +- src/Tizen.NUI/src/internal/KeyInputFocusManager.cs | 6 +- src/Tizen.NUI/src/internal/KeyInputFocusSignal.cs | 4 +- .../src/internal/KeyboardPreFocusChangeSignal.cs | 2 +- src/Tizen.NUI/src/internal/LinearConstrainer.cs | 369 ++- src/Tizen.NUI/src/internal/LoadingState.cs | 4 +- .../src/internal/LongPressGestureDetectedSignal.cs | 4 +- .../src/internal/LongPressGestureDetector.cs | 6 +- src/Tizen.NUI/src/internal/ManualPINVOKE.cs | 22 +- src/Tizen.NUI/src/internal/Matrix.cs | 4 +- src/Tizen.NUI/src/internal/Matrix3.cs | 4 +- .../src/internal/MeshVisualShadingModeValue.cs | 4 +- src/Tizen.NUI/src/internal/Meta.cs | 4 +- src/Tizen.NUI/src/internal/Model3dView.cs | 4 +- src/Tizen.NUI/src/internal/NDalic.cs | 34 +- src/Tizen.NUI/src/internal/NDalicPINVOKE.cs | 91 +- src/Tizen.NUI/src/internal/NativeImage.cs | 4 +- src/Tizen.NUI/src/internal/NativeImageInterface.cs | 4 +- src/Tizen.NUI/src/internal/NinePatchImage.cs | 4 +- src/Tizen.NUI/src/internal/ObjectCreatedSignal.cs | 4 +- .../src/internal/ObjectDestroyedSignal.cs | 4 +- src/Tizen.NUI/src/internal/ObjectRegistry.cs | 6 +- src/Tizen.NUI/src/internal/PaddingType.cs | 511 ++-- src/Tizen.NUI/src/internal/PageFactory.cs | 4 +- src/Tizen.NUI/src/internal/PagePanSignal.cs | 4 +- .../src/internal/PageTurnLandscapeView.cs | 4 +- src/Tizen.NUI/src/internal/PageTurnPortraitView.cs | 4 +- src/Tizen.NUI/src/internal/PageTurnSignal.cs | 4 +- src/Tizen.NUI/src/internal/PageTurnView.cs | 6 +- .../src/internal/PanGestureDetectedSignal.cs | 4 +- src/Tizen.NUI/src/internal/PanGestureDetector.cs | 857 ++++--- src/Tizen.NUI/src/internal/PathConstrainer.cs | 402 ++-- .../src/internal/PinchGestureDetectedSignal.cs | 4 +- src/Tizen.NUI/src/internal/PinchGestureDetector.cs | 8 +- src/Tizen.NUI/src/internal/PixelData.cs | 4 +- src/Tizen.NUI/src/internal/PixelFormat.cs | 4 +- src/Tizen.NUI/src/internal/Position2D.cs | 212 ++ .../src/internal/PositionInheritanceMode.cs | 4 +- .../src/internal/PrimitiveVisualShapeType.cs | 4 +- ...lSignal.cs => ProgressBarValueChangedSignal.cs} | 54 +- src/Tizen.NUI/src/internal/PropertyBuffer.cs | 4 +- src/Tizen.NUI/src/internal/PropertyCondition.cs | 4 +- src/Tizen.NUI/src/internal/PropertyNotification.cs | 6 +- src/Tizen.NUI/src/internal/PropertyNotifySignal.cs | 4 +- src/Tizen.NUI/src/internal/PropertyRangeManager.cs | 268 ++- src/Tizen.NUI/src/internal/PropertyRanges.cs | 4 +- src/Tizen.NUI/src/internal/PropertyRegistration.cs | 4 +- src/Tizen.NUI/src/internal/RefObject.cs | 6 +- src/Tizen.NUI/src/internal/RenderBufferFormat.cs | 4 +- src/Tizen.NUI/src/internal/RenderModeType.cs | 4 +- src/Tizen.NUI/src/internal/RenderTask.cs | 4 +- src/Tizen.NUI/src/internal/RenderTaskList.cs | 4 +- src/Tizen.NUI/src/internal/RenderTaskSignal.cs | 4 +- src/Tizen.NUI/src/internal/Renderer.cs | 4 +- src/Tizen.NUI/src/internal/RenderingType.cs | 4 +- src/Tizen.NUI/src/internal/ResourceImageSignal.cs | 4 +- src/Tizen.NUI/src/internal/Ruler.cs | 4 +- src/Tizen.NUI/src/internal/RulerDomain.cs | 4 +- src/Tizen.NUI/src/internal/RulerPtr.cs | 4 +- .../src/internal/SWIGTYPE_p_CallbackBase.cs | 4 +- .../SWIGTYPE_p_Configuration__ContextLoss.cs | 4 +- .../src/internal/SWIGTYPE_p_Dali__CallbackBase.cs | 4 +- .../src/internal/SWIGTYPE_p_Dali__Constraint.cs | 4 +- .../SWIGTYPE_p_Dali__CustomActorImpl__Extension.cs | 4 +- .../internal/SWIGTYPE_p_Dali__FunctorDelegate.cs | 4 +- ...ol.cs => SWIGTYPE_p_Dali__Internal__Texture.cs} | 12 +- .../SWIGTYPE_p_Dali__Internal__TypeRegistry.cs | 4 +- ...i__IntrusivePtrT_Dali__Toolkit__ItemLayout_t.cs | 4 +- .../SWIGTYPE_p_Dali__RectT_unsigned_int_t.cs | 4 +- ...ool_fDali__Actor_Dali__TouchEvent_const_RF_t.cs | 4 +- ...ibilityManager_R_Dali__TouchEvent_const_RF_t.cs | 4 +- ...__SignalT_void_fDali__DragAndDropDetectorF_t.cs | 4 +- ...__Toolkit__Control_Dali__Toolkit__ControlF_t.cs | 4 +- ...d_fDali__Toolkit__ProgressBar_float_floatF_t.cs | 29 - ...li__Toolkit__TextEditor__InputStyle__MaskF_t.cs | 4 +- ...ali__Toolkit__TextField__InputStyle__MaskF_t.cs | 4 +- .../SWIGTYPE_p_Dali__SignalT_void_fboolF_t.cs | 4 +- ...i__SignalT_void_fuint32_t_Dali__PixelDataF_t.cs | 4 +- .../SWIGTYPE_p_Dali__Toolkit__ClampState.cs | 4 +- ..._p_Dali__Toolkit__Internal__AsyncImageLoader.cs | 4 +- ..._Dali__Toolkit__Internal__Control__Extension.cs | 4 +- ...PE_p_Dali__Toolkit__Internal__TransitionData.cs | 4 +- ...TYPE_p_Dali__Toolkit__Internal__Visual__Base.cs | 4 +- ...TYPE_p_Dali__Toolkit__ItemFactory__Extension.cs | 4 +- .../src/internal/SWIGTYPE_p_Dali__TouchEvent.cs | 4 +- .../src/internal/SWIGTYPE_p_FunctorDelegate.cs | 4 +- .../internal/SWIGTYPE_p_PropertyInputContainer.cs | 4 +- src/Tizen.NUI/src/internal/SWIGTYPE_p_double.cs | 4 +- .../src/internal/SWIGTYPE_p_f_float__float.cs | 4 +- ...Dali__Property__Index__Dali__Property__Value.cs | 4 +- ...t_int_r_q_const__Dali__Property__Value__void.cs | 4 +- ...t__std__string_p_Dali__FunctorDelegate__bool.cs | 4 +- ..._string_r_q_const__Dali__Property__Map__bool.cs | 4 +- ...p_q_const__Dali__Any__AnyContainerBase__void.cs | 4 +- .../internal/SWIGTYPE_p_f_r_Dali__Vector2__bool.cs | 4 +- ...ContainerBase__p_Dali__Any__AnyContainerBase.cs | 4 +- ...SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.cs | 4 +- src/Tizen.NUI/src/internal/SWIGTYPE_p_float.cs | 4 +- src/Tizen.NUI/src/internal/SWIGTYPE_p_int.cs | 4 +- .../src/internal/SWIGTYPE_p_std__type_info.cs | 4 +- src/Tizen.NUI/src/internal/SWIGTYPE_p_uint8_t.cs | 4 +- .../src/internal/SWIGTYPE_p_unsigned_char.cs | 4 +- .../src/internal/SWIGTYPE_p_unsigned_int.cs | 4 +- .../src/internal/SWIGTYPE_p_unsigned_short.cs | 4 +- src/Tizen.NUI/src/internal/Sampler.cs | 4 +- src/Tizen.NUI/src/internal/SamplingModeType.cs | 23 +- src/Tizen.NUI/src/internal/ScrollView.cs | 6 +- src/Tizen.NUI/src/internal/ScrollViewEffect.cs | 4 +- .../src/internal/ScrollViewPagePathEffect.cs | 4 +- .../src/internal/ScrollViewSnapStartedSignal.cs | 4 +- src/Tizen.NUI/src/internal/Scrollable.cs | 6 +- src/Tizen.NUI/src/internal/ScrollableSignal.cs | 4 +- src/Tizen.NUI/src/internal/Shader.cs | 4 +- src/Tizen.NUI/src/internal/SignalConnectorType.cs | 4 +- src/Tizen.NUI/src/internal/SignalObserver.cs | 4 +- .../src/internal/SliderMarkReachedSignal.cs | 4 +- .../src/internal/SliderValueChangedSignal.cs | 4 +- src/Tizen.NUI/src/internal/SlotObserver.cs | 4 +- src/Tizen.NUI/src/internal/SnapType.cs | 4 +- src/Tizen.NUI/src/internal/StageWheelSignal.cs | 4 +- src/Tizen.NUI/src/internal/StencilFunctionType.cs | 4 +- src/Tizen.NUI/src/internal/StencilOperationType.cs | 4 +- src/Tizen.NUI/src/internal/StringValuePair.cs | 4 +- src/Tizen.NUI/src/internal/StyleChangedSignal.cs | 4 +- .../src/internal/TapGestureDetectedSignal.cs | 4 +- src/Tizen.NUI/src/internal/TextEditorSignal.cs | 4 +- src/Tizen.NUI/src/internal/TextFieldSignal.cs | 4 +- src/Tizen.NUI/src/internal/Texture.cs | 8 +- src/Tizen.NUI/src/internal/TextureSet.cs | 4 +- src/Tizen.NUI/src/internal/TextureType.cs | 4 +- src/Tizen.NUI/src/internal/TimePeriod.cs | 4 +- src/Tizen.NUI/src/internal/TimerSignalType.cs | 171 +- src/Tizen.NUI/src/internal/ToolkitPropertyRange.cs | 4 +- src/Tizen.NUI/src/internal/TooltipPositionType.cs | 4 +- src/Tizen.NUI/src/internal/TouchPoint.cs | 4 +- src/Tizen.NUI/src/internal/TouchPointContainer.cs | 4 +- src/Tizen.NUI/src/internal/TouchSignal.cs | 4 +- src/Tizen.NUI/src/internal/TransitionData.cs | 6 +- src/Tizen.NUI/src/internal/TypeAction.cs | 4 +- src/Tizen.NUI/src/internal/TypeInfo.cs | 6 +- src/Tizen.NUI/src/internal/TypeRegistration.cs | 4 +- src/Tizen.NUI/src/internal/TypeRegistry.cs | 6 +- src/Tizen.NUI/src/internal/Uint16Pair.cs | 4 +- src/Tizen.NUI/src/internal/VectorBase.cs | 4 +- src/Tizen.NUI/src/internal/VectorFloat.cs | 4 +- src/Tizen.NUI/src/internal/VectorUint16Pair.cs | 4 +- src/Tizen.NUI/src/internal/VectorUnsignedChar.cs | 4 +- src/Tizen.NUI/src/internal/VideoViewSignal.cs | 4 +- src/Tizen.NUI/src/internal/ViewImpl.cs | 18 +- src/Tizen.NUI/src/internal/ViewMode.cs | 4 +- src/Tizen.NUI/src/internal/ViewRegistry.cs | 109 +- src/Tizen.NUI/src/internal/ViewWrapperImpl.cs | 38 +- .../src/internal/VisualTransformPropertyType.cs | 6 +- src/Tizen.NUI/src/internal/VisualType.cs | 4 +- src/Tizen.NUI/src/internal/VoidSignal.cs | 4 +- src/Tizen.NUI/src/internal/WrapModeType.cs | 4 +- .../AddedException.cs} | 108 +- .../{handleref.cs => dotnetcore/HandleRef.cs} | 106 +- src/Tizen.NUI/src/internal/doublep.cs | 4 +- src/Tizen.NUI/src/internal/floatp.cs | 4 +- src/Tizen.NUI/src/internal/intp.cs | 4 +- src/Tizen.NUI/src/internal/uintp.cs | 4 +- src/Tizen.NUI/src/internal/ushortp.cs | 4 +- src/Tizen.NUI/src/public/Actor.cs | 190 +- src/Tizen.NUI/src/public/AlphaFunction.cs | 41 +- src/Tizen.NUI/src/public/Animation.cs | 57 +- src/Tizen.NUI/src/public/Button.cs | 35 +- src/Tizen.NUI/src/public/CameraActor.cs | 955 ++++---- src/Tizen.NUI/src/public/CheckBoxButton.cs | 51 +- src/Tizen.NUI/src/public/Color.cs | 229 +- src/Tizen.NUI/src/public/ContentView.cs | 230 -- src/Tizen.NUI/src/public/CustomView.cs | 1727 +++++++------- src/Tizen.NUI/src/public/CustomView/Spin.cs | 314 +++ src/Tizen.NUI/src/public/Degree.cs | 164 +- src/Tizen.NUI/src/public/Doxyfile | 2448 -------------------- src/Tizen.NUI/src/public/FlexContainer.cs | 737 +++--- src/Tizen.NUI/src/public/FocusManager.cs | 446 ++-- src/Tizen.NUI/src/public/Gesture.cs | 297 +-- src/Tizen.NUI/src/public/Hover.cs | 36 +- src/Tizen.NUI/src/public/ImageView.cs | 51 +- src/Tizen.NUI/src/public/Key.cs | 37 +- src/Tizen.NUI/src/public/KeyFrames.cs | 51 +- src/Tizen.NUI/src/public/Layer.cs | 57 +- src/Tizen.NUI/src/public/LongPressGesture.cs | 287 +-- src/Tizen.NUI/src/public/NUIApplication.cs | 472 ++-- src/Tizen.NUI/src/public/PanGesture.cs | 528 +++-- src/Tizen.NUI/src/public/Path.cs | 52 +- src/Tizen.NUI/src/public/PinchGesture.cs | 330 +-- src/Tizen.NUI/src/public/Popup.cs | 140 +- src/Tizen.NUI/src/public/Position.cs | 1056 +++++---- src/Tizen.NUI/src/public/ProgressBar.cs | 155 +- src/Tizen.NUI/src/public/Property.cs | 140 +- src/Tizen.NUI/src/public/PushButton.cs | 52 +- src/Tizen.NUI/src/public/Radian.cs | 205 +- src/Tizen.NUI/src/public/RadioButton.cs | 52 +- src/Tizen.NUI/src/public/Rectangle.cs | 633 ++--- src/Tizen.NUI/src/public/RelayoutContainer.cs | 36 +- src/Tizen.NUI/src/public/Rotation.cs | 619 ++--- src/Tizen.NUI/src/public/ScrollBar.cs | 86 +- src/Tizen.NUI/src/public/Size.cs | 251 +- src/Tizen.NUI/src/public/Size2D.cs | 248 ++ src/Tizen.NUI/src/public/Slider.cs | 124 +- src/Tizen.NUI/src/public/Spin.cs | 314 --- src/Tizen.NUI/src/public/Stage.cs | 202 +- src/Tizen.NUI/src/public/StyleManager.cs | 73 +- src/Tizen.NUI/src/public/TableView.cs | 52 +- src/Tizen.NUI/src/public/TapGesture.cs | 330 +-- src/Tizen.NUI/src/public/TextEditor.cs | 72 +- src/Tizen.NUI/src/public/TextField.cs | 90 +- src/Tizen.NUI/src/public/TextLabel.cs | 64 +- src/Tizen.NUI/src/public/Timer.cs | 175 +- src/Tizen.NUI/src/public/Touch.cs | 318 +-- src/Tizen.NUI/src/public/Vector2.cs | 48 +- src/Tizen.NUI/src/public/Vector3.cs | 48 +- src/Tizen.NUI/src/public/Vector4.cs | 48 +- src/Tizen.NUI/src/public/VideoView.cs | 674 +++--- src/Tizen.NUI/src/public/View.cs | 1154 ++++++--- src/Tizen.NUI/src/public/VisualBase.cs | 349 ++- src/Tizen.NUI/src/public/VisualFactory.cs | 36 +- src/Tizen.NUI/src/public/VisualMaps.cs | 217 -- src/Tizen.NUI/src/public/Wheel.cs | 36 +- src/Tizen.NUI/src/public/Window.cs | 58 +- 316 files changed, 11424 insertions(+), 16466 deletions(-) delete mode 100755 NUISamples/NUISamples.TizenTV/examples/AnimationSample-1.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/custom-control.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/dali-test.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/hello-test.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/image-view.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/json-loader.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/scroll-view.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/transition.cs delete mode 100755 NUISamples/NUISamples.TizenTV/examples/user-alphafunction.cs delete mode 100755 NUISamples/NUISamples.TizenTV/firstscreen/App.cs delete mode 100755 NUISamples/NUISamples.TizenTV/firstscreen/Constants.cs delete mode 100755 NUISamples/NUISamples.TizenTV/firstscreen/FocusData.cs delete mode 100755 NUISamples/NUISamples.TizenTV/firstscreen/FocusEffect.cs delete mode 100755 NUISamples/NUISamples.TizenTV/firstscreen/IFocusEffect.cs delete mode 100755 NUISamples/NUISamples.TizenTV/firstscreen/Program.cs delete mode 100755 NUISamples/NUISamples.TizenTV/firstscreen/ScrollContainer.cs create mode 100755 NUISamples/NUISamples.TizenTV/res/json/date-picker-theme.json create mode 100755 src/Tizen.NUI/src/internal/Position2D.cs rename src/Tizen.NUI/src/internal/{BoolSignal.cs => ProgressBarValueChangedSignal.cs} (51%) rename src/Tizen.NUI/src/internal/{SWIGTYPE_p_f___bool.cs => SWIGTYPE_p_Dali__Internal__Texture.cs} (78%) delete mode 100755 src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t.cs rename src/Tizen.NUI/src/internal/{addedManually.cs => dotnetcore/AddedException.cs} (84%) rename src/Tizen.NUI/src/internal/{handleref.cs => dotnetcore/HandleRef.cs} (81%) delete mode 100755 src/Tizen.NUI/src/public/ContentView.cs create mode 100755 src/Tizen.NUI/src/public/CustomView/Spin.cs delete mode 100755 src/Tizen.NUI/src/public/Doxyfile create mode 100755 src/Tizen.NUI/src/public/Size2D.cs delete mode 100755 src/Tizen.NUI/src/public/Spin.cs delete mode 100755 src/Tizen.NUI/src/public/VisualMaps.cs diff --git a/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj b/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj index 3f7e4a2..2a1e408 100755 --- a/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj +++ b/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj @@ -45,6 +45,7 @@ + @@ -53,7 +54,7 @@ - + @@ -109,10 +110,10 @@ - + - + diff --git a/NUISamples/NUISamples.TizenTV/examples/AnimationSample-1.cs b/NUISamples/NUISamples.TizenTV/examples/AnimationSample-1.cs deleted file mode 100755 index 1265240..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/AnimationSample-1.cs +++ /dev/null @@ -1,125 +0,0 @@ -using System; -using Tizen.NUI; - -namespace Tizen.TV.NUI.Examples -{ - public class AnimationSample - { - private Application application; - private View view; - private Animation toAnimation1; - private Animation toAnimation2; - private Animation byAnimation; - private Animation pathAnimation; - private Animation betweenAnimation; - - private AnimationSample(Application application) - { - this.application = application; - this.application.Initialized += OnInitialize; - } - - static void Main(string[] args) //changed - { - AnimationSample animationSample = new AnimationSample(Application.NewApplication()); - animationSample.MainLoop(); - } - - private void MainLoop() - { - application.MainLoop(); - } - - private void OnInitialize(object source, EventArgs e) - { - view = new View(); - view.Size = new Size(200, 200, 0); - view.Position = new Position(0, 0, 0); - view.AnchorPoint = AnchorPoint.TopLeft; - view.BackgroundColor = Color.Red; - - Stage.Instance.GetDefaultLayer().Add(view); - - toAnimation1 = new Animation(1000); - toAnimation1.Looping = true; - toAnimation1.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.21f, 2), new Vector2(0.14f, 1)); - - toAnimation2 = new Animation(1000); - toAnimation2.Looping = true; - - byAnimation = new Animation(1000); - byAnimation.AnimateBy(view, "PositionX", 100.0f); - byAnimation.AnimateBy(view, "PositionY", 100.0f); - - Path path = new Path(); - path.AddPoint(new Position(100, 100, 0)); - path.AddPoint(new Position(600, 600, 0)); //added - path.AddPoint(new Position(1100, 100, 0)); //changed - path.GenerateControlPoints(0.5f); //added - pathAnimation = new Animation(1000); - pathAnimation.AnimatePath(view, path, new Vector3(0, 0, 0)); - - KeyFrames keyFrames = new KeyFrames(); - keyFrames.Add(0.0f, new Vector3(10.0f, 10.0f, 10.0f)); - keyFrames.Add(0.7f, new Vector3(200.0f, 200.0f, 200.0f)); - keyFrames.Add(1.0f, new Vector3(100.0f, 100.0f, 100.0f)); - betweenAnimation = new Animation(1000); - betweenAnimation.AnimateBetween(view, "Position", keyFrames); //activated - - view.KeyEvent += OnKeyPressed; - view.Focusable = true; - view.SetKeyInputFocus(); - } - - private void AllStop() - { - toAnimation1.Stop(); - toAnimation2.Stop(); - byAnimation.Stop(); - pathAnimation.Stop(); - betweenAnimation.Stop(); - } - - private bool OnKeyPressed(object source, View.KeyEventArgs e) - { - if (e.Key.State == Key.StateType.Down) - { - if (e.Key.KeyPressedName == "Right") - { - AllStop(); - - toAnimation1.Clear(); - - toAnimation1.AnimateTo(view, "PositionX", view.PositionX + 100.0f); - toAnimation1.AnimateTo(view, "PositionY", view.PositionY + 100.0f); - toAnimation1.AnimateTo(view, "ColorAlpha", 0.5f); - toAnimation1.AnimateTo(view, "PositionX", view.PositionX + 200.0f, 1000, 2000); - toAnimation1.AnimateTo(view, "ColorAlpha", 1.0f, 1500, 2000); - - toAnimation2.AnimateTo(view, "Scale", new Size(1.2f, 1.2f, 1.0f)); - toAnimation2.AnimateTo(view, "Scale", new Size(0.7f, 0.7f, 1.0f), 1200, 2200); - - toAnimation1.Play(); - toAnimation2.Play(); - } - else if (e.Key.KeyPressedName == "Left") - { - AllStop(); - byAnimation.Play(); - } - else if (e.Key.KeyPressedName == "Up") - { - AllStop(); - pathAnimation.Play(); - } - else if (e.Key.KeyPressedName == "Down") - { - AllStop(); - betweenAnimation.Play(); - } - } - - return true; - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/examples/control-dashboard.cs b/NUISamples/NUISamples.TizenTV/examples/control-dashboard.cs index 0ddd6f1..2a692c5 100755 --- a/NUISamples/NUISamples.TizenTV/examples/control-dashboard.cs +++ b/NUISamples/NUISamples.TizenTV/examples/control-dashboard.cs @@ -17,419 +17,471 @@ using System; using System.Runtime.InteropServices; -using Dali; +using Tizen.NUI; namespace MyCSharpExample -{ - class Example - { - // This is simple structure to contain Control name and implement state at once - // name : control name - // isImplemented : the state which the control is implemented in public or not - private struct Item - { - public String name; - public bool isImplemented; - - public Item(String name, bool isImplemented) - { - this.name = name; - this.isImplemented = isImplemented; - } - } - - private Dali.Application _application; - private TableView _contentContainer; - private Stage _stage; - private Popup _popup; - - // List of items - private Item[] mViewList = { +{ + class Example : NUIApplication + { + // This is simple structure to contain Control name and implement state at once + // name : control name + // isImplemented : the state which the control is implemented in public or not + private struct Item + { + public String name; + public bool isImplemented; + + public Item(String name, bool isImplemented) + { + this.name = name; + this.isImplemented = isImplemented; + } + } + + private TableView _contentContainer; + private Timer _timer; + private Stage _stage; + private Popup _popup; + private ProgressBar _progressBar; + private const string _resPath = "/home/owner/apps_rw/NUISamples.TizenTV/res"; + + // List of items + private Item[] mViewList = { new Item("PushButton", true), new Item("DropDown", false), new Item("Toggle", true), new Item("InputField", false), new Item("AnimateGif", false), new Item("Loading", false), - new Item("ProgressBar", false), new Item("CheckBox", false), new Item("RadioButton", true), + new Item("ProgressBar", true), new Item("CheckBox", false), new Item("RadioButton", true), new Item("Tooltip", true), new Item("Popup", true), new Item("Toast", true), new Item("ItemView", false), new Item("CheckBox", true) - }; - - public Example(Dali.Application application) - { - _application = application; - _application.Initialized += OnInitialize; - } - - public void OnInitialize(object source, NUIApplicationInitEventArgs e) - { - Console.WriteLine("Customized Application Initialize event handler"); - _stage = Stage.GetCurrent(); - _stage.BackgroundColor = Color.White; - - // Top label - TextLabel topLabel = new TextLabel(); - topLabel.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH); - topLabel.SetResizePolicy(ResizePolicyType.SIZE_RELATIVE_TO_PARENT, DimensionType.HEIGHT); - topLabel.AnchorPoint = NDalic.AnchorPointTopCenter; - topLabel.ParentOrigin = NDalic.ParentOriginTopCenter; - topLabel.SetSizeModeFactor(new Vector3( 0.0f, 0.1f, 0.0f ) ); - topLabel.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f); - topLabel.TextColor = NDalic.WHITE; - topLabel.Text = " DALi Views"; - topLabel.HorizontalAlignment = "BEGIN"; - topLabel.VerticalAlignment = "CENTER"; - topLabel.PointSize = 42.0f; - _stage.Add(topLabel); - - // Grid container to contain items. Use tableView because FlexContainer support focus navigation just two direction ( up/down or left/right ) - _contentContainer = new TableView(6, 5); - _contentContainer.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH); - _contentContainer.SetResizePolicy(ResizePolicyType.SIZE_RELATIVE_TO_PARENT, DimensionType.HEIGHT); - _contentContainer.SetSizeModeFactor(new Vector3( 0.0f, 0.9f, 0.0f ) ); - _contentContainer.AnchorPoint = NDalic.AnchorPointBottomCenter; - _contentContainer.ParentOrigin = NDalic.ParentOriginBottomCenter; - _contentContainer.SetRelativeHeight(0, 0.07f); - _contentContainer.SetRelativeHeight(1, 0.26f); - _contentContainer.SetRelativeHeight(2, 0.07f); - _contentContainer.SetRelativeHeight(3, 0.26f); - _contentContainer.SetRelativeHeight(4, 0.07f); - _contentContainer.SetRelativeHeight(5, 0.26f); - _contentContainer.SetKeyboardFocusable(true); - _stage.Add(_contentContainer); - - CreateContent(); - - FocusManager.Instance.PreFocusChange += OnPreFocusChange; - } - - // Callback for KeyboardFocusManager - private Actor OnPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) - { - if (!e.Proposed && !e.Current) - { - e.Proposed = _contentContainer.GetChildAt(1); - } - return e.Proposed; - } - - private void CreateContent() - { - for (int i = 0; i < mViewList.Length; i++) - { - CreateItem(mViewList[i], i); - } - } - - private void CreateItem(Item item, int idx) - { - // Make label for item - TextLabel itemLabel = new TextLabel(" " + item.name); - itemLabel.Size = new Vector3(_stage.GetSize().Width * 0.2f, _stage.GetSize().Height * 0.05f, 0.0f); - itemLabel.HorizontalAlignment = "BEGIN"; - itemLabel.VerticalAlignment = "BOTTOM"; - itemLabel.PointSize = 18.0f; - _contentContainer.AddChild(itemLabel, new TableView.CellPosition(((uint)idx / 5) * 2, (uint)idx % 5)); - - // If item is implemented in public, attach it on stage - if (item.isImplemented) - { - if (item.name.CompareTo("PushButton") == 0) - { - PushButton pushButton = new PushButton(); - pushButton.LabelText = "Push Button"; - pushButton.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH); - pushButton.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT); - pushButton.UnselectedColor = new Vector4(1.0f,0.0f,0.0f,1.0f); - pushButton.SelectedColor = new Vector4(0.0f,1.0f,0.0f,1.0f); - pushButton.Clicked += (obj, e) => - { - e.Button.LabelText = "Click Me"; - e.Button.UnselectedColor = new Vector4(0.0f,0.0f,1.0f,1.0f); - return true; - }; - - _contentContainer.AddChild(pushButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); - } - if (item.name.CompareTo("DropDown") == 0) - { - - } - if (item.name.CompareTo("Toggle") == 0) - { - ToggleButton toggleButton = new ToggleButton(); - Dali.Property.Array array = new Dali.Property.Array(); - array.Add( new Dali.Property.Value("./images/star-highlight.png") ); - array.Add( new Dali.Property.Value("./images/star-mod.png") ); - array.Add( new Dali.Property.Value("./images/star-dim.png") ); - toggleButton.StateVisuals = array; - - Dali.Property.Array tooltips = new Dali.Property.Array(); - tooltips.Add( new Dali.Property.Value("State A") ); - tooltips.Add( new Dali.Property.Value("State B") ); - tooltips.Add( new Dali.Property.Value("State C") ); - toggleButton.Tooltips = tooltips; - - toggleButton.WidthResizePolicy = "FILL_TO_PARENT"; - toggleButton.HeightResizePolicy = "FILL_TO_PARENT"; - toggleButton.Clicked += (obj, e) => - { - Console.WriteLine("Toggle button state changed."); - return true; - }; - - _contentContainer.AddChild(toggleButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); - } - if (item.name.CompareTo("InputField") == 0) - { - - } - if (item.name.CompareTo("AnimateGif") == 0) - { - - } - if (item.name.CompareTo("Loading") == 0) - { - - } - if (item.name.CompareTo("ProgressBar") == 0) - { - - } - if (item.name.CompareTo("ScrollBar") == 0) - { - - } - if (item.name.CompareTo("CheckBox") == 0) + }; + + public Example() : base() + { + } + + public Example(string stylesheet) : base(stylesheet) { - CheckBoxButton checkBoxButton = new CheckBoxButton(); - checkBoxButton.LabelText = "Yes"; - - _contentContainer.AddChild(checkBoxButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); } - if (item.name.CompareTo("RadioButton") == 0) - { - TableView tableView = new TableView(2, 1); - tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH); - tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT); - - RadioButton rButton = new RadioButton(); - rButton.LabelText = "Yes"; - rButton.Selected = true; - tableView.AddChild(rButton, new TableView.CellPosition(0, 0)); - - rButton = new RadioButton(); - rButton.LabelText = "No"; - - tableView.AddChild(rButton, new TableView.CellPosition(1, 0)); - - _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); - } - if (item.name.CompareTo("Tooltip") == 0) - { - TableView tableView = new TableView(2, 1); - tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH); - tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT); - - // Create two push buttons and add them to a table view - PushButton buttonWithSimpleTooltip = new PushButton(); - buttonWithSimpleTooltip.LabelText = "Tooltip with text only"; - buttonWithSimpleTooltip.UnselectedColor = new Vector4(0.5f,0.5f,0.7f,1.0f); - buttonWithSimpleTooltip.SelectedColor = new Vector4(0.7f,0.5f,0.7f,1.0f); - buttonWithSimpleTooltip.WidthResizePolicy = "FILL_TO_PARENT"; - tableView.AddChild(buttonWithSimpleTooltip, new TableView.CellPosition(0, 0)); - - PushButton buttonWithIconTooltip = new PushButton(); - buttonWithIconTooltip.LabelText = "Tooltip with Text and Icon"; - buttonWithIconTooltip.WidthResizePolicy = "FILL_TO_PARENT"; - buttonWithIconTooltip.UnselectedColor = new Vector4(0.5f,0.5f,0.7f,1.0f); - buttonWithIconTooltip.SelectedColor = new Vector4(0.7f,0.5f,0.7f,1.0f); - tableView.AddChild(buttonWithIconTooltip, new TableView.CellPosition(1, 0)); - - // Add a simple text only tooltip to the first push button - buttonWithSimpleTooltip.TooltipText = "Simple Tooltip"; - - // Create a property map for a tooltip with one icon and one text - Property.Array iconTooltipContent = new Property.Array(); - - Property.Map iconVisual = new Property.Map(); - iconVisual.Add( Dali.Constants.Visual.Property.Type, new Property.Value((int)Dali.Constants.Visual.Type.Image) ) - .Add( Dali.Constants.ImageVisualProperty.URL, new Property.Value("./images/star-highlight.png") ); - iconTooltipContent.Add(new Property.Value(iconVisual)); - - Property.Map textVisual = new Property.Map(); - textVisual.Add( Dali.Constants.Visual.Property.Type, new Property.Value((int)Dali.Constants.Visual.Type.Text) ) - .Add( Dali.Constants.TextVisualProperty.Text, new Property.Value("Tooltip with Icon") ); - iconTooltipContent.Add(new Property.Value(textVisual)); - - Property.Map iconTooltip = new Property.Map(); - iconTooltip.Add( Dali.Constants.Tooltip.Property.Content, new Property.Value(iconTooltipContent) ) - .Add( Dali.Constants.Tooltip.Property.Tail, new Property.Value(true) ); - - // Add the tooltip with icon and text to the second push button - buttonWithIconTooltip.Tooltip = iconTooltip; - - _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); - } - if (item.name.CompareTo("Popup") == 0) - { - PushButton button = new PushButton(); - button.LabelText = "Popup"; - button.ParentOrigin = NDalic.ParentOriginCenter; - button.AnchorPoint = NDalic.AnchorPointCenter; - button.MaximumSize = new Vector2(90.0f,50.0f); - _popup = CreatePopup(); - _popup.SetTitle(CreateTitle("Popup")); - TextLabel text = new TextLabel("This will erase the file permanently. Are you sure?"); - text.BackgroundColor = Color.White; - text.MultiLine = true; - text.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH); - text.SetResizePolicy(ResizePolicyType.DIMENSION_DEPENDENCY, DimensionType.HEIGHT); - text.SetPadding(new PaddingType(10.0f, 10.0f, 20.0f, 0.0f)); - _popup.SetContent(text); - _popup.SetKeyboardFocusable(true); - _popup.SetDisplayState(Popup.DisplayStateType.HIDDEN); - - button.Clicked += (obj, ee) => - { - _stage.Add(_popup); - _popup.SetDisplayState(Popup.DisplayStateType.SHOWN); - FocusManager.Instance.SetCurrentFocusActor((_popup.FindChildByName( "Footer" )).FindChildByName("OKButton")); - return true; - }; - _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); - } - if (item.name.CompareTo("Toast") == 0) - { - PushButton button = new PushButton(); - button.LabelText = "Toast"; - button.ParentOrigin = NDalic.ParentOriginCenter; - button.AnchorPoint = NDalic.AnchorPointCenter; - button.Clicked += (obj, ee) => - { - TypeInfo typeInfo = new TypeInfo(TypeRegistry.Get().GetTypeInfo( "PopupToast" )); - if( typeInfo ) - { - BaseHandle baseHandle = typeInfo.CreateInstance(); - if( baseHandle ) - { - Popup toast = Popup.DownCast( baseHandle ); - TextLabel text = new TextLabel("This is a Toast.\nIt will auto-hide itself"); - text.TextColor = Color.White; - text.MultiLine = true; - text.HorizontalAlignment = "center"; - toast.SetTitle( text); - _stage.Add(toast); - toast.SetDisplayState( Popup.DisplayStateType.SHOWN); - } - } - return true; - }; - _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); - } - if (item.name.CompareTo("ItemView") == 0) + public Example(string stylesheet, NUIApplication.WindowMode windowMode) : base(stylesheet, windowMode) { - } - } - else - { - ImageView notSupportView = new ImageView("images/not_yet_sign.png"); - notSupportView.Size = new Vector3(_stage.GetSize().Width * 0.2f, _stage.GetSize().Height * 0.25f, 0.0f); - notSupportView.SetKeyboardFocusable(true); - _contentContainer.AddChild(notSupportView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); - } + + protected override void OnCreate() + { + base.OnCreate(); + Initialize(); + } + + public void Initialize() + { + Console.WriteLine("Customized Application Initialize event handler"); + _stage = Stage.Instance; + _stage.BackgroundColor = Color.White; + + // Top label + TextLabel topLabel = new TextLabel(); + topLabel.WidthResizePolicy = ResizePolicyType.FillToParent; + topLabel.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent; + topLabel.AnchorPoint = AnchorPoint.TopCenter; + topLabel.ParentOrigin = ParentOrigin.TopCenter; + topLabel.SetSizeModeFactor(new Vector3(0.0f, 0.1f, 0.0f)); + topLabel.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f); + topLabel.TextColor = Color.White; + topLabel.Text = " DALi Views"; + topLabel.HorizontalAlignment = "BEGIN"; + topLabel.VerticalAlignment = "CENTER"; + topLabel.PointSize = 42.0f; + _stage.GetDefaultLayer().Add(topLabel); + //StyleManager.Get().ApplyStyle(topLabel, _resPath + "/json/control-dashboard-theme.json", "TextFieldFontSize4"); + topLabel.SetStyleName("TextFieldFontSize4"); + + // Grid container to contain items. Use tableView because FlexContainer support focus navigation just two direction ( up/down or left/right ) + _contentContainer = new TableView(6, 5); + _contentContainer.WidthResizePolicy = ResizePolicyType.FillToParent; + _contentContainer.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent; + _contentContainer.SetSizeModeFactor(new Vector3(0.0f, 0.9f, 0.0f)); + _contentContainer.AnchorPoint = AnchorPoint.BottomCenter; + _contentContainer.ParentOrigin = ParentOrigin.BottomCenter; + _contentContainer.SetRelativeHeight(0, 0.07f); + _contentContainer.SetRelativeHeight(1, 0.26f); + _contentContainer.SetRelativeHeight(2, 0.07f); + _contentContainer.SetRelativeHeight(3, 0.26f); + _contentContainer.SetRelativeHeight(4, 0.07f); + _contentContainer.SetRelativeHeight(5, 0.26f); + _contentContainer.Focusable = (true); + _stage.GetDefaultLayer().Add(_contentContainer); + + CreateContent(); + + FocusManager.Instance.PreFocusChange += OnPreFocusChange; + } + + // Callback for KeyboardFocusManager + private Actor OnPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) + { + if (!e.Proposed && !e.Current) + { + e.Proposed = _contentContainer.GetChildAt(1); + } + return e.Proposed; + } + + private void CreateContent() + { + for (int i = 0; i < mViewList.Length; i++) + { + CreateItem(mViewList[i], i); + } + } + + private void CreateItem(Item item, int idx) + { + // Make label for item + TextLabel itemLabel = new TextLabel(" " + item.name); + itemLabel.Size = new Vector3(_stage.Size.Width * 0.2f, _stage.Size.Height * 0.05f, 0.0f); + itemLabel.HorizontalAlignment = "BEGIN"; + itemLabel.VerticalAlignment = "BOTTOM"; + //itemLabel.PointSize = 18.0f; + _contentContainer.AddChild(itemLabel, new TableView.CellPosition(((uint)idx / 5) * 2, (uint)idx % 5)); + + // If item is implemented in public, attach it on stage + if (item.isImplemented) + { + if (item.name.CompareTo("PushButton") == 0) + { + PushButton pushButton = new PushButton(); + pushButton.LabelText = "Push Button"; + pushButton.WidthResizePolicy = ResizePolicyType.FillToParent; + pushButton.HeightResizePolicy = ResizePolicyType.FillToParent; + pushButton.UnselectedColor = new Vector4(1.0f, 0.0f, 0.0f, 1.0f); + pushButton.SelectedColor = new Vector4(0.0f, 1.0f, 0.0f, 1.0f); + pushButton.Clicked += (obj, e) => + { + Button sender = obj as Button; + sender.LabelText = "Click Me"; + sender.UnselectedColor = new Vector4(0.0f, 0.0f, 1.0f, 1.0f); + return true; + }; + + _contentContainer.AddChild(pushButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("DropDown") == 0) + { + + } + if (item.name.CompareTo("Toggle") == 0) + { + ToggleButton toggleButton = new ToggleButton(); + PropertyArray array = new PropertyArray(); + array.Add(new PropertyValue(_resPath + "/images/star-highlight.png")); + array.Add(new PropertyValue(_resPath + "/images/star-mod.png")); + array.Add(new PropertyValue(_resPath + "/images/star-dim.png")); + toggleButton.StateVisuals = array; + + PropertyArray tooltips = new PropertyArray(); + tooltips.Add(new PropertyValue("State A")); + tooltips.Add(new PropertyValue("State B")); + tooltips.Add(new PropertyValue("State C")); + toggleButton.Tooltips = tooltips; + + toggleButton.WidthResizePolicy = ResizePolicyType.FillToParent; + toggleButton.HeightResizePolicy = ResizePolicyType.FillToParent; + toggleButton.Clicked += (obj, e) => + { + Console.WriteLine("Toggle button state changed."); + return true; + }; + + _contentContainer.AddChild(toggleButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("InputField") == 0) + { + + } + if (item.name.CompareTo("AnimateGif") == 0) + { + + } + if (item.name.CompareTo("Loading") == 0) + { + + } + if (item.name.CompareTo("ProgressBar") == 0) + { + _progressBar = new ProgressBar(); + _progressBar.WidthResizePolicy = ResizePolicyType.FillToParent; + _progressBar.HeightResizePolicy = ResizePolicyType.Fixed; + _progressBar.Size2D = new Size2D(0, 100); + + _progressBar.ValueChanged += OnProgressBarValueChanged; + + _timer = new Timer(100); + _timer.Tick += (obj, e) => + { + float progress = (float)Math.Round(_progressBar.ProgressValue, 2); + + if (progress == 1.0f) + { + _progressBar.ProgressValue = 0.0f; + _progressBar.SecondaryProgressValue = 0.01f; + } + else + { + _progressBar.ProgressValue = progress + 0.01f; + _progressBar.SecondaryProgressValue = progress + 0.21f; + } + return true; + }; + _timer.Start(); + + _contentContainer.AddChild(_progressBar, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("ScrollBar") == 0) + { + + } + if (item.name.CompareTo("CheckBox") == 0) + { + CheckBoxButton checkBoxButton = new CheckBoxButton(); + checkBoxButton.LabelText = "Yes"; + + _contentContainer.AddChild(checkBoxButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("RadioButton") == 0) + { + TableView tableView = new TableView(2, 1); + tableView.WidthResizePolicy = ResizePolicyType.FillToParent; + tableView.HeightResizePolicy = ResizePolicyType.FillToParent; + + RadioButton rButton = new RadioButton(); + rButton.LabelText = "Yes"; + rButton.Selected = true; + tableView.AddChild(rButton, new TableView.CellPosition(0, 0)); + + rButton = new RadioButton(); + rButton.LabelText = "No"; + + tableView.AddChild(rButton, new TableView.CellPosition(1, 0)); + + _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("Tooltip") == 0) + { + TableView tableView = new TableView(2, 1); + tableView.WidthResizePolicy = ResizePolicyType.FillToParent; + tableView.HeightResizePolicy = ResizePolicyType.FillToParent; + + // Create two push buttons and add them to a table view + PushButton buttonWithSimpleTooltip = new PushButton(); + buttonWithSimpleTooltip.LabelText = "Tooltip with text only"; + buttonWithSimpleTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f); + buttonWithSimpleTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f); + buttonWithSimpleTooltip.WidthResizePolicy = ResizePolicyType.FillToParent; + tableView.AddChild(buttonWithSimpleTooltip, new TableView.CellPosition(0, 0)); + + PushButton buttonWithIconTooltip = new PushButton(); + buttonWithIconTooltip.LabelText = "Tooltip with Text and Icon"; + buttonWithIconTooltip.WidthResizePolicy = ResizePolicyType.FillToParent; + buttonWithIconTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f); + buttonWithIconTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f); + tableView.AddChild(buttonWithIconTooltip, new TableView.CellPosition(1, 0)); + + // Add a simple text only tooltip to the first push button + buttonWithSimpleTooltip.TooltipText = "Simple Tooltip"; + + // Create a property map for a tooltip with one icon and one text + PropertyArray iconTooltipContent = new PropertyArray(); + + PropertyMap iconVisual = new PropertyMap(); + iconVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Image)) + .Add(Tizen.NUI.Constants.ImageVisualProperty.URL, new PropertyValue(_resPath + "/images/star-highlight.png")); + iconTooltipContent.Add(new PropertyValue(iconVisual)); + + PropertyMap textVisual = new PropertyMap(); + textVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Text)) + .Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue("Tooltip with Icon")); + iconTooltipContent.Add(new PropertyValue(textVisual)); + + PropertyMap iconTooltip = new PropertyMap(); + iconTooltip.Add(Tizen.NUI.Constants.Tooltip.Property.Content, new PropertyValue(iconTooltipContent)) + .Add(Tizen.NUI.Constants.Tooltip.Property.Tail, new PropertyValue(true)); + + // Add the tooltip with icon and text to the second push button + buttonWithIconTooltip.Tooltip = iconTooltip; + + _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("Popup") == 0) + { + PushButton button = new PushButton(); + button.LabelText = "Popup"; + button.ParentOrigin = ParentOrigin.Center; + button.AnchorPoint = AnchorPoint.Center; + button.MaximumSize = new Size2D(150, 100); + _popup = CreatePopup(); + _popup.SetTitle(CreateTitle("Popup")); + + TextLabel text = new TextLabel("This will erase the file permanently. Are you sure?"); + text.BackgroundColor = Color.White; + text.MultiLine = true; + text.WidthResizePolicy = ResizePolicyType.FillToParent; + text.HeightResizePolicy = ResizePolicyType.DimensionDependency; + text.SetPadding(new PaddingType(10.0f, 10.0f, 20.0f, 0.0f)); + _popup.SetContent(text); + _popup.Focusable = (true); + _popup.SetDisplayState(Popup.DisplayStateType.Hidden); + + button.Clicked += (obj, ee) => + { + _stage.GetDefaultLayer().Add(_popup); + _popup.SetDisplayState(Popup.DisplayStateType.Shown); + FocusManager.Instance.SetCurrentFocusActor((_popup.FindChildByName("Footer")).FindChildByName("OKButton")); + return true; + }; + _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("Toast") == 0) + { + PushButton button = new PushButton(); + button.LabelText = "Toast"; + button.ParentOrigin = ParentOrigin.Center; + button.AnchorPoint = AnchorPoint.Center; + button.Clicked += (obj, ee) => + { + TypeInfo typeInfo = new TypeInfo(TypeRegistry.Get().GetTypeInfo("PopupToast")); + if (typeInfo) + { + BaseHandle baseHandle = typeInfo.CreateInstance(); + if (baseHandle) + { + Popup toast = Popup.DownCast(baseHandle); + TextLabel text = new TextLabel("This is a Toast.\nIt will auto-hide itself"); + text.TextColor = Color.White; + text.MultiLine = true; + text.HorizontalAlignment = "center"; + toast.SetTitle(text); + _stage.GetDefaultLayer().Add(toast); + toast.SetDisplayState(Popup.DisplayStateType.Shown); + } + } + return true; + }; + _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("ItemView") == 0) + { + + } + } + else + { + ImageView notSupportView = new ImageView(_resPath + "/images/not_yet_sign.png"); + notSupportView.Size = new Vector3(_stage.Size.Width * 0.2f, _stage.Size.Height * 0.25f, 0.0f); + notSupportView.Focusable = (true); + _contentContainer.AddChild(notSupportView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + } + Popup CreatePopup() + { + Popup confirmationPopup = new Popup(); + + Actor footer = new Actor(); + footer.Name = ("Footer"); + footer.WidthResizePolicy = ResizePolicyType.FillToParent; + footer.HeightResizePolicy = ResizePolicyType.Fixed; + footer.Size = new Size(0.0f, 80.0f, 0.0f); + footer.ParentOrigin = ParentOrigin.Center; + footer.AnchorPoint = AnchorPoint.Center; + + PushButton okButton = CreateOKButton(); + okButton.ParentOrigin = ParentOrigin.Center; + okButton.AnchorPoint = AnchorPoint.Center; + okButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + okButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + okButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f)); + + PushButton cancelButton = CreateCancelButton(); + cancelButton.ParentOrigin = ParentOrigin.Center; + cancelButton.AnchorPoint = AnchorPoint.Center; + cancelButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + cancelButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + cancelButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f)); + + TableView controlLayout = new TableView(1, 2); + controlLayout.ParentOrigin = ParentOrigin.Center; + controlLayout.AnchorPoint = AnchorPoint.Center; + controlLayout.WidthResizePolicy = ResizePolicyType.FillToParent; + controlLayout.HeightResizePolicy = ResizePolicyType.FillToParent; + controlLayout.SetCellPadding(new Size2D(10, 10)); + controlLayout.SetRelativeWidth(0, 0.5f); + controlLayout.SetRelativeWidth(1, 0.5f); + controlLayout.SetCellAlignment(new TableView.CellPosition(0, 0), HorizontalAlignmentType.Center, VerticalAlignmentType.Center); + controlLayout.SetCellAlignment(new TableView.CellPosition(0, 1), HorizontalAlignmentType.Center, VerticalAlignmentType.Center); + controlLayout.AddChild(okButton, new TableView.CellPosition(0, 0)); + controlLayout.AddChild(cancelButton, new TableView.CellPosition(0, 1)); + + footer.Add(controlLayout); + + confirmationPopup.SetFooter(footer); + return confirmationPopup; + } + Actor CreateTitle(string title) + { + TextLabel titleActor = new TextLabel(title); + titleActor.TextColor = Color.White; + titleActor.MultiLine = true; + titleActor.HorizontalAlignment = "center"; + return titleActor; + } + + PushButton CreateOKButton() + { + PushButton okayButton = new PushButton(); + okayButton.Name = ("OKButton"); + okayButton.LabelText = "OK"; + okayButton.Focusable = (true); + okayButton.Clicked += (obj, ee) => + { + _popup.SetDisplayState(Popup.DisplayStateType.Hidden); + return true; + }; + return okayButton; + } + PushButton CreateCancelButton() + { + PushButton cancelButton = new PushButton(); + cancelButton.LabelText = "Cancel"; + cancelButton.Focusable = (true); + cancelButton.Clicked += (obj, ee) => + { + _popup.SetDisplayState(Popup.DisplayStateType.Hidden); + return true; + }; + return cancelButton; + } + + void OnProgressBarValueChanged(object source, ProgressBar.ValueChangedEventArgs e) + { + PropertyMap labelVisual = new PropertyMap(); + labelVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Text)) + .Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue(Math.Round(e.ProgressBar.ProgressValue, 2) + " / " + Math.Round(e.ProgressBar.SecondaryProgressValue, 2))) + .Add(Tizen.NUI.Constants.TextVisualProperty.PointSize, new PropertyValue(10.0f)); + e.ProgressBar.LabelVisual = labelVisual; + return; + } + + + /// + /// The main entry point for the application. + /// + + [STAThread] + static void Main(string[] args) + { + Console.WriteLine("Hello Mono World"); + + Example example = new Example("/home/owner/apps_rw/NUISamples.TizenTV/res/json/control-dashboard-theme.json"); + example.Run(args); + } } - Popup CreatePopup() - { - Popup confirmationPopup = new Popup(); - - Actor footer = new Actor(); - footer.SetName("Footer"); - footer.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH); - footer.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.HEIGHT); - footer.SetSize(0.0f, 80.0f); - footer.ParentOrigin = NDalic.ParentOriginCenter; - footer.AnchorPoint = NDalic.AnchorPointCenter; - - PushButton okButton = CreateOKButton(); - okButton.ParentOrigin = NDalic.ParentOriginCenter; - okButton.AnchorPoint = NDalic.AnchorPointCenter; - okButton.SetResizePolicy(ResizePolicyType.SIZE_FIXED_OFFSET_FROM_PARENT, DimensionType.ALL_DIMENSIONS); - okButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f)); - - PushButton cancelButton = CreateCancelButton(); - cancelButton.ParentOrigin = NDalic.ParentOriginCenter; - cancelButton.AnchorPoint = NDalic.AnchorPointCenter; - cancelButton.SetResizePolicy(ResizePolicyType.SIZE_FIXED_OFFSET_FROM_PARENT, DimensionType.ALL_DIMENSIONS); - cancelButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f)); - - TableView controlLayout = new TableView(1, 2); - controlLayout.ParentOrigin = NDalic.ParentOriginCenter; - controlLayout.AnchorPoint = NDalic.AnchorPointCenter; - controlLayout.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.ALL_DIMENSIONS); - controlLayout.SetCellPadding(new Size(10.0f, 10.0f)); - controlLayout.SetRelativeWidth(0, 0.5f); - controlLayout.SetRelativeWidth(1, 0.5f); - controlLayout.SetCellAlignment(new TableView.CellPosition(0, 0), HorizontalAlignmentType.CENTER, VerticalAlignmentType.CENTER); - controlLayout.SetCellAlignment(new TableView.CellPosition(0, 1), HorizontalAlignmentType.CENTER, VerticalAlignmentType.CENTER); - controlLayout.AddChild(okButton, new TableView.CellPosition(0, 0)); - controlLayout.AddChild(cancelButton, new TableView.CellPosition(0, 1)); - - footer.Add(controlLayout); - - confirmationPopup.SetFooter(footer); - return confirmationPopup; - } - Actor CreateTitle(string title) - { - TextLabel titleActor = new TextLabel(title); - titleActor.TextColor = Color.White; - titleActor.MultiLine = true; - titleActor.HorizontalAlignment = "center"; - return titleActor; - } - - PushButton CreateOKButton() - { - PushButton okayButton = new PushButton(); - okayButton.SetName("OKButton"); - okayButton.LabelText = "OK"; - okayButton.SetKeyboardFocusable(true); - okayButton.Clicked += (obj, ee) => - { - _popup.SetDisplayState(Popup.DisplayStateType.HIDDEN); - return true; - }; - return okayButton; - } - PushButton CreateCancelButton() - { - PushButton cancelButton = new PushButton(); - cancelButton.LabelText = "Cancel"; - cancelButton.SetKeyboardFocusable(true); - cancelButton.Clicked += (obj, ee) => - { - _popup.SetDisplayState(Popup.DisplayStateType.HIDDEN); - return true; - }; - return cancelButton; - } - - public void MainLoop() - { - _application.MainLoop(); - } - - /// - /// The main entry point for the application. - /// - - [STAThread] - static void Main(string[] args) - { - Console.WriteLine("Hello Mono World"); - - Example example = new Example(Application.NewApplication("json/control-dashboard.json")); - example.MainLoop(); - } - } } diff --git a/NUISamples/NUISamples.TizenTV/examples/custom-control.cs b/NUISamples/NUISamples.TizenTV/examples/custom-control.cs deleted file mode 100755 index 2da7ea4..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/custom-control.cs +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright (c) 2016 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 Dali; - -namespace MyCSharpExample -{ - // A custom control for star rating (draggable to change the rating) - class StarRating : CustomView - { - private FlexContainer _container; - private ImageView[] _images; - private Vector3 _gestureDisplacement; - private int _currentValue; - private int _myRating; - private bool _myDragEnabled; - - // Called by DALi Builder if it finds a StarRating control in a JSON file - static CustomView CreateInstance() - { - return new StarRating(); - } - - // static constructor registers the control type (only runs once) - static StarRating() - { - // ViewRegistry registers control type with DALi type registery - // also uses introspection to find any properties that need to be registered with type registry - ViewRegistry.Instance.Register(CreateInstance, typeof(StarRating) ); - } - - public StarRating() : base(typeof(StarRating).Name, ViewWrapperImpl.CustomViewBehaviour.VIEW_BEHAVIOUR_DEFAULT) - { - } - - public override void OnInitialize() - { - // Create a container for the star images - _container = new FlexContainer(); - - _container.ParentOrigin = NDalic.ParentOriginTopLeft; - _container.AnchorPoint = NDalic.AnchorPointTopLeft; - _container.FlexDirection = (int)FlexContainer.FlexDirectionType.ROW; - _container.WidthResizePolicy = "FILL_TO_PARENT"; - _container.HeightResizePolicy = "FILL_TO_PARENT"; - - this.Add(_container); - - // Create the images - _images = new ImageView[5]; - - for(int i = 0; i < 5; i++) - { - _images[i] = new ImageView("./images/star-dim.png"); - _container.Add( _images[i] ); - } - - // Update the images according to the rating (dimmed star by default) - _myRating = 0; - UpdateStartImages(_myRating); - - // Enable pan gesture detection - EnableGestureDetection(Gesture.GestureType.Pan); - _myDragEnabled = true; // Allow dragging by default (can be disabled) - } - - // Pan gesture handling - public override void OnPan(PanGesture gesture) - { - // Only handle pan gesture if dragging is allowed - if(_myDragEnabled) - { - switch (gesture.State) - { - case Gesture.StateType.Started: - { - _gestureDisplacement = new Vector3(0.0f, 0.0f, 0.0f); - _currentValue = 0; - break; - } - case Gesture.StateType.Continuing: - { - // Calculate the rating according to pan desture displacement - _gestureDisplacement.X += gesture.Displacement.X; - int delta = (int)Math.Ceiling(_gestureDisplacement.X / 40.0f); - _currentValue = _myRating + delta; - - // Clamp the rating - if(_currentValue < 0) _currentValue = 0; - if(_currentValue > 5) _currentValue = 5; - - // Update the images according to the rating - UpdateStartImages(_currentValue); - break; - } - default: - { - _myRating = _currentValue; - break; - } - } - } - } - - // Update the images according to the rating - private void UpdateStartImages(int rating) - { - for(int i = 0; i < rating; i++) - { - _images[i].WidthResizePolicy = "USE_NATURAL_SIZE"; - _images[i].HeightResizePolicy = "USE_NATURAL_SIZE"; - _images[i].SetImage("./images/star-highlight.png"); - } - - for(int i = rating; i < 5; i++) - { - _images[i].WidthResizePolicy = "USE_NATURAL_SIZE"; - _images[i].HeightResizePolicy = "USE_NATURAL_SIZE"; - _images[i].SetImage("./images/star-dim.png"); - } - } - - // Rating property of type int: - public int Rating - { - get - { - return _myRating; - } - set - { - _myRating = value; - UpdateStartImages(_myRating); - } - } - - // DragEnabled property of type bool: - public bool DragEnabled - { - get - { - return _myDragEnabled; - } - set - { - _myDragEnabled = value; - } - } - } - - class Example - { - private Dali.Application _application; - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - delegate void CallbackDelegate(); - - public Example(Dali.Application application) - { - _application = application; - _application.Initialized += Initialize; - } - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - Stage stage = Stage.GetCurrent(); - stage.BackgroundColor = Color.White; - - // Create a container to layout the rows of image and rating vertically - FlexContainer container = new FlexContainer(); - - container.ParentOrigin = NDalic.ParentOriginTopLeft; - container.AnchorPoint = NDalic.AnchorPointTopLeft; - container.FlexDirection = (int)FlexContainer.FlexDirectionType.COLUMN; - container.WidthResizePolicy = "FILL_TO_PARENT"; - container.HeightResizePolicy = "FILL_TO_PARENT"; - - stage.Add(container); - - Random random = new Random(); - - for(int i = 0; i < 6; i++) // 6 rows in total - { - // Create a container to layout the image and rating (in each row) horizontally - FlexContainer imageRow = new FlexContainer(); - imageRow.ParentOrigin = NDalic.ParentOriginTopLeft; - imageRow.AnchorPoint = NDalic.AnchorPointTopLeft; - imageRow.FlexDirection = (int)FlexContainer.FlexDirectionType.ROW; - imageRow.Flex = 1.0f; - container.Add(imageRow); - - // Add the image view to the row - ImageView image = new ImageView("./images/gallery-" + i + ".jpg"); - image.Size = new Vector3(120.0f, 120.0f, 0.0f); - image.WidthResizePolicy = "FIXED"; - image.HeightResizePolicy = "FIXED"; - image.AlignSelf = (int)FlexContainer.Alignment.ALIGN_CENTER; - image.Flex = 0.3f; - image.FlexMargin = new Vector4(10.0f, 0.0f, 0.0f, 0.0f); - imageRow.Add(image); - - // Create a rating control - StarRating view = new StarRating(); - - // Add the rating control to the row - view.ParentOrigin = NDalic.ParentOriginCenter; - view.AnchorPoint = NDalic.AnchorPointCenter; - view.Size = new Vector3(200.0f, 40.0f, 0.0f); - view.Flex = 0.7f; - view.AlignSelf = (int)FlexContainer.Alignment.ALIGN_CENTER; - view.FlexMargin = new Vector4(30.0f, 0.0f, 0.0f, 0.0f); - imageRow.Add(view); - - // Set the initial rating randomly between 1 and 5 - view.Rating = random.Next(1, 6); - } - } - - public void MainLoop() - { - _application.MainLoop (); - } - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main(string[] args) - { - System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (typeof(MyCSharpExample.StarRating).TypeHandle); - - Example example = new Example(Application.NewApplication()); - example.MainLoop (); - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/examples/dali-test.cs b/NUISamples/NUISamples.TizenTV/examples/dali-test.cs deleted file mode 100755 index ce7899b..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/dali-test.cs +++ /dev/null @@ -1,432 +0,0 @@ -/* - * 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 Dali; - -namespace MyCSharpExample -{ - class Example - { - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - delegate void CallbackDelegate(IntPtr appPtr); // void, void delgate - - private Dali.Application _application; - - public Example(Dali.Application application) - { - _application = application; - Console.WriteLine( "InitSignal connection count = " + _application.InitSignal().GetConnectionCount() ); - - _application.Initialized += Initialize; - Console.WriteLine( "InitSignal connection count = " + _application.InitSignal().GetConnectionCount() ); - } - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - OperatorTests(); - - CustomViewPropertyTest(); - - Handle handle = new Handle(); - int myPropertyIndex = handle.RegisterProperty("myProperty", new Property.Value(10.0f), Property.AccessMode.READ_WRITE); - float myProperty = 0.0f; - handle.GetProperty(myPropertyIndex).Get(ref myProperty); - Console.WriteLine( "myProperty value: " + myProperty ); - - int myPropertyIndex2 = handle.RegisterProperty("myProperty2", new Property.Value(new Size(5.0f, 5.0f)), Property.AccessMode.READ_WRITE); - Size myProperty2 = new Size(0.0f, 0.0f); - handle.GetProperty(myPropertyIndex2).Get(myProperty2); - Console.WriteLine( "myProperty2 value: " + myProperty2.W + ", " + myProperty2.H ); - - Actor actor = new Actor(); - actor.Size = new Position(200.0f, 200.0f, 0.0f); - actor.Name = "MyActor"; - actor.Color = new Color(1.0f, 0.0f, 1.0f, 0.8f); - Console.WriteLine("Actor id: {0}", actor.GetId()); - Console.WriteLine("Actor size: " + actor.Size.X + ", " + actor.Size.Y); - Console.WriteLine("Actor name: " + actor.Name); - - Stage stage = Stage.GetCurrent(); - stage.BackgroundColor = Color.White; - Size stageSize = stage.Size; - Console.WriteLine("Stage size: " + stageSize.W + ", " + stageSize.H); - stage.Add(actor); - - TextLabel text = new TextLabel("Hello Mono World"); - text.ParentOrigin = NDalic.ParentOriginCenter; - text.AnchorPoint = NDalic.AnchorPointCenter; - text.HorizontalAlignment = "CENTER"; - stage.Add(text); - - Console.WriteLine( "Text label text: " + text.Text ); - - Console.WriteLine( "Text label point size: " + text.PointSize ); - text.PointSize = 32.0f; - Console.WriteLine( "Text label new point size: " + text.PointSize ); - - RectanglePaddingClassTest(); - - Console.WriteLine( " *************************" ); - Size Size = new Size(100, 50); - Console.WriteLine( " Created " + Size ); - Console.WriteLine( " Size x = " + Size.W + ", y = " + Size.H ); - Size += new Size(20, 20); - Console.WriteLine( " Size x = " + Size.W + ", y = " + Size.H ); - Size.W += 10; - Size.H += 10; - Console.WriteLine( " Size width = " + Size.W + ", height = " + Size.H ); - - Console.WriteLine( " *************************" ); - Position Position = new Position(20, 100, 50); - Console.WriteLine( " Created " + Position ); - Console.WriteLine( " Position x = " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z ); - Position += new Position(20, 20, 20); - Console.WriteLine( " Position x = " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z ); - Position.X += 10; - Position.Y += 10; - Position.Z += 10; - Console.WriteLine( " Position width = " + Position.X + ", height = " + Position.Y + ", depth = " + Position.Z ); - Position parentOrigin = new Dali.Position(NDalic.ParentOriginBottomRight); - Console.WriteLine( " parentOrigin x = " + parentOrigin.X + ", y = " + parentOrigin.Y + ", z = " + parentOrigin.Z ); - - Console.WriteLine( " *************************" ); - Color color = new Color(20, 100, 50, 200); - Console.WriteLine( " Created " + color ); - Console.WriteLine( " Color R = " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A ); - color += new Color(20, 20, 20, 20); - Console.WriteLine( " Color R = " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A ); - color.R += 10; - color.G += 10; - color.B += 10; - color.A += 10; - Console.WriteLine( " Color r = " + color.R + ", g = " + color.G + ", b = " + color.B + ", a = " + color.A ); - } - - public void RectanglePaddingClassTest() - { - using (Rectangle r1 = new Rectangle(2, 5, 20, 30)) - { - Console.WriteLine( " Created " + r1 ); - Console.WriteLine( " IsEmpty() = " + r1.IsEmpty() ); - Console.WriteLine( " Left = " + r1.Left() ); - Console.WriteLine( " Right = " + r1.Right() ); - Console.WriteLine( " Top = " + r1.Top() ); - Console.WriteLine( " Bottom = " + r1.Bottom() ); - Console.WriteLine( " Area = " + r1.Area() ); - } - - Console.WriteLine( " *************************" ); - - using (Rectangle r2 = new Rectangle(2, 5, 20, 30)) - { - Console.WriteLine( " Created " + r2 ); - r2.Set(1,1,40,40); - Console.WriteLine( " IsEmpty() = " + r2.IsEmpty() ); - Console.WriteLine( " Left = " + r2.Left() ); - Console.WriteLine( " Right = " + r2.Right() ); - Console.WriteLine( " Top = " + r2.Top() ); - Console.WriteLine( " Bottom = " + r2.Bottom() ); - Console.WriteLine( " Area = " + r2.Area() ); - } - - Console.WriteLine( " *************************" ); - - Rectangle r3 = new Rectangle(10, 10, 20, 20); - Rectangle r4 = new Rectangle(10, 10, 20, 20); - - if (r3 == r4) - { - Console.WriteLine("r3 == r4"); - } - else - { - Console.WriteLine("r3 != r4"); - } - - r4 = new Rectangle(12, 10, 20, 20); - - if (r3 == r4) - { - Console.WriteLine("r3 == r4"); - } - else - { - Console.WriteLine("r3 != r4"); - } - - PaddingType p1 = new PaddingType(10.5f, 10.7f, 20.8f, 20.8f); - PaddingType p2 = new PaddingType(10.5f, 10.7f, 20.8f, 20.8f); - - if (p1 == p2) - { - Console.WriteLine("p1 == p2"); - } - else - { - Console.WriteLine("p1 != p2"); - } - - p2 = new PaddingType(12.0f, 10.7f, 20.2f, 20.0f); - - if (p1 == p2) - { - Console.WriteLine("p1 == p2"); - } - else - { - Console.WriteLine("p1 != p2"); - } - } - - public void OperatorTests() - { - Actor actor = new Actor(); - Actor differentActor = new Actor(); - Actor actorSame = actor; - Actor nullActor = null; - - // test the true operator - if ( actor ) - { - Console.WriteLine ("BaseHandle Operator true (actor) : test passed "); - } - else - { - Console.WriteLine ("BaseHandle Operator true (actor): test failed "); - } - - Actor parent = actor.GetParent (); - - if ( parent ) - { - Console.WriteLine ("Handle with Empty body :failed "); - } - else - { - Console.WriteLine ("Valid with Empty body :passed "); - } - - actor.Add( differentActor ); - - // here we test two different C# objects, which on the native side have the same body/ ref-object - if ( actor == differentActor.GetParent() ) - { - Console.WriteLine ("actor == differentActor.GetParent() :passed "); - } - else - { - Console.WriteLine ("actor == differentActor.GetParent() :failed "); - } - - if ( differentActor == differentActor.GetParent() ) - { - Console.WriteLine ("differentActor == differentActor.GetParent() :failed "); - } - else - { - Console.WriteLine ("differentActor == differentActor.GetParent() :passed "); - } - - if ( nullActor ) - { - Console.WriteLine ("BaseHandle Operator true (nullActor) : test failed "); - } - else - { - Console.WriteLine ("BaseHandle Operator true (nullActor): test passed "); - } - - // ! operator - if ( !actor ) - { - Console.WriteLine ("BaseHandle Operator !(actor) : test failed "); - } - else - { - Console.WriteLine ("BaseHandle Operator !(actor): test passed "); - } - - if ( !nullActor ) - { - Console.WriteLine ("BaseHandle Operator !(nullActor) : test passed "); - } - else - { - Console.WriteLine ("BaseHandle Operator !(nullActor): test failed "); - } - - // Note: operator false only used inside & operator - // test equality operator == - if ( actor == actorSame ) - { - Console.WriteLine ("BaseHandle Operator (actor == actorSame) : test passed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (actor == actorSame) : test failed"); - } - - if ( actor == differentActor ) - { - Console.WriteLine ("BaseHandle Operator (actor == differentActor) : test failed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (actor == differentActor) : test passed"); - } - - if ( actor == nullActor ) - { - Console.WriteLine ("BaseHandle Operator (actor == nullActor) : test failed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (actor == nullActor) : test passed"); - } - - if ( nullActor == nullActor ) - { - Console.WriteLine ("BaseHandle Operator (nullActor == nullActor) : test passed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (nullActor == nullActor) : test failed"); - } - - // test || operator - if ( actor || actorSame ) - { - Console.WriteLine ("BaseHandle Operator (actor || actorSame) : test passed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (actor || actorSame) : test failed"); - } - - if ( actor || nullActor ) - { - Console.WriteLine ("BaseHandle Operator (actor || nullActor) : test passed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (actor || nullActor) : test failed"); - } - - if ( nullActor || nullActor ) - { - Console.WriteLine ("BaseHandle Operator (nullActor || nullActor) : test failed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (nullActor || nullActor) : test passed"); - } - - // test && operator - if ( actor && actorSame ) - { - Console.WriteLine ("BaseHandle Operator (actor && actorSame) : test passed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (actor && actorSame) : test failed"); - } - - if ( actor && nullActor ) - { - Console.WriteLine ("BaseHandle Operator (actor && nullActor) : test failed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (actor && nullActor) : test passed"); - } - - if ( nullActor && nullActor ) - { - Console.WriteLine ("BaseHandle Operator (nullActor && nullActor) : test failed"); - } - else - { - Console.WriteLine ("BaseHandle Operator (nullActor && nullActor) : test passed"); - } - } - - public void CustomViewPropertyTest() - { - // Create a Spin control - Spin spin = new Spin(); - - // Background property - Property.Map background = new Property.Map(); - background.Add( Dali.Constants.Visual.Property.Type, new Property.Value((int)Dali.Constants.Visual.Type.Color) ) - .Add( Dali.Constants.ColorVisualProperty.MixColor, new Property.Value(Color.Red) ); - spin.Background = background; - - background = spin.Background; - Vector4 backgroundColor = new Vector4(); - background.Find(Dali.Constants.ColorVisualProperty.MixColor).Get(backgroundColor); - if( backgroundColor == Color.Red ) - { - Console.WriteLine ("Custom View Background property : test passed"); - } - else - { - Console.WriteLine ("Custom View Background property : test failed"); - } - - // BackgroundColor property - spin.BackgroundColor = Color.Yellow; - if(spin.BackgroundColor == Color.Yellow) - { - Console.WriteLine ("Custom View BackgroundColor property : test passed"); - } - else - { - Console.WriteLine ("Custom View BackgroundColor property : test failed"); - } - - // StyleName property - spin.StyleName = "MyCustomStyle"; - if(spin.StyleName == "MyCustomStyle") - { - Console.WriteLine ("Custom View StyleName property : test passed"); - } - else - { - Console.WriteLine ("Custom View StyleName property : test failed"); - } - } - - public void MainLoop() - { - _application.MainLoop (); - } - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main(string[] args) - { - Console.WriteLine ("Hello Mono World"); - - Example example = new Example(Application.NewApplication()); - example.MainLoop (); - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/examples/date-picker-using-json.cs b/NUISamples/NUISamples.TizenTV/examples/date-picker-using-json.cs index 415e53b..3002325 100755 --- a/NUISamples/NUISamples.TizenTV/examples/date-picker-using-json.cs +++ b/NUISamples/NUISamples.TizenTV/examples/date-picker-using-json.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * 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. @@ -23,21 +23,24 @@ namespace MyCSharpExample { // A spin control (for continously changing values when users can easily predict a set of values) - class Example + class Example : NUIApplication { - private Application _application; private Spin _spinYear; // spin control for year private Spin _spinMonth; // spin control for month private Spin _spinDay; // spin control for day private Builder _builder; // DALi Builder - public Example(Application application) + public Example() : base() { - _application = application; - _application.Initialized += Initialize; } - public void Initialize(object source, NUIApplicationInitEventArgs e) + protected override void OnCreate() + { + base.OnCreate(); + Initialize(); + } + + public void Initialize() { Stage stage = Stage.Instance; @@ -53,7 +56,7 @@ namespace MyCSharpExample constants.Insert( "CONFIG_SCRIPT_LOG_LEVEL", new PropertyValue( "Verbose") ); _builder.AddConstants( constants ); - _builder.LoadFromFile("/home/owner/apps_rw/NUISamples.TizenTV/res/json/date-picker-template.json"); + _builder.LoadFromFile("/home/owner/apps_rw/NUISamples.TizenTV/res/json/date-picker-template.json" ); // create the date-picker from the template in the json file BaseHandle handle = _builder.Create( "date-picker"); @@ -66,44 +69,43 @@ namespace MyCSharpExample Actor month = actorTree.FindChildByName("Month" ); Actor day = actorTree.FindChildByName("Day"); - // need to get the actual C# View associated with the actor, - _spinYear = (Spin ) ViewRegistry.GetCustomViewFromActor( year ); - _spinMonth = (Spin ) ViewRegistry.GetCustomViewFromActor( month ); - _spinDay = (Spin ) ViewRegistry.GetCustomViewFromActor( day ); + // need to get the actual C# Spin object associated with the actor, + _spinYear = View.DownCast( year ); + _spinMonth = View.DownCast( month ); + _spinDay = View.DownCast( day ); _spinYear.Value = 2099; _spinMonth.Value = 5; _spinDay.Value = 23; - _spinYear.Focusable = (true); _spinMonth.Focusable = (true); _spinDay.Focusable = (true); - FocusManager keyboardFocusManager = FocusManager.Instance; keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChange; - keyboardFocusManager.FocusedViewEnterKeyPressed += OnFocusedActorEnterKeyPressed; + keyboardFocusManager.FocusedActorEnterKeyPressed += OnFocusedActorEnterKeyPressed; + StyleManager.Get().ApplyTheme("/home/owner/apps_rw/NUISamples.TizenTV/res/json/date-picker-theme.json"); } - private View OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) + private Actor OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) { - View nextFocusActor = e.ProposedView; + Actor nextFocusActor = e.Proposed; // When nothing has been focused initially, focus the text field in the first spin - if (!e.CurrentView && !e.ProposedView) + if (!e.Current && !e.Proposed) { nextFocusActor = _spinYear.SpinText; } else if(e.Direction == View.FocusDirection.Left) { // Move the focus to the spin in the left of the current focused spin - if(e.CurrentView == _spinMonth.SpinText) + if(e.Current == _spinMonth.SpinText) { nextFocusActor = _spinYear.SpinText; } - else if(e.CurrentView == _spinDay.SpinText) + else if(e.Current == _spinDay.SpinText) { nextFocusActor = _spinMonth.SpinText; } @@ -111,11 +113,11 @@ namespace MyCSharpExample else if(e.Direction == View.FocusDirection.Right) { // Move the focus to the spin in the right of the current focused spin - if(e.CurrentView == _spinYear.SpinText) + if(e.Current == _spinYear.SpinText) { nextFocusActor = _spinMonth.SpinText; } - else if(e.CurrentView == _spinMonth.SpinText) + else if(e.Current == _spinMonth.SpinText) { nextFocusActor = _spinDay.SpinText; } @@ -124,26 +126,26 @@ namespace MyCSharpExample return nextFocusActor; } - private void OnFocusedActorEnterKeyPressed(object source, FocusManager.FocusedViewEnterKeyEventArgs e) + private void OnFocusedActorEnterKeyPressed(object source, FocusManager.FocusedActorEnterKeyEventArgs e) { // Make the text field in the current focused spin to take the key input KeyInputFocusManager manager = KeyInputFocusManager.Get(); - if (e.View == _spinYear.SpinText) + if (e.Actor == _spinYear.SpinText) { if (manager.GetCurrentFocusControl() != _spinYear.SpinText) { manager.SetFocus(_spinYear.SpinText); } } - else if (e.View == _spinMonth.SpinText) + else if (e.Actor == _spinMonth.SpinText) { if (manager.GetCurrentFocusControl() != _spinMonth.SpinText) { manager.SetFocus(_spinMonth.SpinText); } } - else if (e.View == _spinDay.SpinText) + else if (e.Actor == _spinDay.SpinText) { if (manager.GetCurrentFocusControl() != _spinDay.SpinText) { @@ -152,10 +154,6 @@ namespace MyCSharpExample } } - public void MainLoop() - { - _application.MainLoop (); - } /// /// The main entry point for the application. @@ -163,8 +161,8 @@ namespace MyCSharpExample [STAThread] static void Main(string[] args) { - Example example = new Example(Application.NewApplication()); - example.MainLoop (); + Example example = new Example(); + example.Run(args); } } } diff --git a/NUISamples/NUISamples.TizenTV/examples/date-picker.cs b/NUISamples/NUISamples.TizenTV/examples/date-picker.cs index c9701cf..0c60bdb 100755 --- a/NUISamples/NUISamples.TizenTV/examples/date-picker.cs +++ b/NUISamples/NUISamples.TizenTV/examples/date-picker.cs @@ -17,46 +17,50 @@ using System; using System.Runtime.InteropServices; -using Dali; +using Tizen.NUI; namespace MyCSharpExample { // A spin control (for continously changing values when users can easily predict a set of values) - class Example + class Example : NUIApplication { - private Dali.Application _application; private FlexContainer _container; // Flex container to hold spin controls private Spin _spinYear; // spin control for year private Spin _spinMonth; // spin control for month private Spin _spinDay; // spin control for day - public Example(Dali.Application application) + public Example() : base() { - _application = application; - _application.Initialized += Initialize; + + } + + protected override void OnCreate() + { + base.OnCreate(); + Initialize(); } - public void Initialize(object source, NUIApplicationInitEventArgs e) + public void Initialize() { - Stage stage = Stage.GetCurrent(); + Stage stage = Stage.Instance; stage.BackgroundColor = Color.White; // Create a container for the spins _container = new FlexContainer(); - _container.ParentOrigin = NDalic.ParentOriginCenter; - _container.AnchorPoint = NDalic.AnchorPointCenter; - _container.FlexDirection = (int)FlexContainer.FlexDirectionType.ROW; + _container.ParentOrigin = ParentOrigin.Center; + _container.AnchorPoint = AnchorPoint.Center; + _container.FlexDirection = FlexContainer.FlexDirectionType.Row; _container.Size = new Vector3(480.0f, 150.0f, 0.0f); - stage.Add(_container); + stage.GetDefaultLayer().Add(_container); // Create a Spin control for year _spinYear = new Spin(); - _spinYear.ParentOrigin = NDalic.ParentOriginCenter; - _spinYear.AnchorPoint = NDalic.AnchorPointCenter; + _spinYear.ParentOrigin = ParentOrigin.Center; + _spinYear.AnchorPoint = AnchorPoint.Center; _spinYear.Flex = 0.3f; _spinYear.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f); _container.Add(_spinYear); @@ -66,15 +70,15 @@ namespace MyCSharpExample _spinYear.Value = 2016; _spinYear.Step = 1; _spinYear.MaxTextLength = 4; - _spinYear.TextPointSize = 26; - _spinYear.TextColor = Color.White; - _spinYear.SetKeyboardFocusable(true); + _spinYear.TextPointSize = 15; + _spinYear.TextColor = Color.Red; + _spinYear.Focusable = (true); _spinYear.Name = "_spinYear"; // Create a Spin control for month _spinMonth = new Spin(); - _spinMonth.ParentOrigin = NDalic.ParentOriginCenter; - _spinMonth.AnchorPoint = NDalic.AnchorPointCenter; + _spinMonth.ParentOrigin = ParentOrigin.Center; + _spinMonth.AnchorPoint = AnchorPoint.Center; _spinMonth.Flex = 0.3f; _spinMonth.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f); _container.Add(_spinMonth); @@ -84,15 +88,15 @@ namespace MyCSharpExample _spinMonth.Value = 10; _spinMonth.Step = 1; _spinMonth.MaxTextLength = 2; - _spinMonth.TextPointSize = 26; - _spinMonth.TextColor = Color.White; - _spinMonth.SetKeyboardFocusable(true); + _spinMonth.TextPointSize = 15; + _spinMonth.TextColor = Color.Green; + _spinMonth.Focusable = (true); _spinMonth.Name = "_spinMonth"; // Create a Spin control for day _spinDay = new Spin(); - _spinDay.ParentOrigin = NDalic.ParentOriginCenter; - _spinDay.AnchorPoint = NDalic.AnchorPointCenter; + _spinDay.ParentOrigin = ParentOrigin.Center; + _spinDay.AnchorPoint = AnchorPoint.Center; _spinDay.Flex = 0.3f; _spinDay.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f); _container.Add(_spinDay); @@ -102,9 +106,9 @@ namespace MyCSharpExample _spinDay.Value = 26; _spinDay.Step = 1; _spinDay.MaxTextLength = 2; - _spinDay.TextPointSize = 26; - _spinDay.TextColor = Color.White; - _spinDay.SetKeyboardFocusable(true); + _spinDay.TextPointSize = 15; + _spinDay.TextColor = Color.Blue; + _spinDay.Focusable = (true); _spinDay.Name = "_spinDay"; FocusManager keyboardFocusManager = FocusManager.Instance; @@ -178,19 +182,14 @@ namespace MyCSharpExample } } - public void MainLoop() - { - _application.MainLoop (); - } - /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { - Example example = new Example(Application.NewApplication()); - example.MainLoop (); + Example example = new Example(); + example.Run(args); } } } diff --git a/NUISamples/NUISamples.TizenTV/examples/hello-test.cs b/NUISamples/NUISamples.TizenTV/examples/hello-test.cs deleted file mode 100755 index c78ba14..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/hello-test.cs +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (c) 2016 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 Tizen.NUI; - -namespace HelloTestExample -{ - class Example : NUIApplication - { - private void LOG(string _str) - { - Tizen.Log.Debug("NUI-APP", _str); - //Console.WriteLine("[NUI-APP]" + _str); - } - - private Animation _animation; - private TextLabel _text; - private Stage _stage; - - public Example() : base() - { - } - - public Example(string stylesheet) : base(stylesheet) - { - } - - public Example(string stylesheet, WindowMode windowMode) : base(stylesheet, windowMode) - { - } - - private void Initialize() - { - LOG("Customized Application Initialize event handler"); - _stage = Stage.Instance; - _stage.Touch += OnStageTouched; - _stage.Key += OnStageKeyEvent; - - // Add a _text label to the stage - _text = new TextLabel("Hello NUI World"); - _text.ParentOrigin = ParentOrigin.Center; - _text.AnchorPoint = AnchorPoint.Center; - _text.HorizontalAlignment = "CENTER"; - _text.PointSize = 32.0f; - _text.TextColor = Color.Magenta; - _stage.GetDefaultLayer().Add(_text); - - _animation = new Animation - { - Duration = 2000 - }; - - LOG("[1]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight); - - _animation.AnimateTo(_text, "PositionX", _text.PositionX + 200.0f); - _animation.AnimateTo(_text, "SizeHeight", _text.SizeHeight + 200.0f); - - LOG("[2]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight); - - _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), Vector3.XAxis), 0, 500); - _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), Vector3.XAxis), 500, 1000); - _animation.EndAction = Animation.EndActions.Discard; - } - - public void OnStageKeyEvent(object sender, Stage.KeyEventArgs e) - { - if (e.Key.State == Key.StateType.Down) - { - if (e.Key.KeyPressedName == "Up") - { - if (_animation) - { - _animation.Finished += AnimationFinished; - LOG("AnimationFinished added!"); - } - } - else if (e.Key.KeyPressedName == "Down") - { - if (_animation) - { - _animation.Finished -= AnimationFinished; - LOG("AnimationFinished removed!"); - } - } - } - } - - // Callback for _animation finished signal handling - public void AnimationFinished(object sender, EventArgs e) - { - LOG("AnimationFinished()!"); - if (_animation) - { - LOG("Duration= " + _animation.Duration); - LOG("EndAction= " + _animation.EndAction); - } - LOG("[4]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight); - } - - // Callback for stage touched signal handling - public void OnStageTouched(object sender, Stage.TouchEventArgs e) - { - // Only animate the _text label when touch down happens - if (e.Touch.GetState(0) == PointStateType.Down) - { - LOG("Customized Stage Touch event handler"); - - // Play the _animation - _animation.Play(); - - LOG("[3]_text PositionX =" + _text.PositionX + " SizeHeight=" + _text.SizeHeight); - } - } - - protected override void OnCreate() - { - base.OnCreate(); - Initialize(); - } - - [STAThread] - static void Main(string[] args) - { - Example example = new Example(); - example.Run(args); - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/examples/hello-world.cs b/NUISamples/NUISamples.TizenTV/examples/hello-world.cs index 275ceb4..b55c5cd 100755 --- a/NUISamples/NUISamples.TizenTV/examples/hello-world.cs +++ b/NUISamples/NUISamples.TizenTV/examples/hello-world.cs @@ -16,105 +16,117 @@ */ using System; +using System.Runtime.InteropServices; using Tizen.NUI; -namespace HelloWorldExample -{ - class Example - { - private void LOG(string msg) - { - Tizen.Log.Debug("NUI", msg); - //Console.WriteLine("[NUI] " + msg); - } - - private Application _application; - private Animation _animation; - private TextLabel _text; - private Stage _stage; - - public Example(Application application) - { - _application = application; - _application.Initialized += Initialize; - } - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - LOG("Customized Application Initialize event handler"); - _stage = Stage.Instance; - _stage.BackgroundColor = Color.Green; - _stage.Touch += OnStageTouched; - - // Add a _text label to the stage - _text = new TextLabel("Hello NUI World"); - _text.ParentOrigin = ParentOrigin.Center; - _text.AnchorPoint = AnchorPoint.Center; - _text.HorizontalAlignment = "CENTER"; - _text.PointSize = 32.0f; - _text.TextColor = Color.Magenta; - _stage.GetDefaultLayer().Add(_text); - } - - // Callback for _animation finished signal handling - public void AnimationFinished(object sender, EventArgs e) - { - LOG("AnimationFinished()!"); - if (_animation) - { - Console.WriteLine("Duration= " + _animation.Duration); - Console.WriteLine("EndAction= " + _animation.EndAction); - } - } - - // Callback for stage touched signal handling - public void OnStageTouched(object sender, Stage.TouchEventArgs e) - { - // Only animate the _text label when touch down happens - if (e.Touch.GetState(0) == PointStateType.Down) - { - LOG("Customized Stage Touch event handler"); - // Create a new _animation - if (_animation) - { - //_animation.Stop(Dali.Constants.Animation.EndAction.Stop); - _animation.Reset(); - } - - _animation = new Animation - { - Duration = 2000 - }; - - _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), Vector3.XAxis), 0, 500); - _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), Vector3.XAxis), 500, 1000); - - _animation.AnimateBy(_text, "ScaleX", 3.0f, 1000, 1500); - _animation.AnimateBy(_text, "ScaleY", 4.0f, 1250, 2000); - _animation.EndAction = Animation.EndActions.Discard; - - // Connect the signal callback for animaiton finished signal - _animation.Finished += AnimationFinished; - - // Play the _animation - _animation.Play(); - - } - } - - public void MainLoop() - { - _application.MainLoop(); - } - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main(string[] args) - { - Example example = new Example(Application.NewApplication()); - example.MainLoop(); - } +namespace MyCSharpExample +{ + class Example : NUIApplication + { + private Animation _animation; + private TextLabel _text; + + public Example() : base() + { + } + + protected override void OnCreate() + { + base.OnCreate(); + Initialize(); + } + + public void Initialize() + { + Console.WriteLine("Customized Application Initialize event handler"); + Stage stage = Stage.Instance; + stage.BackgroundColor = Color.White; + stage.Touch += OnStageTouched; + stage.Key += OnStageKeyEvent; + + // Add a _text label to the stage + _text = new TextLabel("Hello NUI World"); + _text.ParentOrigin = ParentOrigin.Center; + _text.AnchorPoint = AnchorPoint.Center; + _text.HorizontalAlignment = "CENTER"; + _text.PointSize = 32.0f; + _text.TextColor = Color.Magenta; + stage.GetDefaultLayer().Add(_text); + } + + // Callback for _animation finished signal handling + public void AnimationFinished(object sender, EventArgs e) + { + Console.WriteLine("AnimationFinished()!"); + if (_animation) + { + Console.WriteLine("Duration= " + _animation.Duration); + Console.WriteLine("EndAction= " + _animation.EndAction); + } + } + + public void OnStageKeyEvent(object sender, Stage.KeyEventArgs e) + { + if (e.Key.State == Key.StateType.Down) + { + if (e.Key.KeyPressedName == "Up") + { + if (_animation) + { + _animation.Finished += AnimationFinished; + Console.WriteLine("AnimationFinished added!"); + } + } + else if (e.Key.KeyPressedName == "Down") + { + if (_animation) + { + _animation.Finished -= AnimationFinished; + Console.WriteLine("AnimationFinished removed!"); + } + } + } + } + + public void OnStageTouched(object sender, Stage.TouchEventArgs e) + { + // Only animate the _text label when touch down happens + if (e.Touch.GetState(0) == PointStateType.Down) + { + Console.WriteLine("Customized Stage Touch event handler"); + // Create a new _animation + if (_animation) + { + //_animation.Stop(Dali.Constants.Animation.EndAction.Stop); + _animation.Reset(); + } + + _animation = new Animation + { + Duration = 2000 + }; + _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X), 0, 500); + + _animation.AnimateTo(_text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), PositionAxis.X), 500, 1000); + + _animation.AnimateBy(_text, "ScaleX", 3.0f, 1000, 1500); + + _animation.AnimateBy(_text, "ScaleY", 4.0f, 1500, 2000); + + _animation.EndAction = Animation.EndActions.Discard; + + _animation.Finished += AnimationFinished; + + _animation.Play(); + } + } + + [STAThread] + static void Main(string[] args) + { + Console.WriteLine("Main() called!"); + Example example = new Example(); + example.Run(args); + } } } diff --git a/NUISamples/NUISamples.TizenTV/examples/image-view.cs b/NUISamples/NUISamples.TizenTV/examples/image-view.cs deleted file mode 100755 index 7cd5359..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/image-view.cs +++ /dev/null @@ -1,239 +0,0 @@ -/* -* Copyright (c) 2016 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 Dali; -using Dali.Constants; - -namespace ImageViewExample -{ - - class Example - { - public static void Log(string str) - { - Console.WriteLine("[DALI C# SAMPLE] " + str); - } - - private Dali.Application _application; - private Animation _animation; - private ImageView _imageView; - private bool _isAniFinised = true; - private Layer layer, _layer1, _layer2; - private PushButton _pushButton1, _pushButton2; - private Stage stage; - - public Example(Dali.Application application) - { - _application = application; - _application.Initialized += Initialize; - } - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - Log("Customized Application Initialize event handler"); - stage = Stage.Instance; - stage.BackgroundColor = Color.Cyan; - stage.Touch += OnStageTouched; - stage.Wheel += OnStageWheelMoved; - stage.Key += OnStageKeyPressed; - //stage.EventProcessingFinished += OnStageEventProcessingFinished; - - layer = stage.GetDefaultLayer(); - _layer1 = new Layer(); - _layer2 = new Layer(); - stage.AddLayer(_layer1); - stage.AddLayer(_layer2); - Log("_layer1.Behavior =" + _layer1.Behavior ); - if( _layer1.Behavior == Layer.LayerBehavior.LAYER_UI ) - { - _layer1.Behavior = Layer.LayerBehavior.LAYER_2D; - Log("again _layer1.Behavior =" + _layer1.Behavior ); - } - // Add a ImageView to the stage - _imageView = new ImageView(); - _imageView.ResourceUrl = "./images/gallery-3.jpg"; - _imageView.ParentOrigin = ParentOrigin.Center; - _imageView.AnchorPoint = AnchorPoint.Center; - _imageView.PixelArea = new Vector4(0.0f, 0.0f, 0.5f, 0.5f); - //_imageView.SetResizePolicy(ResizePolicyType.USE_NATURAL_SIZE, DimensionType.ALL_DIMENSIONS); - layer.Add(_imageView); - - _pushButton1 = new PushButton(); - _pushButton1.ParentOrigin = ParentOrigin.BottomLeft; - _pushButton1.AnchorPoint = AnchorPoint.BottomLeft; - _pushButton1.LabelText = "start animation"; - _pushButton1.Position = new Vector3(0.0f, stage.Size.Height * 0.1f, 0.0f); - _pushButton1.Clicked += OnPushButtonClicked1; - _layer1.Add(_pushButton1); - - _pushButton2 = new PushButton(); - _pushButton2.ParentOrigin = ParentOrigin.BottomLeft; - _pushButton2.AnchorPoint = AnchorPoint.BottomLeft; - _pushButton2.LabelText = "reload image with same URL"; - _pushButton2.Position = new Vector3(0.0f, stage.Size.Height * 0.2f, 0.0f); - _pushButton2.Clicked += OnPushButtonClicked2; - _layer2.Add(_pushButton2); - - } - - public bool OnPushButtonClicked2(object sender, Button.ClickedEventArgs e) - { - if( _imageView ) - { - Log("OnPushButtonClicked2()!"); - layer.Remove(_imageView); - _imageView = new ImageView(); - _imageView.ResourceUrl = "./images/gallery-3.jpg"; - _imageView.ParentOrigin = ParentOrigin.Center; - _imageView.AnchorPoint = AnchorPoint.Center; - _imageView.PixelArea = new Vector4(0.0f, 0.0f, 0.5f, 0.5f); - //_imageView.SetResizePolicy(ResizePolicyType.USE_NATURAL_SIZE, DimensionType.ALL_DIMENSIONS); - layer.Add(_imageView); - } - - return true; - } - - - public bool OnPushButtonClicked1(object sender, Button.ClickedEventArgs e) - { - if( _isAniFinised == true ) - { - _isAniFinised = false; - Log("OnPushButtonClicked1()!"); - - // Create a new _animation - if( _animation ) - { - //_animation.Stop(Dali.Constants.Animation.EndAction.Stop); - _animation.Reset(); - } - - _animation = new Animation(); - _animation.StartTime = 0; - _animation.EndTime = 1000; - _animation.TargetProperty = "PixelArea"; - _animation.Destination = new Vector4(0.5f, 0.0f, 0.5f, 0.5f); - _animation.AnimateTo(_imageView); - - _animation.StartTime = 1000; - _animation.EndTime = 2000; - _animation.TargetProperty = "PixelArea"; - _animation.Destination = new Vector4(0.5f, 0.5f, 0.5f, 0.5f); - _animation.AnimateTo(_imageView); - - _animation.StartTime = 2000; - _animation.EndTime = 3000; - _animation.TargetProperty = "PixelArea"; - _animation.Destination = new Vector4(0.0f, 0.0f, 1.0f, 1.0f); - _animation.AnimateTo(_imageView); - - _animation.StartTime = 3000; - _animation.EndTime = 4000; - _animation.TargetProperty = "PixelArea"; - _animation.Destination = new Vector4(0.5f, 0.5f, 0.5f, 0.5f); - _animation.AnimateTo(_imageView); - - _animation.StartTime = 4000; - _animation.EndTime = 6000; - _animation.TargetProperty = "Size"; - KeyFrames _keyFrames = new KeyFrames(); - _keyFrames.Add(0.0f, new Size3D(0.0f, 0.0f, 0.0f) ); - _keyFrames.Add(0.3f, new Size3D( (stage.Size * 0.7f) ) ); - _keyFrames.Add(1.0f, new Size3D( stage.Size ) ); - _animation.AnimateBetween(_imageView, _keyFrames, Animation.Interpolation.Linear); - - _animation.EndAction = Animation.EndActions.Discard; - - // Connect the signal callback for animaiton finished signal - _animation.Finished += AnimationFinished; - _animation.Finished += AnimationFinished2; - - // Play the _animation - _animation.Play(); - } - - return true; - } - - // Callback for _animation finished signal handling - public void AnimationFinished(object sender, EventArgs e) - { - Log("AnimationFinished()!"); - } - - // Callback for second _animation finished signal handling - public void AnimationFinished2(object sender, EventArgs e) - { - Log("AnimationFinished2()!"); - if(_animation) - { - Log("Duration= " + _animation.Duration); - Log("EndAction= " + _animation.EndAction); - _isAniFinised = true; - } - } - - public void OnStageEventProcessingFinished(object sender, EventArgs e) - { - Log("OnStageEventProcessingFinished()!"); - if( e != null) - { - Log("e != null !"); - } - } - - public void OnStageKeyPressed(object sender, Stage.KeyEventArgs e) - { - Log("OnStageKeyEventOccured()!"); - Log("keyPressedName=" + e.Key.KeyPressedName); - Log("state=" + e.Key.State); - } - - public void OnStageWheelMoved(object sender, Stage.WheelEventArgs e) - { - Log("OnStageWheelEventOccured()!"); - Log("direction=" + e.Wheel.Direction); - Log("type=" + e.Wheel.Type); - } - - // Callback for stage touched signal handling - public void OnStageTouched(object sender, Stage.TouchEventArgs e) - { - Log("OnStageTouched()! e.TouchData.GetState(0)=" + e.Touch.GetState(0)); - } - - public void MainLoop() - { - _application.MainLoop (); - } - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main(string[] args) - { - Log("Main() called!"); - - Example example = new Example(Application.NewApplication()); - example.MainLoop (); - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/examples/json-loader.cs b/NUISamples/NUISamples.TizenTV/examples/json-loader.cs deleted file mode 100755 index 388b077..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/json-loader.cs +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2016 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 Dali; - -namespace MyExampleApp -{ - class Example - { - private Dali.Application _application; - private Builder _builder; - private string _jsonFileName; - - public Example(Dali.Application application, string fileName) - { - _application = application; - _jsonFileName = fileName; - _application.Initialized += Initialize; - } - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - if( _jsonFileName.Length == 0) - { - Console.WriteLine("Please specify JSON file to load"); - return; - } - - _builder = new Builder (); - - Property.Map constants = new Property.Map(); - - // In dali-demo we have some JSON files that can be loaded, but they need 3 different macros defining. - // The JSON folder is typically installed into dali-env/opt/share/com.samsung.dali-demo/res: - // - //string demoDirectory = ".../dali-env/opt/share/com.samsung.dali-demo/res"; - //constants.Insert( "DEMO_IMAGE_DIR" , new Property.Value( demoDirectory+"/images") ); - //constants.Insert( "DEMO_MODEL_DIR" , new Property.Value( demoDirectory+"/models") ); - //constants.Insert( "DEMO_SCRIPT_DIR", new Property.Value( demoDirectory+"/scripts") ); - constants.Insert( "CONFIG_SCRIPT_LOG_LEVEL", new Property.Value( "Verbose") ); - - _builder.AddConstants( constants ); - - - Stage stage = Stage.GetCurrent(); - stage.BackgroundColor = Color.White; - - _builder.LoadFromFile( _jsonFileName ); - - _builder.AddActors( stage.GetRootLayer() ); - - } - - - public void MainLoop() - { - _application.MainLoop (); - } - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main(string[] args) - { - string fileName= ""; - - if( args.Length > 0) - { - fileName = args[0]; - } - - Console.WriteLine("arguments = " + args.Length); - Example example = new Example(Application.NewApplication(), fileName); - example.MainLoop (); - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/examples/scroll-view.cs b/NUISamples/NUISamples.TizenTV/examples/scroll-view.cs deleted file mode 100755 index cc42168..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/scroll-view.cs +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright (c) 2016 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 Dali; - -namespace MyCSharpExample -{ - class Example - { - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - delegate void CallbackDelegate(IntPtr data); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - delegate void ActorCallbackDelegate(IntPtr data); - - private Dali.Application _application; - private ScrollView _scrollView; - private ScrollBar _scrollBar; - private Animation _animation; - private TextLabel _text; - - public Example(Dali.Application application) - { - _application = application; - _application.Initialized += Initialize; - } - - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - CreateScrollView(); - } - - private void CreateScrollView() - { - Stage stage = Stage.GetCurrent(); - stage.BackgroundColor = Color.White; - - // Create a scroll view - _scrollView = new ScrollView(); - Size stageSize = stage.Size; - _scrollView.Size = new Position(stageSize.W, stageSize.H, 0.0f); - _scrollView.ParentOrigin = NDalic.ParentOriginCenter; - _scrollView.AnchorPoint = NDalic.AnchorPointCenter; - stage.Add(_scrollView); - - // Add actors to a scroll view with 3 pages - int pageRows = 1; - int pageColumns = 3; - for(int pageRow = 0; pageRow < pageRows; pageRow++) - { - for(int pageColumn = 0; pageColumn < pageColumns; pageColumn++) - { - View pageActor = new View(); - pageActor.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.ALL_DIMENSIONS); - pageActor.ParentOrigin = NDalic.ParentOriginCenter; - pageActor.AnchorPoint = NDalic.AnchorPointCenter; - pageActor.Position = new Position(pageColumn * stageSize.W, pageRow * stageSize.H, 0.0f); - - // Add images in a 3x4 grid layout for each page - int imageRows = 4; - int imageColumns = 3; - float margin = 10.0f; - Position imageSize = new Position((stageSize.W / imageColumns) - margin, (stageSize.H / imageRows) - margin, 0.0f); - - for(int row = 0; row < imageRows; row++) - { - for(int column = 0; column < imageColumns;column++) - { - int imageId = (row * imageColumns + column) % 2 + 1; - ImageView imageView = new ImageView("images/image-" + imageId + ".jpg"); - imageView.ParentOrigin = NDalic.ParentOriginCenter; - imageView.AnchorPoint = NDalic.AnchorPointCenter; - imageView.Size = imageSize; - imageView.Position = new Position( margin * 0.5f + (imageSize.X + margin) * column - stageSize.W * 0.5f + imageSize.X * 0.5f, - margin * 0.5f + (imageSize.Y + margin) * row - stageSize.H * 0.5f + imageSize.Y * 0.5f, 0.0f ); - pageActor.Add(imageView); - } - } - - _scrollView.Add(pageActor); - } - } - - _scrollView.SetAxisAutoLock(true); - - // Set scroll view to have 3 pages in X axis and allow page snapping, - // and also disable scrolling in Y axis. - RulerPtr scrollRulerX = new RulerPtr(new FixedRuler(stageSize.W)); - RulerPtr scrollRulerY = new RulerPtr(new DefaultRuler()); - scrollRulerX.SetDomain(new RulerDomain(0.0f, stageSize.W * pageColumns, true)); - scrollRulerY.Disable(); - _scrollView.SetRulerX(scrollRulerX); - _scrollView.SetRulerY(scrollRulerY); - - // Create a horizontal scroll bar in the bottom of scroll view (which is optional) - _scrollBar = new ScrollBar(); - _scrollBar.ParentOrigin = NDalic.ParentOriginBottomLeft; - _scrollBar.AnchorPoint = NDalic.AnchorPointTopLeft; - _scrollBar.SetResizePolicy(ResizePolicyType.FIT_TO_CHILDREN, DimensionType.WIDTH); - _scrollBar.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT); - _scrollBar.Orientation = new Rotation( new Radian( new Degree( 270.0f ) ), Vector3.ZAXIS ); - _scrollBar.SetScrollDirection(ScrollBar.Direction.Horizontal); - _scrollView.Add(_scrollBar); - - // Connect to the OnRelayout signal - _scrollView.OnRelayoutEvent += OnScrollViewRelayout; - _scrollView.Touched += OnTouch; - _scrollView.WheelMoved += Onwheel; - _scrollView.KeyInputFocusGained += OnKey; - _text = new TextLabel("View Touch Event Handler Test"); - _text.ParentOrigin = NDalic.ParentOriginCenter; - _text.AnchorPoint = NDalic.AnchorPointCenter; - _text.HorizontalAlignment = "CENTER"; - _text.PointSize = 48.0f; - - _scrollView.Add(_text); - } - - // Callback for _animation finished signal handling - public void AnimationFinished(object sender, EventArgs e) - { - Console.WriteLine("Customized Animation Finished Event handler"); - } - private void OnKey(object source, View.KeyInputFocusGainedEventArgs e) - { - Console.WriteLine("View Keyevent EVENT callback...."); - } - - private bool Onwheel(object source, View.WheelEventArgs e) - { - Console.WriteLine("View Wheel EVENT callback...."); - return true; - } - - private bool OnTouch(object source, View.TouchEventArgs e) - { - Console.WriteLine("View TOUCH EVENT callback...."); - - // Only animate the _text label when touch down happens - if( e.Touch.GetState(0) == PointStateType.DOWN ) - { - Console.WriteLine("Customized Stage Touch event handler"); - // Create a new _animation - if( _animation ) - { - _animation.Reset(); - } - - _animation = new Animation(1.0f); // 1 second of duration - - _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Rotation( new Radian( new Degree( 180.0f ) ), Vector3.XAXIS )), new AlphaFunction(AlphaFunction.BuiltinFunction.Linear), new TimePeriod(0.0f, 0.5f)); - _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Rotation( new Radian( new Degree( 0.0f ) ), Vector3.XAXIS )), new AlphaFunction(AlphaFunction.BuiltinFunction.Linear), new TimePeriod(0.5f, 0.5f)); - - // Connect the signal callback for animaiton finished signal - _animation.Finished += AnimationFinished; - - // Play the _animation - _animation.Play(); - } - return true; - } - - private void OnScrollViewRelayout(object source, View.OnRelayoutEventArgs e) - { - Console.WriteLine("View OnRelayoutEventArgs EVENT callback...."); - - // Set the correct scroll bar size after size negotiation of scroll view is done - _scrollBar.Size = new Position(0.0f, _scrollView.GetRelayoutSize(DimensionType.WIDTH), 0.0f); - } - - public void MainLoop() - { - _application.MainLoop (); - } - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main(string[] args) - { - Example example = new Example(Application.NewApplication()); - example.MainLoop (); - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/examples/transition.cs b/NUISamples/NUISamples.TizenTV/examples/transition.cs deleted file mode 100755 index 882b21a..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/transition.cs +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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 Tizen.NUI; -using Tizen.NUI.Constants; - -namespace MyCSharpExample -{ - // A spin control (for continously changing values when users can easily predict a set of values) - class Example - { - private Application _application; - private ContentView _contentView; - private TextLabel _title; - private PushButton _shadowButton; - private bool _active = false; - - //Visual High level class - private ContentView myContentView; - private PushButton myButtonTest; - private int myCount; - - public Example(Application application) - { - _application = application; - _application.Initialized += Initialize; - } - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - Stage stage = Stage.Instance; - stage.BackgroundColor = Color.White; - - TableView contentLayout = new TableView(4, 1); - contentLayout.Name = ("ContentLayout"); - contentLayout.WidthResizePolicy = ResizePolicyType.FillToParent; - contentLayout.HeightResizePolicy = ResizePolicyType.FillToParent; - contentLayout.ParentOrigin = ParentOrigin.TopLeft; - contentLayout.AnchorPoint = AnchorPoint.TopLeft; - contentLayout.SetCellPadding(new Size2D(0.0f, 5.0f)); - contentLayout.BackgroundColor = new Color(0.949f, 0.949f, 0.949f, 1.0f); - - stage.GetDefaultLayer().Add(contentLayout); - - _title = new TextLabel("Custom Control Transition Example"); - _title.Name = ("Title"); - _title.StyleName = ("Title"); - _title.WidthResizePolicy = ResizePolicyType.FillToParent; - _title.HeightResizePolicy = ResizePolicyType.UseNaturalSize; - _title.HorizontalAlignment = "CENTER"; - _title.BackgroundColor = Color.Yellow; - contentLayout.Add(_title); - contentLayout.SetFitHeight(0); - - TableView buttonLayout = new TableView(3, 3); - buttonLayout.WidthResizePolicy = ResizePolicyType.FillToParent; - buttonLayout.HeightResizePolicy = ResizePolicyType.FillToParent; - buttonLayout.SetFixedHeight(1, 100); - buttonLayout.SetFixedHeight(0, 100); - buttonLayout.SetFixedWidth(1, 500); - contentLayout.Add(buttonLayout); - - _shadowButton = new PushButton(); - _shadowButton.LabelText = "Toggle Transition"; - _shadowButton.Name = ("ToggleTransition"); - _shadowButton.ParentOrigin = ParentOrigin.Center; - _shadowButton.AnchorPoint = AnchorPoint.Center; - _shadowButton.Clicked += (obj, ev) => - { - _active = !_active; - _contentView.ActiveContent = _active; - return true; - }; - _shadowButton.WidthResizePolicy = ResizePolicyType.FillToParent; - _shadowButton.HeightResizePolicy = ResizePolicyType.FillToParent; - buttonLayout.AddChild(_shadowButton, new TableView.CellPosition(1, 1)); - - // Create a conttent view - _contentView = new ContentView(); - _contentView.WidthResizePolicy = ResizePolicyType.Fixed; - _contentView.HeightResizePolicy = ResizePolicyType.Fixed; - _contentView.Size = new Size(250.0f, 250.0f, 0.0f); - _contentView.IconVisual = "/home/owner/apps_rw/NUISamples.TizenTV/res/images/application-icon-0.png"; - - PropertyMap background = new PropertyMap(); - background.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image)); - background.Insert(ImageVisualProperty.URL, new PropertyValue("/home/owner/apps_rw/NUISamples.TizenTV/res/images/background-blocks.jpg")); - _contentView.Background = background; - contentLayout.Add(_contentView); - - - // Visual High level class - myContentView = new ContentView(); - myContentView.WidthResizePolicy = ResizePolicyType.Fixed; - myContentView.HeightResizePolicy = ResizePolicyType.Fixed; - myContentView.Size = new Size(250.0f, 250.0f, 0.0f); - contentLayout.Add(myContentView); - - - myButtonTest = new PushButton(); - myButtonTest.LabelText = "Make Visual"; - myButtonTest.Name = ("MakeVisual"); - myButtonTest.ParentOrigin = ParentOrigin.Center; - myButtonTest.AnchorPoint = AnchorPoint.Center; - myButtonTest.Clicked += (obj, ev) => - { - if (++myCount > 5) myCount = 0; - - ImageVisualMap _imageViewMap = new ImageVisualMap(); - _imageViewMap.URL = "/home/owner/apps_rw/NUISamples.TizenTV/res/images/gallery-" + myCount + ".jpg"; - _imageViewMap.FittingMode = FittingModeType.ShrinkToFit; - _imageViewMap.DepthIndex = 0; - - TextVisualMap _textVisualMap = new TextVisualMap(); - _textVisualMap.Text = "TEXT-" + myCount; - _textVisualMap.PointSize = 20.0f; //20 + 2 * myCount; - _textVisualMap.TextColor = new Color(1.0f, 1.0f, 1.0f, 1.0f); - _textVisualMap.DepthIndex = 1; - - myContentView.ImageVisual = _imageViewMap; - //myContentView.TextVisual = _textVisualMap; - return true; - }; - myButtonTest.WidthResizePolicy = ResizePolicyType.FillToParent; - myButtonTest.HeightResizePolicy = ResizePolicyType.FillToParent; - buttonLayout.AddChild(myButtonTest, new TableView.CellPosition(0, 1)); - - - } - - public void MainLoop() - { - _application.MainLoop(); - } - - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main(string[] args) - { - Example example = new Example(Application.NewApplication("/home/owner/apps_rw/NUISamples.TizenTV/res/json/style-example-theme-one.json")); - example.MainLoop(); - } - } -} \ No newline at end of file diff --git a/NUISamples/NUISamples.TizenTV/examples/user-alphafunction.cs b/NUISamples/NUISamples.TizenTV/examples/user-alphafunction.cs deleted file mode 100755 index 5b521b0..0000000 --- a/NUISamples/NUISamples.TizenTV/examples/user-alphafunction.cs +++ /dev/null @@ -1,197 +0,0 @@ -/* -* Copyright (c) 2016 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 Dali; -using Dali.Constants; - -namespace MyCSharpExample -{ - class Example - { - private Dali.Application _application; - private Animation _animation; - private TextLabel _text; - private View _view1, _view2, _view3; - private UserAlphaFunctionDelegate _user_alpha_func; - private int myCount; - - public static void Log(string str) - { - Console.WriteLine("[DALI C# SAMPLE] " + str); - } - - public Example(Dali.Application application) - { - _application = application; - _application.Initialized += Initialize; - } - - // Declare user alpha function delegate - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - delegate float UserAlphaFunctionDelegate(float progress); - - public void Initialize(object source, NUIApplicationInitEventArgs e) - { - Log("Initialize() is called!"); - Stage stage = Stage.GetCurrent(); - stage.BackgroundColor = Color.White; - stage.Touch += OnStageTouched; - stage.Touch += OnStageTouched2; - //stage.EventProcessingFinished += OnEventProcessingFinished; - stage.Wheel += OnStageWheelEvent; - - // Add a _text label to the stage - _text = new TextLabel("Hello Mono World"); - _text.ParentOrigin = ParentOrigin.BottomCenter; - _text.AnchorPoint = AnchorPoint.BottomCenter; - _text.HorizontalAlignment = "CENTER"; - _text.PointSize = 32.0f; - stage.Add(_text); - - _view1 = new View(); - _view1.Size = new Vector3(200.0f, 200.0f, 0.0f); - _view1.BackgroundColor = Color.Green; - _view1.ParentOrigin = ParentOrigin.Center; - _view1.AnchorPoint = AnchorPoint.Center; - _view1.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.ALL_DIMENSIONS); - _view1.OnStageEvent += OnStage; - stage.Add(_view1); - - _view2 = new View(); - _view2.BackgroundColor = Color.Red; - _view2.Size = new Vector3(50.0f, 50.0f, 0.0f); - _view2.ParentOrigin = ParentOrigin.TopLeft; - _view2.AnchorPoint = AnchorPoint.TopLeft; - _view2.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.ALL_DIMENSIONS); - _view1.Add(_view2); - - _view3 = new View(); - _view3.BackgroundColor = Color.Blue; - _view3.Size = new Vector3(50.0f, 50.0f, 0.0f); - _view3.ParentOrigin = ParentOrigin.TopLeft; - _view3.AnchorPoint = AnchorPoint.TopLeft; - _view3.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.ALL_DIMENSIONS); - _view1.Add(_view3); - - _user_alpha_func = new UserAlphaFunctionDelegate(body); - - MyAnimating(); - } - - // User defines alpha function as custom alpha function - // Important Notification : when this custom alpha-function is implemented, - // the other function call nor other data excess is prevented. - // this method must be implemented to calculate the values of input and output purely. - // unless, this will cause application crash. - float body(float progress) - { - if (progress > 0.2f && progress< 0.7f) - { - return progress + 0.8f; - } - return progress; - } - - // Callback for _animation finished signal handling - public void AnimationFinished(object sender, EventArgs e) - { - Log("AnimationFinished() is called!"); - myCount = 0; - } - - public void MyAnimating() - { - // Create a new _animation - if( _animation ) - { - _animation.Clear(); - _animation.Reset(); - } - - _animation = new Animation(10000); // 10000 milli-second of duration - _animation.StartTime = 5000; - _animation.EndTime = 10000; - _animation.TargetProperty = "Position"; - _animation.AlphaFunction = new AlphaFunction(_user_alpha_func); - _animation.Destination = new Vector3(150.0f, 150.0f, 0.0f); - _animation.AnimateTo(_view2); - // Connect the signal callback for animaiton finished signal - _animation.Finished += AnimationFinished; - _animation.EndAction = Animation.EndActions.Discard; - // Play the _animation - _animation.Play(); - } - - // Callback for stage touched signal handling - public void OnStageTouched(object source, Stage.TouchEventArgs e) - { - // Only animate the _text label when touch down happens - if( e.Touch.GetState(0) == PointStateType.DOWN ) - { - Log("OnStageTouched() is called! PointStateType.DOWN came!"); - myCount++; - if( myCount > 1 ) - { - _animation.Stop(); - Log("_animation.Stop() is called!"); - } - } - } - - // Callback for stage touched signal handling - public void OnStageTouched2(object source, Stage.TouchEventArgs e) - { - Log("OnStageTouched2() is called!state="+ e.Touch.GetState(0) ); - } - - public void OnEventProcessingFinished(object source) - { - Log("OnEventProcessingFinished() is called!"); - } - - public void OnStageWheelEvent(object source, Stage.WheelEventArgs e) - { - Log("OnStageWheelEvent() is called!"); - //Log("OnStageWheelEvent() is called!direction="+ e.WheelEvent.direction + " timeStamp=" + e.WheelEvent.timeStamp ); - } - - - public void OnStage(object source , View.OnStageEventArgs e) - { - Log("OnStage() is called!"); - } - - public void MainLoop() - { - _application.MainLoop (); - } - - [STAThread] - static void Main(string[] args) - { - Log("Main() is called!"); - - Example example = new Example(Application.NewApplication()); - example.MainLoop (); - - Log("After MainLoop()"); - } - } -} - diff --git a/NUISamples/NUISamples.TizenTV/firstscreen/App.cs b/NUISamples/NUISamples.TizenTV/firstscreen/App.cs deleted file mode 100755 index a963c79..0000000 --- a/NUISamples/NUISamples.TizenTV/firstscreen/App.cs +++ /dev/null @@ -1,477 +0,0 @@ -using Tizen.NUI; -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using Tizen.NUI.Constants; - -namespace FirstScreen -{ - public class FirstScreenApp - { - private Application _application; // Reference to Dali Application. - private Stage _stage; // Reference to Dali stage. - private Size2D _stageSize; // Reference to Dali stage size. - - private View _topContainer; // Top Container added to the Stage will contain Poster ScrollContainers. - private View _bottomContainer; // Bottom Container added to the Stage will contain Menu ScrollContainer. - private int _currentPostersContainerID; // Current Poster Container ID visible on the Top Container / Stage. - private int _totalPostersContainers; // Number of Poster ScrollContainers to be added on Top Container. - private List _postersContainer; // List collection of Poster ScrollContainers used on the Top Container in this demo application. - private ScrollContainer _menuContainer; // Menu ScrollContainer used on the Bottom Container in this demo application. - private Layer _bottomClipLayer; // Clip layer (Dali Clip Layer instance) used for Bottom Container. - private Layer _topClipLayer; // Clip layer (Dali Clip Layer instance) used for Top Container. - - private FocusEffect _focusEffect; // FocusEffect is used to apply Focus animation effect on any supplied item/image. - private string _imagePath; // Contains the physical location of all images used in the demo application. - - private ImageView _keyboardFocusIndicator; // Reference to the ImageView (Keyboard Focus indicator) applied to the focused item on ScrollContainer. - private ImageView _launcherSeparator; // Reference to the ImageView used for launcher separation (Launcher consists of three image icons on left of Menu ScrollContainer). - private ImageView[] launcherIcon; // ImageViews used for launcher Icons. - private Animation _showBottomContainerAnimation; // Animation used to show/unhide Bottom Container (Menu ScrollContainer) when it is focused. - private Animation _hideBottomContainerAnimation; // Animation used to hide Bottom Container (Menu ScrollContainer) when it is focused. - private Animation _showAnimation; // Animation used to move Poster scrollContainer from bottom to top and make it non-transparent. - private Animation _hideAnimation; // Animation used to make the unused specified Poster scrollContainer transparent. - private ScrollContainer _hideScrollContainer; // The unused Poster scrollContainer which needs to be transparent. - FocusManager _keyboardFocusManager; // Reference to Dali KeyboardFocusManager. - - private FirstScreenApp(Application application) - { - Tizen.Log.Debug("NUI", "FirstScreenApp() is called!!"); - - _application = application; - _application.Initialized += OnInitialize; - } - - public static void Run() - { - Tizen.Log.Debug("NUI", "Run() is called!"); - - FirstScreenApp tVApp = new FirstScreenApp(Application.NewApplication()); - tVApp.MainLoop(); - } - - private void MainLoop() - { - _application.MainLoop(); - } - - // Create Items for Poster ScrollContainer - private void CreatePosters() - { - for (int j = 0; j < _totalPostersContainers; j++) - { - View posterContainer = _postersContainer[j].Container; - for (int i = 0; i < Constants.PostersItemsCount; i++) - { - if (j % _totalPostersContainers == 0) - { - View item = new ImageView(_imagePath + "/poster" + j + "/" + (i % 14) + ".jpg"); - item.Name = ("poster-item-" + _postersContainer[j].ItemCount); - _postersContainer[j].Add(item); - } - else - { - View item = new ImageView(_imagePath + "/poster" + j + "/" + (i % 6) + ".jpg"); - item.Name = ("poster-item-" + _postersContainer[j].ItemCount); - _postersContainer[j].Add(item); - } - } - - if (j == 0) - { - Show(_postersContainer[j]); - } - else - { - Hide(_postersContainer[j]); - } - - _postersContainer[j].SetFocused(false); - } - - _currentPostersContainerID = 0; - } - - // Create Items for Menu ScrollContainer - private void CreateMenu() - { - View menuContainer = _menuContainer.Container; - menuContainer.Position = new Position(Constants.LauncherWidth, 0.0f, 0.0f); - - for (int i = 0; i < Constants.MenuItemsCount; i++) - { - View menuItem = new ImageView(_imagePath + "/menu/" + i % 7 + ".png"); - menuItem.Name = ("menu-item-" + _menuContainer.ItemCount); - _menuContainer.Add(menuItem); - } - } - - private View OnKeyboardPreFocusChangeSignal(object source, FocusManager.PreFocusChangeEventArgs e) - { - if (!e.CurrentView && !e.ProposedView) - { - return _menuContainer; - } - - Actor actor = _menuContainer.Container; - - if (e.Direction == View.FocusDirection.Up) - { - // Move the Focus to Poster ScrollContainer and hide Bottom Container (Menu ScrollContainer) - if (_menuContainer.IsFocused) - { - actor = _postersContainer[_currentPostersContainerID].GetCurrentFocusedActor(); - _menuContainer.SetFocused(false); - _postersContainer[_currentPostersContainerID].SetFocused(true); - HideBottomContainer(); - - // Also apply Focus animation on Focused item on Poster ScrollContainer - FocusAnimation(_postersContainer[_currentPostersContainerID], FocusEffectDirection.BottomToTop); - } - } - else if (e.Direction == View.FocusDirection.Down) - { - // Show Bottom Container (Menu ScrollContainer) and move the Focus to it - if (!_menuContainer.IsFocused) - { - ShowBottomContainer(); - actor = _menuContainer.GetCurrentFocusedActor(); - _postersContainer[_currentPostersContainerID].SetFocused(false); - _menuContainer.SetFocused(true); - - // Also apply Focus animation on Focused item on Menu ScrollContainer - FocusAnimation(_menuContainer, FocusEffectDirection.TopToBottom); - } - } - else - { - actor = e.ProposedView; - } - - if (e.Direction == View.FocusDirection.Left) - { - if (_menuContainer.IsFocused) - { - int id = _menuContainer.FocusedItemID % _totalPostersContainers; - if (id != _currentPostersContainerID) - { - Hide(_postersContainer[_currentPostersContainerID]); - _currentPostersContainerID = id; - - Show(_postersContainer[_currentPostersContainerID]); - } - } - } - else if (e.Direction == View.FocusDirection.Right) - { - if (_menuContainer.IsFocused) - { - int id = _menuContainer.FocusedItemID % _totalPostersContainers; - if (id != _currentPostersContainerID) - { - Hide(_postersContainer[_currentPostersContainerID]); - _currentPostersContainerID = id; - Show(_postersContainer[_currentPostersContainerID]); - } - } - } - - return (Tizen.NUI.View)actor; - } - - // Perform Focus animation Effect on the current Focused Item on ScrollContainer. - private void FocusAnimation(ScrollContainer scrollContainer, FocusEffectDirection direction) - { - _focusEffect.FocusAnimation(scrollContainer.GetCurrentFocusedActor(), scrollContainer.ItemSize, 1000, direction); - } - - // Perform Show animation on ScrollContainer (used only for Poster Container) - private void Show(ScrollContainer scrollContainer) - { - scrollContainer.Add(scrollContainer.Container); - - _hideScrollContainer = null; - - // This animation will move Poster scrollContainer from bottom to top and make it non-transparent. - _showAnimation = new Animation(350); - _showAnimation.AnimateTo(scrollContainer.Container, "ColorAlpha", 1.0f); - - scrollContainer.Container.PositionY = scrollContainer.Container.Position.Y + 200.0f; - float targetPositionY = scrollContainer.Container.Position.Y - 200.0f; - - _showAnimation.AnimateTo(scrollContainer.Container, "PositionY", targetPositionY, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - - _showAnimation.Play(); - } - - // Perform Hide animation on ScrollContainer (used only for Poster Container) - private void Hide(ScrollContainer scrollContainer) - { - if (_hideAnimation) - { - _hideAnimation.Clear(); - _hideAnimation.Reset(); - } - - int duration = 350; - _hideAnimation = new Animation(duration); - _hideAnimation.Duration = duration; - _hideAnimation.AnimateTo(scrollContainer.Container, "ColorAlpha", 0.0f, 0, (int)((float)duration * 0.75f), new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - _hideAnimation.Finished += OnHideAnimationFinished; - _hideScrollContainer = scrollContainer; - _hideAnimation.Play(); - } - - // This removes all the items from the specified unused Poster ScrollContainer (hence Stage) to improve performance. - private void OnHideAnimationFinished(object source, EventArgs e) - { - if (_hideScrollContainer) - { - _hideScrollContainer.Remove(_hideScrollContainer.Container); - } - } - - // Hide Bottom Container (Menu ScrollContainer) when it is not focused - private void HideBottomContainer() - { - _topClipLayer.ClippingBox = new RectInteger(0, - Convert.ToInt32(_stageSize.Height * Constants.TopContainerPositionFactor), - Convert.ToInt32((_stageSize.Width)), - Convert.ToInt32((_stageSize.Height * Constants.TopClipLayerExpandHeightFactor))); // X, Y, Width, Height - - - _hideBottomContainerAnimation.AnimateTo(_bottomContainer, "Position", new Position(0.0f, _stageSize.Height * Constants.BottomContainerHidePositionFactor, 0.0f), - new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - - _hideBottomContainerAnimation.Play(); - } - - // Show (unhide) Bottom Container (Menu ScrollContainer) when it is focused - private void ShowBottomContainer() - { - _topClipLayer.ClippingBox = new RectInteger(0, - Convert.ToInt32(_stageSize.Height * Constants.TopContainerPositionFactor), - Convert.ToInt32((_stageSize.Width)), - Convert.ToInt32((_stageSize.Height * Constants.TopClipLayerHeightFactor))); // X, Y, Width, Height - - _showBottomContainerAnimation.AnimateTo(_bottomContainer, "Position", new Position(0.0f, _stageSize.Height * Constants.BottomContainerShowPositionFactor, 0.0f), - new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - _showBottomContainerAnimation.Play(); - } - - // First screen demo Application initialisation - private void OnInitialize(object source, EventArgs e) - { - Tizen.Log.Debug("NUI", "OnInitialize() is called!"); - - _hideScrollContainer = null; - _stage = Stage.Instance; - _stageSize = _stage.Size; - _totalPostersContainers = Constants.TotalPostersContainers; - _imagePath = Constants.ImageResourcePath; - - _postersContainer = new List(); - _menuContainer = new ScrollContainer(); - - _hideBottomContainerAnimation = new Animation(250); - _showBottomContainerAnimation = new Animation(250); - - // Create a Top Container for poster items - _topContainer = new View(); - _topContainer.Size = new Size(_stageSize.Width, _stageSize.Height * Constants.TopContainerHeightFactor, 0); - _topContainer.Position = new Position(0.0f, _stageSize.Height * Constants.TopContainerPositionFactor, 0.0f); - _topContainer.ParentOrigin = ParentOrigin.TopLeft; - _topContainer.AnchorPoint = AnchorPoint.TopLeft; - - // Add a background to Top container - PropertyMap visual = new PropertyMap(); - visual.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image)); - visual.Insert(ImageVisualProperty.URL, new PropertyValue(_imagePath + "/focuseffect/background.png")); - _topContainer.Background = visual; - _topContainer.Name = "TopControl"; - - // Create a Bottom Container - _bottomContainer = new View(); - _bottomContainer.Size = new Size(_stageSize.Width, _stageSize.Height * Constants.BottomContainerHeightFactor, 0); - _bottomContainer.Position = new Position(0.0f, _stageSize.Height * Constants.BottomContainerHidePositionFactor, 0.0f); - _bottomContainer.ParentOrigin = ParentOrigin.TopLeft; - _bottomContainer.AnchorPoint = AnchorPoint.TopLeft; - - // Add a background to Bottom Container - visual = new PropertyMap(); - visual.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image)); - visual.Insert(ImageVisualProperty.URL, new PropertyValue(_imagePath + "/focuseffect/background.png")); - _bottomContainer.Background = visual; - _bottomContainer.Name = "BottomControl"; - - // Add both Top and Bottom Containers to Stage - _stage.GetDefaultLayer().Add(_topContainer); - _stage.GetDefaultLayer().Add(_bottomContainer); - - // Add a clip layer to Top Container - _topClipLayer = new Layer(); - _topClipLayer.AnchorPoint = AnchorPoint.BottomCenter; - _topClipLayer.ParentOrigin = ParentOrigin.BottomCenter; - _topClipLayer.ClippingEnable = true; - _topClipLayer.ClippingBox = new RectInteger(0, - Convert.ToInt32(_stageSize.Height * Constants.TopContainerPositionFactor), - Convert.ToInt32((_stageSize.Width)), - Convert.ToInt32((_stageSize.Height * Constants.TopClipLayerHeightFactor))); // X, Y, Width, Height - _topContainer.Add(_topClipLayer); - - // Create a SpotLight for items / images of both Poster and Menu ScrollContainers - ImageView spotLight = new ImageView(_imagePath + "/focuseffect/highlight_spot.png"); - spotLight.WidthResizePolicy = ResizePolicyType.UseNaturalSize; - spotLight.HeightResizePolicy = ResizePolicyType.UseNaturalSize; - spotLight.ParentOrigin = ParentOrigin.Center; - spotLight.AnchorPoint = AnchorPoint.Center; - spotLight.Name = "spotLight"; - - // Create a shadowBorder for items / images of Poster ScrollContainers - ImageView shadowBorder = new ImageView(_imagePath + "/focuseffect/thumbnail_shadow.9.png"); - shadowBorder.ParentOrigin = ParentOrigin.Center; - shadowBorder.AnchorPoint = AnchorPoint.Center; - shadowBorder.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; - shadowBorder.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; - shadowBorder.SizeModeFactor = (new Vector3(32.0f, 41.0f, 0.0f)); - shadowBorder.Name = "poster shadowBorder"; - - // Create Poster Containers and add them to Top Clip layer - for (int i = 0; i < _totalPostersContainers; i++) - { - _postersContainer.Add(new ScrollContainer()); - _postersContainer[i].Container.Name = "poster" + i; - if (i == 0) - { - _postersContainer[i].ItemSize = new Size((_stageSize.Width * Constants.Poster0ItemWidthFactor) - Constants.PostersContainerPadding, - _stageSize.Height * Constants.PostersItemHeightFactor, 0.0f); - } - else - { - _postersContainer[i].ItemSize = new Size((_stageSize.Width * Constants.Poster1ItemWidthFactor) - Constants.PostersContainerPadding, - _stageSize.Height * Constants.PostersItemHeightFactor, 0.0f); - } - - _postersContainer[i].Gap = Constants.PostersContainerPadding; - _postersContainer[i].MarginX = Constants.PostersContainerMargin; - _postersContainer[i].OffsetYFator = Constants.PostersContainerOffsetYFactor; - _postersContainer[i].Width = _stageSize.Width; - _postersContainer[i].Height = _stageSize.Height * Constants.PostersContainerHeightFactor; - _postersContainer[i].ShadowBorder = shadowBorder; - _postersContainer[i].ShadowBorder.Position = new Position(0.0f, 4.0f, 0.0f); - _postersContainer[i].SpotLight = spotLight; - _topClipLayer.Add(_postersContainer[i]); - } - - // Add a clip layer to Bottom Container - _bottomClipLayer = new Layer(); - _bottomClipLayer.AnchorPoint = AnchorPoint.BottomCenter; - _bottomClipLayer.ParentOrigin = ParentOrigin.BottomCenter; - _bottomClipLayer.ClippingEnable = true; - _bottomClipLayer.ClippingBox = new RectInteger(Convert.ToInt32(Constants.LauncherWidth), - Convert.ToInt32(_stageSize.Height * Constants.BottomContainerShowPositionFactor), - Convert.ToInt32((_stageSize.Width)), - Convert.ToInt32((_stageSize.Height - (_stageSize.Height * Constants.BottomClipLayerHeightFactor)))); // X, Y, Width, Height - _bottomContainer.Add(_bottomClipLayer); - - // Add Launcher items to Bottom Container. Launcher is used to display three images on left of Menu ScrollContainer - launcherIcon = new ImageView[Convert.ToInt32(Constants.LauncherItemsCount)]; - for (int launcherIndex = 0; launcherIndex < Constants.LauncherItemsCount; launcherIndex++) - { - launcherIcon[launcherIndex] = new ImageView(_imagePath + "/focuseffect/" + launcherIndex + "-normal.png"); - launcherIcon[launcherIndex].Name = "launcherIcon" + launcherIndex; - launcherIcon[launcherIndex].WidthResizePolicy = ResizePolicyType.UseNaturalSize; - launcherIcon[launcherIndex].HeightResizePolicy = ResizePolicyType.UseNaturalSize; - launcherIcon[launcherIndex].ParentOrigin = ParentOrigin.CenterLeft; - launcherIcon[launcherIndex].AnchorPoint = AnchorPoint.CenterLeft; - launcherIcon[launcherIndex].Position = new Position(Constants.LauncherIconWidth * launcherIndex + Constants.LauncherLeftMargin, 0.0f, 0.0f); - _bottomContainer.Add(launcherIcon[launcherIndex]); - } - - // Add a shadow seperator image between last Launcher icon and Menu ScrollContainer - _launcherSeparator = new ImageView(_imagePath + "/focuseffect/focus_launcher_shadow_n.png"); - _launcherSeparator.Name = "launcherSeparator"; - _launcherSeparator.WidthResizePolicy = ResizePolicyType.UseNaturalSize; - _launcherSeparator.HeightResizePolicy = ResizePolicyType.FillToParent; - _launcherSeparator.ParentOrigin = ParentOrigin.CenterLeft; - _launcherSeparator.AnchorPoint = AnchorPoint.CenterLeft; - _launcherSeparator.Position = new Position(Constants.LauncherIconWidth * Constants.LauncherItemsCount + Constants.LauncherLeftMargin, 0.0f, 0.0f); - _bottomContainer.Add(_launcherSeparator); - - // Create Menu Container and add it to Bottom Clip Layer - Size menuItemSize = new Size((_stageSize.Width * Constants.MenuItemWidthFactor) - Constants.MenuContainerPadding, - _stageSize.Height * Constants.MenuItemHeightFactor, 0.0f); - _menuContainer.Container.Name = "menu"; - _menuContainer.ItemSize = menuItemSize; - _menuContainer.Gap = Constants.MenuContainerPadding; - _menuContainer.MarginX = Constants.MenuContainerMargin; - _menuContainer.OffsetYFator = Constants.MenuContainerOffsetYFactor; - _menuContainer.OffsetX = Constants.LauncherWidth; - _menuContainer.Width = _stageSize.Width - Constants.LauncherWidth; - _menuContainer.Height = _stageSize.Height * Constants.MenuContainerHeightFactor; - _menuContainer.ShadowBorder = new ImageView(_imagePath + "/focuseffect/focus_launcher_shadow.9.png"); - _menuContainer.ShadowBorder.Name = "_menuContainer.ShadowBorder"; - _menuContainer.ShadowBorder.Size = new Size(_menuContainer.ItemSize.Width + 40.0f, _menuContainer.ItemSize.Height + 50.0f, 0.0f); - _menuContainer.ShadowBorder.Position = new Position(0.0f, 5.0f, 0.0f); - _menuContainer.ShadowBorder.ParentOrigin = ParentOrigin.Center; - _menuContainer.ShadowBorder.AnchorPoint = AnchorPoint.Center; - _menuContainer.ShadowBorder.MixColor = Color.Red; - _menuContainer.SpotLight = spotLight; - _bottomClipLayer.Add(_menuContainer); - - CreatePosters(); // Create Items for Poster ScrollContainer - CreateMenu(); // Create Items for Menu ScrollContainer - - // Initialize PreFocusChange event of KeyboardFocusManager - _keyboardFocusManager = FocusManager.Instance; - _keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChangeSignal; - - _keyboardFocusIndicator = new ImageView(_imagePath + "/focuseffect/highlight_stroke.9.png"); - _keyboardFocusIndicator.ParentOrigin = ParentOrigin.Center; - _keyboardFocusIndicator.AnchorPoint = AnchorPoint.Center; - _keyboardFocusIndicator.WidthResizePolicy = ResizePolicyType.FillToParent; - _keyboardFocusIndicator.HeightResizePolicy = ResizePolicyType.FillToParent; - - _keyboardFocusManager.FocusIndicator = (_keyboardFocusIndicator); - - _keyboardFocusManager.SetAsFocusGroup(_menuContainer, true); - _keyboardFocusManager.SetAsFocusGroup(_postersContainer[0], true); - _keyboardFocusManager.SetAsFocusGroup(_postersContainer[1], true); - _keyboardFocusManager.FocusGroupLoop = (true); - - _focusEffect = new FocusEffect(); - - // Move Fcous to Bottom Container (Menu ScrollContainer) - ShowBottomContainer(); - _menuContainer.SetFocused(true); - -#if true - //test. - TextLabel _dateOfTest = new TextLabel(); - _dateOfTest.WidthResizePolicy = ResizePolicyType.FillToParent; - _dateOfTest.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent; - _dateOfTest.AnchorPoint = AnchorPoint.TopCenter; - _dateOfTest.ParentOrigin = ParentOrigin.TopCenter; - _dateOfTest.SizeModeFactor = new Vector3(0.0f, 0.1f, 0.0f); - _dateOfTest.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f); - _dateOfTest.TextColor = Color.White; - _dateOfTest.Text = " Common Interface Define Verification Test of 2017-02-10 #1"; - _dateOfTest.HorizontalAlignment = "BEGIN"; - _dateOfTest.VerticalAlignment = "CENTER"; - _dateOfTest.PointSize = 12.0f; - _dateOfTest.UnderlineEnabled = true; - _stage.GetDefaultLayer().Add(_dateOfTest); - Tizen.Log.Debug("NUI", "### 1) ColorMode = " + _dateOfTest.ColorMode); - _dateOfTest.ColorMode = ColorMode.UseParentColor; - Tizen.Log.Debug("NUI", "### 2) ColorMode = " + _dateOfTest.ColorMode); - _dateOfTest.ColorMode = ColorMode.UseOwnMultiplyParentColor; - Tizen.Log.Debug("NUI", "### 3) ColorMode = " + _dateOfTest.ColorMode); - Tizen.Log.Debug("NUI", "### 1) DrawModeType = " + _dateOfTest.DrawMode); - _dateOfTest.DrawMode = DrawModeType.Overlay2D; - Tizen.Log.Debug("NUI", "### 2) DrawModeType = " + _dateOfTest.DrawMode); - -#endif - - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/firstscreen/Constants.cs b/NUISamples/NUISamples.TizenTV/firstscreen/Constants.cs deleted file mode 100755 index 5913793..0000000 --- a/NUISamples/NUISamples.TizenTV/firstscreen/Constants.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; - -namespace FirstScreen -{ - public class Constants - { - public const int TotalPostersContainers = 2; // Number of Poster ScrollContainers to be added on Top Container - - public const float TopContainerHeightFactor = 0.38f; // Height Factor of stage height used for Top Container total height - public const float TopContainerPositionFactor = 0.50f; // Position Factor of stage height used for Top Container position - public const float TopClipLayerHeightFactor = 0.34f; // Height Factor of stage height used for Top Clip layer height - public const float TopClipLayerExpandHeightFactor = 0.36f; // Expanded Height Factor of stage height used for Top Clip layer height (used when Bottom container is hidden) - public const float PostersContainerHeightFactor = 0.32f; // Height Factor of stage height used for Poster ScrollContainers - public const float PostersContainerPadding = 2.0f; // Padding size used between items / images in Poster ScrollContainer - public const float PostersContainerMargin = 60.0f; // Extra margin Padding size used between items / images in Poster ScrollContainer when item / image is focused - public const float PostersContainerOffsetYFactor = 0.17f; // Position Factor of Poster item height used for Poster items / images position - - public const float BottomContainerHeightFactor = 0.16f; // Height Factor of stage height used for Bottom Container total height - public const float BottomContainerHidePositionFactor = 0.88f; // Position Factor of stage height used for Bottom Container position when bottom container is hidden (not focused) - public const float BottomContainerShowPositionFactor = 0.84f; // Position Factor of stage height used for Bottom Container position when bottom container is not hidden (focused) - public const float MenuContainerHeightFactor = 0.16f; // Height Factor of stage height used for Bottom ScrollContainers - public const float BottomClipLayerHeightFactor = 0.84f; // Height Factor of stage height used for Bottom Clip layer height - public const float MenuContainerPadding = 10.0f; // Padding size used between items / images in Menu ScrollContainer - public const float MenuContainerMargin = 25.0f; // Extra margin Padding size used between items / images in Menu ScrollContainer when item / image is focused - public const float MenuContainerOffsetYFactor = 0.35f; // Position Factor of Menu item height used for Menu items / images position - - public const float MenuItemWidthFactor = 0.125f; // Width Factor (1/8) of stage Width used for Menu items / images Width - public const float MenuItemHeightFactor = 0.10f; // Height Factor of stage height used for Menu items / images Height - public const float MenuItemsCount = 14; // Number of Menu items / images used in a Menu ScrollContainer - - public const float Poster0ItemWidthFactor = 0.25f; // Width Factor (1/4) of stage Width used for Poster items / images Width in a Poster ScrollContainer 0 - public const float Poster1ItemWidthFactor = 0.20f; // Width Factor of stage Width used for Poster items / images Width in a Poster ScrollContainer 1 - public const float PostersItemHeightFactor = 0.24f; // Height Factor of stage height used for Poster items / images Height - public const float PostersItemsCount = 24; // Number of Menu items / images used in a Poster ScrollContainer - - public const float LauncherWidth = 280.0f; // Width of Launcher. Launcher is used to display three images on left of Menu ScrollContainer - public const float LauncherLeftMargin = 40.0f; // Extra Spaces to the left of first Launcher item / image - public const float LauncherSeparatorWidth = 20.0f; // Extra area / space to the left of Menu ScrollContainer used for a speration shadow image - public const float LauncherItemsCount = 3.0f; // Total number of Launcher items / images - public const float LauncherIconWidth = (LauncherWidth - LauncherLeftMargin - LauncherSeparatorWidth) / LauncherItemsCount; // Width of each Launcher item / image - - public const int SpotLightDuration = 5000; // Duration of Spot Light Animation. - public const int FocusTransitionDuration = 350; // MilliSecond Duration of Focus Transition Animation. - public const int FocusDuration = 350; // Duration of Focus Animation. - public const int ScrollDuration = 350; // Duration of Scroll Animation. - - // public const string ImageResourcePath = "./firstscreen/images/"; // for Ubuntu - public const string ImageResourcePath = "/home/owner/apps_rw/NUISamples.TizenTV/res/images/"; // for target - - } -} diff --git a/NUISamples/NUISamples.TizenTV/firstscreen/FocusData.cs b/NUISamples/NUISamples.TizenTV/firstscreen/FocusData.cs deleted file mode 100755 index e457f8f..0000000 --- a/NUISamples/NUISamples.TizenTV/firstscreen/FocusData.cs +++ /dev/null @@ -1,107 +0,0 @@ -using Tizen.NUI; -using Tizen.NUI.Constants; -using System; - -namespace FirstScreen -{ - public class FocusData - { - private string _name; // Name used for FocusData object (mainly to differentiate key frame animation ) - private string _imageName; // Image File Name (to be loaded from disk) used for ImageView used in key frame animation - private Position _parentOrigin; // ParentOrigin applied to ImageView - private Size _initSize; // InitSize used for key frame animation - private Size _targetSize; // TargetSize used for key frame animation - private float _keyFrameStart; // KeyFrameStart used for key frame animation - private float _keyFrameEnd; // KeyFrameEnd used for key frame animation - private Direction _direction; // Direction used for key frame animation - private ImageView _imageFocus; // ImageView used in key frame animation - - // Initialize FocusData used for key frame animation - public FocusData(string name, string imageName, Direction direction, Position parentOrigin, Size initSize, - Size targetSize, float keyFrameStart, float keyFrameEnd) - { - _name = name; - _imageName = imageName; - _parentOrigin = parentOrigin; - _initSize = initSize; - _targetSize = targetSize; - _keyFrameStart = keyFrameStart; - _keyFrameEnd = keyFrameEnd; - _direction = direction; - - _imageFocus = new ImageView(Constants.ImageResourcePath + "/focuseffect/" + _imageName); // Target - - _imageFocus.ParentOrigin = _parentOrigin; - _imageFocus.AnchorPoint = AnchorPoint.Center; - _imageFocus.Name = _name; - } - - public enum Direction - { - Horizontal, - Vertical - }; - - public Direction FocusDirection - { - get { return _direction; } - set { _direction = value; } - } - - public string Name - { - get { return _name; } - set { _name = value; } - } - - public string ImageName - { - get { return _imageName; } - set { _imageName = value; } - } - - public Position ParentOrigin - { - get - { - return _parentOrigin; - } - - set - { - _parentOrigin = value; - _imageFocus.ParentOrigin = _parentOrigin; - } - } - - public Size InitSize - { - get { return _initSize; } - set { _initSize = value; } - } - - public Size TargetSize - { - get { return _targetSize; } - set { _targetSize = value; } - } - - public float KeyFrameStart - { - get { return _keyFrameStart; } - set { _keyFrameStart = value; } - } - - public float KeyFrameEnd - { - get { return _keyFrameEnd; } - set { _keyFrameEnd = value; } - } - - public ImageView ImageItem - { - get { return _imageFocus; } - } - - } -} diff --git a/NUISamples/NUISamples.TizenTV/firstscreen/FocusEffect.cs b/NUISamples/NUISamples.TizenTV/firstscreen/FocusEffect.cs deleted file mode 100755 index 9448829..0000000 --- a/NUISamples/NUISamples.TizenTV/firstscreen/FocusEffect.cs +++ /dev/null @@ -1,206 +0,0 @@ -using Tizen.NUI; -using Tizen.NUI.Constants; -using System; -using System.Collections.Generic; - -namespace FirstScreen -{ - public class FocusEffect : IFocusEffect - { - private float _frameThickness; - private FocusData[] _focusData; // Each FocusData is used for one key frame animation (total 6 key frame animations needed for EddenEffect) - private Animation _animation; // Animation used to apply all six key frame animations - - public FocusEffect() - { - _frameThickness = 10.0f; - float _bottomFrameTime = 0.6f; // complete the halo/bottom animation 60% of the way through - float _sideFrameTime = 0.8f; // Start the side frame animation after the bottom animation and complete at 80% of the way through - float _topFrameTime = 1.0f; // start the top frame animation after the side frame animation and complete at 100% way through - - // Six key frame animations (FocusData objects) needed for EddenEffect - // Two key frame animations for top horizontal effect - // Two key frame animations for bottom horizontal effect - // Two key frame animations for vertical horizontal effect - _focusData = new FocusData[6]; - - FocusData focusData = new FocusData("halo", "halo.png", FocusData.Direction.Horizontal, ParentOrigin.TopCenter, - new Size(50.0f, 20.0f, 0.0f), new Size(0.0f, 100.0f, 0.0f), 0.0f, _bottomFrameTime); - _focusData[0] = focusData; - - focusData = new FocusData("bottom", "horizontalFrame.png", FocusData.Direction.Horizontal, ParentOrigin.TopCenter, - new Size(0.0f, 0.0f, 0.0f), new Size(0.0f, _frameThickness, 0.0f), 0.0f, _bottomFrameTime); - _focusData[1] = focusData; - - focusData = new FocusData("left", "verticalFrame.png", FocusData.Direction.Vertical, ParentOrigin.BottomLeft, - new Size(0.0f, 0.0f, 0.0f), new Size(_frameThickness, 0.0f, 0.0f), _bottomFrameTime, _sideFrameTime); - _focusData[2] = focusData; - - focusData = new FocusData("right", "verticalFrame.png", FocusData.Direction.Vertical, ParentOrigin.BottomRight, - new Size(0.0f, 0.0f, 0.0f), new Size(_frameThickness, 0.0f, 0.0f), _bottomFrameTime, _sideFrameTime); - _focusData[3] = focusData; - - focusData = new FocusData("top-left", "horizontalFrame.png", FocusData.Direction.Horizontal, ParentOrigin.BottomLeft, - new Size(0.0f, 0.0f, 0.0f), new Size(0.0f, _frameThickness, 0.0f), _sideFrameTime, _topFrameTime); - _focusData[4] = focusData; - - focusData = new FocusData("top-right", "horizontalFrame.png", FocusData.Direction.Horizontal, ParentOrigin.BottomRight, - new Size(0.0f, 0.0f, 0.0f), new Size(0.0f, _frameThickness, 0.0f), _sideFrameTime, _topFrameTime); - _focusData[5] = focusData; - } - - public void FocusAnimation(View parentItem, Size itemSize, int duration, FocusEffectDirection direction) - { - var itemWidth = itemSize.Width + _frameThickness / 2; - var itemHeight = itemSize.Height + _frameThickness / 3; - - if (_animation) - { - _animation.Clear(); - _animation.Reset(); - } - - _animation = new Animation(duration); - _animation.Duration = duration; - - if (direction == FocusEffectDirection.BottomToTop) - { - _focusData[0].ParentOrigin = ParentOrigin.BottomCenter; - _focusData[1].ParentOrigin = ParentOrigin.BottomCenter; - _focusData[2].ParentOrigin = ParentOrigin.BottomLeft; - _focusData[3].ParentOrigin = ParentOrigin.BottomRight; - _focusData[4].ParentOrigin = ParentOrigin.TopLeft; - _focusData[5].ParentOrigin = ParentOrigin.TopRight; - } - else - { - _focusData[0].ParentOrigin = ParentOrigin.TopCenter; - _focusData[1].ParentOrigin = ParentOrigin.TopCenter; - _focusData[2].ParentOrigin = ParentOrigin.BottomLeft; - _focusData[3].ParentOrigin = ParentOrigin.BottomRight; - _focusData[4].ParentOrigin = ParentOrigin.BottomLeft; - _focusData[5].ParentOrigin = ParentOrigin.BottomRight; - } - - foreach (FocusData focusData in _focusData) - { - var currentParent = focusData.ImageItem.Parent; - - // first parent the controls - if (parentItem != currentParent) - { - parentItem.Add(focusData.ImageItem); - } - - focusData.ImageItem.Size = new Size(100.0f, 100.0f, 0.0f); - parentItem.Add(focusData.ImageItem); - - Size targetSize = focusData.TargetSize; - Size initSize = focusData.InitSize; - - if (focusData.FocusDirection == FocusData.Direction.Horizontal) - { - // adjust the width to match the parent - targetSize.Width = itemWidth; - } - else // vertical frame - { - // adjust the height to match the parent - targetSize.Height = itemHeight; - } - - // half the size for the top frame as we come out from both left / right sides - if (focusData.Name == "top-right" || focusData.Name == "top-left") - { - targetSize.Width = itemWidth - _frameThickness; - } - - KeyFrames keyFrames = new KeyFrames(); - - keyFrames.Add(0.0f, initSize); - keyFrames.Add(focusData.KeyFrameStart, initSize); - keyFrames.Add(focusData.KeyFrameEnd, targetSize); - - // for halo add an extra keyframe to shrink it ( in 20% of time after it has finished) - if (focusData.Name == "halo") - { - keyFrames.Add(focusData.KeyFrameEnd + 0.2f, initSize); - } - - _animation.AnimateBetween(focusData.ImageItem, "Size", keyFrames, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - - // Simulate the vertical frame growing from the top. - // Vertical items are anchored to the bottom of the parent... so when they grow - // we need to move them to the middle of the parent ( otherwise they stick out the bottom) - if (focusData.FocusDirection == FocusData.Direction.Vertical) - { - //animate position as well so it looks like animation is coming from bottom - KeyFrames keyFramesV = new KeyFrames(); - - if (direction == FocusEffectDirection.BottomToTop) - { - keyFramesV.Add(0.0f, 0.0f); - keyFramesV.Add(focusData.KeyFrameStart, 0.0f); - } - else - { - keyFramesV.Add(0.0f, -itemHeight); - keyFramesV.Add(focusData.KeyFrameStart, -itemHeight); - } - - keyFramesV.Add(focusData.KeyFrameEnd, (-itemHeight / 2)); // animate to halfway up the control - - - _animation.AnimateBetween(focusData.ImageItem, "PositionY", keyFramesV, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - - - } - - // Simulate the top frame growing from the sides. - if (focusData.Name == "top-left") - { - KeyFrames keyFramesTL = new KeyFrames(); - - keyFramesTL.Add(0.0f, 0.0f); - keyFramesTL.Add(focusData.KeyFrameStart, 0.0f); - keyFramesTL.Add(focusData.KeyFrameEnd, (itemWidth / 2)); // animate to halfway up the control - - // grow these from the left or right - _animation.AnimateBetween(focusData.ImageItem, "PositionX", keyFramesTL, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - - - } - - if (focusData.Name == "top-right") - { - KeyFrames keyFramesTR = new KeyFrames(); - - keyFramesTR.Add(0.0f, 0.0f); - keyFramesTR.Add(focusData.KeyFrameStart, 0.0f); - keyFramesTR.Add(focusData.KeyFrameEnd, (-itemWidth / 2)); // animate to halfway up the control - - // grow these from the left or right - _animation.AnimateBetween(focusData.ImageItem, "PositionX", keyFramesTR, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - - } - - _animation.Finished += OnAnimationFinished; - - _animation.Play(); - } - } - - private void OnAnimationFinished(object source, EventArgs e) - { - foreach (FocusData focusData in _focusData) - { - var currentParent = focusData.ImageItem.Parent; - - if (currentParent) - { - currentParent.Remove(focusData.ImageItem); - } - } - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/firstscreen/IFocusEffect.cs b/NUISamples/NUISamples.TizenTV/firstscreen/IFocusEffect.cs deleted file mode 100755 index 7380d08..0000000 --- a/NUISamples/NUISamples.TizenTV/firstscreen/IFocusEffect.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Tizen.NUI; -using System; - -namespace FirstScreen -{ - public enum FocusEffectDirection - { - TopToBottom, - BottomToTop - }; - - public interface IFocusEffect - { - void FocusAnimation(View parentItem, Size itemSize, int duration, FocusEffectDirection direction); - } -} diff --git a/NUISamples/NUISamples.TizenTV/firstscreen/Program.cs b/NUISamples/NUISamples.TizenTV/firstscreen/Program.cs deleted file mode 100755 index 527d99a..0000000 --- a/NUISamples/NUISamples.TizenTV/firstscreen/Program.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - - -namespace FirstScreen -{ - public class MainClass - { - [STAThread] - static void Main(string[] args) - { - Tizen.Log.Debug("NUI", "Main() is called! "); - FirstScreenApp.Run(); - } - } -} diff --git a/NUISamples/NUISamples.TizenTV/firstscreen/ScrollContainer.cs b/NUISamples/NUISamples.TizenTV/firstscreen/ScrollContainer.cs deleted file mode 100755 index d2f20fd..0000000 --- a/NUISamples/NUISamples.TizenTV/firstscreen/ScrollContainer.cs +++ /dev/null @@ -1,629 +0,0 @@ -using Tizen.NUI; -using Tizen.NUI.Constants; -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; - -namespace FirstScreen -{ - public class ScrollContainer : CustomView - { - private View _container; // View Container will be the first item added to ScrollContainer and parent to all the items added to the ScrollContainer. - private Size _itemSize; // Size of the item / images added to the ScrollContainer. - private List _itemList; // List collection of View items/images added to the ScrollContainer. - private int _itemCount; // Number of items / images added to the ScrollContainer. - private int _focusedItem; // Index of currently focused View item / image on the ScrollContainer. - private float _scrollDisplacement; // Used for horizontal pan displacement. - private float _currentScrollPosition; // Used for horizontal scroll position. - private float _gap; // Used for gap / padding between items / images on the ScrollContainer. - private float _width; // Width of the ScrollContainer. - private float _height; // Height of the ScrollContainer. - private bool _isFocused; // Flag to check if ScrollContainer is enabled or not. - private float _marginX; // Extra horizontal margin is used to add an extra gap between items / images after a focused and scaled item / image. - private float _marginY; // Extra vertical margin (not used at the moment). - private float _offsetYFactor; // Vertical Position offset Factor of item height. - private float _offsetX; // Horizontal Position offset of ScrollContainer. - private Stage _stage; // Reference to Dali stage. - private Size2D _stageSize; // Reference to Dali stage size. - private ImageView _shadowBorder; // Reference to Shadow border ImageView applied to the focused item on ScrollContainer. - private ImageView _spotLight; // Reference to SpotLight ImageView applied to the focused item on ScrollContainer. - private Animation _spotLightAnimation; // SpotLight Animation applied to the focused item on ScrollContainer. - private Animation _focusAnimation; // Focused position animation on ScrollContainer. - private Animation _scrollAnimation; // Scroll animation on items of ScrollContainer. - private Animation _focusTransitionAnimation; // Focus Transition (scaling /unscaling) animation on items of ScrollContainer. - private Path _circularPath; // Circular path used for SpotLight Animation applied to the focused item on ScrollContainer. - - public ScrollContainer() : base(ViewBehaviour.DisableStyleChangeSignals | - ViewBehaviour.RequiresKeyboardNavigationSupport) - { - } - public bool IsFocused - { - get - { - return _isFocused; - } - } - - public Tizen.NUI.View Container - { - get - { - return _container; - } - } - - public int ItemCount - { - get - { - return _itemCount; - } - } - - public Size ItemSize - { - get - { - return _itemSize; - } - - set - { - _itemSize = value; - - Position topLeft = new Position(-0.25f * _itemSize.Width, -0.25f * _itemSize.Height, 0.0f); - Position topRight = new Position(0.25f * _itemSize.Width, -0.25f * _itemSize.Height, 0.0f); - Position bottomRight = new Position(0.25f * _itemSize.Width, 0.25f * _itemSize.Height, 0.0f); - Position bottomLeft = new Position(-0.25f * _itemSize.Width, 0.25f * _itemSize.Height, 0.0f); - - _circularPath = new Path(); - _circularPath.AddPoint(topLeft); - _circularPath.AddPoint(topRight); - _circularPath.AddPoint(bottomRight); - _circularPath.AddPoint(bottomLeft); - _circularPath.AddPoint(topLeft); - _circularPath.GenerateControlPoints(0.5f); - } - } - - public float Gap - { - get - { - return _gap; - } - - set - { - _gap = value; - } - } - - public float MarginX - { - get - { - return _marginX; - } - - set - { - _marginX = value; - } - } - - public float OffsetYFator - { - get - { - return _offsetYFactor; - } - - set - { - _offsetYFactor = value; - } - } - - public float OffsetX - { - get - { - return _offsetX; - } - - set - { - _offsetX = value; - } - } - - public float MarginY - { - get - { - return _marginY; - } - - set - { - _marginY = value; - } - } - - public float Width - { - get - { - return _width; - } - - set - { - _width = value; - } - } - - public float Height - { - get - { - return _height; - } - - set - { - _height = value; - } - } - - public ImageView ShadowBorder - { - get - { - return _shadowBorder; - } - - set - { - _shadowBorder = value; - } - } - - public ImageView SpotLight - { - get - { - return _spotLight; - } - - set - { - _spotLight = value; - } - } - - public int FocusedItemID - { - get - { - if (_focusedItem < 0) - { - _focusedItem = 0; - } - - return _focusedItem; - } - } - - // This override method is called automatically after the Control has been initialized. - // Any second phase initialization is done here. - public override void OnInitialize() - { - _itemSize = new Size(0.0f, 0.0f, 0.0f); - _gap = 0.0f; - _width = 0.0f; - _height = 0.0f; - _currentScrollPosition = 0.0f; - _itemCount = 0; - _focusedItem = -1; - _isFocused = false; - _marginX = 50.0f; - _marginY = 0.0f; - _offsetYFactor = 0.0f; - _offsetX = 0.0f; - - _container = new View(); - this.Add(_container); - - _itemList = new List(); - - this.ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft; - this.AnchorPoint = Tizen.NUI.AnchorPoint.TopLeft; - this.WidthResizePolicy = ResizePolicyType.FillToParent; - this.HeightResizePolicy = ResizePolicyType.FillToParent; - this.Focusable = (true); - - _container.ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft; - _container.AnchorPoint = Tizen.NUI.AnchorPoint.TopLeft; - _container.WidthResizePolicy = ResizePolicyType.FillToParent; - _container.HeightResizePolicy = ResizePolicyType.FillToParent; - - _stage = Stage.Instance; - _stageSize = _stage.Size; - - _spotLightAnimation = new Animation(Constants.SpotLightDuration); - _focusTransitionAnimation = new Animation(Constants.FocusTransitionDuration); - _focusAnimation = new Animation(Constants.FocusDuration); - _focusAnimation.EndAction = Animation.EndActions.StopFinal; - _scrollAnimation = new Animation(Constants.ScrollDuration); - _scrollAnimation.EndAction = Animation.EndActions.StopFinal; - - //changed to internal - //EnableGestureDetection(Gesture.Type.Pan); - } - - // This will be invoked automatically if an item/image is added to the ScrollContainer - public override void OnChildAdd(Actor actor) - { - View item = View.DownCast(actor); - //View item = actor as View; - - if (item is View && item != _container) - { - item.AnchorPoint = Tizen.NUI.AnchorPoint.BottomCenter; - item.ParentOrigin = Tizen.NUI.ParentOrigin.BottomCenter; - - item.Size = _itemSize; - item.Focusable = (true); - item.Position = GetItemPosition(_itemCount, _currentScrollPosition); - item.Name = _itemCount.ToString(); - - _container.Add(item); - _itemList.Add(item); - - _itemCount++; - } - } - - // This will be invoked automatically if an item/image is removed from the ScrollContainer - public override void OnChildRemove(Actor actor) - { - View item = View.DownCast(actor); - //View item = actor as View; - - if (item is View && item != _container) - { - _container.Remove(item); - - _itemCount--; - _itemList.Remove(item); - } - } - - // This override function supports two dimensional keyboard navigation. - // This function returns the next keyboard focusable actor in ScrollContainer control towards the given direction. - public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled) - { - if (direction == View.FocusDirection.Left) - { - return View.DownCast(FocusPrevious(loopEnabled)); - } - else if (direction == View.FocusDirection.Right) - { - return View.DownCast(FocusNext(loopEnabled)); - } - else - { - return View.DownCast(currentFocusedView); - } - } - - public override void OnFocusChangeCommitted(View commitedFocusableView) - { - Focus(_focusedItem); - } - - - // This override function is invoked before chosen focusable actor will be focused. - // This allows the application to preform any actions (i.e. Scroll and SpotLight animations) before the focus is actually moved to the chosen actor. - - // This override function is invoked whenever a pan gesture is detected on this control. - // Perform Scroll Animation based upon pan gesture velocity / speed. - /*public override void OnPan(PanGesture pan) - { - return; //currently not used - }*/ - - // This function returns current focused actor - public View GetCurrentFocusedActor() - { - if (_focusedItem < 0) - { - _focusedItem = 0; - } - - return _itemList[_focusedItem]; - } - - public void SetFocused(bool focused) - { - _isFocused = focused; - - // Perform Focus animation if the ScrollContainer is not focused already - if (!_isFocused) - { - Actor parent = _shadowBorder.Parent; - if (parent) - { - parent.Remove(_shadowBorder); - } - - parent = _spotLight.Parent; - if (parent) - { - parent.Remove(_spotLight); - } - - _focusTransitionAnimation.Clear(); - - for (int i = 0; i < _itemList.Count; ++i) - { - Position targetPosition = GetItemPosition(i, _currentScrollPosition); - - _focusTransitionAnimation.AnimateTo(_itemList[i], "Position", targetPosition, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - - _focusTransitionAnimation.AnimateTo(_itemList[i], "Scale", new Size(1.0f, 1.0f, 1.0f), new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - } - - _focusTransitionAnimation.Play(); - } - else - { - Focus(_focusedItem); - } - } - - // Obtain ID of first visible item/image on the screen of the ScrollContainer - private int GetFirstVisibleItemId() - { - int firstItemId = -1; - - if (_isFocused) - { - firstItemId = (int)Math.Floor((-1.0 * _currentScrollPosition + _marginX * 2.0f) / (_itemSize.Width + _gap)); - } - else - { - firstItemId = (int)Math.Floor(-1.0 * _currentScrollPosition / (_itemSize.Width + _gap)); - } - - if (firstItemId < 0) - { - firstItemId = 0; - } - - return firstItemId; - } - - // Obtain ID of last visible item/image on the screen of the ScrollContainer - private int GetLastVisibleItemId() - { - int lastItemId = -1; - - if (_isFocused) - { - lastItemId = (int)Math.Ceiling(((_width - _currentScrollPosition - _marginX * 2.0f) / _itemSize.Width) - 1); - } - else - { - lastItemId = (int)Math.Ceiling(((_width - _currentScrollPosition) / _itemSize.Width) - 1); - } - - if (lastItemId >= _itemList.Count) - { - - lastItemId = _itemList.Count - 1; - } - - return lastItemId; - } - - // Obtain Next item/image (Right of the currently focused item) of the ScrollContainer - private Actor FocusNext(bool loopEnabled) - { - int nextItem = -1; - - if (_focusedItem < GetFirstVisibleItemId() || _focusedItem > GetLastVisibleItemId()) - { - nextItem = GetFirstVisibleItemId(); - } - else - { - nextItem = _focusedItem + 1; - } - - if (nextItem >= _itemList.Count) - { - if (loopEnabled) - { - nextItem = 0; - } - else - { - nextItem = _itemList.Count - 1; - } - } - - _focusedItem = nextItem; - return _itemList[_focusedItem]; - } - - // Obtain Previous item/image (left of the currently focused item) of the ScrollContainer - private Actor FocusPrevious(bool loopEnabled) - { - int previousItem = -1; - - if (_focusedItem < GetFirstVisibleItemId() || _focusedItem > GetLastVisibleItemId()) - { - previousItem = GetFirstVisibleItemId(); - } - else - { - previousItem = _focusedItem - 1; - } - - if (previousItem < 0) - { - if (loopEnabled) - { - previousItem = _itemList.Count - 1; - } - else - { - previousItem = 0; - } - } - - _focusedItem = previousItem; - return _itemList[_focusedItem]; - } - - // Perform ScrollAnimation on each item - private void Scroll(float amount, int baseItem) - { - float tagetScrollPosition = _currentScrollPosition + amount; - float totalItemSize = _itemList.Count * (_itemSize.Width + _gap) + _gap + (_marginX * 2.0f); - - float maxScrollPosition = _width - totalItemSize; - - if (tagetScrollPosition < maxScrollPosition) - { - tagetScrollPosition = maxScrollPosition; - } - - if (tagetScrollPosition > 0.0f) - { - tagetScrollPosition = 0.0f; - } - - _scrollAnimation.Clear(); - - for (int i = 0; i < _itemList.Count; ++i) - { - Position targetPosition = GetItemPosition(i, tagetScrollPosition); - - _scrollAnimation.AnimateTo(_itemList[i], "Position", targetPosition, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - } - - _currentScrollPosition = tagetScrollPosition; - _scrollAnimation.Play(); - } - - // This function uses ItemId as next FocusedItem and preforms Scroll and SpotLight animations on that item. - private void Focus(int itemId) - { - - if (itemId < 0) - { - itemId = 0; - } - else if (itemId >= _itemList.Count) - { - itemId = _itemList.Count - 1; - } - - _itemList[itemId].Add(_shadowBorder); - _itemList[itemId].Add(_spotLight); - - // Perform Spot Light animation - if (_focusedItem != itemId && _spotLight != null) - { - _spotLightAnimation.Clear(); - _spotLightAnimation.AnimatePath(_spotLight, _circularPath, new Vector3(0.0f, 0.0f, 0.0f)); - _spotLightAnimation.Looping = true; - _spotLightAnimation.Play(); - } - - _focusedItem = itemId; - - Position itemPosition = GetItemPosition(_focusedItem, _currentScrollPosition); - - _focusAnimation.Clear(); - - float relativeItemPositionX = itemPosition.X - _itemSize.Width * 0.5f + (_stageSize.Width * 0.5f) + _offsetX; - if (relativeItemPositionX < _marginX + _offsetX + _gap) - { - float amount = _marginX + _offsetX + _gap - relativeItemPositionX; - Scroll(amount, itemId + 1); // Perform Scroll animation - } - else if (relativeItemPositionX + _itemSize.Width + _gap + _marginX > _stageSize.Width) - { - float amount = relativeItemPositionX + _marginX + _gap + _itemSize.Width - _stageSize.Width; - Scroll(-amount, itemId - 1); // Perform Scroll animation - } - else - { - // Perform animation when item is focused - for (int i = 0; i < _itemList.Count; ++i) - { - Position targetPosition = GetItemPosition(i, _currentScrollPosition); - - _focusAnimation.AnimateTo(_itemList[i], "Position",targetPosition, new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine) ); - } - } - - for (int i = 0; i < _itemList.Count; ++i) - { - // Perform scale animation on Focused item - if (i == _focusedItem) - { - _focusAnimation.AnimateTo(_itemList[i], "Scale", new Size(1.2f, 1.2f, 1.2f), new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine)); - } - else - { - - _focusAnimation.AnimateTo(_itemList[i], "Scale", new Size(1.0f, 1.0f, 1.0f), new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseOutSine) ); - } - } - - _focusAnimation.Play(); - - } - - // Calculate Position of any item/image of ScrollContainer - private Position GetItemPosition(int itemId, float scrollPosition) - { - if (_isFocused) - { - // used (_itemSize.Width * 0.5f) because of AnchorPointCenter - // used (_stageSize.Width * 0.5f) because of ParentOriginCenter - if (_focusedItem > itemId) - { - float positionX = (_itemSize.Width * itemId) + (_gap * (itemId + 1)) + scrollPosition + (_itemSize.Width * 0.5f) - (_stageSize.Width * 0.5f); - return new Position(positionX, -_itemSize.Height * _offsetYFactor, 0.0f); - } - else if (_focusedItem == itemId) - { - float positionX = (_itemSize.Width * itemId) + (_gap * (itemId + 1)) + scrollPosition + _marginX + (_itemSize.Width * 0.5f) - (_stageSize.Width * 0.5f); - return new Position(positionX, -_itemSize.Height * _offsetYFactor, 0.0f); - } - else - { - float positionX = (_itemSize.Width * itemId) + (_gap * (itemId + 1)) + scrollPosition + _marginX * 2.0f + (_itemSize.Width * 0.5f) - (_stageSize.Width * 0.5f); - return new Position(positionX, -_itemSize.Height * _offsetYFactor, 0.0f); - } - } - else - { - float positionX = (_itemSize.Width * itemId) + (_gap * (itemId + 1)) + scrollPosition + (_itemSize.Width * 0.5f) - (_stageSize.Width * 0.5f); - return new Position(positionX, -_itemSize.Height * _offsetYFactor, 0.0f); - } - } - - - } - -} - diff --git a/NUISamples/NUISamples.TizenTV/res/json/control-dashboard-theme.json b/NUISamples/NUISamples.TizenTV/res/json/control-dashboard-theme.json index 6376e7e..82d27ee 100755 --- a/NUISamples/NUISamples.TizenTV/res/json/control-dashboard-theme.json +++ b/NUISamples/NUISamples.TizenTV/res/json/control-dashboard-theme.json @@ -28,32 +28,6 @@ { "styles": { - "Tooltip": - { - "tooltip": - { - "content": - { - "pointSize":8 - }, - "waitTime":0.5, - "background": - { - "visual":"{DALI_IMAGE_DIR}tooltip.9.png", - "border":[1,5,5,1] - }, - "tail": - { - "visibility":false, - "aboveVisual":"{DALI_IMAGE_DIR}tooltip-tail-above.png", - "belowVisual":"{DALI_IMAGE_DIR}tooltip-tail-below.png" - }, - "position":"BELOW", - "hoverPointOffset":[10,10], - "movementThreshold":5, - "disappearOnMovement":false - } - }, "TextLabel": { "pointSize":8, @@ -114,48 +88,7 @@ }, "TextFieldFontSize4": { - "pointSize":12 - }, - "TextSelectionPopup": - { - "popupMaxSize":[1700,100], - "optionDividerSize":[2,0], - "popupDividerColor":[0.23,0.72,0.8,0.11], - "popupIconColor":[1.0,1.0,1.0,1.0], - "popupPressedColor":[0.24,0.72,0.8,0.11], - "background": { - "rendererType": "image", - "url": "{DALI_IMAGE_DIR}selection-popup-bg.9.png" - }, - "popupFadeInDuration":0.25, - "popupFadeOutDuration":0.25 - }, - "TextSelectionPopupButton": - { - "label": - { - "visualType":"TEXT", - "pointSize":6 - }, - "unselectedBackgroundVisual": - { - "visualType": "IMAGE", - "url": "" - }, - "selectedBackgroundVisual": - { - "visualType": "IMAGE", - "url": "" - } - }, - "TextSelectionToolbar": - { - "enableOvershoot":true, - "scrollView": - { - "overshootAnimationSpeed":360.0, - "overshootSize":[1920.0,130.0] - } + "pointSize":20 }, "ScrollView": { @@ -175,26 +108,7 @@ "primaryCursorColor":[0.0,0.72,0.9,1.0], "secondaryCursorColor":[0.0,0.72,0.9,1.0], "cursorWidth":6, - "selectionHighlightColor":[0.75,0.96,1.0,1.0], - "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png", - "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" }, - "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" } - }, - "ProgressBar": - { - "progressValue": 0, - "trackVisual":{ - "url":"{DALI_IMAGE_DIR}progress-skin.9.png", - "size":[24,24] - }, - "progressVisual":{ - "url":"{DALI_IMAGE_DIR}progress-skin-progress.9.png", - "size":[24,24] - } - }, - "ProgressBarValueTextLabel": - { - "textColor":[0.8,0.8,1,1] + "selectionHighlightColor":[0.75,0.96,1.0,1.0] }, "Button": { @@ -215,26 +129,6 @@ "horizontalAlignment": "CENTER", "pointSize" : 6.0, // Point size must always be provided to Text Visual "verticalAlignment": "CENTER" - }, - "unselectedBackgroundVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}button-up.9.png" - }, - "selectedBackgroundVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}button-down.9.png" - }, - "disabledSelectedBackgroundVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}button-down-disabled.9.png" - }, - "disabledUnselectedBackgroundVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}button-disabled.9.png" } }, "CheckBoxButton": @@ -246,27 +140,7 @@ "visualType": "TEXT", "pointSize" : 8.0, // Point size must always be provided to Text Visual "verticalAlignment": "CENTER" - }, - "unselectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}checkbox-unselected.png" - }, - "selectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}checkbox-selected.png" - }, - "disabledUnselectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}checkbox-unselected-disabled.png" - }, - "disabledSelectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}checkbox-selected-disabled.png" - } + } }, "RadioButton": { @@ -277,27 +151,7 @@ "visualType": "TEXT", "pointSize" : 8.0, // Point size must always be provided to Text Visual "verticalAlignment": "CENTER" - }, - "unselectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}radio-button-unselected.png" - }, - "selectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}radio-button-selected.png" - }, - "disabledUnselectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}radio-button-unselected-disabled.png" - }, - "disabledSelectedVisual": - { - "visualType": "IMAGE", - "url": "{DALI_IMAGE_DIR}radio-button-selected-disabled.png" - } + } } } } diff --git a/NUISamples/NUISamples.TizenTV/res/json/date-picker-theme.json b/NUISamples/NUISamples.TizenTV/res/json/date-picker-theme.json new file mode 100755 index 0000000..6424a38 --- /dev/null +++ b/NUISamples/NUISamples.TizenTV/res/json/date-picker-theme.json @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * + * This file is part of Dali Toolkit + * + * 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. + */ + +{ + "styles": { + "Spin": { + "MinValue": 0, + "MaxValue": 100, + "Value": 50, + "Step": 1, + "TextColor": [ 1.0, 0.0, 0.0, 1.0 ] + } + } +} diff --git a/packaging/csapi-nui.spec b/packaging/csapi-nui.spec index f2af8c7..2ac6190 100755 --- a/packaging/csapi-nui.spec +++ b/packaging/csapi-nui.spec @@ -1,6 +1,6 @@ Name: csapi-nui Summary: dali-NUI -Version: 1.0.1 +Version: 1.0.2 Release: 0 Group: Development/Libraries License: Apache-2.0 diff --git a/src/Tizen.NUI/Tizen.NUI.csproj b/src/Tizen.NUI/Tizen.NUI.csproj index 50252af..c3ba16f 100755 --- a/src/Tizen.NUI/Tizen.NUI.csproj +++ b/src/Tizen.NUI/Tizen.NUI.csproj @@ -42,12 +42,10 @@ 4 - - @@ -56,8 +54,8 @@ - + @@ -74,7 +72,6 @@ - @@ -93,14 +90,14 @@ - - + + @@ -121,7 +118,6 @@ - @@ -136,6 +132,7 @@ + @@ -162,12 +159,15 @@ + + + @@ -175,7 +175,6 @@ - @@ -200,6 +199,8 @@ + + @@ -215,6 +216,7 @@ + @@ -223,7 +225,6 @@ - @@ -246,7 +247,6 @@ - @@ -254,7 +254,6 @@ - @@ -302,6 +301,8 @@ + + @@ -310,18 +311,16 @@ - - - + @@ -329,10 +328,10 @@ - + @@ -345,7 +344,6 @@ - @@ -372,10 +370,10 @@ - + - + diff --git a/src/Tizen.NUI/src/internal/ActorTouchDataSignal.cs b/src/Tizen.NUI/src/internal/ActorTouchDataSignal.cs index 245be9f..d3b6fb4 100755 --- a/src/Tizen.NUI/src/internal/ActorTouchDataSignal.cs +++ b/src/Tizen.NUI/src/internal/ActorTouchDataSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ActorTouchDataSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ActorWheelSignal.cs b/src/Tizen.NUI/src/internal/ActorWheelSignal.cs index 2f0be3b..a8dad29 100755 --- a/src/Tizen.NUI/src/internal/ActorWheelSignal.cs +++ b/src/Tizen.NUI/src/internal/ActorWheelSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ActorWheelSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/AlignType.cs b/src/Tizen.NUI/src/internal/AlignType.cs index 4e683f0..694ef82 100755 --- a/src/Tizen.NUI/src/internal/AlignType.cs +++ b/src/Tizen.NUI/src/internal/AlignType.cs @@ -1,25 +1,25 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.9 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace Tizen.NUI -{ - public enum AlignType - { - TOP_BEGIN = 0, - TOP_CENTER, - TOP_END, - CENTER_BEGIN, - CENTER, - CENTER_END, - BOTTOM_BEGIN, - BOTTOM_CENTER, - BOTTOM_END - } -} +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Tizen.NUI +{ + public enum AlignType + { + TOP_BEGIN = 0, + TOP_CENTER, + TOP_END, + CENTER_BEGIN, + CENTER, + CENTER_END, + BOTTOM_BEGIN, + BOTTOM_CENTER, + BOTTOM_END + } +} diff --git a/src/Tizen.NUI/src/internal/AngleAxis.cs b/src/Tizen.NUI/src/internal/AngleAxis.cs index 34293d6..46138c6 100755 --- a/src/Tizen.NUI/src/internal/AngleAxis.cs +++ b/src/Tizen.NUI/src/internal/AngleAxis.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class AngleAxis : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/AngleThresholdPair.cs b/src/Tizen.NUI/src/internal/AngleThresholdPair.cs index d7bfa22..765f824 100755 --- a/src/Tizen.NUI/src/internal/AngleThresholdPair.cs +++ b/src/Tizen.NUI/src/internal/AngleThresholdPair.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class AngleThresholdPair : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/AnimatablePropertyComponentRegistration.cs b/src/Tizen.NUI/src/internal/AnimatablePropertyComponentRegistration.cs index 62b76aa..7fbe27c 100755 --- a/src/Tizen.NUI/src/internal/AnimatablePropertyComponentRegistration.cs +++ b/src/Tizen.NUI/src/internal/AnimatablePropertyComponentRegistration.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class AnimatablePropertyComponentRegistration : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/AnimatablePropertyRegistration.cs b/src/Tizen.NUI/src/internal/AnimatablePropertyRegistration.cs index 5107477..4e70249 100755 --- a/src/Tizen.NUI/src/internal/AnimatablePropertyRegistration.cs +++ b/src/Tizen.NUI/src/internal/AnimatablePropertyRegistration.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class AnimatablePropertyRegistration : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/AnimationSignal.cs b/src/Tizen.NUI/src/internal/AnimationSignal.cs index 374dd69..10b205b 100755 --- a/src/Tizen.NUI/src/internal/AnimationSignal.cs +++ b/src/Tizen.NUI/src/internal/AnimationSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class AnimationSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Any.cs b/src/Tizen.NUI/src/internal/Any.cs index a5837c2..11e0c2c 100755 --- a/src/Tizen.NUI/src/internal/Any.cs +++ b/src/Tizen.NUI/src/internal/Any.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Any : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Application.cs b/src/Tizen.NUI/src/internal/Application.cs index c616ded..32a4136 100755 --- a/src/Tizen.NUI/src/internal/Application.cs +++ b/src/Tizen.NUI/src/internal/Application.cs @@ -14,14 +14,6 @@ namespace Tizen.NUI using System; using System.Runtime.InteropServices; - internal class LOG - { - internal LOG(string _str) - { - Tizen.Log.Debug("NUI", _str); - } - } - /** * @brief Event arguments that passed via NUIApplicationInit signal * @@ -346,6 +338,10 @@ namespace Tizen.NUI } } + private static void LOG(string str) + { + //Tizen.Log.Debug("NUI", str); + } [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application); @@ -1062,7 +1058,7 @@ namespace Tizen.NUI public static Application NewApplication(string stylesheet, Application.WindowMode windowMode) { - new LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! "); + LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! "); // register all Views with the type registry, so that can be created / styled via JSON ViewRegistryHelper.Initialize(); @@ -1095,7 +1091,7 @@ namespace Tizen.NUI */ public static Application New() { - new LOG("New() is called!"); + LOG("New() is called!"); Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1104,7 +1100,7 @@ namespace Tizen.NUI public static Application New(int argc) { - new LOG("New(int argc) is called!"); + LOG("New(int argc) is called!"); Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1113,7 +1109,7 @@ namespace Tizen.NUI public static Application New(int argc, string stylesheet) { - new LOG("New(int argc, string stylesheet) is called!"); + LOG("New(int argc, string stylesheet) is called!"); Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1122,7 +1118,7 @@ namespace Tizen.NUI public static Application New(int argc, string stylesheet, Application.WindowMode windowMode) { - new LOG("New(int argc, string stylesheet, Application.WindowMode windowMode) is called!"); + LOG("New(int argc, string stylesheet, Application.WindowMode windowMode) is called!"); Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1131,7 +1127,7 @@ namespace Tizen.NUI public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true) { - new LOG("Application() is called!"); + LOG("Application() is called!"); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } diff --git a/src/Tizen.NUI/src/internal/ApplicationControlSignal.cs b/src/Tizen.NUI/src/internal/ApplicationControlSignal.cs index aabe2bb..813f532 100755 --- a/src/Tizen.NUI/src/internal/ApplicationControlSignal.cs +++ b/src/Tizen.NUI/src/internal/ApplicationControlSignal.cs @@ -8,81 +8,97 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { +namespace Tizen.NUI +{ + + internal class ApplicationControlSignal : global::System.IDisposable + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ApplicationControlSignal(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(ApplicationControlSignal obj) + { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~ApplicationControlSignal() + { + DisposeQueue.Instance.Add(this); + } + + public virtual void Dispose() + { + if (!Stage.IsInstalled()) + { + DisposeQueue.Instance.Add(this); + return; + } + + lock (this) + { + if (swigCPtr.Handle != global::System.IntPtr.Zero) + { + if (swigCMemOwn) + { + swigCMemOwn = false; + NDalicPINVOKE.delete_ApplicationControlSignal(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + + public bool Empty() + { + bool ret = NDalicPINVOKE.ApplicationControlSignal_Empty(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public uint GetConnectionCount() + { + uint ret = NDalicPINVOKE.ApplicationControlSignal_GetConnectionCount(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Connect(System.Delegate func) + { + System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.ApplicationControlSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public void Disconnect(System.Delegate func) + { + System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.ApplicationControlSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public void Emit(Application arg1, System.IntPtr arg2) + { + NDalicPINVOKE.ApplicationControlSignal_Emit(swigCPtr, Application.getCPtr(arg1), arg2); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public ApplicationControlSignal() : this(NDalicPINVOKE.new_ApplicationControlSignal(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } - internal class ApplicationControlSignal : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal ApplicationControlSignal(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(ApplicationControlSignal obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~ApplicationControlSignal() { - DisposeQueue.Instance.Add(this); - } - - public virtual void Dispose() { - if (!Stage.IsInstalled()) { - DisposeQueue.Instance.Add(this); - return; - } - - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - NDalicPINVOKE.delete_ApplicationControlSignal(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - - public bool Empty() { - bool ret = NDalicPINVOKE.ApplicationControlSignal_Empty(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetConnectionCount() { - uint ret = NDalicPINVOKE.ApplicationControlSignal_GetConnectionCount(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Connect(System.Delegate func) { -System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicPINVOKE.ApplicationControlSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Disconnect(System.Delegate func) { -System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicPINVOKE.ApplicationControlSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - } - - public void Emit(Application arg1, System.IntPtr arg2) { - NDalicPINVOKE.ApplicationControlSignal_Emit(swigCPtr, Application.getCPtr(arg1), arg2); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public ApplicationControlSignal() : this(NDalicPINVOKE.new_ApplicationControlSignal(), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - -} } diff --git a/src/Tizen.NUI/src/internal/ApplicationExtensions.cs b/src/Tizen.NUI/src/internal/ApplicationExtensions.cs index a05b7cd..e2bcbc6 100755 --- a/src/Tizen.NUI/src/internal/ApplicationExtensions.cs +++ b/src/Tizen.NUI/src/internal/ApplicationExtensions.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - internal class ApplicationExtensions : global::System.IDisposable { +namespace Tizen.NUI { + +internal class ApplicationExtensions : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ApplicationSignal.cs b/src/Tizen.NUI/src/internal/ApplicationSignal.cs index 8fe029a..823b78e 100755 --- a/src/Tizen.NUI/src/internal/ApplicationSignal.cs +++ b/src/Tizen.NUI/src/internal/ApplicationSignal.cs @@ -8,81 +8,97 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { +namespace Tizen.NUI +{ + + internal class ApplicationSignal : global::System.IDisposable + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ApplicationSignal(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(ApplicationSignal obj) + { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~ApplicationSignal() + { + DisposeQueue.Instance.Add(this); + } + + public virtual void Dispose() + { + if (!Stage.IsInstalled()) + { + DisposeQueue.Instance.Add(this); + return; + } + + lock (this) + { + if (swigCPtr.Handle != global::System.IntPtr.Zero) + { + if (swigCMemOwn) + { + swigCMemOwn = false; + NDalicPINVOKE.delete_ApplicationSignal(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + + public bool Empty() + { + bool ret = NDalicPINVOKE.ApplicationSignal_Empty(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public uint GetConnectionCount() + { + uint ret = NDalicPINVOKE.ApplicationSignal_GetConnectionCount(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Connect(System.Delegate func) + { + System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.ApplicationSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public void Disconnect(System.Delegate func) + { + System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.ApplicationSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public void Emit(Application arg) + { + NDalicPINVOKE.ApplicationSignal_Emit(swigCPtr, Application.getCPtr(arg)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public ApplicationSignal() : this(NDalicPINVOKE.new_ApplicationSignal(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } - internal class ApplicationSignal : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal ApplicationSignal(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(ApplicationSignal obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~ApplicationSignal() { - DisposeQueue.Instance.Add(this); - } - - public virtual void Dispose() { - if (!Stage.IsInstalled()) { - DisposeQueue.Instance.Add(this); - return; - } - - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - NDalicPINVOKE.delete_ApplicationSignal(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - - public bool Empty() { - bool ret = NDalicPINVOKE.ApplicationSignal_Empty(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetConnectionCount() { - uint ret = NDalicPINVOKE.ApplicationSignal_GetConnectionCount(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Connect(System.Delegate func) { -System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicPINVOKE.ApplicationSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Disconnect(System.Delegate func) { -System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicPINVOKE.ApplicationSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - } - - public void Emit(Application arg) { - NDalicPINVOKE.ApplicationSignal_Emit(swigCPtr, Application.getCPtr(arg)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public ApplicationSignal() : this(NDalicPINVOKE.new_ApplicationSignal(), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - -} } diff --git a/src/Tizen.NUI/src/internal/AsyncImageLoader.cs b/src/Tizen.NUI/src/internal/AsyncImageLoader.cs index a9eda60..1cae9ac 100755 --- a/src/Tizen.NUI/src/internal/AsyncImageLoader.cs +++ b/src/Tizen.NUI/src/internal/AsyncImageLoader.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class AsyncImageLoader : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/BaseHandle.cs b/src/Tizen.NUI/src/internal/BaseHandle.cs index fbe5cdc..82b3f4f 100755 --- a/src/Tizen.NUI/src/internal/BaseHandle.cs +++ b/src/Tizen.NUI/src/internal/BaseHandle.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class BaseHandle : global::System.IDisposable { +namespace Tizen.NUI { + +public class BaseHandle : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/BaseObject.cs b/src/Tizen.NUI/src/internal/BaseObject.cs index e3a3a19..6e00495 100755 --- a/src/Tizen.NUI/src/internal/BaseObject.cs +++ b/src/Tizen.NUI/src/internal/BaseObject.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class BaseObject : RefObject { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/BlendEquationType.cs b/src/Tizen.NUI/src/internal/BlendEquationType.cs index 9e2a5bb..0aeb0e4 100755 --- a/src/Tizen.NUI/src/internal/BlendEquationType.cs +++ b/src/Tizen.NUI/src/internal/BlendEquationType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum BlendEquationType { ADD = 0x8006, SUBTRACT = 0x800A, diff --git a/src/Tizen.NUI/src/internal/BlendFactorType.cs b/src/Tizen.NUI/src/internal/BlendFactorType.cs index 84d4ba6..c0dc86b 100755 --- a/src/Tizen.NUI/src/internal/BlendFactorType.cs +++ b/src/Tizen.NUI/src/internal/BlendFactorType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum BlendFactorType { ZERO = 0, ONE = 1, diff --git a/src/Tizen.NUI/src/internal/BlendModeType.cs b/src/Tizen.NUI/src/internal/BlendModeType.cs index 63488c9..6ff903f 100755 --- a/src/Tizen.NUI/src/internal/BlendModeType.cs +++ b/src/Tizen.NUI/src/internal/BlendModeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum BlendModeType { OFF, AUTO, diff --git a/src/Tizen.NUI/src/internal/BufferImage.cs b/src/Tizen.NUI/src/internal/BufferImage.cs index d663f1c..3d25d36 100755 --- a/src/Tizen.NUI/src/internal/BufferImage.cs +++ b/src/Tizen.NUI/src/internal/BufferImage.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class BufferImage : Image { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/Builder.cs b/src/Tizen.NUI/src/internal/Builder.cs index 4dffa65..554dd57 100755 --- a/src/Tizen.NUI/src/internal/Builder.cs +++ b/src/Tizen.NUI/src/internal/Builder.cs @@ -27,10 +27,10 @@ namespace Tizen.NUI { using System; - using System.Runtime.InteropServices; - - - public class Builder : BaseHandle { + using System.Runtime.InteropServices; + + +public class Builder : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal Builder(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Builder_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/ButtonSignal.cs b/src/Tizen.NUI/src/internal/ButtonSignal.cs index 714cdc3..47e39df 100755 --- a/src/Tizen.NUI/src/internal/ButtonSignal.cs +++ b/src/Tizen.NUI/src/internal/ButtonSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ButtonSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ChildPropertyRegistration.cs b/src/Tizen.NUI/src/internal/ChildPropertyRegistration.cs index c88af81..5cd6c98 100755 --- a/src/Tizen.NUI/src/internal/ChildPropertyRegistration.cs +++ b/src/Tizen.NUI/src/internal/ChildPropertyRegistration.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ChildPropertyRegistration : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ClampState.cs b/src/Tizen.NUI/src/internal/ClampState.cs index 573dfc6..0aafcc9 100755 --- a/src/Tizen.NUI/src/internal/ClampState.cs +++ b/src/Tizen.NUI/src/internal/ClampState.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum ClampState { NotClamped, ClampedToMin, diff --git a/src/Tizen.NUI/src/internal/ClampState2D.cs b/src/Tizen.NUI/src/internal/ClampState2D.cs index d01fd83..537ef83 100755 --- a/src/Tizen.NUI/src/internal/ClampState2D.cs +++ b/src/Tizen.NUI/src/internal/ClampState2D.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ClampState2D : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ConnectionTracker.cs b/src/Tizen.NUI/src/internal/ConnectionTracker.cs index e593de7..4473e9f 100755 --- a/src/Tizen.NUI/src/internal/ConnectionTracker.cs +++ b/src/Tizen.NUI/src/internal/ConnectionTracker.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ConnectionTracker : ConnectionTrackerInterface { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs b/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs index 81a1473..7f651d7 100755 --- a/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs +++ b/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ConnectionTrackerInterface : SignalObserver { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ControlKeySignal.cs b/src/Tizen.NUI/src/internal/ControlKeySignal.cs index c229bb1..32c7523 100755 --- a/src/Tizen.NUI/src/internal/ControlKeySignal.cs +++ b/src/Tizen.NUI/src/internal/ControlKeySignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ControlKeySignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ControlOrientationType.cs b/src/Tizen.NUI/src/internal/ControlOrientationType.cs index 5d98c55..f2c6cc0 100755 --- a/src/Tizen.NUI/src/internal/ControlOrientationType.cs +++ b/src/Tizen.NUI/src/internal/ControlOrientationType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum ControlOrientationType { Up, Left, diff --git a/src/Tizen.NUI/src/internal/CustomActor.cs b/src/Tizen.NUI/src/internal/CustomActor.cs index 05dd5b1..268eab2 100755 --- a/src/Tizen.NUI/src/internal/CustomActor.cs +++ b/src/Tizen.NUI/src/internal/CustomActor.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class CustomActor : Actor { +namespace Tizen.NUI { + +public class CustomActor : Actor { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal CustomActor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.CustomActor_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/CustomActorImpl.cs b/src/Tizen.NUI/src/internal/CustomActorImpl.cs index a5d3f5d..2b2cfc1 100755 --- a/src/Tizen.NUI/src/internal/CustomActorImpl.cs +++ b/src/Tizen.NUI/src/internal/CustomActorImpl.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class CustomActorImpl : RefObject { +namespace Tizen.NUI { + +public class CustomActorImpl : RefObject { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal CustomActorImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.CustomActorImpl_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/DaliEnumConstants.cs b/src/Tizen.NUI/src/internal/DaliEnumConstants.cs index 3ff9514..d6c5a9a 100755 --- a/src/Tizen.NUI/src/internal/DaliEnumConstants.cs +++ b/src/Tizen.NUI/src/internal/DaliEnumConstants.cs @@ -40,8 +40,6 @@ namespace Tizen.NUI TexturedWithDetailedSpecularLighting = Tizen.NUI.MeshVisualShadingModeValue.TEXTURED_WITH_DETAILED_SPECULAR_LIGHTING ///< Uses all textures provided including a gloss, normal and texture map along with specular, ambient and diffuse lighting. @SINCE_1_1.45 } - - public struct Direction { public enum Type @@ -51,6 +49,22 @@ namespace Tizen.NUI } } + public struct Align + { + public enum Type + { + TopBegin = Tizen.NUI.AlignType.TOP_BEGIN, + TopCenter = Tizen.NUI.AlignType.TOP_CENTER, + TopEnd = Tizen.NUI.AlignType.TOP_END, + CenterBegin = Tizen.NUI.AlignType.CENTER_BEGIN, + Center = Tizen.NUI.AlignType.CENTER, + CenterEnd = Tizen.NUI.AlignType.CENTER_END, + BottomBegin = Tizen.NUI.AlignType.BOTTOM_BEGIN, + BottomCenter = Tizen.NUI.AlignType.BOTTOM_CENTER, + BottomEnd = Tizen.NUI.AlignType.BOTTOM_END + } + } + public struct Visual { public enum Type diff --git a/src/Tizen.NUI/src/internal/DaliEventHandler.cs b/src/Tizen.NUI/src/internal/DaliEventHandler.cs index d23cb17..ff6aa3e 100755 --- a/src/Tizen.NUI/src/internal/DaliEventHandler.cs +++ b/src/Tizen.NUI/src/internal/DaliEventHandler.cs @@ -19,21 +19,16 @@ namespace Tizen.NUI { using System; using System.Runtime.InteropServices; - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate R DaliEventHandlerWithReturnType(T source, U e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - internal delegate void EventCallbackDelegateType0(); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - internal delegate void EventCallbackDelegateType1(IntPtr arg1); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - internal delegate void EventCallbackDelegateType2(T arg1, U arg2); - + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + public delegate R DaliEventHandlerWithReturnType(T source, U e); + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void EventCallbackDelegateType0(); + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void EventCallbackDelegateType1(IntPtr arg1); + //this should be removed with EventHandler from .NET [UnmanagedFunctionPointer(CallingConvention.StdCall)] public delegate void DaliEventHandler(T source, U e); @@ -41,4 +36,5 @@ namespace Tizen.NUI { [UnmanagedFunctionPointer(CallingConvention.StdCall)] public delegate R EventHandlerWithReturnType(T source, U e); + } diff --git a/src/Tizen.NUI/src/internal/DaliException.cs b/src/Tizen.NUI/src/internal/DaliException.cs index 7737d78..92608d9 100755 --- a/src/Tizen.NUI/src/internal/DaliException.cs +++ b/src/Tizen.NUI/src/internal/DaliException.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class DaliException : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/DefaultItemLayoutProperty.cs b/src/Tizen.NUI/src/internal/DefaultItemLayoutProperty.cs index 0c1901a..76e1549 100755 --- a/src/Tizen.NUI/src/internal/DefaultItemLayoutProperty.cs +++ b/src/Tizen.NUI/src/internal/DefaultItemLayoutProperty.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum DefaultItemLayoutProperty { TYPE = 0, ITEM_SIZE, diff --git a/src/Tizen.NUI/src/internal/DefaultItemLayoutType.cs b/src/Tizen.NUI/src/internal/DefaultItemLayoutType.cs index 659d5fe..ca47cf1 100755 --- a/src/Tizen.NUI/src/internal/DefaultItemLayoutType.cs +++ b/src/Tizen.NUI/src/internal/DefaultItemLayoutType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum DefaultItemLayoutType { DEPTH, GRID, diff --git a/src/Tizen.NUI/src/internal/DefaultRuler.cs b/src/Tizen.NUI/src/internal/DefaultRuler.cs index b0ca5ef..c3ad78b 100755 --- a/src/Tizen.NUI/src/internal/DefaultRuler.cs +++ b/src/Tizen.NUI/src/internal/DefaultRuler.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class DefaultRuler : Ruler { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/DepthFunctionType.cs b/src/Tizen.NUI/src/internal/DepthFunctionType.cs index 0bebeaf..7afd7c7 100755 --- a/src/Tizen.NUI/src/internal/DepthFunctionType.cs +++ b/src/Tizen.NUI/src/internal/DepthFunctionType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum DepthFunctionType { NEVER, ALWAYS, diff --git a/src/Tizen.NUI/src/internal/DepthTestModeType.cs b/src/Tizen.NUI/src/internal/DepthTestModeType.cs index 8ca5f39..063abd8 100755 --- a/src/Tizen.NUI/src/internal/DepthTestModeType.cs +++ b/src/Tizen.NUI/src/internal/DepthTestModeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum DepthTestModeType { OFF, AUTO, diff --git a/src/Tizen.NUI/src/internal/DepthWriteModeType.cs b/src/Tizen.NUI/src/internal/DepthWriteModeType.cs index 94a17aa..8d52864 100755 --- a/src/Tizen.NUI/src/internal/DepthWriteModeType.cs +++ b/src/Tizen.NUI/src/internal/DepthWriteModeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum DepthWriteModeType { OFF, AUTO, diff --git a/src/Tizen.NUI/src/internal/DirectionBias.cs b/src/Tizen.NUI/src/internal/DirectionBias.cs index 61acc6d..78c76c6 100755 --- a/src/Tizen.NUI/src/internal/DirectionBias.cs +++ b/src/Tizen.NUI/src/internal/DirectionBias.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum DirectionBias { DirectionBiasLeft = -1, DirectionBiasNone = 0, diff --git a/src/Tizen.NUI/src/internal/DirectionType.cs b/src/Tizen.NUI/src/internal/DirectionType.cs index f9c724a..eae981f 100755 --- a/src/Tizen.NUI/src/internal/DirectionType.cs +++ b/src/Tizen.NUI/src/internal/DirectionType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum DirectionType { LEFT_TO_RIGHT = 0, RIGHT_TO_LEFT diff --git a/src/Tizen.NUI/src/internal/DragAndDropDetector.cs b/src/Tizen.NUI/src/internal/DragAndDropDetector.cs index 4cc7523..5012f6e 100755 --- a/src/Tizen.NUI/src/internal/DragAndDropDetector.cs +++ b/src/Tizen.NUI/src/internal/DragAndDropDetector.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class DragAndDropDetector : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/EncodedBufferImage.cs b/src/Tizen.NUI/src/internal/EncodedBufferImage.cs index c8612b0..4b7e084 100755 --- a/src/Tizen.NUI/src/internal/EncodedBufferImage.cs +++ b/src/Tizen.NUI/src/internal/EncodedBufferImage.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class EncodedBufferImage : Image { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/FaceCullingModeType.cs b/src/Tizen.NUI/src/internal/FaceCullingModeType.cs index 2711741..0829e12 100755 --- a/src/Tizen.NUI/src/internal/FaceCullingModeType.cs +++ b/src/Tizen.NUI/src/internal/FaceCullingModeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum FaceCullingModeType { NONE, FRONT, diff --git a/src/Tizen.NUI/src/internal/FilterModeType.cs b/src/Tizen.NUI/src/internal/FilterModeType.cs index 325e834..82da30c 100755 --- a/src/Tizen.NUI/src/internal/FilterModeType.cs +++ b/src/Tizen.NUI/src/internal/FilterModeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum FilterModeType { NONE = 0, DEFAULT, diff --git a/src/Tizen.NUI/src/internal/FittingModeType.cs b/src/Tizen.NUI/src/internal/FittingModeType.cs index ff283b0..6b818d5 100755 --- a/src/Tizen.NUI/src/internal/FittingModeType.cs +++ b/src/Tizen.NUI/src/internal/FittingModeType.cs @@ -8,14 +8,13 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI -{ - public enum FittingModeType - { - ShrinkToFit, - ScaleToFill, - FitWidth, - FitHeight +namespace Tizen.NUI { + +public enum FittingModeType { + SHRINK_TO_FIT, + SCALE_TO_FILL, + FIT_WIDTH, + FIT_HEIGHT } } diff --git a/src/Tizen.NUI/src/internal/FixedRuler.cs b/src/Tizen.NUI/src/internal/FixedRuler.cs index e75abec..cf75809 100755 --- a/src/Tizen.NUI/src/internal/FixedRuler.cs +++ b/src/Tizen.NUI/src/internal/FixedRuler.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class FixedRuler : Ruler { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/FloatSignal.cs b/src/Tizen.NUI/src/internal/FloatSignal.cs index be8df29..aecd9c5 100755 --- a/src/Tizen.NUI/src/internal/FloatSignal.cs +++ b/src/Tizen.NUI/src/internal/FloatSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class FloatSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/FocusChangedSignal.cs b/src/Tizen.NUI/src/internal/FocusChangedSignal.cs index 42d95f2..e0fb2f6 100755 --- a/src/Tizen.NUI/src/internal/FocusChangedSignal.cs +++ b/src/Tizen.NUI/src/internal/FocusChangedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class FocusChangedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/FocusGroupChangedSignal.cs b/src/Tizen.NUI/src/internal/FocusGroupChangedSignal.cs index b259d3d..201cd21 100755 --- a/src/Tizen.NUI/src/internal/FocusGroupChangedSignal.cs +++ b/src/Tizen.NUI/src/internal/FocusGroupChangedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class FocusGroupChangedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/FrameBuffer.cs b/src/Tizen.NUI/src/internal/FrameBuffer.cs index 5de61b3..f463971 100755 --- a/src/Tizen.NUI/src/internal/FrameBuffer.cs +++ b/src/Tizen.NUI/src/internal/FrameBuffer.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class FrameBuffer : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/FrameBufferImage.cs b/src/Tizen.NUI/src/internal/FrameBufferImage.cs index 8160db4..98fa153 100755 --- a/src/Tizen.NUI/src/internal/FrameBufferImage.cs +++ b/src/Tizen.NUI/src/internal/FrameBufferImage.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class FrameBufferImage : Image { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/GaussianBlurView.cs b/src/Tizen.NUI/src/internal/GaussianBlurView.cs index 7817827..f5c3cb5 100755 --- a/src/Tizen.NUI/src/internal/GaussianBlurView.cs +++ b/src/Tizen.NUI/src/internal/GaussianBlurView.cs @@ -27,9 +27,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class GaussianBlurView : View { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/GaussianBlurViewSignal.cs b/src/Tizen.NUI/src/internal/GaussianBlurViewSignal.cs index 8ce1ef6..be5732d 100755 --- a/src/Tizen.NUI/src/internal/GaussianBlurViewSignal.cs +++ b/src/Tizen.NUI/src/internal/GaussianBlurViewSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class GaussianBlurViewSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Geometry.cs b/src/Tizen.NUI/src/internal/Geometry.cs index 179f42a..09a187f 100755 --- a/src/Tizen.NUI/src/internal/Geometry.cs +++ b/src/Tizen.NUI/src/internal/Geometry.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Geometry : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/GestureDetector.cs b/src/Tizen.NUI/src/internal/GestureDetector.cs index 169845c..2998717 100755 --- a/src/Tizen.NUI/src/internal/GestureDetector.cs +++ b/src/Tizen.NUI/src/internal/GestureDetector.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class GestureDetector : Handle { +namespace Tizen.NUI { + +public class GestureDetector : Handle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal GestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.GestureDetector_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/GradientVisualSpreadMethodType.cs b/src/Tizen.NUI/src/internal/GradientVisualSpreadMethodType.cs index c886916..b59eed1 100755 --- a/src/Tizen.NUI/src/internal/GradientVisualSpreadMethodType.cs +++ b/src/Tizen.NUI/src/internal/GradientVisualSpreadMethodType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum GradientVisualSpreadMethodType { PAD, REFLECT, diff --git a/src/Tizen.NUI/src/internal/GradientVisualUnitsType.cs b/src/Tizen.NUI/src/internal/GradientVisualUnitsType.cs index 9f63473..f7cd136 100755 --- a/src/Tizen.NUI/src/internal/GradientVisualUnitsType.cs +++ b/src/Tizen.NUI/src/internal/GradientVisualUnitsType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum GradientVisualUnitsType { OBJECT_BOUNDING_BOX, USER_SPACE diff --git a/src/Tizen.NUI/src/internal/Handle.cs b/src/Tizen.NUI/src/internal/Handle.cs index 665db6a..7808376 100755 --- a/src/Tizen.NUI/src/internal/Handle.cs +++ b/src/Tizen.NUI/src/internal/Handle.cs @@ -24,209 +24,179 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI -{ - - public class Handle : BaseHandle - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal Handle(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Handle_SWIGUpcast(cPtr), cMemoryOwn) - { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Handle obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~Handle() - { - DisposeQueue.Instance.Add(this); - } - - public override void Dispose() - { - if (!Stage.IsInstalled()) - { - DisposeQueue.Instance.Add(this); - return; - } - - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_Handle(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - - public Handle() : this(NDalicPINVOKE.Handle_New(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - - } - public Handle(Handle handle) : this(NDalicPINVOKE.new_Handle__SWIG_1(Handle.getCPtr(handle)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public Handle Assign(Handle rhs) - { - Handle ret = new Handle(NDalicPINVOKE.Handle_Assign(swigCPtr, Handle.getCPtr(rhs)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static Handle DownCast(BaseHandle handle) - { - Handle ret = new Handle(NDalicPINVOKE.Handle_DownCast(BaseHandle.getCPtr(handle)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public bool Supports(Handle.Capability capability) - { - bool ret = NDalicPINVOKE.Handle_Supports(swigCPtr, (int)capability); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetPropertyCount() - { - uint ret = NDalicPINVOKE.Handle_GetPropertyCount(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public string GetPropertyName(int index) - { - string ret = NDalicPINVOKE.Handle_GetPropertyName(swigCPtr, index); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public int GetPropertyIndex(string name) - { - int ret = NDalicPINVOKE.Handle_GetPropertyIndex(swigCPtr, name); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public bool IsPropertyWritable(int index) - { - bool ret = NDalicPINVOKE.Handle_IsPropertyWritable(swigCPtr, index); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public bool IsPropertyAnimatable(int index) - { - bool ret = NDalicPINVOKE.Handle_IsPropertyAnimatable(swigCPtr, index); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public bool IsPropertyAConstraintInput(int index) - { - bool ret = NDalicPINVOKE.Handle_IsPropertyAConstraintInput(swigCPtr, index); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public PropertyType GetPropertyType(int index) - { - PropertyType ret = (PropertyType)NDalicPINVOKE.Handle_GetPropertyType(swigCPtr, index); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void SetProperty(int index, PropertyValue propertyValue) - { - NDalicPINVOKE.Handle_SetProperty(swigCPtr, index, PropertyValue.getCPtr(propertyValue)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public int RegisterProperty(string name, PropertyValue propertyValue) - { - int ret = NDalicPINVOKE.Handle_RegisterProperty__SWIG_0(swigCPtr, name, PropertyValue.getCPtr(propertyValue)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public int RegisterProperty(string name, PropertyValue propertyValue, PropertyAccessMode accessMode) - { - int ret = NDalicPINVOKE.Handle_RegisterProperty__SWIG_1(swigCPtr, name, PropertyValue.getCPtr(propertyValue), (int)accessMode); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public PropertyValue GetProperty(int index) - { - PropertyValue ret = new PropertyValue(NDalicPINVOKE.Handle_GetProperty(swigCPtr, index), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void GetPropertyIndices(VectorInteger indices) - { - NDalicPINVOKE.Handle_GetPropertyIndices(swigCPtr, VectorInteger.getCPtr(indices)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal PropertyNotification AddPropertyNotification(int index, PropertyCondition condition) - { - PropertyNotification ret = new PropertyNotification(NDalicPINVOKE.Handle_AddPropertyNotification__SWIG_0(swigCPtr, index, PropertyCondition.getCPtr(condition)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal PropertyNotification AddPropertyNotification(int index, int componentIndex, PropertyCondition condition) - { - PropertyNotification ret = new PropertyNotification(NDalicPINVOKE.Handle_AddPropertyNotification__SWIG_1(swigCPtr, index, componentIndex, PropertyCondition.getCPtr(condition)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void RemovePropertyNotification(PropertyNotification propertyNotification) - { - NDalicPINVOKE.Handle_RemovePropertyNotification(swigCPtr, PropertyNotification.getCPtr(propertyNotification)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void RemovePropertyNotifications() - { - NDalicPINVOKE.Handle_RemovePropertyNotifications(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void RemoveConstraints() - { - NDalicPINVOKE.Handle_RemoveConstraints__SWIG_0(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void RemoveConstraints(uint tag) - { - NDalicPINVOKE.Handle_RemoveConstraints__SWIG_1(swigCPtr, tag); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public enum Capability - { - DYNAMIC_PROPERTIES = 0x01 - } - +namespace Tizen.NUI { + +public class Handle : BaseHandle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal Handle(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Handle_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Handle() { + DisposeQueue.Instance.Add(this); + } + + public override void Dispose() { + if (!Stage.IsInstalled()) { + DisposeQueue.Instance.Add(this); + return; } + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_Handle(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + + public Handle () : this (NDalicPINVOKE.Handle_New(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + } + public Handle(Handle handle) : this(NDalicPINVOKE.new_Handle__SWIG_1(Handle.getCPtr(handle)), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public Handle Assign(Handle rhs) { + Handle ret = new Handle(NDalicPINVOKE.Handle_Assign(swigCPtr, Handle.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static Handle DownCast(BaseHandle handle) { + Handle ret = new Handle(NDalicPINVOKE.Handle_DownCast(BaseHandle.getCPtr(handle)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Supports(Handle.Capability capability) { + bool ret = NDalicPINVOKE.Handle_Supports(swigCPtr, (int)capability); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public uint GetPropertyCount() { + uint ret = NDalicPINVOKE.Handle_GetPropertyCount(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetPropertyName(int index) { + string ret = NDalicPINVOKE.Handle_GetPropertyName(swigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetPropertyIndex(string name) { + int ret = NDalicPINVOKE.Handle_GetPropertyIndex(swigCPtr, name); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsPropertyWritable(int index) { + bool ret = NDalicPINVOKE.Handle_IsPropertyWritable(swigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsPropertyAnimatable(int index) { + bool ret = NDalicPINVOKE.Handle_IsPropertyAnimatable(swigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsPropertyAConstraintInput(int index) { + bool ret = NDalicPINVOKE.Handle_IsPropertyAConstraintInput(swigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public PropertyType GetPropertyType(int index) { + PropertyType ret = (PropertyType)NDalicPINVOKE.Handle_GetPropertyType(swigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetProperty(int index, PropertyValue propertyValue) { + NDalicPINVOKE.Handle_SetProperty(swigCPtr, index, PropertyValue.getCPtr(propertyValue)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public int RegisterProperty(string name, PropertyValue propertyValue) { + int ret = NDalicPINVOKE.Handle_RegisterProperty__SWIG_0(swigCPtr, name, PropertyValue.getCPtr(propertyValue)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public int RegisterProperty(string name, PropertyValue propertyValue, PropertyAccessMode accessMode) { + int ret = NDalicPINVOKE.Handle_RegisterProperty__SWIG_1(swigCPtr, name, PropertyValue.getCPtr(propertyValue), (int)accessMode); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public PropertyValue GetProperty(int index) { + PropertyValue ret = new PropertyValue(NDalicPINVOKE.Handle_GetProperty(swigCPtr, index), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void GetPropertyIndices(VectorInteger indices) + { + NDalicPINVOKE.Handle_GetPropertyIndices(swigCPtr, VectorInteger.getCPtr(indices)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal PropertyNotification AddPropertyNotification(int index, PropertyCondition condition) + { + PropertyNotification ret = new PropertyNotification(NDalicPINVOKE.Handle_AddPropertyNotification__SWIG_0(swigCPtr, index, PropertyCondition.getCPtr(condition)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal PropertyNotification AddPropertyNotification(int index, int componentIndex, PropertyCondition condition) + { + PropertyNotification ret = new PropertyNotification(NDalicPINVOKE.Handle_AddPropertyNotification__SWIG_1(swigCPtr, index, componentIndex, PropertyCondition.getCPtr(condition)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void RemovePropertyNotification(PropertyNotification propertyNotification) + { + NDalicPINVOKE.Handle_RemovePropertyNotification(swigCPtr, PropertyNotification.getCPtr(propertyNotification)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemovePropertyNotifications() { + NDalicPINVOKE.Handle_RemovePropertyNotifications(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveConstraints() { + NDalicPINVOKE.Handle_RemoveConstraints__SWIG_0(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveConstraints(uint tag) { + NDalicPINVOKE.Handle_RemoveConstraints__SWIG_1(swigCPtr, tag); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public enum Capability { + DYNAMIC_PROPERTIES = 0x01 + } + +} + } diff --git a/src/Tizen.NUI/src/internal/Image.cs b/src/Tizen.NUI/src/internal/Image.cs index 3f9c1f6..2b0951b 100755 --- a/src/Tizen.NUI/src/internal/Image.cs +++ b/src/Tizen.NUI/src/internal/Image.cs @@ -11,9 +11,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class Image : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ImageSignal.cs b/src/Tizen.NUI/src/internal/ImageSignal.cs index 88f338c..57228d4 100755 --- a/src/Tizen.NUI/src/internal/ImageSignal.cs +++ b/src/Tizen.NUI/src/internal/ImageSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ImageSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Item.cs b/src/Tizen.NUI/src/internal/Item.cs index 35ed180..416d033 100755 --- a/src/Tizen.NUI/src/internal/Item.cs +++ b/src/Tizen.NUI/src/internal/Item.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Item : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ItemContainer.cs b/src/Tizen.NUI/src/internal/ItemContainer.cs index dc2d2a9..0cbbc0d 100755 --- a/src/Tizen.NUI/src/internal/ItemContainer.cs +++ b/src/Tizen.NUI/src/internal/ItemContainer.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ItemContainer : global::System.IDisposable, global::System.Collections.IEnumerable , global::System.Collections.Generic.IEnumerable { diff --git a/src/Tizen.NUI/src/internal/ItemFactory.cs b/src/Tizen.NUI/src/internal/ItemFactory.cs index 1a79bae..47a5ac6 100755 --- a/src/Tizen.NUI/src/internal/ItemFactory.cs +++ b/src/Tizen.NUI/src/internal/ItemFactory.cs @@ -8,7 +8,10 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ +#define DOT_NET_CORE +#if (DOT_NET_CORE) using System.Reflection; +#endif namespace Tizen.NUI { @@ -95,7 +98,7 @@ namespace Tizen.NUI NDalicPINVOKE.ItemFactory_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2); } - +#if (DOT_NET_CORE) private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) { global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, methodTypes); @@ -103,6 +106,14 @@ namespace Tizen.NUI Tizen.Log.Debug("NUI-APP", "hasDerivedMethod=" + hasDerivedMethod); return hasDerivedMethod; } +#else + private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) + { + global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null); + bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(ItemFactory)); + return hasDerivedMethod; + } +#endif private uint SwigDirectorGetNumberOfItems() { diff --git a/src/Tizen.NUI/src/internal/ItemIdContainer.cs b/src/Tizen.NUI/src/internal/ItemIdContainer.cs index 1a09aac..37267b4 100755 --- a/src/Tizen.NUI/src/internal/ItemIdContainer.cs +++ b/src/Tizen.NUI/src/internal/ItemIdContainer.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ItemIdContainer : global::System.IDisposable, global::System.Collections.IEnumerable , global::System.Collections.Generic.IList { diff --git a/src/Tizen.NUI/src/internal/ItemLayout.cs b/src/Tizen.NUI/src/internal/ItemLayout.cs index 5f88b15..45b231c 100755 --- a/src/Tizen.NUI/src/internal/ItemLayout.cs +++ b/src/Tizen.NUI/src/internal/ItemLayout.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ItemLayout : RefObject { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ItemRange.cs b/src/Tizen.NUI/src/internal/ItemRange.cs index f35666d..4b95501 100755 --- a/src/Tizen.NUI/src/internal/ItemRange.cs +++ b/src/Tizen.NUI/src/internal/ItemRange.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ItemRange : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ItemView.cs b/src/Tizen.NUI/src/internal/ItemView.cs index 5972adb..7f7d950 100755 --- a/src/Tizen.NUI/src/internal/ItemView.cs +++ b/src/Tizen.NUI/src/internal/ItemView.cs @@ -27,9 +27,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class ItemView : Scrollable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/KeyEventSignal.cs b/src/Tizen.NUI/src/internal/KeyEventSignal.cs index 252f05a..c37b3be 100755 --- a/src/Tizen.NUI/src/internal/KeyEventSignal.cs +++ b/src/Tizen.NUI/src/internal/KeyEventSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class KeyEventSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs b/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs index 5fd46da..29e6d69 100755 --- a/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs +++ b/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class KeyInputFocusManager : BaseHandle { +namespace Tizen.NUI { + +public class KeyInputFocusManager : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal KeyInputFocusManager(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.KeyInputFocusManager_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/KeyInputFocusSignal.cs b/src/Tizen.NUI/src/internal/KeyInputFocusSignal.cs index 9ffd9c1..e8406de 100755 --- a/src/Tizen.NUI/src/internal/KeyInputFocusSignal.cs +++ b/src/Tizen.NUI/src/internal/KeyInputFocusSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class KeyInputFocusSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/KeyboardPreFocusChangeSignal.cs b/src/Tizen.NUI/src/internal/KeyboardPreFocusChangeSignal.cs index 0e2ea77..e0f90dc 100755 --- a/src/Tizen.NUI/src/internal/KeyboardPreFocusChangeSignal.cs +++ b/src/Tizen.NUI/src/internal/KeyboardPreFocusChangeSignal.cs @@ -68,7 +68,7 @@ internal class PreFocusChangeSignal : global::System.IDisposable { return ret; } - public void Connect(FocusManager.PreFocusChangeEventCallback func) { + public void Connect(FocusManager.PreFocusChangeEventCallbackDelegate func) { NDalicManualPINVOKE.PreFocusChangeSignal_Connect(swigCPtr, func); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } diff --git a/src/Tizen.NUI/src/internal/LinearConstrainer.cs b/src/Tizen.NUI/src/internal/LinearConstrainer.cs index 634a560..019b617 100755 --- a/src/Tizen.NUI/src/internal/LinearConstrainer.cs +++ b/src/Tizen.NUI/src/internal/LinearConstrainer.cs @@ -1,198 +1,171 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed - -namespace Tizen.NUI -{ - - internal class LinearConstrainer : Handle - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal LinearConstrainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.LinearConstrainer_SWIGUpcast(cPtr), cMemoryOwn) - { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LinearConstrainer obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~LinearConstrainer() - { - DisposeQueue.Instance.Add(this); - } - - public override void Dispose() - { - if (!Stage.IsInstalled()) - { - DisposeQueue.Instance.Add(this); - return; - } - - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_LinearConstrainer(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - - public class Property : global::System.IDisposable - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Property(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(Property obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~Property() - { - Dispose(); - } - - public virtual void Dispose() - { - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_LinearConstrainer_Property(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - internal Property() : this(NDalicPINVOKE.new_LinearConstrainer_Property(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal static readonly int VALUE = NDalicPINVOKE.LinearConstrainer_Property_VALUE_get(); - internal static readonly int PROGRESS = NDalicPINVOKE.LinearConstrainer_Property_PROGRESS_get(); - - } - - public LinearConstrainer() : this(NDalicPINVOKE.LinearConstrainer_New(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - - } - public new static LinearConstrainer DownCast(BaseHandle handle) - { - LinearConstrainer ret = new LinearConstrainer(NDalicPINVOKE.LinearConstrainer_DownCast(BaseHandle.getCPtr(handle)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal LinearConstrainer(LinearConstrainer handle) : this(NDalicPINVOKE.new_LinearConstrainer__SWIG_1(LinearConstrainer.getCPtr(handle)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal LinearConstrainer Assign(LinearConstrainer rhs) - { - LinearConstrainer ret = new LinearConstrainer(NDalicPINVOKE.LinearConstrainer_Assign(swigCPtr, LinearConstrainer.getCPtr(rhs)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Apply(Property target, Property source, Vector2 range, Vector2 wrap) - { - NDalicPINVOKE.LinearConstrainer_Apply__SWIG_0(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range), Vector2.getCPtr(wrap)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void Apply(Property target, Property source, Vector2 range) - { - NDalicPINVOKE.LinearConstrainer_Apply__SWIG_1(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void Remove(Handle target) - { - NDalicPINVOKE.LinearConstrainer_Remove(swigCPtr, Handle.getCPtr(target)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public PropertyArray Value - { - get - { - Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); - GetProperty(LinearConstrainer.Property.VALUE).Get(temp); - return temp; - } - set - { - SetProperty(LinearConstrainer.Property.VALUE, new Tizen.NUI.PropertyValue(value)); - } - } - public PropertyArray Progress - { - get - { - Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); - GetProperty(LinearConstrainer.Property.PROGRESS).Get(temp); - return temp; - } - set - { - SetProperty(LinearConstrainer.Property.PROGRESS, new Tizen.NUI.PropertyValue(value)); - } - } - - } - -} +/** 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. +* +*/ +// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Tizen.NUI { + + internal class LinearConstrainer : Handle + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal LinearConstrainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.LinearConstrainer_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LinearConstrainer obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~LinearConstrainer() { + DisposeQueue.Instance.Add(this); + } + + public override void Dispose() { + if (!Stage.IsInstalled()) { + DisposeQueue.Instance.Add(this); + return; + } + + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_LinearConstrainer(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + + public class Property : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Property(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(Property obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Property() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_LinearConstrainer_Property(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + internal Property() : this(NDalicPINVOKE.new_LinearConstrainer_Property(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal static readonly int VALUE = NDalicPINVOKE.LinearConstrainer_Property_VALUE_get(); + internal static readonly int PROGRESS = NDalicPINVOKE.LinearConstrainer_Property_PROGRESS_get(); + + } + + public LinearConstrainer () : this (NDalicPINVOKE.LinearConstrainer_New(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + } + public new static LinearConstrainer DownCast(BaseHandle handle) { + LinearConstrainer ret = new LinearConstrainer(NDalicPINVOKE.LinearConstrainer_DownCast(BaseHandle.getCPtr(handle)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal LinearConstrainer(LinearConstrainer handle) : this(NDalicPINVOKE.new_LinearConstrainer__SWIG_1(LinearConstrainer.getCPtr(handle)), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal LinearConstrainer Assign(LinearConstrainer rhs) + { + LinearConstrainer ret = new LinearConstrainer(NDalicPINVOKE.LinearConstrainer_Assign(swigCPtr, LinearConstrainer.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Apply(Property target, Property source, Vector2 range, Vector2 wrap) { + NDalicPINVOKE.LinearConstrainer_Apply__SWIG_0(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range), Vector2.getCPtr(wrap)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void Apply(Property target, Property source, Vector2 range) { + NDalicPINVOKE.LinearConstrainer_Apply__SWIG_1(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal void Remove(Handle target) + { + NDalicPINVOKE.LinearConstrainer_Remove(swigCPtr, Handle.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public PropertyArray Value + { + get + { + Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); + GetProperty(LinearConstrainer.Property.VALUE).Get(temp); + return temp; + } + set + { + SetProperty(LinearConstrainer.Property.VALUE, new Tizen.NUI.PropertyValue(value)); + } + } + public PropertyArray Progress + { + get + { + Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); + GetProperty(LinearConstrainer.Property.PROGRESS).Get(temp); + return temp; + } + set + { + SetProperty(LinearConstrainer.Property.PROGRESS, new Tizen.NUI.PropertyValue(value)); + } + } + +} + +} diff --git a/src/Tizen.NUI/src/internal/LoadingState.cs b/src/Tizen.NUI/src/internal/LoadingState.cs index a028219..8287828 100755 --- a/src/Tizen.NUI/src/internal/LoadingState.cs +++ b/src/Tizen.NUI/src/internal/LoadingState.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum LoadingState { ResourceLoading, ResourceLoadingSucceeded, diff --git a/src/Tizen.NUI/src/internal/LongPressGestureDetectedSignal.cs b/src/Tizen.NUI/src/internal/LongPressGestureDetectedSignal.cs index a336804..0739d70 100755 --- a/src/Tizen.NUI/src/internal/LongPressGestureDetectedSignal.cs +++ b/src/Tizen.NUI/src/internal/LongPressGestureDetectedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class LongPressGestureDetectedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/LongPressGestureDetector.cs b/src/Tizen.NUI/src/internal/LongPressGestureDetector.cs index 3c824c1..632341f 100755 --- a/src/Tizen.NUI/src/internal/LongPressGestureDetector.cs +++ b/src/Tizen.NUI/src/internal/LongPressGestureDetector.cs @@ -27,9 +27,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - public class LongPressGestureDetector : GestureDetector { +using System.Runtime.InteropServices; + +public class LongPressGestureDetector : GestureDetector { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal LongPressGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.LongPressGestureDetector_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs index f38f57a..4537dd1 100755 --- a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * 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. @@ -80,7 +80,7 @@ namespace Tizen.NUI public static extern uint PreFocusChangeSignal_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_KeyboardPreFocusChangeSignal_Connect")] - public static extern void PreFocusChangeSignal_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, FocusManager.PreFocusChangeEventCallback delegate1); + public static extern void PreFocusChangeSignal_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, FocusManager.PreFocusChangeEventCallbackDelegate delegate1); [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_KeyboardPreFocusChangeSignal_Disconnect")] public static extern void PreFocusChangeSignal_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -193,6 +193,12 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Actor_Property_OPACITY_get")] public static extern int Actor_Property_OPACITY_get(); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Actor_Property_SCREEN_POSITION_get")] + public static extern int Actor_Property_SCREEN_POSITION_get(); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Actor_Property_POSITION_USES_ANCHOR_POINT_get")] + public static extern int Actor_Property_POSITION_USES_ANCHOR_POINT_get(); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_View_Property_TOOLTIP_get")] public static extern int View_Property_TOOLTIP_get(); @@ -202,6 +208,18 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_View_Property_SUB_STATE_get")] public static extern int View_Property_SUB_STATE_get(); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_View_Property_LEFT_FOCUSABLE_ACTOR_ID_get")] + public static extern int View_Property_LEFT_FOCUSABLE_ACTOR_ID_get(); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get")] + public static extern int View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get(); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_View_Property_UP_FOCUSABLE_ACTOR_ID_get")] + public static extern int View_Property_UP_FOCUSABLE_ACTOR_ID_get(); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_View_Property_DOWN_FOCUSABLE_ACTOR_ID_get")] + public static extern int View_Property_DOWN_FOCUSABLE_ACTOR_ID_get(); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_ItemView_Property_LAYOUT_get")] public static extern int ItemView_Property_LAYOUT_get(); diff --git a/src/Tizen.NUI/src/internal/Matrix.cs b/src/Tizen.NUI/src/internal/Matrix.cs index cb63132..8ca964e 100755 --- a/src/Tizen.NUI/src/internal/Matrix.cs +++ b/src/Tizen.NUI/src/internal/Matrix.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Matrix : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Matrix3.cs b/src/Tizen.NUI/src/internal/Matrix3.cs index d317375..c8eae49 100755 --- a/src/Tizen.NUI/src/internal/Matrix3.cs +++ b/src/Tizen.NUI/src/internal/Matrix3.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Matrix3 : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/MeshVisualShadingModeValue.cs b/src/Tizen.NUI/src/internal/MeshVisualShadingModeValue.cs index 75486af..1eef572 100755 --- a/src/Tizen.NUI/src/internal/MeshVisualShadingModeValue.cs +++ b/src/Tizen.NUI/src/internal/MeshVisualShadingModeValue.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum MeshVisualShadingModeValue { TEXTURELESS_WITH_DIFFUSE_LIGHTING, TEXTURED_WITH_SPECULAR_LIGHTING, diff --git a/src/Tizen.NUI/src/internal/Meta.cs b/src/Tizen.NUI/src/internal/Meta.cs index 3d059c4..860d90c 100755 --- a/src/Tizen.NUI/src/internal/Meta.cs +++ b/src/Tizen.NUI/src/internal/Meta.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum Meta { DIMENSION_COUNT = 2 } diff --git a/src/Tizen.NUI/src/internal/Model3dView.cs b/src/Tizen.NUI/src/internal/Model3dView.cs index 3aace0c..a428cdc 100755 --- a/src/Tizen.NUI/src/internal/Model3dView.cs +++ b/src/Tizen.NUI/src/internal/Model3dView.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Model3dView : View { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/NDalic.cs b/src/Tizen.NUI/src/internal/NDalic.cs index e037ec0..10c135e 100755 --- a/src/Tizen.NUI/src/internal/NDalic.cs +++ b/src/Tizen.NUI/src/internal/NDalic.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class NDalic { public static uint int_to_uint(int x) { uint ret = NDalicPINVOKE.int_to_uint(x); @@ -967,6 +967,36 @@ System.IntPtr ip2 = System.Runtime.InteropServices.Marshal.GetFunctionPointerFor if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + public static void Raise(Actor actor) { + NDalicPINVOKE.Raise(Actor.getCPtr(actor)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void Lower(Actor actor) { + NDalicPINVOKE.Lower(Actor.getCPtr(actor)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void RaiseToTop(Actor actor) { + NDalicPINVOKE.RaiseToTop(Actor.getCPtr(actor)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void LowerToBottom(Actor actor) { + NDalicPINVOKE.LowerToBottom(Actor.getCPtr(actor)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void RaiseAbove(Actor actor, Actor target) { + NDalicPINVOKE.RaiseAbove(Actor.getCPtr(actor), Actor.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void LowerBelow(Actor actor, Actor target) { + NDalicPINVOKE.LowerBelow(Actor.getCPtr(actor), Actor.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + public static FittingModeType FittingModeDefault { get { FittingModeType ret = (FittingModeType)NDalicPINVOKE.FittingModeDefault_get(); diff --git a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs index 42087f0..4775b9f 100755 --- a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs @@ -2396,6 +2396,9 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Texture_GetHeight")] public static extern uint Texture_GetHeight(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_Texture__SWIG_2")] + public static extern global::System.IntPtr new_Texture__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Sampler_New")] public static extern global::System.IntPtr Sampler_New(); @@ -3728,6 +3731,24 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_UnparentAndReset")] public static extern void UnparentAndReset(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Raise")] + public static extern void Raise(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Lower")] + public static extern void Lower(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_RaiseToTop")] + public static extern void RaiseToTop(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_LowerToBottom")] + public static extern void LowerToBottom(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_RaiseAbove")] + public static extern void RaiseAbove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_LowerBelow")] + public static extern void LowerBelow(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Layer_Property_CLIPPING_ENABLE_get")] public static extern int Layer_Property_CLIPPING_ENABLE_get(); @@ -5579,30 +5600,6 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_VoidSignal_Emit")] public static extern void VoidSignal_Emit(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_BoolSignal")] - public static extern global::System.IntPtr new_BoolSignal(); - - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_BoolSignal")] - public static extern void delete_BoolSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_BoolSignal_Empty")] - public static extern bool BoolSignal_Empty(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_BoolSignal_GetConnectionCount")] - public static extern uint BoolSignal_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_BoolSignal_Connect__SWIG_0")] - public static extern void BoolSignal_Connect__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_BoolSignal_Disconnect")] - public static extern void BoolSignal_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_BoolSignal_Connect__SWIG_4")] - public static extern void BoolSignal_Connect__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_BoolSignal_Emit")] - public static extern bool BoolSignal_Emit(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_FloatSignal_Empty")] public static extern bool FloatSignal_Empty(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -6203,6 +6200,12 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Application_GetWindow")] public static extern global::System.IntPtr Application_GetWindow(global::System.Runtime.InteropServices.HandleRef jarg1); + + //window handle test + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Application_GetWindowHandleFromNUI")] + public static extern global::System.IntPtr Application_GetWindowHandleFromNUI(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Application_ReplaceWindow")] public static extern void Application_ReplaceWindow(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3); @@ -6296,30 +6299,27 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_ApplicationControlSignal")] public static extern void delete_ApplicationControlSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_TimerSignalType")] - public static extern global::System.IntPtr new_TimerSignalType(); - - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_TimerSignalType")] - public static extern void delete_TimerSignalType(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TimerSignalType_Empty")] public static extern bool TimerSignalType_Empty(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TimerSignalType_GetConnectionCount")] public static extern uint TimerSignalType_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TimerSignalType_Connect__SWIG_0")] - public static extern void TimerSignalType_Connect__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_TimerSignalType_Connect")] + public static extern void TimerSignalType_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_TimerSignalType_Disconnect")] public static extern void TimerSignalType_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_TimerSignalType_Connect__SWIG_4")] - public static extern void TimerSignalType_Connect__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TimerSignalType_Emit")] public static extern bool TimerSignalType_Emit(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_TimerSignalType")] + public static extern global::System.IntPtr new_TimerSignalType(); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_TimerSignalType")] + public static extern void delete_TimerSignalType(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_VISUAL_PROPERTY_TYPE_get")] public static extern int VISUAL_PROPERTY_TYPE_get(); @@ -10409,6 +10409,27 @@ class NDalicPINVOKE { [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_PagePanSignal")] public static extern void delete_PagePanSignal(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ProgressBarValueChangedSignal_Empty")] + public static extern bool ProgressBarValueChangedSignal_Empty(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ProgressBarValueChangedSignal_GetConnectionCount")] + public static extern uint ProgressBarValueChangedSignal_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ProgressBarValueChangedSignal_Connect")] + public static extern void ProgressBarValueChangedSignal_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_ProgressBarValueChangedSignal_Disconnect")] + public static extern void ProgressBarValueChangedSignal_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_ProgressBarValueChangedSignal_Emit")] + public static extern void ProgressBarValueChangedSignal_Emit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3, float jarg4); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_ProgressBarValueChangedSignal")] + public static extern global::System.IntPtr new_ProgressBarValueChangedSignal(); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_delete_ProgressBarValueChangedSignal")] + public static extern void delete_ProgressBarValueChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ScrollViewSnapStartedSignal_Empty")] public static extern bool ScrollViewSnapStartedSignal_Empty(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/src/Tizen.NUI/src/internal/NativeImage.cs b/src/Tizen.NUI/src/internal/NativeImage.cs index 50c130d..9c0d2fe 100755 --- a/src/Tizen.NUI/src/internal/NativeImage.cs +++ b/src/Tizen.NUI/src/internal/NativeImage.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class NativeImage : Image { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/NativeImageInterface.cs b/src/Tizen.NUI/src/internal/NativeImageInterface.cs index 9c66963..9d5c582 100755 --- a/src/Tizen.NUI/src/internal/NativeImageInterface.cs +++ b/src/Tizen.NUI/src/internal/NativeImageInterface.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class NativeImageInterface : RefObject { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/NinePatchImage.cs b/src/Tizen.NUI/src/internal/NinePatchImage.cs index 5b715a2..bf29fca 100755 --- a/src/Tizen.NUI/src/internal/NinePatchImage.cs +++ b/src/Tizen.NUI/src/internal/NinePatchImage.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class NinePatchImage : ResourceImage { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ObjectCreatedSignal.cs b/src/Tizen.NUI/src/internal/ObjectCreatedSignal.cs index cd7ebbd..8cf3966 100755 --- a/src/Tizen.NUI/src/internal/ObjectCreatedSignal.cs +++ b/src/Tizen.NUI/src/internal/ObjectCreatedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ObjectCreatedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ObjectDestroyedSignal.cs b/src/Tizen.NUI/src/internal/ObjectDestroyedSignal.cs index ac1a3f3..6f59b7c 100755 --- a/src/Tizen.NUI/src/internal/ObjectDestroyedSignal.cs +++ b/src/Tizen.NUI/src/internal/ObjectDestroyedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ObjectDestroyedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ObjectRegistry.cs b/src/Tizen.NUI/src/internal/ObjectRegistry.cs index a581227..05cb113 100755 --- a/src/Tizen.NUI/src/internal/ObjectRegistry.cs +++ b/src/Tizen.NUI/src/internal/ObjectRegistry.cs @@ -11,9 +11,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class ObjectRegistry : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PaddingType.cs b/src/Tizen.NUI/src/internal/PaddingType.cs index d1f3caf..fb40fce 100755 --- a/src/Tizen.NUI/src/internal/PaddingType.cs +++ b/src/Tizen.NUI/src/internal/PaddingType.cs @@ -8,281 +8,242 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI -{ - - public class PaddingType : global::System.IDisposable - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal PaddingType(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(PaddingType obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~PaddingType() - { - DisposeQueue.Instance.Add(this); - } - - public virtual void Dispose() - { - if (!Stage.IsInstalled()) - { - DisposeQueue.Instance.Add(this); - return; - } - - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_PaddingType(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - - public static bool operator ==(PaddingType a, PaddingType b) - { - // If both are null, or both are same instance, return true. - if (System.Object.ReferenceEquals(a, b)) - { - return true; - } - - // If one is null, but not both, return false. - if (((object)a == null) || ((object)b == null)) - { - return false; - } - - // Return true if the fields match: - return (System.Math.Abs(a.Left - b.Left) < NDalic.GetRangedEpsilon(a.Left, b.Left)) && - (System.Math.Abs(a.Right - b.Right) < NDalic.GetRangedEpsilon(a.Right, b.Right)) && - (System.Math.Abs(a.Bottom - b.Bottom) < NDalic.GetRangedEpsilon(a.Bottom, b.Bottom)) && - (System.Math.Abs(a.Top - b.Top) < NDalic.GetRangedEpsilon(a.Top, b.Top)); - } - - public static bool operator !=(PaddingType a, PaddingType b) - { - return !(a == b); - } - - ///< The Left value - public float Left - { - set - { - left = value; - } - get - { - return left; - } - } - - ///< The Right value - public float Right - { - set - { - right = value; - } - get - { - return right; - } - } - - ///< The Bottom value - public float Bottom - { - set - { - bottom = value; - } - get - { - return bottom; - } - } - - ///< The Top value - public float Top - { - set - { - top = value; - } - get - { - return top; - } - } - - - public PaddingType() : this(NDalicPINVOKE.new_PaddingType__SWIG_0(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public PaddingType(float x, float y, float width, float height) : this(NDalicPINVOKE.new_PaddingType__SWIG_1(x, y, width, height), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public PaddingType(PaddingType rhs) : this(NDalicPINVOKE.new_PaddingType__SWIG_2(PaddingType.getCPtr(rhs)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public PaddingType Assign(PaddingType rhs) - { - PaddingType ret = new PaddingType(NDalicPINVOKE.PaddingType_Assign(swigCPtr, PaddingType.getCPtr(rhs)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Set(float newX, float newY, float newWidth, float newHeight) - { - NDalicPINVOKE.PaddingType_Set(swigCPtr, newX, newY, newWidth, newHeight); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - private float x - { - set - { - NDalicPINVOKE.PaddingType_x_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_x_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - private float left - { - set - { - NDalicPINVOKE.PaddingType_left_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_left_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - private float y - { - set - { - NDalicPINVOKE.PaddingType_y_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_y_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - private float right - { - set - { - NDalicPINVOKE.PaddingType_right_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_right_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - private float width - { - set - { - NDalicPINVOKE.PaddingType_width_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_width_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - private float bottom - { - set - { - NDalicPINVOKE.PaddingType_bottom_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_bottom_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - private float height - { - set - { - NDalicPINVOKE.PaddingType_height_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_height_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - private float top - { - set - { - NDalicPINVOKE.PaddingType_top_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = NDalicPINVOKE.PaddingType_top_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - +namespace Tizen.NUI { + +public class PaddingType : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal PaddingType(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(PaddingType obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~PaddingType() { + DisposeQueue.Instance.Add(this); + } + + public virtual void Dispose() { + if (!Stage.IsInstalled()) { + DisposeQueue.Instance.Add(this); + return; + } + + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_PaddingType(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + + public static bool operator ==(PaddingType a, PaddingType b) + { + // If both are null, or both are same instance, return true. + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + // If one is null, but not both, return false. + if (((object)a == null) || ((object)b == null)) + { + return false; + } + + // Return true if the fields match: + return ( System.Math.Abs( a.Left - b.Left ) < NDalic.GetRangedEpsilon(a.Left, b.Left) )&& + ( System.Math.Abs( a.Right - b.Right ) < NDalic.GetRangedEpsilon(a.Right, b.Right) )&& + ( System.Math.Abs( a.Bottom - b.Bottom ) < NDalic.GetRangedEpsilon(a.Bottom, b.Bottom) )&& + ( System.Math.Abs( a.Top - b.Top ) < NDalic.GetRangedEpsilon(a.Top, b.Top) ); + } + + public static bool operator !=(PaddingType a, PaddingType b) + { + return !(a == b); + } + + ///< The Left value + public float Left + { + set + { + left = value; + } + get + { + return left; + } + } + + ///< The Right value + public float Right + { + set + { + right = value; + } + get + { + return right; + } + } + + ///< The Bottom value + public float Bottom + { + set + { + bottom = value; + } + get + { + return bottom; + } + } + + ///< The Top value + public float Top + { + set + { + top = value; + } + get + { + return top; + } } + + public PaddingType() : this(NDalicPINVOKE.new_PaddingType__SWIG_0(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public PaddingType(float x, float y, float width, float height) : this(NDalicPINVOKE.new_PaddingType__SWIG_1(x, y, width, height), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public PaddingType(PaddingType rhs) : this(NDalicPINVOKE.new_PaddingType__SWIG_2(PaddingType.getCPtr(rhs)), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public PaddingType Assign(PaddingType rhs) { + PaddingType ret = new PaddingType(NDalicPINVOKE.PaddingType_Assign(swigCPtr, PaddingType.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Set(float newX, float newY, float newWidth, float newHeight) { + NDalicPINVOKE.PaddingType_Set(swigCPtr, newX, newY, newWidth, newHeight); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + private float x { + set { + NDalicPINVOKE.PaddingType_x_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_x_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + private float left { + set { + NDalicPINVOKE.PaddingType_left_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_left_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + private float y { + set { + NDalicPINVOKE.PaddingType_y_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_y_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + private float right { + set { + NDalicPINVOKE.PaddingType_right_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_right_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + private float width { + set { + NDalicPINVOKE.PaddingType_width_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_width_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + private float bottom { + set { + NDalicPINVOKE.PaddingType_bottom_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_bottom_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + private float height { + set { + NDalicPINVOKE.PaddingType_height_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_height_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + private float top { + set { + NDalicPINVOKE.PaddingType_top_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.PaddingType_top_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + +} + } diff --git a/src/Tizen.NUI/src/internal/PageFactory.cs b/src/Tizen.NUI/src/internal/PageFactory.cs index 37cd089..120b776 100755 --- a/src/Tizen.NUI/src/internal/PageFactory.cs +++ b/src/Tizen.NUI/src/internal/PageFactory.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PageFactory : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/PagePanSignal.cs b/src/Tizen.NUI/src/internal/PagePanSignal.cs index 4f92a9d..e679654 100755 --- a/src/Tizen.NUI/src/internal/PagePanSignal.cs +++ b/src/Tizen.NUI/src/internal/PagePanSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PagePanSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/PageTurnLandscapeView.cs b/src/Tizen.NUI/src/internal/PageTurnLandscapeView.cs index 7a2d2a8..59ecd39 100755 --- a/src/Tizen.NUI/src/internal/PageTurnLandscapeView.cs +++ b/src/Tizen.NUI/src/internal/PageTurnLandscapeView.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PageTurnLandscapeView : PageTurnView { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PageTurnPortraitView.cs b/src/Tizen.NUI/src/internal/PageTurnPortraitView.cs index 219bca0..d1ce422 100755 --- a/src/Tizen.NUI/src/internal/PageTurnPortraitView.cs +++ b/src/Tizen.NUI/src/internal/PageTurnPortraitView.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PageTurnPortraitView : PageTurnView { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PageTurnSignal.cs b/src/Tizen.NUI/src/internal/PageTurnSignal.cs index f500b1b..9debeaa 100755 --- a/src/Tizen.NUI/src/internal/PageTurnSignal.cs +++ b/src/Tizen.NUI/src/internal/PageTurnSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PageTurnSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/PageTurnView.cs b/src/Tizen.NUI/src/internal/PageTurnView.cs index 694275f..fea0fa9 100755 --- a/src/Tizen.NUI/src/internal/PageTurnView.cs +++ b/src/Tizen.NUI/src/internal/PageTurnView.cs @@ -11,9 +11,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class PageTurnView : View { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PanGestureDetectedSignal.cs b/src/Tizen.NUI/src/internal/PanGestureDetectedSignal.cs index c72c53f..8777c5d 100755 --- a/src/Tizen.NUI/src/internal/PanGestureDetectedSignal.cs +++ b/src/Tizen.NUI/src/internal/PanGestureDetectedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PanGestureDetectedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/PanGestureDetector.cs b/src/Tizen.NUI/src/internal/PanGestureDetector.cs index 883b69b..387f914 100755 --- a/src/Tizen.NUI/src/internal/PanGestureDetector.cs +++ b/src/Tizen.NUI/src/internal/PanGestureDetector.cs @@ -24,463 +24,406 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI -{ - - using System; - using System.Runtime.InteropServices; - - - public class PanGestureDetector : GestureDetector - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal PanGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PanGestureDetector_SWIGUpcast(cPtr), cMemoryOwn) - { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PanGestureDetector obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~PanGestureDetector() - { - DisposeQueue.Instance.Add(this); - } - - public override void Dispose() - { - if (!Stage.IsInstalled()) - { - DisposeQueue.Instance.Add(this); - return; - } - - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_PanGestureDetector(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - - - - public class DetectedEventArgs : EventArgs - { - private Actor _actor; - private PanGesture _panGesture; - - public Actor Actor - { - get - { - return _actor; - } - set - { - _actor = value; - } - } - - public PanGesture PanGesture - { - get - { - return _panGesture; - } - set - { - _panGesture = value; - } - } - } - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr panGesture); - private DaliEventHandler _panGestureEventHandler; - private DetectedCallbackDelegate _panGestureCallbackDelegate; - - - public event DaliEventHandler Detected - { - add - { - lock (this) - { - // Restricted to only one listener - if (_panGestureEventHandler == null) - { - _panGestureEventHandler += value; - - _panGestureCallbackDelegate = new DetectedCallbackDelegate(OnPanGestureDetected); - this.DetectedSignal().Connect(_panGestureCallbackDelegate); - } - } - } - - remove - { - lock (this) - { - if (_panGestureEventHandler != null) - { - this.DetectedSignal().Disconnect(_panGestureCallbackDelegate); - } - - _panGestureEventHandler -= value; - } - } - } - - private void OnPanGestureDetected(IntPtr actor, IntPtr panGesture) - { - DetectedEventArgs e = new DetectedEventArgs(); - - // Populate all members of "e" (PanGestureEventArgs) with real data - e.Actor = Actor.GetActorFromPtr(actor); - e.PanGesture = Tizen.NUI.PanGesture.GetPanGestureFromPtr(panGesture); - - if (_panGestureEventHandler != null) - { - //here we send all data to user event handlers - _panGestureEventHandler(this, e); - } - - } - - - public static PanGestureDetector GetPanGestureDetectorFromPtr(global::System.IntPtr cPtr) - { - PanGestureDetector ret = new PanGestureDetector(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - - public class Property : global::System.IDisposable - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Property(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(Property obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~Property() - { - Dispose(); - } - - public virtual void Dispose() - { - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_PanGestureDetector_Property(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public Property() : this(NDalicPINVOKE.new_PanGestureDetector_Property(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public static readonly int SCREEN_POSITION = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_POSITION_get(); - public static readonly int SCREEN_DISPLACEMENT = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_DISPLACEMENT_get(); - public static readonly int SCREEN_VELOCITY = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_VELOCITY_get(); - public static readonly int LOCAL_POSITION = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_POSITION_get(); - public static readonly int LOCAL_DISPLACEMENT = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_DISPLACEMENT_get(); - public static readonly int LOCAL_VELOCITY = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_VELOCITY_get(); - public static readonly int PANNING = NDalicPINVOKE.PanGestureDetector_Property_PANNING_get(); - - } - - public static Radian DIRECTION_LEFT - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_LEFT_get(); - Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static Radian DIRECTION_RIGHT - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_RIGHT_get(); - Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static Radian DIRECTION_UP - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_UP_get(); - Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static Radian DIRECTION_DOWN - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_DOWN_get(); - Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static Radian DIRECTION_HORIZONTAL - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_HORIZONTAL_get(); - Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static Radian DIRECTION_VERTICAL - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_VERTICAL_get(); - Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static Radian DEFAULT_THRESHOLD - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DEFAULT_THRESHOLD_get(); - Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public PanGestureDetector() : this(NDalicPINVOKE.PanGestureDetector_New(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - - } - public new static PanGestureDetector DownCast(BaseHandle handle) - { - PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.PanGestureDetector_DownCast(BaseHandle.getCPtr(handle)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public PanGestureDetector(PanGestureDetector handle) : this(NDalicPINVOKE.new_PanGestureDetector__SWIG_1(PanGestureDetector.getCPtr(handle)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public PanGestureDetector Assign(PanGestureDetector rhs) - { - PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.PanGestureDetector_Assign(swigCPtr, PanGestureDetector.getCPtr(rhs)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void SetMinimumTouchesRequired(uint minimum) - { - NDalicPINVOKE.PanGestureDetector_SetMinimumTouchesRequired(swigCPtr, minimum); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void SetMaximumTouchesRequired(uint maximum) - { - NDalicPINVOKE.PanGestureDetector_SetMaximumTouchesRequired(swigCPtr, maximum); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public uint GetMinimumTouchesRequired() - { - uint ret = NDalicPINVOKE.PanGestureDetector_GetMinimumTouchesRequired(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetMaximumTouchesRequired() - { - uint ret = NDalicPINVOKE.PanGestureDetector_GetMaximumTouchesRequired(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void AddAngle(Radian angle, Radian threshold) - { - NDalicPINVOKE.PanGestureDetector_AddAngle__SWIG_0(swigCPtr, Radian.getCPtr(angle), Radian.getCPtr(threshold)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void AddAngle(Radian angle) - { - NDalicPINVOKE.PanGestureDetector_AddAngle__SWIG_1(swigCPtr, Radian.getCPtr(angle)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void AddDirection(Radian direction, Radian threshold) - { - NDalicPINVOKE.PanGestureDetector_AddDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void AddDirection(Radian direction) - { - NDalicPINVOKE.PanGestureDetector_AddDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public uint GetAngleCount() - { - uint ret = NDalicPINVOKE.PanGestureDetector_GetAngleCount(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AngleThresholdPair GetAngle(uint index) - { - AngleThresholdPair ret = new AngleThresholdPair(NDalicPINVOKE.PanGestureDetector_GetAngle(swigCPtr, index), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void ClearAngles() - { - NDalicPINVOKE.PanGestureDetector_ClearAngles(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void RemoveAngle(Radian angle) - { - NDalicPINVOKE.PanGestureDetector_RemoveAngle(swigCPtr, Radian.getCPtr(angle)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void RemoveDirection(Radian direction) - { - NDalicPINVOKE.PanGestureDetector_RemoveDirection(swigCPtr, Radian.getCPtr(direction)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal PanGestureDetectedSignal DetectedSignal() - { - PanGestureDetectedSignal ret = new PanGestureDetectedSignal(NDalicPINVOKE.PanGestureDetector_DetectedSignal(swigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void SetPanGestureProperties(PanGesture pan) - { - NDalicPINVOKE.PanGestureDetector_SetPanGestureProperties(PanGesture.getCPtr(pan)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public Vector2 ScreenPosition - { - get - { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(PanGestureDetector.Property.SCREEN_POSITION).Get(temp); - return temp; - } - } - public Vector2 ScreenDisplacement - { - get - { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(PanGestureDetector.Property.SCREEN_DISPLACEMENT).Get(temp); - return temp; - } - } - public Vector2 ScreenVelocity - { - get - { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(PanGestureDetector.Property.SCREEN_VELOCITY).Get(temp); - return temp; - } - } - public Vector2 LocalPosition - { - get - { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(PanGestureDetector.Property.LOCAL_POSITION).Get(temp); - return temp; - } - } - public Vector2 LocalDisplacement - { - get - { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(PanGestureDetector.Property.LOCAL_DISPLACEMENT).Get(temp); - return temp; - } - } - public Vector2 LocalVelocity - { - get - { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(PanGestureDetector.Property.LOCAL_VELOCITY).Get(temp); - return temp; - } - } - public bool Panning - { - get - { - bool temp = false; - GetProperty(PanGestureDetector.Property.PANNING).Get(ref temp); - return temp; - } - } +namespace Tizen.NUI { + +using System; +using System.Runtime.InteropServices; + + +public class PanGestureDetector : GestureDetector { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal PanGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PanGestureDetector_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PanGestureDetector obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~PanGestureDetector() { + DisposeQueue.Instance.Add(this); + } + + public override void Dispose() { + if (!Stage.IsInstalled()) { + DisposeQueue.Instance.Add(this); + return; + } + + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_PanGestureDetector(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + + + +public class DetectedEventArgs : EventArgs +{ + private Actor _actor; + private PanGesture _panGesture; + + public Actor Actor + { + get + { + return _actor; + } + set + { + _actor = value; + } + } + + public PanGesture PanGesture + { + get + { + return _panGesture; + } + set + { + _panGesture = value; + } + } +} + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr panGesture); + private DaliEventHandler _panGestureEventHandler; + private DetectedCallbackDelegate _panGestureCallbackDelegate; + + + public event DaliEventHandler Detected + { + add + { + lock(this) + { + // Restricted to only one listener + if (_panGestureEventHandler == null) + { + _panGestureEventHandler += value; + + _panGestureCallbackDelegate = new DetectedCallbackDelegate(OnPanGestureDetected); + this.DetectedSignal().Connect(_panGestureCallbackDelegate); + } + } + } + + remove + { + lock(this) + { + if (_panGestureEventHandler != null) + { + this.DetectedSignal().Disconnect(_panGestureCallbackDelegate); + } + + _panGestureEventHandler -= value; + } + } + } + + private void OnPanGestureDetected(IntPtr actor, IntPtr panGesture) + { + DetectedEventArgs e = new DetectedEventArgs(); + + // Populate all members of "e" (PanGestureEventArgs) with real data + e.Actor = Actor.GetActorFromPtr(actor); + e.PanGesture = Tizen.NUI.PanGesture.GetPanGestureFromPtr(panGesture); + + if (_panGestureEventHandler != null) + { + //here we send all data to user event handlers + _panGestureEventHandler(this, e); + } + + } + + +public static PanGestureDetector GetPanGestureDetectorFromPtr(global::System.IntPtr cPtr) { + PanGestureDetector ret = new PanGestureDetector(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + + public class Property : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Property(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(Property obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } + + ~Property() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_PanGestureDetector_Property(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public Property() : this(NDalicPINVOKE.new_PanGestureDetector_Property(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public static readonly int SCREEN_POSITION = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_POSITION_get(); + public static readonly int SCREEN_DISPLACEMENT = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_DISPLACEMENT_get(); + public static readonly int SCREEN_VELOCITY = NDalicPINVOKE.PanGestureDetector_Property_SCREEN_VELOCITY_get(); + public static readonly int LOCAL_POSITION = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_POSITION_get(); + public static readonly int LOCAL_DISPLACEMENT = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_DISPLACEMENT_get(); + public static readonly int LOCAL_VELOCITY = NDalicPINVOKE.PanGestureDetector_Property_LOCAL_VELOCITY_get(); + public static readonly int PANNING = NDalicPINVOKE.PanGestureDetector_Property_PANNING_get(); + + } + + public static Radian DIRECTION_LEFT { + get { + global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_LEFT_get(); + Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static Radian DIRECTION_RIGHT { + get { + global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_RIGHT_get(); + Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static Radian DIRECTION_UP { + get { + global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_UP_get(); + Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static Radian DIRECTION_DOWN { + get { + global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_DOWN_get(); + Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static Radian DIRECTION_HORIZONTAL { + get { + global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_HORIZONTAL_get(); + Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static Radian DIRECTION_VERTICAL { + get { + global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DIRECTION_VERTICAL_get(); + Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static Radian DEFAULT_THRESHOLD { + get { + global::System.IntPtr cPtr = NDalicPINVOKE.PanGestureDetector_DEFAULT_THRESHOLD_get(); + Radian ret = (cPtr == global::System.IntPtr.Zero) ? null : new Radian(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public PanGestureDetector () : this (NDalicPINVOKE.PanGestureDetector_New(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + } + public new static PanGestureDetector DownCast(BaseHandle handle) { + PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.PanGestureDetector_DownCast(BaseHandle.getCPtr(handle)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public PanGestureDetector(PanGestureDetector handle) : this(NDalicPINVOKE.new_PanGestureDetector__SWIG_1(PanGestureDetector.getCPtr(handle)), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public PanGestureDetector Assign(PanGestureDetector rhs) { + PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.PanGestureDetector_Assign(swigCPtr, PanGestureDetector.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetMinimumTouchesRequired(uint minimum) { + NDalicPINVOKE.PanGestureDetector_SetMinimumTouchesRequired(swigCPtr, minimum); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void SetMaximumTouchesRequired(uint maximum) { + NDalicPINVOKE.PanGestureDetector_SetMaximumTouchesRequired(swigCPtr, maximum); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public uint GetMinimumTouchesRequired() { + uint ret = NDalicPINVOKE.PanGestureDetector_GetMinimumTouchesRequired(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public uint GetMaximumTouchesRequired() { + uint ret = NDalicPINVOKE.PanGestureDetector_GetMaximumTouchesRequired(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void AddAngle(Radian angle, Radian threshold) { + NDalicPINVOKE.PanGestureDetector_AddAngle__SWIG_0(swigCPtr, Radian.getCPtr(angle), Radian.getCPtr(threshold)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void AddAngle(Radian angle) { + NDalicPINVOKE.PanGestureDetector_AddAngle__SWIG_1(swigCPtr, Radian.getCPtr(angle)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void AddDirection(Radian direction, Radian threshold) { + NDalicPINVOKE.PanGestureDetector_AddDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void AddDirection(Radian direction) { + NDalicPINVOKE.PanGestureDetector_AddDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public uint GetAngleCount() { + uint ret = NDalicPINVOKE.PanGestureDetector_GetAngleCount(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal AngleThresholdPair GetAngle(uint index) + { + AngleThresholdPair ret = new AngleThresholdPair(NDalicPINVOKE.PanGestureDetector_GetAngle(swigCPtr, index), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void ClearAngles() { + NDalicPINVOKE.PanGestureDetector_ClearAngles(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveAngle(Radian angle) { + NDalicPINVOKE.PanGestureDetector_RemoveAngle(swigCPtr, Radian.getCPtr(angle)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RemoveDirection(Radian direction) { + NDalicPINVOKE.PanGestureDetector_RemoveDirection(swigCPtr, Radian.getCPtr(direction)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal PanGestureDetectedSignal DetectedSignal() + { + PanGestureDetectedSignal ret = new PanGestureDetectedSignal(NDalicPINVOKE.PanGestureDetector_DetectedSignal(swigCPtr), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void SetPanGestureProperties(PanGesture pan) { + NDalicPINVOKE.PanGestureDetector_SetPanGestureProperties(PanGesture.getCPtr(pan)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public Vector2 ScreenPosition + { + get + { + Vector2 temp = new Vector2(0.0f,0.0f); + GetProperty( PanGestureDetector.Property.SCREEN_POSITION).Get( temp ); + return temp; + } +} public Vector2 ScreenDisplacement + { + get + { + Vector2 temp = new Vector2(0.0f,0.0f); + GetProperty( PanGestureDetector.Property.SCREEN_DISPLACEMENT).Get( temp ); + return temp; + } +} public Vector2 ScreenVelocity + { + get + { + Vector2 temp = new Vector2(0.0f,0.0f); + GetProperty( PanGestureDetector.Property.SCREEN_VELOCITY).Get( temp ); + return temp; + } +} public Vector2 LocalPosition + { + get + { + Vector2 temp = new Vector2(0.0f,0.0f); + GetProperty( PanGestureDetector.Property.LOCAL_POSITION).Get( temp ); + return temp; + } +} public Vector2 LocalDisplacement + { + get + { + Vector2 temp = new Vector2(0.0f,0.0f); + GetProperty( PanGestureDetector.Property.LOCAL_DISPLACEMENT).Get( temp ); + return temp; + } +} public Vector2 LocalVelocity + { + get + { + Vector2 temp = new Vector2(0.0f,0.0f); + GetProperty( PanGestureDetector.Property.LOCAL_VELOCITY).Get( temp ); + return temp; + } +} public bool Panning + { + get + { + bool temp = false; + GetProperty( PanGestureDetector.Property.PANNING).Get( ref temp ); + return temp; + } +} +} } diff --git a/src/Tizen.NUI/src/internal/PathConstrainer.cs b/src/Tizen.NUI/src/internal/PathConstrainer.cs index e973a22..62255bd 100755 --- a/src/Tizen.NUI/src/internal/PathConstrainer.cs +++ b/src/Tizen.NUI/src/internal/PathConstrainer.cs @@ -1,215 +1,187 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed - - -namespace Tizen.NUI -{ - - internal class PathConstrainer : Handle - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal PathConstrainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PathConstrainer_SWIGUpcast(cPtr), cMemoryOwn) - { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PathConstrainer obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~PathConstrainer() - { - DisposeQueue.Instance.Add(this); - } - - public override void Dispose() - { - if (!Stage.IsInstalled()) - { - DisposeQueue.Instance.Add(this); - return; - } - - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_PathConstrainer(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - - public class Property : global::System.IDisposable - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Property(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(Property obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~Property() - { - Dispose(); - } - - public virtual void Dispose() - { - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_PathConstrainer_Property(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public Property() : this(NDalicPINVOKE.new_PathConstrainer_Property(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal static readonly int FORWARD = NDalicPINVOKE.PathConstrainer_Property_FORWARD_get(); - internal static readonly int POINTS = NDalicPINVOKE.PathConstrainer_Property_POINTS_get(); - internal static readonly int CONTROL_POINTS = NDalicPINVOKE.PathConstrainer_Property_CONTROL_POINTS_get(); - - } - - public PathConstrainer() : this(NDalicPINVOKE.PathConstrainer_New(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - - } - public new static PathConstrainer DownCast(BaseHandle handle) - { - PathConstrainer ret = new PathConstrainer(NDalicPINVOKE.PathConstrainer_DownCast(BaseHandle.getCPtr(handle)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal PathConstrainer(PathConstrainer handle) : this(NDalicPINVOKE.new_PathConstrainer__SWIG_1(PathConstrainer.getCPtr(handle)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal PathConstrainer Assign(PathConstrainer rhs) - { - PathConstrainer ret = new PathConstrainer(NDalicPINVOKE.PathConstrainer_Assign(swigCPtr, PathConstrainer.getCPtr(rhs)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Apply(Property target, Property source, Vector2 range, Vector2 wrap) - { - NDalicPINVOKE.PathConstrainer_Apply__SWIG_0(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range), Vector2.getCPtr(wrap)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void Apply(Property target, Property source, Vector2 range) - { - NDalicPINVOKE.PathConstrainer_Apply__SWIG_1(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void Remove(Handle target) - { - NDalicPINVOKE.PathConstrainer_Remove(swigCPtr, Handle.getCPtr(target)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public Vector3 Forward - { - get - { - Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f); - GetProperty(PathConstrainer.Property.FORWARD).Get(temp); - return temp; - } - set - { - SetProperty(PathConstrainer.Property.FORWARD, new Tizen.NUI.PropertyValue(value)); - } - } - - public PropertyArray Points - { - get - { - Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); - GetProperty(PathConstrainer.Property.POINTS).Get(temp); - return temp; - } - set - { - SetProperty(PathConstrainer.Property.POINTS, new Tizen.NUI.PropertyValue(value)); - } - } - - public PropertyArray ControlPoints - { - get - { - Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); - GetProperty(PathConstrainer.Property.CONTROL_POINTS).Get(temp); - return temp; - } - set - { - SetProperty(PathConstrainer.Property.CONTROL_POINTS, new Tizen.NUI.PropertyValue(value)); - } - } - - } - -} +/** 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. +* +*/ +// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Tizen.NUI { + + internal class PathConstrainer : Handle + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal PathConstrainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PathConstrainer_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PathConstrainer obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~PathConstrainer() { + DisposeQueue.Instance.Add(this); + } + + public override void Dispose() { + if (!Stage.IsInstalled()) { + DisposeQueue.Instance.Add(this); + return; + } + + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_PathConstrainer(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + + public class Property : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Property(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(Property obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Property() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_PathConstrainer_Property(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public Property() : this(NDalicPINVOKE.new_PathConstrainer_Property(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal static readonly int FORWARD = NDalicPINVOKE.PathConstrainer_Property_FORWARD_get(); + internal static readonly int POINTS = NDalicPINVOKE.PathConstrainer_Property_POINTS_get(); + internal static readonly int CONTROL_POINTS = NDalicPINVOKE.PathConstrainer_Property_CONTROL_POINTS_get(); + + } + + public PathConstrainer () : this (NDalicPINVOKE.PathConstrainer_New(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + } + public new static PathConstrainer DownCast(BaseHandle handle) { + PathConstrainer ret = new PathConstrainer(NDalicPINVOKE.PathConstrainer_DownCast(BaseHandle.getCPtr(handle)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal PathConstrainer(PathConstrainer handle) : this(NDalicPINVOKE.new_PathConstrainer__SWIG_1(PathConstrainer.getCPtr(handle)), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal PathConstrainer Assign(PathConstrainer rhs) + { + PathConstrainer ret = new PathConstrainer(NDalicPINVOKE.PathConstrainer_Assign(swigCPtr, PathConstrainer.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Apply(Property target, Property source, Vector2 range, Vector2 wrap) { + NDalicPINVOKE.PathConstrainer_Apply__SWIG_0(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range), Vector2.getCPtr(wrap)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void Apply(Property target, Property source, Vector2 range) { + NDalicPINVOKE.PathConstrainer_Apply__SWIG_1(swigCPtr, Property.getCPtr(target), Property.getCPtr(source), Vector2.getCPtr(range)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal void Remove(Handle target) + { + NDalicPINVOKE.PathConstrainer_Remove(swigCPtr, Handle.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public Vector3 Forward + { + get + { + Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f); + GetProperty(PathConstrainer.Property.FORWARD).Get(temp); + return temp; + } + set + { + SetProperty(PathConstrainer.Property.FORWARD, new Tizen.NUI.PropertyValue(value)); + } + } + + public PropertyArray Points + { + get + { + Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); + GetProperty(PathConstrainer.Property.POINTS).Get(temp); + return temp; + } + set + { + SetProperty(PathConstrainer.Property.POINTS, new Tizen.NUI.PropertyValue(value)); + } + } + + public PropertyArray ControlPoints + { + get + { + Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); + GetProperty(PathConstrainer.Property.CONTROL_POINTS).Get(temp); + return temp; + } + set + { + SetProperty(PathConstrainer.Property.CONTROL_POINTS, new Tizen.NUI.PropertyValue(value)); + } + } + +} + +} diff --git a/src/Tizen.NUI/src/internal/PinchGestureDetectedSignal.cs b/src/Tizen.NUI/src/internal/PinchGestureDetectedSignal.cs index bb60b4f..f0b5ca0 100755 --- a/src/Tizen.NUI/src/internal/PinchGestureDetectedSignal.cs +++ b/src/Tizen.NUI/src/internal/PinchGestureDetectedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PinchGestureDetectedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/PinchGestureDetector.cs b/src/Tizen.NUI/src/internal/PinchGestureDetector.cs index 10905fa..e38eb8d 100755 --- a/src/Tizen.NUI/src/internal/PinchGestureDetector.cs +++ b/src/Tizen.NUI/src/internal/PinchGestureDetector.cs @@ -27,10 +27,10 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - - public class PinchGestureDetector : GestureDetector { +using System.Runtime.InteropServices; + + +public class PinchGestureDetector : GestureDetector { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal PinchGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PinchGestureDetector_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/PixelData.cs b/src/Tizen.NUI/src/internal/PixelData.cs index e3a1f6f..3082819 100755 --- a/src/Tizen.NUI/src/internal/PixelData.cs +++ b/src/Tizen.NUI/src/internal/PixelData.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PixelData : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PixelFormat.cs b/src/Tizen.NUI/src/internal/PixelFormat.cs index 9cc63d5..f829e40 100755 --- a/src/Tizen.NUI/src/internal/PixelFormat.cs +++ b/src/Tizen.NUI/src/internal/PixelFormat.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum PixelFormat { INVALID = 0, A8 = 1, diff --git a/src/Tizen.NUI/src/internal/Position2D.cs b/src/Tizen.NUI/src/internal/Position2D.cs new file mode 100755 index 0000000..9fe88f4 --- /dev/null +++ b/src/Tizen.NUI/src/internal/Position2D.cs @@ -0,0 +1,212 @@ +/* + * 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 { + +public class Position2D : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Position2D(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(Position2D obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Position2D() { + DisposeQueue.Instance.Add(this); + } + + public virtual void Dispose() { + if (!Stage.IsInstalled()) { + DisposeQueue.Instance.Add(this); + return; + } + + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_Vector2(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + + public static Position2D operator+(Position2D arg1, Position2D arg2) { + return arg1.Add(arg2); + } + + public static Position2D operator-(Position2D arg1, Position2D arg2) { + return arg1.Subtract(arg2); + } + + public static Position2D operator-(Position2D arg1) { + return arg1.Subtract(); + } + + public static Position2D operator*(Position2D arg1, Position2D arg2) { + return arg1.Multiply(arg2); + } + + public static Position2D operator*(Position2D arg1, int arg2) { + return arg1.Multiply(arg2); + } + + public static Position2D operator/(Position2D arg1, Position2D arg2) { + return arg1.Divide(arg2); + } + + public static Position2D operator/(Position2D arg1, int arg2) { + return arg1.Divide(arg2); + } + + public float this[uint index] + { + get + { + return ValueOfIndex(index); + } + } + + public static Position2D GetPosition2DFromPtr(global::System.IntPtr cPtr) { + Position2D ret = new Position2D(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + + public Position2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public Position2D(int x, int y) : this(NDalicPINVOKE.new_Vector2__SWIG_1((float)x, (float)y), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public Position2D(Position position) : this(NDalicPINVOKE.new_Vector2__SWIG_3(Position.getCPtr(position)), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + private Position2D Add(Position2D rhs) { + Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Add(swigCPtr, Position2D.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Position2D Subtract(Position2D rhs) { + Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + + private Position2D Multiply(Position2D rhs) { + Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Position2D Multiply(int rhs) { + Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_1(swigCPtr, (float)rhs), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + + private Position2D Divide(Position2D rhs) { + Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Position2D Divide(int rhs) { + Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_1(swigCPtr, (float)rhs), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Position2D Subtract() { + Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_1(swigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool EqualTo(Position2D rhs) { + bool ret = NDalicPINVOKE.Vector2_EqualTo(swigCPtr, Position2D.getCPtr(rhs)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool NotEqualTo(Position2D rhs) { + bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Position2D.getCPtr(rhs)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private int ValueOfIndex(uint index) { + int ret = (int)NDalicPINVOKE.Vector2_ValueOfIndex__SWIG_0(swigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + + public int X { + set { + NDalicPINVOKE.Vector2_X_set(swigCPtr, (float)value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.Vector2_X_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return (int)ret; + } + } + + public int Y { + set { + NDalicPINVOKE.Vector2_Y_set(swigCPtr, (float)value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get { + float ret = NDalicPINVOKE.Vector2_Y_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return (int)ret; + } + } + + public static implicit operator Vector2(Position2D position2d) + { + return new Vector2((float)position2d.X, (float)position2d.Y); + } + + public static implicit operator Position2D(Vector2 vec) + { + return new Position2D((int)vec.X, (int)vec.Y); + } + +} + +} + + diff --git a/src/Tizen.NUI/src/internal/PositionInheritanceMode.cs b/src/Tizen.NUI/src/internal/PositionInheritanceMode.cs index d234bc3..dae37ca 100755 --- a/src/Tizen.NUI/src/internal/PositionInheritanceMode.cs +++ b/src/Tizen.NUI/src/internal/PositionInheritanceMode.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum PositionInheritanceMode { INHERIT_PARENT_POSITION, USE_PARENT_POSITION, diff --git a/src/Tizen.NUI/src/internal/PrimitiveVisualShapeType.cs b/src/Tizen.NUI/src/internal/PrimitiveVisualShapeType.cs index 9c78ab2..5c42d24 100755 --- a/src/Tizen.NUI/src/internal/PrimitiveVisualShapeType.cs +++ b/src/Tizen.NUI/src/internal/PrimitiveVisualShapeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum PrimitiveVisualShapeType { SPHERE, CONICAL_FRUSTRUM, diff --git a/src/Tizen.NUI/src/internal/BoolSignal.cs b/src/Tizen.NUI/src/internal/ProgressBarValueChangedSignal.cs similarity index 51% rename from src/Tizen.NUI/src/internal/BoolSignal.cs rename to src/Tizen.NUI/src/internal/ProgressBarValueChangedSignal.cs index 0031b65..1406298 100755 --- a/src/Tizen.NUI/src/internal/BoolSignal.cs +++ b/src/Tizen.NUI/src/internal/ProgressBarValueChangedSignal.cs @@ -8,31 +8,36 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - internal class BoolSignal : global::System.IDisposable { +namespace Tizen.NUI { + +public class ProgressBarValueChangedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; - internal BoolSignal(global::System.IntPtr cPtr, bool cMemoryOwn) { + internal ProgressBarValueChangedSignal(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(BoolSignal obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ProgressBarValueChangedSignal obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } - ~BoolSignal() { - Dispose(); + ~ProgressBarValueChangedSignal() { + DisposeQueue.Instance.Add(this); } public virtual void Dispose() { + if (!Stage.IsInstalled()) { + DisposeQueue.Instance.Add(this); + return; + } + lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; - NDalicPINVOKE.delete_BoolSignal(swigCPtr); + NDalicPINVOKE.delete_ProgressBarValueChangedSignal(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } @@ -40,41 +45,42 @@ namespace Tizen.NUI { } } - public BoolSignal() : this(NDalicPINVOKE.new_BoolSignal(), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } public bool Empty() { - bool ret = NDalicPINVOKE.BoolSignal_Empty(swigCPtr); + bool ret = NDalicPINVOKE.ProgressBarValueChangedSignal_Empty(swigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public uint GetConnectionCount() { - uint ret = NDalicPINVOKE.BoolSignal_GetConnectionCount(swigCPtr); + uint ret = NDalicPINVOKE.ProgressBarValueChangedSignal_GetConnectionCount(swigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public void Connect(SWIGTYPE_p_f___bool func) { - NDalicPINVOKE.BoolSignal_Connect__SWIG_0(swigCPtr, SWIGTYPE_p_f___bool.getCPtr(func)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + public void Connect(System.Delegate func) { +System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.ProgressBarValueChangedSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } } - public void Disconnect(SWIGTYPE_p_f___bool func) { - NDalicPINVOKE.BoolSignal_Disconnect(swigCPtr, SWIGTYPE_p_f___bool.getCPtr(func)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + public void Disconnect(System.Delegate func) { +System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.ProgressBarValueChangedSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } } - public void Connect(ConnectionTrackerInterface connectionTracker, SWIGTYPE_p_Dali__FunctorDelegate arg1) { - NDalicPINVOKE.BoolSignal_Connect__SWIG_4(swigCPtr, ConnectionTrackerInterface.getCPtr(connectionTracker), SWIGTYPE_p_Dali__FunctorDelegate.getCPtr(arg1)); + public void Emit(ProgressBar arg1, float arg2, float arg3) { + NDalicPINVOKE.ProgressBarValueChangedSignal_Emit(swigCPtr, ProgressBar.getCPtr(arg1), arg2, arg3); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - public bool Emit() { - bool ret = NDalicPINVOKE.BoolSignal_Emit(swigCPtr); + public ProgressBarValueChangedSignal() : this(NDalicPINVOKE.new_ProgressBarValueChangedSignal(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; } } diff --git a/src/Tizen.NUI/src/internal/PropertyBuffer.cs b/src/Tizen.NUI/src/internal/PropertyBuffer.cs index 9ccee9f..db22d2a 100755 --- a/src/Tizen.NUI/src/internal/PropertyBuffer.cs +++ b/src/Tizen.NUI/src/internal/PropertyBuffer.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PropertyBuffer : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PropertyCondition.cs b/src/Tizen.NUI/src/internal/PropertyCondition.cs index 2ae7987..8550627 100755 --- a/src/Tizen.NUI/src/internal/PropertyCondition.cs +++ b/src/Tizen.NUI/src/internal/PropertyCondition.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PropertyCondition : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PropertyNotification.cs b/src/Tizen.NUI/src/internal/PropertyNotification.cs index 6ea46b0..456fe86 100755 --- a/src/Tizen.NUI/src/internal/PropertyNotification.cs +++ b/src/Tizen.NUI/src/internal/PropertyNotification.cs @@ -11,9 +11,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class PropertyNotification : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/PropertyNotifySignal.cs b/src/Tizen.NUI/src/internal/PropertyNotifySignal.cs index acb02dc..7c3db97 100755 --- a/src/Tizen.NUI/src/internal/PropertyNotifySignal.cs +++ b/src/Tizen.NUI/src/internal/PropertyNotifySignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PropertyNotifySignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/PropertyRangeManager.cs b/src/Tizen.NUI/src/internal/PropertyRangeManager.cs index 0661e16..bba5785 100755 --- a/src/Tizen.NUI/src/internal/PropertyRangeManager.cs +++ b/src/Tizen.NUI/src/internal/PropertyRangeManager.cs @@ -1,139 +1,151 @@ -using System; +#define DOT_NET_CORE + +using System; using System.Runtime.InteropServices; using System.Collections.Generic; +#if (DOT_NET_CORE) using System.Reflection; +#endif namespace Tizen.NUI { /// /// Helper class for calculating what property indexes should be assigned to C# View (view) classes. /// - internal class PropertyRangeManager - { - private Dictionary _propertyRange; - - /// - /// Initializes a new instance of the class. - /// - public PropertyRangeManager () - { - _propertyRange = new Dictionary (); + internal class PropertyRangeManager + { + private Dictionary _propertyRange; + + /// + /// Initializes a new instance of the class. + /// + public PropertyRangeManager() + { + _propertyRange = new Dictionary(); + } + + /// + /// Only called if a View has scriptable properties + /// + private PropertyRange RegisterView(string viewName, System.Type viewType) + { + PropertyRange range; + + if (_propertyRange.TryGetValue(viewName, out range)) + { + // already registered + return range; + } + + // Find out the event and animatable start indexes for the type + range = new PropertyRange(); + + GetPropertyStartRange(viewType, ref range); + + // add it to our dictionary + _propertyRange.Add(viewName, range); + + return range; + + } + + /// + /// Gets the index of the property. + /// Each property has to have unique index for this view type + /// + /// The property index. + /// View name + /// View type + /// Type. + public int GetPropertyIndex(string viewName, System.Type viewType, ScriptableProperty.ScriptableType type) + { + + PropertyRange range; + + if (!_propertyRange.TryGetValue(viewName, out range)) + { + // view not found, register it now + range = RegisterView(viewName, viewType); + } + + int index = range.GetNextFreePropertyIndex(type); + + // update the dictionary + _propertyRange[viewName] = range; + + return index; + + } + + /// + /// We calculate the start property indices, based on the type and it's class heirachy, e.g. DateView (70,000)- > Spin (60,000) -> View (50,000) + /// + private void GetPropertyStartRange(System.Type viewType, ref PropertyRange range) + { + const int maxCountPerDerivation = 1000; // For child and animtable properties we use a gap of 1000 between each + // views property range in the heirachy + + // custom views start there property index, at view_PROPERTY_END_INDEX + // we add 1000, just incase View class (our C# custom view base) starts using scriptable properties + int startEventPropertyIndex = (int)View.PropertyRange.CONTROL_PROPERTY_END_INDEX + maxCountPerDerivation; + + // for animatable properties current range starts at ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX, + // we add 1000, just incase View class starts using animatable properties + int startAnimatablePropertyIndex = (int)Tizen.NUI.PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX + maxCountPerDerivation; + +#if (DOT_NET_CORE) + while ( viewType.GetTypeInfo().BaseType.Name != "CustomView" ) // custom view is our C# view base class. we don't go any deeper. +#else + while (viewType.BaseType.Name != "CustomView") // custom view is our C# view base class. we don't go any deeper. +#endif + { + // for every base class increase property start index + startEventPropertyIndex += (int)Tizen.NUI.PropertyRanges.DEFAULT_PROPERTY_MAX_COUNT_PER_DERIVATION; // DALi uses 10,000 + startAnimatablePropertyIndex += maxCountPerDerivation; + + //Console.WriteLine ("getStartPropertyIndex = " + viewType.Name +"current index " + startEventPropertyIndex); +#if (DOT_NET_CORE) + viewType = viewType.GetTypeInfo().BaseType; +#else + viewType = viewType.BaseType; +#endif + } + + range.startEventIndex = startEventPropertyIndex; + range.lastUsedEventIndex = startEventPropertyIndex; + + range.startAnimationIndex = startAnimatablePropertyIndex; + range.lastUsedAnimationIndex = startAnimatablePropertyIndex; + + } + + + public struct PropertyRange + { + + public int GetNextFreePropertyIndex(ScriptableProperty.ScriptableType type) + { + if (type == ScriptableProperty.ScriptableType.Default) + { + lastUsedEventIndex++; + return lastUsedEventIndex; + } + else + { + lastUsedAnimationIndex++; + return lastUsedAnimationIndex; + } + } + + + public int startEventIndex; /// start of the property range + public int lastUsedEventIndex; /// last used of the property index + + public int startAnimationIndex; /// start of the property range + public int lastUsedAnimationIndex; /// last used of the property index + }; + + + } - - /// - /// Only called if a View has scriptable properties - /// - private PropertyRange RegisterView( string viewName, System.Type viewType ) - { - PropertyRange range; - - if ( _propertyRange.TryGetValue (viewName, out range) ) - { - // already registered - return range; - } - - // Find out the event and animatable start indexes for the type - range = new PropertyRange(); - - GetPropertyStartRange( viewType, ref range); - - // add it to our dictionary - _propertyRange.Add( viewName, range ); - - return range; - - } - - /// - /// Gets the index of the property. - /// Each property has to have unique index for this view type - /// - /// The property index. - /// View name - /// View type - /// Type. - public int GetPropertyIndex( string viewName, System.Type viewType, ScriptableProperty.ScriptableType type ) - { - - PropertyRange range; - - if (! _propertyRange.TryGetValue (viewName, out range) ) - { - // view not found, register it now - range = RegisterView( viewName, viewType); - } - - int index = range.GetNextFreePropertyIndex ( type ); - - // update the dictionary - _propertyRange[viewName]=range; - - return index; - - } - - /// - /// We calculate the start property indices, based on the type and it's class heirachy, e.g. DateView (70,000)- > Spin (60,000) -> View (50,000) - /// - private void GetPropertyStartRange( System.Type viewType, ref PropertyRange range ) - { - const int maxCountPerDerivation = 1000; // For child and animtable properties we use a gap of 1000 between each - // views property range in the heirachy - - // custom views start there property index, at view_PROPERTY_END_INDEX - // we add 1000, just incase View class (our C# custom view base) starts using scriptable properties - int startEventPropertyIndex = (int)View.PropertyRange.CONTROL_PROPERTY_END_INDEX+maxCountPerDerivation; - - // for animatable properties current range starts at ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX, - // we add 1000, just incase View class starts using animatable properties - int startAnimatablePropertyIndex = (int)Tizen.NUI.PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX +maxCountPerDerivation; - - while ( viewType.GetTypeInfo().BaseType.Name != "CustomView" ) // custom view is our C# view base class. we don't go any deeper. - { - // for every base class increase property start index - startEventPropertyIndex += (int)Tizen.NUI.PropertyRanges.DEFAULT_PROPERTY_MAX_COUNT_PER_DERIVATION; // DALi uses 10,000 - startAnimatablePropertyIndex += maxCountPerDerivation; - - //Console.WriteLine ("getStartPropertyIndex = " + viewType.Name +"current index " + startEventPropertyIndex); - viewType = viewType.GetTypeInfo().BaseType; - } - - range.startEventIndex = startEventPropertyIndex; - range.lastUsedEventIndex = startEventPropertyIndex; - - range.startAnimationIndex = startAnimatablePropertyIndex; - range.lastUsedAnimationIndex = startAnimatablePropertyIndex; - - } - - - public struct PropertyRange - { - - public int GetNextFreePropertyIndex( ScriptableProperty.ScriptableType type) - { - if ( type == ScriptableProperty.ScriptableType.Default ) - { - lastUsedEventIndex++; - return lastUsedEventIndex; - } - else - { - lastUsedAnimationIndex++; - return lastUsedAnimationIndex ; - } - } - - - public int startEventIndex; /// start of the property range - public int lastUsedEventIndex; /// last used of the property index - - public int startAnimationIndex; /// start of the property range - public int lastUsedAnimationIndex; /// last used of the property index - }; - - - -} } diff --git a/src/Tizen.NUI/src/internal/PropertyRanges.cs b/src/Tizen.NUI/src/internal/PropertyRanges.cs index f9d837a..b9409af 100755 --- a/src/Tizen.NUI/src/internal/PropertyRanges.cs +++ b/src/Tizen.NUI/src/internal/PropertyRanges.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum PropertyRanges { DEFAULT_OBJECT_PROPERTY_START_INDEX = 0, DEFAULT_ACTOR_PROPERTY_START_INDEX = DEFAULT_OBJECT_PROPERTY_START_INDEX, diff --git a/src/Tizen.NUI/src/internal/PropertyRegistration.cs b/src/Tizen.NUI/src/internal/PropertyRegistration.cs index a2bf965..43f824d 100755 --- a/src/Tizen.NUI/src/internal/PropertyRegistration.cs +++ b/src/Tizen.NUI/src/internal/PropertyRegistration.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class PropertyRegistration : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/RefObject.cs b/src/Tizen.NUI/src/internal/RefObject.cs index 9e0ff8c..4fb2602 100755 --- a/src/Tizen.NUI/src/internal/RefObject.cs +++ b/src/Tizen.NUI/src/internal/RefObject.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class RefObject : global::System.IDisposable { +namespace Tizen.NUI { + +public class RefObject : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/RenderBufferFormat.cs b/src/Tizen.NUI/src/internal/RenderBufferFormat.cs index b528bf7..ac16c80 100755 --- a/src/Tizen.NUI/src/internal/RenderBufferFormat.cs +++ b/src/Tizen.NUI/src/internal/RenderBufferFormat.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum RenderBufferFormat { COLOR, COLOR_DEPTH, diff --git a/src/Tizen.NUI/src/internal/RenderModeType.cs b/src/Tizen.NUI/src/internal/RenderModeType.cs index 7cbd682..4f1115e 100755 --- a/src/Tizen.NUI/src/internal/RenderModeType.cs +++ b/src/Tizen.NUI/src/internal/RenderModeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum RenderModeType { NONE, AUTO, diff --git a/src/Tizen.NUI/src/internal/RenderTask.cs b/src/Tizen.NUI/src/internal/RenderTask.cs index 5942b25..9716133 100755 --- a/src/Tizen.NUI/src/internal/RenderTask.cs +++ b/src/Tizen.NUI/src/internal/RenderTask.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class RenderTask : Handle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/RenderTaskList.cs b/src/Tizen.NUI/src/internal/RenderTaskList.cs index cca8a4e..9534e27 100755 --- a/src/Tizen.NUI/src/internal/RenderTaskList.cs +++ b/src/Tizen.NUI/src/internal/RenderTaskList.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class RenderTaskList : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/RenderTaskSignal.cs b/src/Tizen.NUI/src/internal/RenderTaskSignal.cs index dba0c22..6d40996 100755 --- a/src/Tizen.NUI/src/internal/RenderTaskSignal.cs +++ b/src/Tizen.NUI/src/internal/RenderTaskSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class RenderTaskSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Renderer.cs b/src/Tizen.NUI/src/internal/Renderer.cs index 7994a7a..21f8482 100755 --- a/src/Tizen.NUI/src/internal/Renderer.cs +++ b/src/Tizen.NUI/src/internal/Renderer.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Renderer : Handle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/RenderingType.cs b/src/Tizen.NUI/src/internal/RenderingType.cs index b4d9e44..b2c0f41 100755 --- a/src/Tizen.NUI/src/internal/RenderingType.cs +++ b/src/Tizen.NUI/src/internal/RenderingType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum RenderingType { RENDERING_SHARED_ATLAS, RENDERING_VECTOR_BASED diff --git a/src/Tizen.NUI/src/internal/ResourceImageSignal.cs b/src/Tizen.NUI/src/internal/ResourceImageSignal.cs index bd0cc1f..0846019 100755 --- a/src/Tizen.NUI/src/internal/ResourceImageSignal.cs +++ b/src/Tizen.NUI/src/internal/ResourceImageSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ResourceImageSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Ruler.cs b/src/Tizen.NUI/src/internal/Ruler.cs index f1034cb..78f670c 100755 --- a/src/Tizen.NUI/src/internal/Ruler.cs +++ b/src/Tizen.NUI/src/internal/Ruler.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Ruler : RefObject { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/RulerDomain.cs b/src/Tizen.NUI/src/internal/RulerDomain.cs index 1adb07f..d707a2c 100755 --- a/src/Tizen.NUI/src/internal/RulerDomain.cs +++ b/src/Tizen.NUI/src/internal/RulerDomain.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class RulerDomain : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/RulerPtr.cs b/src/Tizen.NUI/src/internal/RulerPtr.cs index a2b3c66..050c8ac 100755 --- a/src/Tizen.NUI/src/internal/RulerPtr.cs +++ b/src/Tizen.NUI/src/internal/RulerPtr.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class RulerPtr : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs index 7c34d54..40a42a6 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_CallbackBase { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Configuration__ContextLoss.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Configuration__ContextLoss.cs index a4769e6..ae11b70 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Configuration__ContextLoss.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Configuration__ContextLoss.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Configuration__ContextLoss { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs index 72c5840..6a0c4ad 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__CallbackBase { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Constraint.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Constraint.cs index 34dd2ae..7a7334a 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Constraint.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Constraint.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Constraint { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CustomActorImpl__Extension.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CustomActorImpl__Extension.cs index 779a9c2..94525a1 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CustomActorImpl__Extension.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CustomActorImpl__Extension.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__CustomActorImpl__Extension { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs index 9f0e450..94ed159 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__FunctorDelegate { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f___bool.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Internal__Texture.cs similarity index 78% rename from src/Tizen.NUI/src/internal/SWIGTYPE_p_f___bool.cs rename to src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Internal__Texture.cs index 593e1fc..1276580 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f___bool.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Internal__Texture.cs @@ -8,20 +8,20 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - internal class SWIGTYPE_p_f___bool { +namespace Tizen.NUI { + +public class SWIGTYPE_p_Dali__Internal__Texture { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_f___bool(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_Dali__Internal__Texture(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_f___bool() { + protected SWIGTYPE_p_Dali__Internal__Texture() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_f___bool obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Dali__Internal__Texture obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Internal__TypeRegistry.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Internal__TypeRegistry.cs index 505dec4..d27bcac 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Internal__TypeRegistry.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Internal__TypeRegistry.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Internal__TypeRegistry { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t.cs index 3ef4ac1..4e2c6f4 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__RectT_unsigned_int_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__RectT_unsigned_int_t.cs index 51cbd71..b2891ec 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__RectT_unsigned_int_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__RectT_unsigned_int_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__RectT_unsigned_int_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t.cs index 0e0e91f..2357f6c 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t.cs index 9d41306..fc1ca1b 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__DragAndDropDetectorF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__DragAndDropDetectorF_t.cs index f4100da..57029c3 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__DragAndDropDetectorF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__DragAndDropDetectorF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_void_fDali__DragAndDropDetectorF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t.cs index f3f6d4f..042ec17 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t.cs deleted file mode 100755 index 1d443b0..0000000 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.9 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace Tizen.NUI { - - internal class SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__ProgressBar_float_floatF_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t.cs index fab07cc..756209a 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t.cs index d4db411..4872674 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fboolF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fboolF_t.cs index 505d8ce..c1b1a5b 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fboolF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fboolF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_void_fboolF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fuint32_t_Dali__PixelDataF_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fuint32_t_Dali__PixelDataF_t.cs index 512488d..dcdea98 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fuint32_t_Dali__PixelDataF_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__SignalT_void_fuint32_t_Dali__PixelDataF_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__SignalT_void_fuint32_t_Dali__PixelDataF_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ClampState.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ClampState.cs index b35d165..799ffc5 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ClampState.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ClampState.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Toolkit__ClampState { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__AsyncImageLoader.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__AsyncImageLoader.cs index 85c9c95..d3c6e9b 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__AsyncImageLoader.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__AsyncImageLoader.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Toolkit__Internal__AsyncImageLoader { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Control__Extension.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Control__Extension.cs index c7c9543..818ade1 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Control__Extension.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Control__Extension.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Toolkit__Internal__Control__Extension { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__TransitionData.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__TransitionData.cs index efcf5e2..8a8df45 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__TransitionData.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__TransitionData.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Toolkit__Internal__TransitionData { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base.cs index 363c859..607fd3a 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ItemFactory__Extension.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ItemFactory__Extension.cs index 0a8bdc6..2b51b2c 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ItemFactory__Extension.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__Toolkit__ItemFactory__Extension.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__Toolkit__ItemFactory__Extension { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__TouchEvent.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__TouchEvent.cs index 3d29094..e2f8af1 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__TouchEvent.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__TouchEvent.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_Dali__TouchEvent { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_FunctorDelegate.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_FunctorDelegate.cs index 169d641..50cd233 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_FunctorDelegate.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_FunctorDelegate.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_FunctorDelegate { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_PropertyInputContainer.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_PropertyInputContainer.cs index 56e5274..84751d9 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_PropertyInputContainer.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_PropertyInputContainer.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_PropertyInputContainer { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_double.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_double.cs index 8f0bb77..bd172b1 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_double.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_double.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_double { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_float__float.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_float__float.cs index 02e995c..7ea1c03 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_float__float.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_float__float.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_float__float { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value.cs index e4c146d..99130ff 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_p_Dali__BaseObject_Dali__Property__Index__Dali__Property__Value { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void.cs index 8d697e0..78f2bc4 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_p_Dali__BaseObject_int_r_q_const__Dali__Property__Value__void { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool.cs index 36f59dd..fe04fa1 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_r_q_const__std__string_r_q_const__Dali__Property__Map__bool.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_r_q_const__std__string_r_q_const__Dali__Property__Map__bool.cs index c7fb894..f2aac12 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_r_q_const__std__string_r_q_const__Dali__Property__Map__bool.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_Dali__BaseObject_r_q_const__std__string_r_q_const__Dali__Property__Map__bool.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_p_Dali__BaseObject_r_q_const__std__string_r_q_const__Dali__Property__Map__bool { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void.cs index 14c75bc..be71387 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_Dali__Vector2__bool.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_Dali__Vector2__bool.cs index 0ac2e29..3a3cb01 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_Dali__Vector2__bool.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_Dali__Vector2__bool.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_r_Dali__Vector2__bool { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase.cs index b877dc7..c49d792 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.cs index 5d62f2d..9cf7aa3 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_f_r_q_const__Dali__Vector3__float { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_float.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_float.cs index 090a51e..9194428 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_float.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_float.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_float { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_int.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_int.cs index b7b3e93..f8c3942 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_int.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_int.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_int { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_std__type_info.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_std__type_info.cs index 6dcdaf7..592b899 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_std__type_info.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_std__type_info.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_std__type_info { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_uint8_t.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_uint8_t.cs index 70ea5be..33792e6 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_uint8_t.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_uint8_t.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_uint8_t { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_char.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_char.cs index 6ca7897..119e8d4 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_char.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_char.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_unsigned_char { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_int.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_int.cs index b83645c..f002151 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_int.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_int.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_unsigned_int { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_short.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_short.cs index 5c55b88..826d4ce 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_short.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_unsigned_short.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SWIGTYPE_p_unsigned_short { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/Sampler.cs b/src/Tizen.NUI/src/internal/Sampler.cs index 630e07d..59eec57 100755 --- a/src/Tizen.NUI/src/internal/Sampler.cs +++ b/src/Tizen.NUI/src/internal/Sampler.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Sampler : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SamplingModeType.cs b/src/Tizen.NUI/src/internal/SamplingModeType.cs index 07fdadf..5fe99e9 100755 --- a/src/Tizen.NUI/src/internal/SamplingModeType.cs +++ b/src/Tizen.NUI/src/internal/SamplingModeType.cs @@ -8,17 +8,16 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI -{ - public enum SamplingModeType - { - BOX, - NEAREST, - LINEAR, - BOX_THEN_NEAREST, - BOX_THEN_LINEAR, - NO_FILTER, - DONT_CARE - } +namespace Tizen.NUI { + +public enum SamplingModeType { + BOX, + NEAREST, + LINEAR, + BOX_THEN_NEAREST, + BOX_THEN_LINEAR, + NO_FILTER, + DONT_CARE +} } diff --git a/src/Tizen.NUI/src/internal/ScrollView.cs b/src/Tizen.NUI/src/internal/ScrollView.cs index b68dd42..adccacd 100755 --- a/src/Tizen.NUI/src/internal/ScrollView.cs +++ b/src/Tizen.NUI/src/internal/ScrollView.cs @@ -27,9 +27,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class ScrollView : Scrollable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ScrollViewEffect.cs b/src/Tizen.NUI/src/internal/ScrollViewEffect.cs index d36e6d8..27489f3 100755 --- a/src/Tizen.NUI/src/internal/ScrollViewEffect.cs +++ b/src/Tizen.NUI/src/internal/ScrollViewEffect.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ScrollViewEffect : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ScrollViewPagePathEffect.cs b/src/Tizen.NUI/src/internal/ScrollViewPagePathEffect.cs index 413c56a..ccf3e90 100755 --- a/src/Tizen.NUI/src/internal/ScrollViewPagePathEffect.cs +++ b/src/Tizen.NUI/src/internal/ScrollViewPagePathEffect.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ScrollViewPagePathEffect : ScrollViewEffect { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ScrollViewSnapStartedSignal.cs b/src/Tizen.NUI/src/internal/ScrollViewSnapStartedSignal.cs index 2fd4b99..6672bdf 100755 --- a/src/Tizen.NUI/src/internal/ScrollViewSnapStartedSignal.cs +++ b/src/Tizen.NUI/src/internal/ScrollViewSnapStartedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ScrollViewSnapStartedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Scrollable.cs b/src/Tizen.NUI/src/internal/Scrollable.cs index 63b190b..ddb031e 100755 --- a/src/Tizen.NUI/src/internal/Scrollable.cs +++ b/src/Tizen.NUI/src/internal/Scrollable.cs @@ -11,9 +11,9 @@ namespace Tizen.NUI { using System; -using System.Runtime.InteropServices; - - +using System.Runtime.InteropServices; + + internal class Scrollable : View { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ScrollableSignal.cs b/src/Tizen.NUI/src/internal/ScrollableSignal.cs index cdd8012..4bbfcd6 100755 --- a/src/Tizen.NUI/src/internal/ScrollableSignal.cs +++ b/src/Tizen.NUI/src/internal/ScrollableSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ScrollableSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Shader.cs b/src/Tizen.NUI/src/internal/Shader.cs index e69a2ae..556a497 100755 --- a/src/Tizen.NUI/src/internal/Shader.cs +++ b/src/Tizen.NUI/src/internal/Shader.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Shader : Handle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SignalConnectorType.cs b/src/Tizen.NUI/src/internal/SignalConnectorType.cs index 55d36c5..8833f2b 100755 --- a/src/Tizen.NUI/src/internal/SignalConnectorType.cs +++ b/src/Tizen.NUI/src/internal/SignalConnectorType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SignalConnectorType : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/SignalObserver.cs b/src/Tizen.NUI/src/internal/SignalObserver.cs index 25b4b3e..abaad2c 100755 --- a/src/Tizen.NUI/src/internal/SignalObserver.cs +++ b/src/Tizen.NUI/src/internal/SignalObserver.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SignalObserver : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/SliderMarkReachedSignal.cs b/src/Tizen.NUI/src/internal/SliderMarkReachedSignal.cs index 738545d..366bcb6 100755 --- a/src/Tizen.NUI/src/internal/SliderMarkReachedSignal.cs +++ b/src/Tizen.NUI/src/internal/SliderMarkReachedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SliderMarkReachedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/SliderValueChangedSignal.cs b/src/Tizen.NUI/src/internal/SliderValueChangedSignal.cs index b9f9df1..67f5763 100755 --- a/src/Tizen.NUI/src/internal/SliderValueChangedSignal.cs +++ b/src/Tizen.NUI/src/internal/SliderValueChangedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SliderValueChangedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/SlotObserver.cs b/src/Tizen.NUI/src/internal/SlotObserver.cs index db65be6..e00d8e9 100755 --- a/src/Tizen.NUI/src/internal/SlotObserver.cs +++ b/src/Tizen.NUI/src/internal/SlotObserver.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class SlotObserver : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/SnapType.cs b/src/Tizen.NUI/src/internal/SnapType.cs index 9373428..83b3413 100755 --- a/src/Tizen.NUI/src/internal/SnapType.cs +++ b/src/Tizen.NUI/src/internal/SnapType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum SnapType { Snap, Flick diff --git a/src/Tizen.NUI/src/internal/StageWheelSignal.cs b/src/Tizen.NUI/src/internal/StageWheelSignal.cs index 223453f..0e45c1c 100755 --- a/src/Tizen.NUI/src/internal/StageWheelSignal.cs +++ b/src/Tizen.NUI/src/internal/StageWheelSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class StageWheelSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/StencilFunctionType.cs b/src/Tizen.NUI/src/internal/StencilFunctionType.cs index 6ec65bd..613a778 100755 --- a/src/Tizen.NUI/src/internal/StencilFunctionType.cs +++ b/src/Tizen.NUI/src/internal/StencilFunctionType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum StencilFunctionType { NEVER, LESS, diff --git a/src/Tizen.NUI/src/internal/StencilOperationType.cs b/src/Tizen.NUI/src/internal/StencilOperationType.cs index f64fef7..c78dbcf 100755 --- a/src/Tizen.NUI/src/internal/StencilOperationType.cs +++ b/src/Tizen.NUI/src/internal/StencilOperationType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum StencilOperationType { ZERO, KEEP, diff --git a/src/Tizen.NUI/src/internal/StringValuePair.cs b/src/Tizen.NUI/src/internal/StringValuePair.cs index a4ef08c..93fbcc3 100755 --- a/src/Tizen.NUI/src/internal/StringValuePair.cs +++ b/src/Tizen.NUI/src/internal/StringValuePair.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class StringValuePair : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/StyleChangedSignal.cs b/src/Tizen.NUI/src/internal/StyleChangedSignal.cs index 4fba284..4453263 100755 --- a/src/Tizen.NUI/src/internal/StyleChangedSignal.cs +++ b/src/Tizen.NUI/src/internal/StyleChangedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class StyleChangedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TapGestureDetectedSignal.cs b/src/Tizen.NUI/src/internal/TapGestureDetectedSignal.cs index 85d3101..9e800a5 100755 --- a/src/Tizen.NUI/src/internal/TapGestureDetectedSignal.cs +++ b/src/Tizen.NUI/src/internal/TapGestureDetectedSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TapGestureDetectedSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TextEditorSignal.cs b/src/Tizen.NUI/src/internal/TextEditorSignal.cs index df47b1f..c25e4de 100755 --- a/src/Tizen.NUI/src/internal/TextEditorSignal.cs +++ b/src/Tizen.NUI/src/internal/TextEditorSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TextEditorSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TextFieldSignal.cs b/src/Tizen.NUI/src/internal/TextFieldSignal.cs index fba0342..8a2b623 100755 --- a/src/Tizen.NUI/src/internal/TextFieldSignal.cs +++ b/src/Tizen.NUI/src/internal/TextFieldSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TextFieldSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/Texture.cs b/src/Tizen.NUI/src/internal/Texture.cs index afb0df8..6d6efaf 100755 --- a/src/Tizen.NUI/src/internal/Texture.cs +++ b/src/Tizen.NUI/src/internal/Texture.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Texture : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; @@ -114,6 +114,10 @@ namespace Tizen.NUI { return ret; } + public Texture(SWIGTYPE_p_Dali__Internal__Texture pointer) : this(NDalicPINVOKE.new_Texture__SWIG_2(SWIGTYPE_p_Dali__Internal__Texture.getCPtr(pointer)), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } } diff --git a/src/Tizen.NUI/src/internal/TextureSet.cs b/src/Tizen.NUI/src/internal/TextureSet.cs index 3e95048..a80a16a 100755 --- a/src/Tizen.NUI/src/internal/TextureSet.cs +++ b/src/Tizen.NUI/src/internal/TextureSet.cs @@ -24,8 +24,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TextureSet : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/TextureType.cs b/src/Tizen.NUI/src/internal/TextureType.cs index 8c20921..651c177 100755 --- a/src/Tizen.NUI/src/internal/TextureType.cs +++ b/src/Tizen.NUI/src/internal/TextureType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum TextureType { TEXTURE_2D, TEXTURE_CUBE diff --git a/src/Tizen.NUI/src/internal/TimePeriod.cs b/src/Tizen.NUI/src/internal/TimePeriod.cs index 0454589..91d5fe8 100755 --- a/src/Tizen.NUI/src/internal/TimePeriod.cs +++ b/src/Tizen.NUI/src/internal/TimePeriod.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TimePeriod : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TimerSignalType.cs b/src/Tizen.NUI/src/internal/TimerSignalType.cs index 1e4df44..6b31a11 100755 --- a/src/Tizen.NUI/src/internal/TimerSignalType.cs +++ b/src/Tizen.NUI/src/internal/TimerSignalType.cs @@ -8,108 +8,77 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI -{ - - internal class TimerSignalType : global::System.IDisposable - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal TimerSignalType(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(TimerSignalType obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~TimerSignalType() - { - Dispose(); - } - - public virtual void Dispose() - { - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_TimerSignalType(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public TimerSignalType() : this(NDalicPINVOKE.new_TimerSignalType(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public bool Empty() - { - bool ret = NDalicPINVOKE.TimerSignalType_Empty(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetConnectionCount() - { - uint ret = NDalicPINVOKE.TimerSignalType_GetConnectionCount(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Connect(SWIGTYPE_p_f___bool func) - { - NDalicPINVOKE.TimerSignalType_Connect__SWIG_0(swigCPtr, SWIGTYPE_p_f___bool.getCPtr(func)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void Disconnect(SWIGTYPE_p_f___bool func) - { - NDalicPINVOKE.TimerSignalType_Disconnect(swigCPtr, SWIGTYPE_p_f___bool.getCPtr(func)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public void Connect(ConnectionTrackerInterface connectionTracker, SWIGTYPE_p_Dali__FunctorDelegate arg1) - { - NDalicPINVOKE.TimerSignalType_Connect__SWIG_4(swigCPtr, ConnectionTrackerInterface.getCPtr(connectionTracker), SWIGTYPE_p_Dali__FunctorDelegate.getCPtr(arg1)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public bool Emit() - { - bool ret = NDalicPINVOKE.TimerSignalType_Emit(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; +namespace Tizen.NUI { + + internal class TimerSignalType : global::System.IDisposable + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal TimerSignalType(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(TimerSignalType obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~TimerSignalType() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NDalicPINVOKE.delete_TimerSignalType(swigCPtr); } - public void Connect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicPINVOKE.TimerSignalType_Connect__SWIG_0(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Disconnect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicPINVOKE.TimerSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); } + } + + public bool Empty() { + bool ret = NDalicPINVOKE.TimerSignalType_Empty(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public uint GetConnectionCount() { + uint ret = NDalicPINVOKE.TimerSignalType_GetConnectionCount(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Connect(System.Delegate func) { +System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.TimerSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public void Disconnect(System.Delegate func) { +System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + NDalicPINVOKE.TimerSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public bool Emit() { + bool ret = NDalicPINVOKE.TimerSignalType_Emit(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public TimerSignalType() : this(NDalicPINVOKE.new_TimerSignalType(), true) { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + +} } diff --git a/src/Tizen.NUI/src/internal/ToolkitPropertyRange.cs b/src/Tizen.NUI/src/internal/ToolkitPropertyRange.cs index 0006fd2..a5b4810 100755 --- a/src/Tizen.NUI/src/internal/ToolkitPropertyRange.cs +++ b/src/Tizen.NUI/src/internal/ToolkitPropertyRange.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum ToolkitPropertyRange { VISUAL_PROPERTY_BASE_START_INDEX = PropertyRanges.CORE_PROPERTY_MAX_INDEX+1, VISUAL_PROPERTY_BASE_END_INDEX = VISUAL_PROPERTY_BASE_START_INDEX+100, diff --git a/src/Tizen.NUI/src/internal/TooltipPositionType.cs b/src/Tizen.NUI/src/internal/TooltipPositionType.cs index 0f0e0c5..f014cb7 100755 --- a/src/Tizen.NUI/src/internal/TooltipPositionType.cs +++ b/src/Tizen.NUI/src/internal/TooltipPositionType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum TooltipPositionType { ABOVE, BELOW, diff --git a/src/Tizen.NUI/src/internal/TouchPoint.cs b/src/Tizen.NUI/src/internal/TouchPoint.cs index 6d05197..6f6b51f 100755 --- a/src/Tizen.NUI/src/internal/TouchPoint.cs +++ b/src/Tizen.NUI/src/internal/TouchPoint.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TouchPoint : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TouchPointContainer.cs b/src/Tizen.NUI/src/internal/TouchPointContainer.cs index 692b32b..5640472 100755 --- a/src/Tizen.NUI/src/internal/TouchPointContainer.cs +++ b/src/Tizen.NUI/src/internal/TouchPointContainer.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TouchPointContainer : global::System.IDisposable, global::System.Collections.IEnumerable , global::System.Collections.Generic.IEnumerable { diff --git a/src/Tizen.NUI/src/internal/TouchSignal.cs b/src/Tizen.NUI/src/internal/TouchSignal.cs index 9f8f36a..5d3115a 100755 --- a/src/Tizen.NUI/src/internal/TouchSignal.cs +++ b/src/Tizen.NUI/src/internal/TouchSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TouchSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TransitionData.cs b/src/Tizen.NUI/src/internal/TransitionData.cs index 8972074..f927eea 100755 --- a/src/Tizen.NUI/src/internal/TransitionData.cs +++ b/src/Tizen.NUI/src/internal/TransitionData.cs @@ -24,9 +24,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class TransitionData : BaseHandle { +namespace Tizen.NUI { + +public class TransitionData : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal TransitionData(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TransitionData_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/TypeAction.cs b/src/Tizen.NUI/src/internal/TypeAction.cs index 0a87fcb..fb57080 100755 --- a/src/Tizen.NUI/src/internal/TypeAction.cs +++ b/src/Tizen.NUI/src/internal/TypeAction.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TypeAction : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TypeInfo.cs b/src/Tizen.NUI/src/internal/TypeInfo.cs index 5a99008..8a4903e 100755 --- a/src/Tizen.NUI/src/internal/TypeInfo.cs +++ b/src/Tizen.NUI/src/internal/TypeInfo.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class TypeInfo : BaseHandle { +namespace Tizen.NUI { + +public class TypeInfo : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal TypeInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TypeInfo_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/TypeRegistration.cs b/src/Tizen.NUI/src/internal/TypeRegistration.cs index 55476b4..c844876 100755 --- a/src/Tizen.NUI/src/internal/TypeRegistration.cs +++ b/src/Tizen.NUI/src/internal/TypeRegistration.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class TypeRegistration : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/TypeRegistry.cs b/src/Tizen.NUI/src/internal/TypeRegistry.cs index 9adfd27..c8b71d1 100755 --- a/src/Tizen.NUI/src/internal/TypeRegistry.cs +++ b/src/Tizen.NUI/src/internal/TypeRegistry.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public class TypeRegistry : BaseHandle { +namespace Tizen.NUI { + +public class TypeRegistry : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal TypeRegistry(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TypeRegistry_SWIGUpcast(cPtr), cMemoryOwn) { diff --git a/src/Tizen.NUI/src/internal/Uint16Pair.cs b/src/Tizen.NUI/src/internal/Uint16Pair.cs index af87f00..6b9bf64 100755 --- a/src/Tizen.NUI/src/internal/Uint16Pair.cs +++ b/src/Tizen.NUI/src/internal/Uint16Pair.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class Uint16Pair : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/VectorBase.cs b/src/Tizen.NUI/src/internal/VectorBase.cs index c6e5256..50578f0 100755 --- a/src/Tizen.NUI/src/internal/VectorBase.cs +++ b/src/Tizen.NUI/src/internal/VectorBase.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class VectorBase : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/VectorFloat.cs b/src/Tizen.NUI/src/internal/VectorFloat.cs index 78c4d55..6e6eaea 100755 --- a/src/Tizen.NUI/src/internal/VectorFloat.cs +++ b/src/Tizen.NUI/src/internal/VectorFloat.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class VectorFloat : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/VectorUint16Pair.cs b/src/Tizen.NUI/src/internal/VectorUint16Pair.cs index a8b7d60..70b06ed 100755 --- a/src/Tizen.NUI/src/internal/VectorUint16Pair.cs +++ b/src/Tizen.NUI/src/internal/VectorUint16Pair.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class VectorUint16Pair : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/VectorUnsignedChar.cs b/src/Tizen.NUI/src/internal/VectorUnsignedChar.cs index f5f2e73..f1a6f5d 100755 --- a/src/Tizen.NUI/src/internal/VectorUnsignedChar.cs +++ b/src/Tizen.NUI/src/internal/VectorUnsignedChar.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class VectorUnsignedChar : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/VideoViewSignal.cs b/src/Tizen.NUI/src/internal/VideoViewSignal.cs index 2b80108..97221d5 100755 --- a/src/Tizen.NUI/src/internal/VideoViewSignal.cs +++ b/src/Tizen.NUI/src/internal/VideoViewSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class VideoViewSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ViewImpl.cs b/src/Tizen.NUI/src/internal/ViewImpl.cs index 7d423d5..9d450e9 100755 --- a/src/Tizen.NUI/src/internal/ViewImpl.cs +++ b/src/Tizen.NUI/src/internal/ViewImpl.cs @@ -7,7 +7,11 @@ // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ +#define DOT_NET_CORE + +#if (DOT_NET_CORE) using System.Reflection; +#endif namespace Tizen.NUI { @@ -568,8 +572,10 @@ namespace Tizen.NUI if (SwigDerivedClassHasMethod("SignalDisconnected", swigMethodTypes40)) swigDelegate40 = new SwigDelegateViewImpl_40(SwigDirectorSignalDisconnected); NDalicPINVOKE.ViewImpl_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate22, swigDelegate23, swigDelegate24, swigDelegate25, swigDelegate26, swigDelegate27, swigDelegate28, swigDelegate29, swigDelegate30, swigDelegate31, swigDelegate32, swigDelegate33, swigDelegate34, swigDelegate35, swigDelegate36, swigDelegate37, swigDelegate38, swigDelegate39, swigDelegate40); - } - + } + + +#if (DOT_NET_CORE) private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) { global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, methodTypes); @@ -578,6 +584,14 @@ namespace Tizen.NUI Tizen.Log.Debug("NUI-APP", "hasDerivedMethod=" + hasDerivedMethod); return hasDerivedMethod; } +#else + private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) + { + global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null); + bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(ViewImpl)); + return hasDerivedMethod; + } +#endif private void SwigDirectorOnStageConnection(int depth) { diff --git a/src/Tizen.NUI/src/internal/ViewMode.cs b/src/Tizen.NUI/src/internal/ViewMode.cs index 59b59c5..efe0d34 100755 --- a/src/Tizen.NUI/src/internal/ViewMode.cs +++ b/src/Tizen.NUI/src/internal/ViewMode.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum ViewMode { MONO, STEREO_HORIZONTAL, diff --git a/src/Tizen.NUI/src/internal/ViewRegistry.cs b/src/Tizen.NUI/src/internal/ViewRegistry.cs index 41872b4..37cecd0 100755 --- a/src/Tizen.NUI/src/internal/ViewRegistry.cs +++ b/src/Tizen.NUI/src/internal/ViewRegistry.cs @@ -1,8 +1,11 @@ -using System; +#define DOT_NET_CORE + +using System; using System.Runtime.InteropServices; using System.Collections.Generic; -using System.Reflection; - +#if (DOT_NET_CORE) +using System.Reflection; +#endif namespace Tizen.NUI { @@ -53,14 +56,14 @@ namespace Tizen.NUI /// in MyControl.h /// class MyControl : public Control /// { - /// struct Property + /// struct Property + /// { + /// enum /// { - /// enum - /// { - /// HOURS = Control::CONTROL_PROPERTY_END_INDEX + 1 - /// } - /// } - /// + /// HOURS = Control::CONTROL_PROPERTY_END_INDEX + 1 + /// } + /// } + /// } /// /// in MyControl-impl.cpp /// @@ -141,9 +144,10 @@ namespace Tizen.NUI private PropertyRangeManager _propertyRangeManager; /// - /// Given a C++ custom control the dictionary allows us to find what CustomView it belongs to + /// Given a C++ control the dictionary allows us to find which C# control (View) it belongs to. + /// By keeping the weak reference only, it will allow the object to be garbage collected. /// - private Dictionary _controlMap; + private Dictionary _controlMap; /// // Maps the name of a custom view to a create instance function @@ -179,7 +183,7 @@ namespace Tizen.NUI _getPropertyCallback = new GetPropertyDelegate(GetProperty); _setPropertyCallback = new SetPropertyDelegate(SetProperty); - _controlMap = new Dictionary(); + _controlMap = new Dictionary(); _constructorMap = new Dictionary>(); _propertyRangeManager = new PropertyRangeManager(); @@ -201,7 +205,7 @@ namespace Tizen.NUI } /// - /// Called directly from DALi C++ type registry to create a control (View) uses no marshalling. + /// Called directly from DALi C++ type registry to create a control (View) using no marshalling. /// /// Pointer to the Control (Views) handle /// C pointer to the Control (View) name @@ -217,17 +221,7 @@ namespace Tizen.NUI { // Create the control CustomView newControl = controlConstructor(); - - // Store the mapping between this instance of the custom control and native part - // We store a pointer to the RefObject for the control - IntPtr cPtr = newControl.GetPtrfromActor(); - RefObject refObj = newControl.GetObjectPtr(); - IntPtr refCptr = (IntPtr)RefObject.getCPtr(refObj); - - //Console.WriteLine ("________Storing ref object cptr in control map Hex: {0:X}", refCptr); - Instance._controlMap.Add(refCptr, newControl); - - return cPtr; // return pointer to handle + return newControl.GetPtrfromActor(); // return pointer to handle } else { @@ -236,6 +230,42 @@ namespace Tizen.NUI } } + /// + /// Store the mapping between this instance of control (View) and native part. + /// + /// The instance of control (View) + public static void RegisterView(View view) + { + // We store a pointer to the RefObject for the control + RefObject refObj = view.GetObjectPtr(); + IntPtr refCptr = (IntPtr)RefObject.getCPtr(refObj); + + //Console.WriteLine ("________Storing ref object cptr in control map Hex: {0:X}", refCptr); + if (!Instance._controlMap.ContainsKey(refCptr)) + { + Instance._controlMap.Add(refCptr, new WeakReference(view, false)); + } + + return; + } + + /// + /// Remove the this instance of control (View) and native part from the mapping table. + /// + /// The instance of control (View) + public static void UnregisterView(View view) + { + RefObject refObj = view.GetObjectPtr(); + IntPtr refCptr = (IntPtr)RefObject.getCPtr(refObj); + + if (Instance._controlMap.ContainsKey(refCptr)) + { + Instance._controlMap.Remove(refCptr); + } + + return; + } + private static IntPtr GetProperty(IntPtr controlPtr, IntPtr propertyName) { string name = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(propertyName); @@ -262,19 +292,17 @@ namespace Tizen.NUI } } - public static CustomView GetCustomViewFromActor(Actor actor) + public static View GetViewFromActor(Actor actor) { // we store a dictionary of ref-obects (C++ land) to custom views (C# land) - Tizen.NUI.CustomView view; RefObject refObj = actor.GetObjectPtr(); IntPtr refObjectPtr = (IntPtr)RefObject.getCPtr(refObj); - if (Instance._controlMap.TryGetValue(refObjectPtr, out view)) + WeakReference viewReference; + if (Instance._controlMap.TryGetValue(refObjectPtr, out viewReference)) { - - // call the get property function - + View view = viewReference.Target as View; return view; } else @@ -312,11 +340,15 @@ namespace Tizen.NUI { if (propertyInfo.CanRead) - { + { +#if (DOT_NET_CORE) IEnumerable ie_attrs = propertyInfo.GetCustomAttributes(); List li_attrs = new List(ie_attrs); System.Attribute[] attrs = li_attrs.ToArray(); +#else + System.Attribute[] attrs = System.Attribute.GetCustomAttributes(propertyInfo); +#endif foreach (System.Attribute attr in attrs) { @@ -351,16 +383,16 @@ namespace Tizen.NUI private IntPtr GetPropertyValue(IntPtr controlPtr, string propertyName) { // Get the C# control that maps to the C++ control - Tizen.NUI.CustomView view; - BaseHandle baseHandle = new BaseHandle(controlPtr, false); RefObject refObj = baseHandle.GetObjectPtr(); IntPtr refObjectPtr = (IntPtr)RefObject.getCPtr(refObj); - if (_controlMap.TryGetValue(refObjectPtr, out view)) + WeakReference viewReference; + if (_controlMap.TryGetValue(refObjectPtr, out viewReference)) { + View view = viewReference.Target as View; // call the get property function System.Object val = view.GetType().GetProperty(propertyName).GetAccessors()[0].Invoke(view, null); @@ -382,15 +414,15 @@ namespace Tizen.NUI private void SetPropertyValue(IntPtr controlPtr, string propertyName, IntPtr propertyValuePtr) { // Get the C# control that maps to the C++ control - Tizen.NUI.CustomView view; //Console.WriteLine ("SetPropertyValue refObjectPtr = {0:X}", controlPtr); PropertyValue propValue = new PropertyValue(propertyValuePtr, false); - if (_controlMap.TryGetValue(controlPtr, out view)) + WeakReference viewReference; + if (_controlMap.TryGetValue(controlPtr, out viewReference)) { - + View view = viewReference.Target as View; System.Reflection.PropertyInfo propertyInfo = view.GetType().GetProperty(propertyName); // We know the property name, we know it's type, we just need to convert from a DALi property value to native C# type @@ -472,7 +504,6 @@ namespace Tizen.NUI } else if (type.Equals(typeof(Size))) { - // DALi sizes are Vector3 Size value = new Size(); ok = propValue.Get(value); if (ok) diff --git a/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs b/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs index 811c0af..c1015ef 100755 --- a/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs +++ b/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs @@ -51,15 +51,13 @@ namespace Tizen.NUI public delegate bool OnAccessibilityZoomDelegate(); public delegate void OnKeyInputFocusGainedDelegate(); public delegate void OnKeyInputFocusLostDelegate(); - public delegate View GetNextFocusableViewDelegate(View currentFocusedView, View.FocusDirection direction, bool loopEnabled); - public delegate void OnFocusChangeCommittedDelegate(View commitedFocusableView); + public delegate Actor GetNextKeyboardFocusableActorDelegate(Actor currentFocusedActor, View.FocusDirection direction, bool loopEnabled); + public delegate void OnKeyboardFocusChangeCommittedDelegate(Actor commitedFocusableActor); public delegate bool OnKeyboardEnterDelegate(); public delegate void OnPinchDelegate(PinchGesture pinch); public delegate void OnPanDelegate(PanGesture pan); public delegate void OnTapDelegate(TapGesture tap); public delegate void OnLongPressDelegate(LongPressGesture longPress); - internal delegate void SignalConnectedDelegate(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback); - internal delegate void SignalDisconnectedDelegate(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback); public OnStageConnectionDelegate OnStageConnection; public OnStageDisconnectionDelegate OnStageDisconnection; @@ -92,15 +90,13 @@ namespace Tizen.NUI public OnAccessibilityZoomDelegate OnAccessibilityZoom; public OnKeyInputFocusGainedDelegate OnKeyInputFocusGained; public OnKeyInputFocusLostDelegate OnKeyInputFocusLost; - public GetNextFocusableViewDelegate GetNextFocusableView; - public OnFocusChangeCommittedDelegate OnFocusChangeCommitted; + public GetNextKeyboardFocusableActorDelegate GetNextKeyboardFocusableActor; + public OnKeyboardFocusChangeCommittedDelegate OnKeyboardFocusChangeCommitted; public OnKeyboardEnterDelegate OnKeyboardEnter; public OnPinchDelegate OnPinch; public OnPanDelegate OnPan; public OnTapDelegate OnTap; public OnLongPressDelegate OnLongPress; - internal SignalConnectedDelegate SignalConnected; - internal SignalDisconnectedDelegate SignalDisconnected; internal ViewWrapperImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapperImpl_SWIGUpcast(cPtr), cMemoryOwn) { @@ -135,7 +131,7 @@ namespace Tizen.NUI } } - public ViewWrapperImpl(ViewBehaviour behaviourFlags) : this(NDalicManualPINVOKE.new_ViewWrapperImpl((int)behaviourFlags), true) + public ViewWrapperImpl(CustomViewBehaviour behaviourFlags) : this(NDalicManualPINVOKE.new_ViewWrapperImpl((int)behaviourFlags), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); DirectorConnect(); @@ -411,7 +407,10 @@ namespace Tizen.NUI private void DirectorOnStyleChange(global::System.IntPtr styleManager, int change) { - OnStyleChange(new StyleManager(styleManager, false), (StyleChangeType)change); + if (OnStyleChange != null) + { + OnStyleChange(new StyleManager(styleManager, false), (StyleChangeType)change); + } } private bool DirectorOnAccessibilityActivated() @@ -484,16 +483,6 @@ namespace Tizen.NUI OnLongPress(new LongPressGesture(longPress, false)); } - private void DirectorSignalConnected(global::System.IntPtr slotObserver, global::System.IntPtr callback) - { - SignalConnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback, false)); - } - - private void DirectorSignalDisconnected(global::System.IntPtr slotObserver, global::System.IntPtr callback) - { - SignalDisconnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback, false)); - } - public delegate void DelegateViewWrapperImpl_0(int depth); public delegate void DelegateViewWrapperImpl_1(); public delegate void DelegateViewWrapperImpl_2(global::System.IntPtr child); @@ -578,15 +567,6 @@ namespace Tizen.NUI private DelegateViewWrapperImpl_39 Delegate39; private DelegateViewWrapperImpl_40 Delegate40; - public enum CustomViewBehaviour - { - VIEW_BEHAVIOUR_DEFAULT = 0, - DISABLE_SIZE_NEGOTIATION = 1 << 0, - REQUIRES_KEYBOARD_NAVIGATION_SUPPORT = 1 << 5, - DISABLE_STYLE_CHANGE_SIGNALS = 1 << 6, - LAST_VIEW_BEHAVIOUR_FLAG - } - public static readonly int VIEW_BEHAVIOUR_FLAG_COUNT = NDalicManualPINVOKE.ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get(); } } diff --git a/src/Tizen.NUI/src/internal/VisualTransformPropertyType.cs b/src/Tizen.NUI/src/internal/VisualTransformPropertyType.cs index de126f4..816a8e5 100755 --- a/src/Tizen.NUI/src/internal/VisualTransformPropertyType.cs +++ b/src/Tizen.NUI/src/internal/VisualTransformPropertyType.cs @@ -8,9 +8,9 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - - public enum VisualTransformPropertyType { +namespace Tizen.NUI { + +public enum VisualTransformPropertyType { OFFSET, SIZE, ORIGIN, diff --git a/src/Tizen.NUI/src/internal/VisualType.cs b/src/Tizen.NUI/src/internal/VisualType.cs index 0013819..8d6d226 100755 --- a/src/Tizen.NUI/src/internal/VisualType.cs +++ b/src/Tizen.NUI/src/internal/VisualType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum VisualType { BORDER, COLOR, diff --git a/src/Tizen.NUI/src/internal/VoidSignal.cs b/src/Tizen.NUI/src/internal/VoidSignal.cs index 0847468..b34dfba 100755 --- a/src/Tizen.NUI/src/internal/VoidSignal.cs +++ b/src/Tizen.NUI/src/internal/VoidSignal.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class VoidSignal : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/WrapModeType.cs b/src/Tizen.NUI/src/internal/WrapModeType.cs index 1bad554..de2cae5 100755 --- a/src/Tizen.NUI/src/internal/WrapModeType.cs +++ b/src/Tizen.NUI/src/internal/WrapModeType.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal enum WrapModeType { DEFAULT = 0, CLAMP_TO_EDGE, diff --git a/src/Tizen.NUI/src/internal/addedManually.cs b/src/Tizen.NUI/src/internal/dotnetcore/AddedException.cs similarity index 84% rename from src/Tizen.NUI/src/internal/addedManually.cs rename to src/Tizen.NUI/src/internal/dotnetcore/AddedException.cs index 06380cb..d59a4ef 100755 --- a/src/Tizen.NUI/src/internal/addedManually.cs +++ b/src/Tizen.NUI/src/internal/dotnetcore/AddedException.cs @@ -1,54 +1,54 @@ -/** 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 System -{ - public class ApplicationException : Exception - { - public ApplicationException() - { - new global::System.InvalidCastException(); - } - - public ApplicationException(string message) - { - new global::System.InvalidCastException(message); - } - - public ApplicationException(string message, Exception innerException) - { - new global::System.InvalidCastException(message, innerException); - } - } - - public class SystemException : Exception - { - public SystemException() - { - new global::System.InvalidCastException(); - } - - public SystemException(string message) - { - new global::System.InvalidCastException(message); - } - - public SystemException(string message, Exception innerException) - { - new global::System.InvalidCastException(message, innerException); - } - } -} +/** 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 System +{ + public class ApplicationException : Exception + { + public ApplicationException() + { + new global::System.InvalidCastException(); + } + + public ApplicationException(string message) + { + new global::System.InvalidCastException(message); + } + + public ApplicationException(string message, Exception innerException) + { + new global::System.InvalidCastException(message, innerException); + } + } + + public class SystemException : Exception + { + public SystemException() + { + new global::System.InvalidCastException(); + } + + public SystemException(string message) + { + new global::System.InvalidCastException(message); + } + + public SystemException(string message, Exception innerException) + { + new global::System.InvalidCastException(message, innerException); + } + } +} diff --git a/src/Tizen.NUI/src/internal/handleref.cs b/src/Tizen.NUI/src/internal/dotnetcore/HandleRef.cs similarity index 81% rename from src/Tizen.NUI/src/internal/handleref.cs rename to src/Tizen.NUI/src/internal/dotnetcore/HandleRef.cs index b2a181a..c83d431 100755 --- a/src/Tizen.NUI/src/internal/handleref.cs +++ b/src/Tizen.NUI/src/internal/dotnetcore/HandleRef.cs @@ -1,51 +1,55 @@ -// ==++== -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// ==--== -namespace System.Runtime.InteropServices -{ - - using System; - - [System.Runtime.InteropServices.ComVisible(true)] - public struct HandleRef - { - - // ! Do not add or rearrange fields as the EE depends on this layout. - //------------------------------------------------------------------ - internal Object m_wrapper; - internal IntPtr m_handle; - //------------------------------------------------------------------ - - - public HandleRef(Object wrapper, IntPtr handle) - { - m_wrapper = wrapper; - m_handle = handle; - } - - public Object Wrapper { - get { - return m_wrapper; - } - } - - public IntPtr Handle { - get { - return m_handle; - } - } - - - public static explicit operator IntPtr(HandleRef value) - { - return value.m_handle; - } - - public static IntPtr ToIntPtr(HandleRef value) - { - return value.m_handle; - } - } -} +// ==++== +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// ==--== +namespace System.Runtime.InteropServices +{ + + using System; + + [System.Runtime.InteropServices.ComVisible(true)] + public struct HandleRef + { + + // ! Do not add or rearrange fields as the EE depends on this layout. + //------------------------------------------------------------------ + internal Object m_wrapper; + internal IntPtr m_handle; + //------------------------------------------------------------------ + + + public HandleRef(Object wrapper, IntPtr handle) + { + m_wrapper = wrapper; + m_handle = handle; + } + + public Object Wrapper + { + get + { + return m_wrapper; + } + } + + public IntPtr Handle + { + get + { + return m_handle; + } + } + + + public static explicit operator IntPtr(HandleRef value) + { + return value.m_handle; + } + + public static IntPtr ToIntPtr(HandleRef value) + { + return value.m_handle; + } + } +} diff --git a/src/Tizen.NUI/src/internal/doublep.cs b/src/Tizen.NUI/src/internal/doublep.cs index bbdd388..43abc54 100755 --- a/src/Tizen.NUI/src/internal/doublep.cs +++ b/src/Tizen.NUI/src/internal/doublep.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class doublep : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/floatp.cs b/src/Tizen.NUI/src/internal/floatp.cs index f73f909..fa16cba 100755 --- a/src/Tizen.NUI/src/internal/floatp.cs +++ b/src/Tizen.NUI/src/internal/floatp.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class floatp : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/intp.cs b/src/Tizen.NUI/src/internal/intp.cs index e9c9228..bf3418e 100755 --- a/src/Tizen.NUI/src/internal/intp.cs +++ b/src/Tizen.NUI/src/internal/intp.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class intp : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/uintp.cs b/src/Tizen.NUI/src/internal/uintp.cs index 1f2751a..e177b41 100755 --- a/src/Tizen.NUI/src/internal/uintp.cs +++ b/src/Tizen.NUI/src/internal/uintp.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class uintp : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/internal/ushortp.cs b/src/Tizen.NUI/src/internal/ushortp.cs index 2362d9e..e5ec742 100755 --- a/src/Tizen.NUI/src/internal/ushortp.cs +++ b/src/Tizen.NUI/src/internal/ushortp.cs @@ -8,8 +8,8 @@ // the SWIG interface file instead. //------------------------------------------------------------------------------ -namespace Tizen.NUI { - +namespace Tizen.NUI { + internal class ushortp : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; diff --git a/src/Tizen.NUI/src/public/Actor.cs b/src/Tizen.NUI/src/public/Actor.cs index 468832b..65f12d6 100755 --- a/src/Tizen.NUI/src/public/Actor.cs +++ b/src/Tizen.NUI/src/public/Actor.cs @@ -1,33 +1,28 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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 +/** 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. +* +*/ +// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts +//------------------------------------------------------------------------------ +// // -// 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. +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 // - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ namespace Tizen.NUI { @@ -92,6 +87,21 @@ namespace Tizen.NUI return (IntPtr)swigCPtr; } + public Position CurrentPosition + { + get + { + return GetCurrentPosition(); + } + } + public Size CurrentSize + { + get + { + return GetCurrentSize(); + } + } + public Actor Parent { get @@ -114,6 +124,30 @@ namespace Tizen.NUI } } + public Vector2 ScreenPosition + { + get + { + Vector2 temp = new Vector2(0.0f, 0.0f); + GetProperty(Actor.Property.SCREEN_POSITION).Get(temp); + return temp; + } + } + + protected bool PositionUsesAnchorPoint + { + get + { + bool temp = false; + GetProperty(Actor.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp); + return temp; + } + set + { + SetProperty(Actor.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value)); + } + } + public bool IsOnStage { get @@ -144,6 +178,35 @@ namespace Tizen.NUI } } + public Size2D Size2D + { + get + { + Size temp = new Size(0.0f, 0.0f, 0.0f); + GetProperty(Actor.Property.SIZE).Get(temp); + return new Size2D(temp); + } + set + { + SetProperty(Actor.Property.SIZE, new PropertyValue(new Size(value))); + } + } + + public Position2D Position2D + { + get + { + Position temp = new Position(0.0f, 0.0f, 0.0f); + GetProperty(Actor.Property.POSITION).Get(temp); + return new Position2D(temp); + } + set + { + SetProperty(Actor.Property.POSITION, new PropertyValue(new Position(value))); + } + } + + public void Show() { SetVisible(true); @@ -154,6 +217,43 @@ namespace Tizen.NUI SetVisible(false); } + public void Raise() + { + NDalicPINVOKE.Raise(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void Lower() + { + NDalicPINVOKE.Lower(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RaiseToTop() + { + NDalicPINVOKE.RaiseToTop(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void LowerToBottom() + { + NDalicPINVOKE.LowerToBottom(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RaiseAbove(Actor target) + { + NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void LowerBelow(Actor target) + { + NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal class Property : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; @@ -194,6 +294,8 @@ namespace Tizen.NUI internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get(); internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get(); + internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get(); + internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get(); internal Property() : this(NDalicPINVOKE.new_Actor_Property(), true) { @@ -794,7 +896,7 @@ namespace Tizen.NUI return ret; } - internal void SetSizeModeFactor(Vector3 factor) + public void SetSizeModeFactor(Vector3 factor) { NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -982,18 +1084,11 @@ namespace Tizen.NUI SetProperty(Actor.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value)); } } - public Size CurrentSize - { - get - { - return GetCurrentSize(); - } - } public Size Size { get { - Size temp = new Size(0.0f, 0.0f, 0.0f); + Size temp = new Size(0.0f, 0.0f, 0.0f); GetProperty(Actor.Property.SIZE).Get(temp); return temp; } @@ -1041,18 +1136,11 @@ namespace Tizen.NUI SetProperty(Actor.Property.SIZE_DEPTH, new Tizen.NUI.PropertyValue(value)); } } - public Position CurrentPosition - { - get - { - return GetCurrentPosition(); - } - } public Position Position { get { - Position temp = new Position(0.0f, 0.0f, 0.0f); + Position temp = new Position(0.0f, 0.0f, 0.0f); GetProperty(Actor.Property.POSITION).Get(temp); return temp; } @@ -1561,7 +1649,7 @@ namespace Tizen.NUI { get { - Size2D temp = new Size2D(0.0f, 0.0f); + Size2D temp = new Size2D(0, 0); GetProperty(Actor.Property.MINIMUM_SIZE).Get(temp); return temp; } @@ -1575,7 +1663,7 @@ namespace Tizen.NUI { get { - Size2D temp = new Size2D(0.0f, 0.0f); + Size2D temp = new Size2D(0, 0); GetProperty(Actor.Property.MAXIMUM_SIZE).Get(temp); return temp; } @@ -1624,22 +1712,21 @@ namespace Tizen.NUI } } - //changed + public enum ColorMode { UseOwnColor, UseParentColor, UseOwnMultiplyParentColor, UseOwnMultiplyParentAlpha - } + } public enum DimensionType { Width = 0x1, Height = 0x2, AllDimensions = 0x3 - } - + } public enum DrawModeType { Normal = 0, @@ -1670,4 +1757,3 @@ namespace Tizen.NUI } } - diff --git a/src/Tizen.NUI/src/public/AlphaFunction.cs b/src/Tizen.NUI/src/public/AlphaFunction.cs index cfad0b7..b7c8fc3 100755 --- a/src/Tizen.NUI/src/public/AlphaFunction.cs +++ b/src/Tizen.NUI/src/public/AlphaFunction.cs @@ -1,33 +1,12 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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 +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 // -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ namespace Tizen.NUI { @@ -158,6 +137,6 @@ namespace Tizen.NUI Bezier } - } - -} + } + +} diff --git a/src/Tizen.NUI/src/public/Animation.cs b/src/Tizen.NUI/src/public/Animation.cs index a626665..5cc425f 100755 --- a/src/Tizen.NUI/src/public/Animation.cs +++ b/src/Tizen.NUI/src/public/Animation.cs @@ -1,33 +1,28 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// Copyright (c) 2017 Samsung Electronics Co., Ltd. +/** 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. +* +*/ +// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts +//------------------------------------------------------------------------------ +// // -// 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 +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 // -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ namespace Tizen.NUI { @@ -820,6 +815,6 @@ namespace Tizen.NUI Paused } - } - -} + } + +} diff --git a/src/Tizen.NUI/src/public/Button.cs b/src/Tizen.NUI/src/public/Button.cs index 5523fd8..07da1eb 100755 --- a/src/Tizen.NUI/src/public/Button.cs +++ b/src/Tizen.NUI/src/public/Button.cs @@ -1,33 +1,12 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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 +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 // -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ namespace Tizen.NUI { diff --git a/src/Tizen.NUI/src/public/CameraActor.cs b/src/Tizen.NUI/src/public/CameraActor.cs index 0783602..50deb03 100755 --- a/src/Tizen.NUI/src/public/CameraActor.cs +++ b/src/Tizen.NUI/src/public/CameraActor.cs @@ -1,480 +1,475 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed - -namespace Tizen.NUI -{ - - public class CameraActor : Actor - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal CameraActor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.CameraActor_SWIGUpcast(cPtr), cMemoryOwn) - { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CameraActor obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~CameraActor() - { - DisposeQueue.Instance.Add(this); - } - - public override void Dispose() - { - if (!Stage.IsInstalled()) - { - DisposeQueue.Instance.Add(this); - return; - } - - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_CameraActor(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - base.Dispose(); - } - } - - - internal class Property : global::System.IDisposable - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Property(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(Property obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~Property() - { - Dispose(); - } - - public virtual void Dispose() - { - lock (this) - { - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicPINVOKE.delete_CameraActor_Property(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - internal Property() : this(NDalicPINVOKE.new_CameraActor_Property(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal static readonly int TYPE = NDalicPINVOKE.CameraActor_Property_TYPE_get(); - internal static readonly int PROJECTION_MODE = NDalicPINVOKE.CameraActor_Property_PROJECTION_MODE_get(); - internal static readonly int FIELD_OF_VIEW = NDalicPINVOKE.CameraActor_Property_FIELD_OF_VIEW_get(); - internal static readonly int ASPECT_RATIO = NDalicPINVOKE.CameraActor_Property_ASPECT_RATIO_get(); - internal static readonly int NEAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_NEAR_PLANE_DISTANCE_get(); - internal static readonly int FAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_FAR_PLANE_DISTANCE_get(); - internal static readonly int LEFT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_LEFT_PLANE_DISTANCE_get(); - internal static readonly int RIGHT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_RIGHT_PLANE_DISTANCE_get(); - internal static readonly int TOP_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_TOP_PLANE_DISTANCE_get(); - internal static readonly int BOTTOM_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_BOTTOM_PLANE_DISTANCE_get(); - internal static readonly int TARGET_POSITION = NDalicPINVOKE.CameraActor_Property_TARGET_POSITION_get(); - internal static readonly int PROJECTION_MATRIX = NDalicPINVOKE.CameraActor_Property_PROJECTION_MATRIX_get(); - internal static readonly int VIEW_MATRIX = NDalicPINVOKE.CameraActor_Property_VIEW_MATRIX_get(); - internal static readonly int INVERT_Y_AXIS = NDalicPINVOKE.CameraActor_Property_INVERT_Y_AXIS_get(); - - } - - public CameraActor() : this(NDalicPINVOKE.CameraActor_New__SWIG_0(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - - } - public CameraActor(Size2D size) : this(NDalicPINVOKE.CameraActor_New__SWIG_1(Size2D.getCPtr(size)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - - } - public new static CameraActor DownCast(BaseHandle handle) - { - CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_DownCast(BaseHandle.getCPtr(handle)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal CameraActor(CameraActor copy) : this(NDalicPINVOKE.new_CameraActor__SWIG_1(CameraActor.getCPtr(copy)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal CameraActor Assign(CameraActor rhs) - { - CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_Assign(swigCPtr, CameraActor.getCPtr(rhs)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetType(CameraType type) - { - NDalicPINVOKE.CameraActor_SetType(swigCPtr, (int)type); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal CameraType GetType() - { - CameraType ret = (CameraType)NDalicPINVOKE.CameraActor_GetType(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetProjectionMode(ProjectionMode mode) - { - NDalicPINVOKE.CameraActor_SetProjectionMode(swigCPtr, (int)mode); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal ProjectionMode GetProjectionMode() - { - ProjectionMode ret = (ProjectionMode)NDalicPINVOKE.CameraActor_GetProjectionMode(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetFieldOfView(float fieldOfView) - { - NDalicPINVOKE.CameraActor_SetFieldOfView(swigCPtr, fieldOfView); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal float GetFieldOfView() - { - float ret = NDalicPINVOKE.CameraActor_GetFieldOfView(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetAspectRatio(float aspectRatio) - { - NDalicPINVOKE.CameraActor_SetAspectRatio(swigCPtr, aspectRatio); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal float GetAspectRatio() - { - float ret = NDalicPINVOKE.CameraActor_GetAspectRatio(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetNearClippingPlane(float nearClippingPlane) - { - NDalicPINVOKE.CameraActor_SetNearClippingPlane(swigCPtr, nearClippingPlane); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal float GetNearClippingPlane() - { - float ret = NDalicPINVOKE.CameraActor_GetNearClippingPlane(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetFarClippingPlane(float farClippingPlane) - { - NDalicPINVOKE.CameraActor_SetFarClippingPlane(swigCPtr, farClippingPlane); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal float GetFarClippingPlane() - { - float ret = NDalicPINVOKE.CameraActor_GetFarClippingPlane(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetTargetPosition(Vector3 targetPosition) - { - NDalicPINVOKE.CameraActor_SetTargetPosition(swigCPtr, Vector3.getCPtr(targetPosition)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal Vector3 GetTargetPosition() - { - Vector3 ret = new Vector3(NDalicPINVOKE.CameraActor_GetTargetPosition(swigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetInvertYAxis(bool invertYAxis) - { - NDalicPINVOKE.CameraActor_SetInvertYAxis(swigCPtr, invertYAxis); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal bool GetInvertYAxis() - { - bool ret = NDalicPINVOKE.CameraActor_GetInvertYAxis(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetPerspectiveProjection(Vector2 size) - { - NDalicPINVOKE.CameraActor_SetPerspectiveProjection(swigCPtr, Vector2.getCPtr(size)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetOrthographicProjection(Vector2 size) - { - NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_0(swigCPtr, Vector2.getCPtr(size)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetOrthographicProjection(float left, float right, float top, float bottom, float near, float far) - { - NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_1(swigCPtr, left, right, top, bottom, near, far); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public string Type - { - get - { - string temp; - GetProperty(CameraActor.Property.TYPE).Get(out temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.TYPE, new Tizen.NUI.PropertyValue(value)); - } - } - public string ProjectionMode - { - get - { - string temp; - GetProperty(CameraActor.Property.PROJECTION_MODE).Get(out temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.PROJECTION_MODE, new Tizen.NUI.PropertyValue(value)); - } - } - public float FieldOfView - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.FIELD_OF_VIEW).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.FIELD_OF_VIEW, new Tizen.NUI.PropertyValue(value)); - } - } - public float AspectRatio - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.ASPECT_RATIO).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.ASPECT_RATIO, new Tizen.NUI.PropertyValue(value)); - } - } - public float NearPlaneDistance - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.NEAR_PLANE_DISTANCE).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.NEAR_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); - } - } - public float FarPlaneDistance - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.FAR_PLANE_DISTANCE).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.FAR_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); - } - } - public float LeftPlaneDistance - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.LEFT_PLANE_DISTANCE).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.LEFT_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); - } - } - public float RightPlaneDistance - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.RIGHT_PLANE_DISTANCE).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.RIGHT_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); - } - } - public float TopPlaneDistance - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.TOP_PLANE_DISTANCE).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.TOP_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); - } - } - public float BottomPlaneDistance - { - get - { - float temp = 0.0f; - GetProperty(CameraActor.Property.BOTTOM_PLANE_DISTANCE).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.BOTTOM_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); - } - } - public Position TargetPosition - { - get - { - Position temp = new Position(0.0f, 0.0f, 0.0f); - GetProperty(CameraActor.Property.TARGET_POSITION).Get(temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.TARGET_POSITION, new Tizen.NUI.PropertyValue(value)); - } - } - internal Matrix ProjectionMatrix - { - get - { - Matrix temp = new Matrix(); - GetProperty(CameraActor.Property.PROJECTION_MATRIX).Get(temp); - return temp; - } - } - - internal Matrix ViewMatrix - { - get - { - Matrix temp = new Matrix(); - GetProperty(CameraActor.Property.VIEW_MATRIX).Get(temp); - return temp; - } - } - public bool InvertYAxis - { - get - { - bool temp = false; - GetProperty(CameraActor.Property.INVERT_Y_AXIS).Get(ref temp); - return temp; - } - set - { - SetProperty(CameraActor.Property.INVERT_Y_AXIS, new Tizen.NUI.PropertyValue(value)); - } - } - - } - - public enum CameraType - { - FreeLook, - LookAtTarget - } - - public enum ProjectionMode - { - PerspectiveProjection, - OrthographicProjection - } - -} +/** 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. +* +*/ +// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Tizen.NUI +{ + + public class CameraActor : Actor + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal CameraActor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.CameraActor_SWIGUpcast(cPtr), cMemoryOwn) + { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CameraActor obj) + { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~CameraActor() + { + DisposeQueue.Instance.Add(this); + } + + public override void Dispose() + { + if (!Stage.IsInstalled()) + { + DisposeQueue.Instance.Add(this); + return; + } + + lock (this) + { + if (swigCPtr.Handle != global::System.IntPtr.Zero) + { + if (swigCMemOwn) + { + swigCMemOwn = false; + NDalicPINVOKE.delete_CameraActor(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + + internal class Property : global::System.IDisposable + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Property(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(Property obj) + { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Property() + { + Dispose(); + } + + public virtual void Dispose() + { + lock (this) + { + if (swigCPtr.Handle != global::System.IntPtr.Zero) + { + if (swigCMemOwn) + { + swigCMemOwn = false; + NDalicPINVOKE.delete_CameraActor_Property(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + internal Property() : this(NDalicPINVOKE.new_CameraActor_Property(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal static readonly int TYPE = NDalicPINVOKE.CameraActor_Property_TYPE_get(); + internal static readonly int PROJECTION_MODE = NDalicPINVOKE.CameraActor_Property_PROJECTION_MODE_get(); + internal static readonly int FIELD_OF_VIEW = NDalicPINVOKE.CameraActor_Property_FIELD_OF_VIEW_get(); + internal static readonly int ASPECT_RATIO = NDalicPINVOKE.CameraActor_Property_ASPECT_RATIO_get(); + internal static readonly int NEAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_NEAR_PLANE_DISTANCE_get(); + internal static readonly int FAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_FAR_PLANE_DISTANCE_get(); + internal static readonly int LEFT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_LEFT_PLANE_DISTANCE_get(); + internal static readonly int RIGHT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_RIGHT_PLANE_DISTANCE_get(); + internal static readonly int TOP_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_TOP_PLANE_DISTANCE_get(); + internal static readonly int BOTTOM_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_BOTTOM_PLANE_DISTANCE_get(); + internal static readonly int TARGET_POSITION = NDalicPINVOKE.CameraActor_Property_TARGET_POSITION_get(); + internal static readonly int PROJECTION_MATRIX = NDalicPINVOKE.CameraActor_Property_PROJECTION_MATRIX_get(); + internal static readonly int VIEW_MATRIX = NDalicPINVOKE.CameraActor_Property_VIEW_MATRIX_get(); + internal static readonly int INVERT_Y_AXIS = NDalicPINVOKE.CameraActor_Property_INVERT_Y_AXIS_get(); + + } + + public CameraActor() : this(NDalicPINVOKE.CameraActor_New__SWIG_0(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + } + public CameraActor(Size2D size) : this(NDalicPINVOKE.CameraActor_New__SWIG_1(Size2D.getCPtr(size)), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + } + public new static CameraActor DownCast(BaseHandle handle) + { + CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_DownCast(BaseHandle.getCPtr(handle)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal CameraActor(CameraActor copy) : this(NDalicPINVOKE.new_CameraActor__SWIG_1(CameraActor.getCPtr(copy)), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal CameraActor Assign(CameraActor rhs) + { + CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_Assign(swigCPtr, CameraActor.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetType(CameraType type) + { + NDalicPINVOKE.CameraActor_SetType(swigCPtr, (int)type); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal CameraType GetType() + { + CameraType ret = (CameraType)NDalicPINVOKE.CameraActor_GetType(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetProjectionMode(ProjectionMode mode) + { + NDalicPINVOKE.CameraActor_SetProjectionMode(swigCPtr, (int)mode); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal ProjectionMode GetProjectionMode() + { + ProjectionMode ret = (ProjectionMode)NDalicPINVOKE.CameraActor_GetProjectionMode(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetFieldOfView(float fieldOfView) + { + NDalicPINVOKE.CameraActor_SetFieldOfView(swigCPtr, fieldOfView); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal float GetFieldOfView() + { + float ret = NDalicPINVOKE.CameraActor_GetFieldOfView(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetAspectRatio(float aspectRatio) + { + NDalicPINVOKE.CameraActor_SetAspectRatio(swigCPtr, aspectRatio); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal float GetAspectRatio() + { + float ret = NDalicPINVOKE.CameraActor_GetAspectRatio(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetNearClippingPlane(float nearClippingPlane) + { + NDalicPINVOKE.CameraActor_SetNearClippingPlane(swigCPtr, nearClippingPlane); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal float GetNearClippingPlane() + { + float ret = NDalicPINVOKE.CameraActor_GetNearClippingPlane(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetFarClippingPlane(float farClippingPlane) + { + NDalicPINVOKE.CameraActor_SetFarClippingPlane(swigCPtr, farClippingPlane); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal float GetFarClippingPlane() + { + float ret = NDalicPINVOKE.CameraActor_GetFarClippingPlane(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetTargetPosition(Vector3 targetPosition) + { + NDalicPINVOKE.CameraActor_SetTargetPosition(swigCPtr, Vector3.getCPtr(targetPosition)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal Vector3 GetTargetPosition() + { + Vector3 ret = new Vector3(NDalicPINVOKE.CameraActor_GetTargetPosition(swigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetInvertYAxis(bool invertYAxis) + { + NDalicPINVOKE.CameraActor_SetInvertYAxis(swigCPtr, invertYAxis); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal bool GetInvertYAxis() + { + bool ret = NDalicPINVOKE.CameraActor_GetInvertYAxis(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetPerspectiveProjection(Vector2 size) + { + NDalicPINVOKE.CameraActor_SetPerspectiveProjection(swigCPtr, Vector2.getCPtr(size)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal void SetOrthographicProjection(Vector2 size) + { + NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_0(swigCPtr, Vector2.getCPtr(size)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal void SetOrthographicProjection(float left, float right, float top, float bottom, float near, float far) + { + NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_1(swigCPtr, left, right, top, bottom, near, far); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public string Type + { + get + { + string temp; + GetProperty(CameraActor.Property.TYPE).Get(out temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.TYPE, new Tizen.NUI.PropertyValue(value)); + } + } + public string ProjectionMode + { + get + { + string temp; + GetProperty(CameraActor.Property.PROJECTION_MODE).Get(out temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.PROJECTION_MODE, new Tizen.NUI.PropertyValue(value)); + } + } + public float FieldOfView + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.FIELD_OF_VIEW).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.FIELD_OF_VIEW, new Tizen.NUI.PropertyValue(value)); + } + } + public float AspectRatio + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.ASPECT_RATIO).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.ASPECT_RATIO, new Tizen.NUI.PropertyValue(value)); + } + } + public float NearPlaneDistance + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.NEAR_PLANE_DISTANCE).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.NEAR_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); + } + } + public float FarPlaneDistance + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.FAR_PLANE_DISTANCE).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.FAR_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); + } + } + public float LeftPlaneDistance + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.LEFT_PLANE_DISTANCE).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.LEFT_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); + } + } + public float RightPlaneDistance + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.RIGHT_PLANE_DISTANCE).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.RIGHT_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); + } + } + public float TopPlaneDistance + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.TOP_PLANE_DISTANCE).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.TOP_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); + } + } + public float BottomPlaneDistance + { + get + { + float temp = 0.0f; + GetProperty(CameraActor.Property.BOTTOM_PLANE_DISTANCE).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.BOTTOM_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value)); + } + } + public Position TargetPosition + { + get + { + Position temp = new Position(0.0f, 0.0f, 0.0f); + GetProperty(CameraActor.Property.TARGET_POSITION).Get(temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.TARGET_POSITION, new Tizen.NUI.PropertyValue(value)); + } + } + internal Matrix ProjectionMatrix + { + get + { + Matrix temp = new Matrix(); + GetProperty(CameraActor.Property.PROJECTION_MATRIX).Get(temp); + return temp; + } + } + + internal Matrix ViewMatrix + { + get + { + Matrix temp = new Matrix(); + GetProperty(CameraActor.Property.VIEW_MATRIX).Get(temp); + return temp; + } + } + public bool InvertYAxis + { + get + { + bool temp = false; + GetProperty(CameraActor.Property.INVERT_Y_AXIS).Get(ref temp); + return temp; + } + set + { + SetProperty(CameraActor.Property.INVERT_Y_AXIS, new Tizen.NUI.PropertyValue(value)); + } + } + + } + + public enum CameraType + { + FreeLook, + LookAtTarget + } + + public enum ProjectionMode + { + PerspectiveProjection, + OrthographicProjection + } + +} diff --git a/src/Tizen.NUI/src/public/CheckBoxButton.cs b/src/Tizen.NUI/src/public/CheckBoxButton.cs index a995552..a76a5ef 100755 --- a/src/Tizen.NUI/src/public/CheckBoxButton.cs +++ b/src/Tizen.NUI/src/public/CheckBoxButton.cs @@ -1,33 +1,28 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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 +/** 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. +* +*/ +// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts +//------------------------------------------------------------------------------ +// // -// 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. +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 // - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ namespace Tizen.NUI { diff --git a/src/Tizen.NUI/src/public/Color.cs b/src/Tizen.NUI/src/public/Color.cs index f145c9e..77a21b4 100755 --- a/src/Tizen.NUI/src/public/Color.cs +++ b/src/Tizen.NUI/src/public/Color.cs @@ -1,38 +1,25 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed - +/* + * 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 { + using System; + public class Color : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; @@ -77,13 +64,59 @@ namespace Tizen.NUI } } - internal static Color GetVector4FromPtr(global::System.IntPtr cPtr) + + public static Color operator +(Color arg1, Color arg2) + { + return arg1.Add(arg2); + } + + public static Color operator -(Color arg1, Color arg2) + { + return arg1.Subtract(arg2); + } + + public static Color operator -(Color arg1) + { + return arg1.Subtract(); + } + + public static Color operator *(Color arg1, Color arg2) + { + return arg1.Multiply(arg2); + } + + public static Color operator *(Color arg1, float arg2) + { + return arg1.Multiply(arg2); + } + + public static Color operator /(Color arg1, Color arg2) + { + return arg1.Divide(arg2); + } + + public static Color operator /(Color arg1, float arg2) + { + return arg1.Divide(arg2); + } + + + public float this[uint index] + { + get + { + return ValueOfIndex(index); + } + } + + public static Color GetColorFromPtr(global::System.IntPtr cPtr) { Color ret = new Color(cPtr, false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } + public Color() : this(NDalicPINVOKE.new_Vector4__SWIG_0(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -94,6 +127,127 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + public Color(float[] array) : this(NDalicPINVOKE.new_Vector4__SWIG_2(array), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + private Color Add(Color rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_Add(swigCPtr, Color.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color AddAssign(Vector4 rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_AddAssign(swigCPtr, Color.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color Subtract(Color rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_Subtract__SWIG_0(swigCPtr, Color.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color SubtractAssign(Color rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_SubtractAssign(swigCPtr, Color.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color Multiply(Color rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_Multiply__SWIG_0(swigCPtr, Color.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color Multiply(float rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_Multiply__SWIG_1(swigCPtr, rhs), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color MultiplyAssign(Color rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_0(swigCPtr, Color.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color MultiplyAssign(float rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_1(swigCPtr, rhs), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color Divide(Vector4 rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_Divide__SWIG_0(swigCPtr, Color.getCPtr(rhs)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color Divide(float rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_Divide__SWIG_1(swigCPtr, rhs), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color DivideAssign(Color rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_DivideAssign__SWIG_0(swigCPtr, Color.getCPtr(rhs)), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color DivideAssign(float rhs) + { + Color ret = new Color(NDalicPINVOKE.Vector4_DivideAssign__SWIG_1(swigCPtr, rhs), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + private Color Subtract() + { + Color ret = new Color(NDalicPINVOKE.Vector4_Subtract__SWIG_1(swigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool EqualTo(Color rhs) + { + bool ret = NDalicPINVOKE.Vector4_EqualTo(swigCPtr, Color.getCPtr(rhs)); + + if (rhs == null) return false; + + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public bool NotEqualTo(Color rhs) + { + bool ret = NDalicPINVOKE.Vector4_NotEqualTo(swigCPtr, Color.getCPtr(rhs)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + + private float ValueOfIndex(uint index) + { + float ret = NDalicPINVOKE.Vector4_ValueOfIndex__SWIG_0(swigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public float R { set @@ -253,7 +407,18 @@ namespace Tizen.NUI } } + public static implicit operator Vector4(Color color) + { + return new Vector4(color.R, color.G, color.B, color.A); + } + + public static implicit operator Color(Vector4 vec) + { + return new Color(vec.R, vec.G, vec.B, vec.A); + } + } } + diff --git a/src/Tizen.NUI/src/public/ContentView.cs b/src/Tizen.NUI/src/public/ContentView.cs deleted file mode 100755 index 9f1bead..0000000 --- a/src/Tizen.NUI/src/public/ContentView.cs +++ /dev/null @@ -1,230 +0,0 @@ -/* - * 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.Collections.Generic; -using System.Linq; -using Tizen.NUI; - -// A contentView control (for use can add image or text to it.) - -namespace Tizen.NUI -{ - public class ContentView : CustomView - { - private int _iconVisualIndex; - private string _iconVisualUrl; - private bool _activeContent = false; - private bool _transitionInProgress = false; - - private VisualBase _iconVisual; - private Animation _animation; - private TransitionData _growTransitionData; - private TransitionData _shrinkTransitionData; - - - // Called by DALi Builder if it finds a ContentView control in a JSON file - static CustomView CreateInstance() - { - return new ContentView(); - } - - // static constructor registers the control type (only runs once) - static ContentView() - { - // ViewRegistry registers control type with DALi type registery - // also uses introspection to find any properties that need to be registered with type registry - ViewRegistry.Instance.Register(CreateInstance, typeof(ContentView)); - } - - public ContentView() : base(typeof(ContentView).Name, ViewBehaviour.ViewBehaviourDefault | ViewBehaviour.RequiresKeyboardNavigationSupport) - { - - } - - public override void OnInitialize() - { - _iconVisualIndex = RegisterProperty("iconVisual", new PropertyValue("./image/application-icon-0.png"), PropertyAccessMode.ReadWrite); - - PropertyMap animator = new PropertyMap(); - animator.Add("alphaFunction", new PropertyValue("LINEAR")); - - PropertyMap timePeriod = new PropertyMap(); - timePeriod.Add("duration", new PropertyValue(0.8f)); - timePeriod.Add("delay", new PropertyValue(0.0f)); - animator.Add("timePeriod", new PropertyValue(timePeriod)); - - PropertyMap growTransition = new PropertyMap(); - growTransition.Add("target", new PropertyValue("iconVisual")); - growTransition.Add("property", new PropertyValue("size")); - growTransition.Add("targetValue", new PropertyValue(new Vector2(100.0f, 100.0f))); - growTransition.Add("animator", new PropertyValue(animator)); - _growTransitionData = new TransitionData(growTransition); - - - PropertyMap shrinkTransition = new PropertyMap(); - shrinkTransition.Add("target", new PropertyValue("iconVisual")); - shrinkTransition.Add("property", new PropertyValue("size")); - shrinkTransition.Add("targetValue", new PropertyValue(new Vector2(50.0f, 50.0f))); - shrinkTransition.Add("animator", new PropertyValue(animator)); - _shrinkTransitionData = new TransitionData(shrinkTransition); - } - - /*public virtual void OnRelayout(Vector2 size, RelayoutContainer container) - { - Console.WriteLine ("--------------OnRelayout."); - RelayoutVisuals( size); - }*/ - - private void RelayoutVisuals(Vector2 size) - { - if (!_transitionInProgress) - { - if (_iconVisual) - { - PropertyMap iconVisualTransform = new PropertyMap(); - iconVisualTransform.Add((int)VisualTransformPropertyType.SIZE, new PropertyValue(new Vector2(50.0f, 50.0f))); - iconVisualTransform.Add((int)VisualTransformPropertyType.OFFSET, new PropertyValue(new Vector2(5.0f, 5.0f))); - iconVisualTransform.Add((int)VisualTransformPropertyType.OFFSET_SIZE_MODE, new PropertyValue(new Vector4(1.0f, 1.0f, 1.0f, 1.0f))); - iconVisualTransform.Add((int)VisualTransformPropertyType.ORIGIN, new PropertyValue((int)AlignType.TOP_BEGIN)); - iconVisualTransform.Add((int)VisualTransformPropertyType.ANCHOR_POINT, new PropertyValue((int)AlignType.TOP_BEGIN)); - _iconVisual.SetTransformAndSize(iconVisualTransform, size); - } - } - } - - [ScriptableProperty()] - public string IconVisual - { - get - { - return _iconVisualUrl; - } - set - { - _iconVisualUrl = value; - if (_iconVisual) - { - //RelayoutRequest(); - EnableVisual(_iconVisualIndex, false); - UnregisterVisual(_iconVisualIndex); - } - - PropertyMap iconVisualMap = new PropertyMap(); ; - iconVisualMap.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Image)); - iconVisualMap.Add(Tizen.NUI.Constants.ImageVisualProperty.URL, new PropertyValue(_iconVisualUrl)); - _iconVisual = VisualFactory.Get().CreateVisual(iconVisualMap); - _iconVisual.Name = ("iconVisual"); - - RelayoutVisuals(new Vector2(250.0f, 250.0f)); - RegisterVisual(_iconVisualIndex, _iconVisual); - _iconVisual.DepthIndex = (1.0f); - } - - } - - - - [ScriptableProperty()] - public bool ActiveContent - { - get - { - return _activeContent; - } - set - { - _activeContent = value; - StartTransition(_activeContent); - } - } - - private void StartTransition(bool activate) - { - if (_animation) - { - _animation.Stop(); - _animation.Finished += OnTransitionFinished; - } - if (activate) - { - _animation = CreateTransition(_growTransitionData); - } - else - { - _animation = CreateTransition(_shrinkTransitionData); - } - - if (_animation) - { - _animation.Finished += OnTransitionFinished; - _transitionInProgress = true; - _animation.Play(); - } - } - - private void OnTransitionFinished(object sender, EventArgs e) - { - _transitionInProgress = false; - if (_animation) - { - _animation.Finished += OnTransitionFinished; - _animation.Reset(); - } - } - - public ImageVisualMap ImageVisual - { - set - { - if (value.URL != "") - { - VisualBase _imageVisual; - int _imageVisualIndex = RegisterProperty("ImageVisual", new PropertyValue(value.URL), PropertyAccessMode.ReadWrite); - _imageVisual = VisualFactory.Get().CreateVisual(value.OutputMap); - RegisterVisual(_imageVisualIndex, _imageVisual); - _imageVisual.DepthIndex = value.DepthIndex; - } - } - } - - public TextVisualMap TextVisual - { - set - { - if (value.Text != "" && value.PointSize != 0) - { - Tizen.Log.Debug("NUI", "p2 !!!!!"); - - PropertyMap _outputMap = new PropertyMap(); ; - _outputMap.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.WireFrame + 1)); - _outputMap.Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue("ABCD")); - _outputMap.Add(Tizen.NUI.Constants.TextVisualProperty.PointSize, new PropertyValue(10.0f)); - - VisualBase _textVisual; - int _textVisualIndex = RegisterProperty("TextVisual", new PropertyValue(_outputMap), PropertyAccessMode.ReadWrite); - _textVisual = VisualFactory.Get().CreateVisual(_outputMap); - RegisterVisual(_textVisualIndex, _textVisual, true); - _textVisual.DepthIndex = value.DepthIndex; - Tizen.Log.Debug("NUI", "p2 !!!!! _textVisualIndex=" + _textVisualIndex + "is enabled?=" + IsVisualEnabled(_textVisualIndex)); - } - } - } - - } -} \ No newline at end of file diff --git a/src/Tizen.NUI/src/public/CustomView.cs b/src/Tizen.NUI/src/public/CustomView.cs index e9c5042..8e50ec9 100755 --- a/src/Tizen.NUI/src/public/CustomView.cs +++ b/src/Tizen.NUI/src/public/CustomView.cs @@ -1,876 +1,851 @@ -// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved -// PROPRIETARY/CONFIDENTIAL -// This software is the confidential and proprietary -// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall -// not disclose such Confidential Information and shall use it only in -// accordance with the terms of the license agreement you entered into with -// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the -// suitability of the software, either express or implied, including but not -// limited to the implied warranties of merchantability, fitness for a -// particular purpose, or non-infringement. SAMSUNG shall not be liable for any -// damages suffered by licensee as a result of using, modifying or distributing -// this software or its derivatives. - -// 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. -// - -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -// Some have been manually changed - -namespace Tizen.NUI -{ - public class CustomView : ViewWrapper - { - public CustomView(string typeName, ViewBehaviour behaviour) : base(typeName, new ViewWrapperImpl(behaviour)) - { - // Registering CustomView virtual functions to viewWrapperImpl delegates. - viewWrapperImpl.OnStageConnection = new ViewWrapperImpl.OnStageConnectionDelegate(OnStageConnection); - viewWrapperImpl.OnStageDisconnection = new ViewWrapperImpl.OnStageDisconnectionDelegate(OnStageDisconnection); - viewWrapperImpl.OnChildAdd = new ViewWrapperImpl.OnChildAddDelegate(OnChildAdd); - viewWrapperImpl.OnChildRemove = new ViewWrapperImpl.OnChildRemoveDelegate(OnChildRemove); - viewWrapperImpl.OnPropertySet = new ViewWrapperImpl.OnPropertySetDelegate(OnPropertySet); - viewWrapperImpl.OnSizeSet = new ViewWrapperImpl.OnSizeSetDelegate(OnSizeSet); - viewWrapperImpl.OnSizeAnimation = new ViewWrapperImpl.OnSizeAnimationDelegate(OnSizeAnimation); - viewWrapperImpl.OnTouch = new ViewWrapperImpl.OnTouchDelegate(OnTouch); - viewWrapperImpl.OnHover = new ViewWrapperImpl.OnHoverDelegate(OnHover); - viewWrapperImpl.OnKey = new ViewWrapperImpl.OnKeyDelegate(OnKey); - viewWrapperImpl.OnWheel = new ViewWrapperImpl.OnWheelDelegate(OnWheel); - viewWrapperImpl.OnRelayout = new ViewWrapperImpl.OnRelayoutDelegate(OnRelayout); - viewWrapperImpl.OnSetResizePolicy = new ViewWrapperImpl.OnSetResizePolicyDelegate(OnSetResizePolicy); - viewWrapperImpl.GetNaturalSize = new ViewWrapperImpl.GetNaturalSizeDelegate(GetNaturalSize); - viewWrapperImpl.CalculateChildSize = new ViewWrapperImpl.CalculateChildSizeDelegate(CalculateChildSize); - viewWrapperImpl.GetHeightForWidth = new ViewWrapperImpl.GetHeightForWidthDelegate(GetHeightForWidth); - viewWrapperImpl.GetWidthForHeight = new ViewWrapperImpl.GetWidthForHeightDelegate(GetWidthForHeight); - viewWrapperImpl.RelayoutDependentOnChildrenDimension = new ViewWrapperImpl.RelayoutDependentOnChildrenDimensionDelegate(RelayoutDependentOnChildren); - viewWrapperImpl.RelayoutDependentOnChildren = new ViewWrapperImpl.RelayoutDependentOnChildrenDelegate(RelayoutDependentOnChildren); - viewWrapperImpl.OnCalculateRelayoutSize = new ViewWrapperImpl.OnCalculateRelayoutSizeDelegate(OnCalculateRelayoutSize); - viewWrapperImpl.OnLayoutNegotiated = new ViewWrapperImpl.OnLayoutNegotiatedDelegate(OnLayoutNegotiated); - viewWrapperImpl.OnControlChildAdd = new ViewWrapperImpl.OnControlChildAddDelegate(OnControlChildAdd); - viewWrapperImpl.OnControlChildRemove = new ViewWrapperImpl.OnControlChildRemoveDelegate(OnControlChildRemove); - viewWrapperImpl.OnStyleChange = new ViewWrapperImpl.OnStyleChangeDelegate(OnStyleChange); - viewWrapperImpl.OnAccessibilityActivated = new ViewWrapperImpl.OnAccessibilityActivatedDelegate(OnAccessibilityActivated); - viewWrapperImpl.OnAccessibilityPan = new ViewWrapperImpl.OnAccessibilityPanDelegate(OnAccessibilityPan); - viewWrapperImpl.OnAccessibilityTouch = new ViewWrapperImpl.OnAccessibilityTouchDelegate(OnAccessibilityTouch); - viewWrapperImpl.OnAccessibilityValueChange = new ViewWrapperImpl.OnAccessibilityValueChangeDelegate(OnAccessibilityValueChange); - viewWrapperImpl.OnAccessibilityZoom = new ViewWrapperImpl.OnAccessibilityZoomDelegate(OnAccessibilityZoom); - viewWrapperImpl.OnKeyInputFocusGained = new ViewWrapperImpl.OnKeyInputFocusGainedDelegate(OnFocusGained); - viewWrapperImpl.OnKeyInputFocusLost = new ViewWrapperImpl.OnKeyInputFocusLostDelegate(OnFocusLost); - viewWrapperImpl.GetNextFocusableView = new ViewWrapperImpl.GetNextFocusableViewDelegate(GetNextFocusableView); - viewWrapperImpl.OnFocusChangeCommitted = new ViewWrapperImpl.OnFocusChangeCommittedDelegate(OnFocusChangeCommitted); - viewWrapperImpl.OnKeyboardEnter = new ViewWrapperImpl.OnKeyboardEnterDelegate(OnKeyEnter); - viewWrapperImpl.OnPinch = new ViewWrapperImpl.OnPinchDelegate(OnPinch); - viewWrapperImpl.OnPan = new ViewWrapperImpl.OnPanDelegate(OnPan); - viewWrapperImpl.OnTap = new ViewWrapperImpl.OnTapDelegate(OnTap); - viewWrapperImpl.OnLongPress = new ViewWrapperImpl.OnLongPressDelegate(OnLongPress); - viewWrapperImpl.SignalConnected = new ViewWrapperImpl.SignalConnectedDelegate(SignalConnected); - viewWrapperImpl.SignalDisconnected = new ViewWrapperImpl.SignalDisconnectedDelegate(SignalDisconnected); - - // Make sure CustomView is initialized. - OnInitialize(); - - // Make sure the style of actors/visuals initialized above are applied by the style manager. - viewWrapperImpl.ApplyThemeStyle(); - } - - /** - * @brief Set the background with a property map. - * - * @param[in] map The background property map. - */ - public void SetBackground(Tizen.NUI.PropertyMap map) - { - viewWrapperImpl.SetBackground(map); - } - - /** - * @brief Allows deriving classes to enable any of the gesture detectors that are available. - * - * Gesture detection can be enabled one at a time or in bitwise format as shown: - * @code - * EnableGestureDetection(Gesture.Type.Pinch | Gesture.Type.Tap | Gesture.Type.Pan)); - * @endcode - * @param[in] type The gesture type(s) to enable. - */ - internal void EnableGestureDetection(Gesture.GestureType type) - { - viewWrapperImpl.EnableGestureDetection(type); - } - - /** - * @brief Allows deriving classes to disable any of the gesture detectors. - * - * Like EnableGestureDetection, this can also be called using bitwise or. - * @param[in] type The gesture type(s) to disable. - * @see EnableGetureDetection - */ - internal void DisableGestureDetection(Gesture.GestureType type) - { - viewWrapperImpl.DisableGestureDetection(type); - } - - /** - * @brief Sets whether this control supports two dimensional - * keyboard navigation (i.e. whether it knows how to handle the - * keyboard focus movement between its child actors). - * - * The control doesn't support it by default. - * @param[in] isSupported Whether this control supports two dimensional keyboard navigation. - */ - - public bool FocusNavigationSupport - { - get - { - return IsKeyboardNavigationSupported(); - } - set - { - SetKeyboardNavigationSupport(value); - } - } - - internal void SetKeyboardNavigationSupport(bool isSupported) - { - viewWrapperImpl.SetKeyboardNavigationSupport(isSupported); - } - - - /** - * @brief Gets whether this control supports two dimensional keyboard navigation. - * - * @return true if this control supports two dimensional keyboard navigation. - */ - internal bool IsKeyboardNavigationSupported() - { - return viewWrapperImpl.IsKeyboardNavigationSupported(); - } - - - public bool FocusGroup - { - get - { - return IsKeyboardFocusGroup(); - } - set - { - SetAsKeyboardFocusGroup(value); - } - } - - /** - * @brief Sets whether this control is a focus group for keyboard navigation. - * - * (i.e. the scope of keyboard focus movement - * can be limitied to its child actors). The control is not a focus group by default. - * @param[in] isFocusGroup Whether this control is set as a focus group for keyboard navigation. - */ - internal void SetAsKeyboardFocusGroup(bool isFocusGroup) - { - viewWrapperImpl.SetAsKeyboardFocusGroup(isFocusGroup); - } - - /** - * @brief Gets whether this control is a focus group for keyboard navigation. - * - * @return true if this control is set as a focus group for keyboard navigation. - */ - internal bool IsKeyboardFocusGroup() - { - return viewWrapperImpl.IsKeyboardFocusGroup(); - } - - /** - * @brief Called by the AccessibilityManager to activate the Control. - * @SINCE_1_0.0 - */ - internal void AccessibilityActivate() - { - viewWrapperImpl.AccessibilityActivate(); - } - - /** - * @brief Called by the KeyboardFocusManager. - */ - public void KeyboardEnter() - { - viewWrapperImpl.KeyboardEnter(); - } - - /** - * @brief Called by the KeyInputFocusManager to emit key event signals. - * - * @param[in] key The key event. - * @return True if the event was consumed. - */ - public bool EmitKeyEventSignal(Key key) - { - return viewWrapperImpl.EmitKeyEventSignal(key); - } - - /** - * @brief Request a relayout, which means performing a size negotiation on this actor, its parent and children (and potentially whole scene). - * - * This method can also be called from a derived class every time it needs a different size. - * At the end of event processing, the relayout process starts and - * all controls which requested Relayout will have their sizes (re)negotiated. - * - * @note RelayoutRequest() can be called multiple times; the size negotiation is still - * only performed once, i.e. there is no need to keep track of this in the calling side. - */ - protected void RelayoutRequest() - { - viewWrapperImpl.RelayoutRequest(); - } - - /** - * @brief Provides the Actor implementation of GetHeightForWidth. - * @param width Width to use. - * @return The height based on the width. - */ - protected float GetHeightForWidthBase(float width) - { - return viewWrapperImpl.GetHeightForWidthBase(width); - } - - /** - * @brief Provides the Actor implementation of GetWidthForHeight. - * @param height Height to use. - * @return The width based on the height. - */ - protected float GetWidthForHeightBase(float height) - { - return viewWrapperImpl.GetWidthForHeightBase(height); - } - - /** - * @brief Calculate the size for a child using the base actor object. - * - * @param[in] child The child actor to calculate the size for - * @param[in] dimension The dimension to calculate the size for. E.g. width or height - * @return Return the calculated size for the given dimension. If more than one dimension is requested, just return the first one found. - */ - protected float CalculateChildSizeBase(Actor child, DimensionType dimension) - { - return viewWrapperImpl.CalculateChildSizeBase(child, dimension); - } - - /** - * @brief Determine if this actor is dependent on it's children for relayout from the base class. - * - * @param dimension The dimension(s) to check for - * @return Return if the actor is dependent on it's children. - */ - protected bool RelayoutDependentOnChildrenBase(DimensionType dimension) - { - return viewWrapperImpl.RelayoutDependentOnChildrenBase(dimension); - } - - /** - * @brief Determine if this actor is dependent on it's children for relayout from the base class. - * - * @param dimension The dimension(s) to check for - * @return Return if the actor is dependent on it's children. - */ - protected bool RelayoutDependentOnChildrenBase() - { - return viewWrapperImpl.RelayoutDependentOnChildrenBase(); - } - - /** - * @brief Register a visual by Property Index, linking an Actor to visual when required. - * In the case of the visual being an actor or control deeming visual not required then visual should be an empty handle. - * No parenting is done during registration, this should be done by derived class. - * - * @param[in] index The Property index of the visual, used to reference visual - * @param[in] visual The visual to register - * @note Derived class should not call visual.SetOnStage(actor). It is the responsibility of the base class to connect/disconnect registered visual to stage. - * Use below API with enabled set to false if derived class wishes to control when visual is staged. - */ - protected void RegisterVisual(int index, VisualBase visual) - { - viewWrapperImpl.RegisterVisual(index, visual); - } - - /** - * @brief Register a visual by Property Index, linking an Actor to visual when required. - * In the case of the visual being an actor or control deeming visual not required then visual should be an empty handle. - * If enabled is false then the visual is not set on stage until enabled by the derived class. - * @see EnableVisual - * - * @param[in] index The Property index of the visual, used to reference visual - * @param[in] visual The visual to register - * @param[in] enabled false if derived class wants to control when visual is set on stage. - * - */ - protected void RegisterVisual(int index, VisualBase visual, bool enabled) - { - viewWrapperImpl.RegisterVisual(index, visual, enabled); - } - - /** - * @brief Erase the entry matching the given index from the list of registered visuals - * @param[in] index The Property index of the visual, used to reference visual - * - */ - protected void UnregisterVisual(int index) - { - viewWrapperImpl.UnregisterVisual(index); - } - - /** - * @brief Retrieve the visual associated with the given property index. - * - * @param[in] index The Property index of the visual. - * @return The registered visual if exist, otherwise empty handle. - * @note For managing object life-cycle, do not store the returned visual as a member which increments its reference count. - */ - protected VisualBase GetVisual(int index) - { - return viewWrapperImpl.GetVisual(index); - } - - /** - * @brief Sets the given visual to be displayed or not when parent staged. - * - * @param[in] index The Property index of the visual - * @param[in] enable flag to set enabled or disabled. - */ - protected void EnableVisual(int index, bool enable) - { - viewWrapperImpl.EnableVisual(index, enable); - } - - /** - * @brief Queries if the given visual is to be displayed when parent staged. - * - * @param[in] index The Property index of the visual - * @return bool whether visual is enabled or not - */ - protected bool IsVisualEnabled(int index) - { - return viewWrapperImpl.IsVisualEnabled(index); - } - - /** - * @brief Create a transition effect on the control. - * - * @param[in] transitionData The transition data describing the effect to create - * @return A handle to an animation defined with the given effect, or an empty - * handle if no properties match. - */ - protected Animation CreateTransition(TransitionData transitionData) - { - return viewWrapperImpl.CreateTransition(transitionData); - } - - /** - * @brief Emits KeyInputFocusGained signal if true else emits KeyInputFocusLost signal - * - * Should be called last by the control after it acts on the Input Focus change. - * - * @param[in] focusGained True if gained, False if lost - */ - protected void EmitKeyInputFocusSignal(bool focusGained) - { - viewWrapperImpl.EmitKeyInputFocusSignal(focusGained); - } - - /** - * @brief This method is called after the Control has been initialized. - * - * Derived classes should do any second phase initialization by overriding this method. - */ - public virtual void OnInitialize() - { - } - - /** - * @brief Called after the actor has been connected to the stage. - * - * When an actor is connected, it will be directly or indirectly parented to the root Actor. - * @param[in] depth The depth in the hierarchy for the actor - * - * @note The root Actor is provided automatically by Dali::Stage, and is always considered to be connected. - * When the parent of a set of actors is connected to the stage, then all of the children - * will received this callback. - * For the following actor tree, the callback order will be A, B, D, E, C, and finally F. - * - * @code - * - * A (parent) - * / \ - * B C - * / \ \ - * D E F - * - * @endcode - * @param[in] depth The depth in the hierarchy for the actor - */ - public virtual void OnStageConnection(int depth) - { - } - - /** - * @brief Called after the actor has been disconnected from Stage. - * - * If an actor is disconnected it either has no parent, or is parented to a disconnected actor. - * - * @note When the parent of a set of actors is disconnected to the stage, then all of the children - * will received this callback, starting with the leaf actors. - * For the following actor tree, the callback order will be D, E, B, F, C, and finally A. - * - * @code - * - * A (parent) - * / \ - * B C - * / \ \ - * D E F - * - * @endcode - */ - public virtual void OnStageDisconnection() - { - } - - /** - * @brief Called after a child has been added to the owning actor. - * - * @param[in] child The child which has been added - */ - public virtual void OnChildAdd(Actor actor) - { - } - - /** - * @brief Called after the owning actor has attempted to remove a child( regardless of whether it succeeded or not ). - * - * @param[in] child The child being removed - */ - public virtual void OnChildRemove(Actor actor) - { - } - - /** - * @brief Called when the owning actor property is set. - * - * @param[in] index The Property index that was set - * @param[in] propertyValue The value to set - */ - public virtual void OnPropertySet(int index, Tizen.NUI.PropertyValue propertyValue) - { - } - - /** - * @brief Called when the owning actor's size is set e.g. using Actor::SetSize(). - * - * @param[in] targetSize The target size. Note that this target size may not match the size returned via Actor.GetTargetSize. - */ - public virtual void OnSizeSet(Vector3 targetSize) - { - } - - /** - * @brief Called when the owning actor's size is animated e.g. using Animation::AnimateTo( Property( actor, Actor::Property::SIZE ), ... ). - * - * @param[in] animation The object which is animating the owning actor. - * @param[in] targetSize The target size. Note that this target size may not match the size returned via @ref Actor.GetTargetSize. - */ - public virtual void OnSizeAnimation(Animation animation, Vector3 targetSize) - { - } - - /** - * @DEPRECATED_1_1.37 Connect to TouchSignal() instead. - * - * @brief Called after a touch-event is received by the owning actor. - * - * @param[in] touch The touch event - * @return True if the event should be consumed. - * @note CustomViewBehaviour.REQUIRES_TOUCH_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour). - */ - public virtual bool OnTouch(Touch touch) - { - return false; // Do not consume - } - - /** - * @brief Called after a hover-event is received by the owning actor. - * - * @param[in] hover The hover event - * @return True if the hover event should be consumed. - * @note CustomViewBehaviour.REQUIRES_HOVER_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour). - */ - public virtual bool OnHover(Hover hover) - { - return false; // Do not consume - } - - /** - * @brief Called after a key-event is received by the actor that has had its focus set. - * - * @param[in] key the Key Event - * @return True if the event should be consumed. - */ - public virtual bool OnKey(Key key) - { - return false; // Do not consume - } - - /** - * @brief Called after a wheel-event is received by the owning actor. - * - * @param[in] wheel The wheel event - * @return True if the event should be consumed. - * @note CustomViewBehaviour.REQUIRES_WHEEL_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour). - */ - public virtual bool OnWheel(Wheel wheel) - { - return false; // Do not consume - } - - /** - * @brief Called after the size negotiation has been finished for this control. - * - * The control is expected to assign this given size to itself/its children. - * - * Should be overridden by derived classes if they need to layout - * actors differently after certain operations like add or remove - * actors, resize or after changing specific properties. - * - * @param[in] size The allocated size. - * @param[in,out] container The control should add actors to this container that it is not able - * to allocate a size for. - * @note As this function is called from inside the size negotiation algorithm, you cannot - * call RequestRelayout (the call would just be ignored). - */ - public virtual void OnRelayout(Vector2 size, RelayoutContainer container) - { - } - - /** - * @brief Notification for deriving classes - * - * @param[in] policy The policy being set - * @param[in] dimension The dimension the policy is being set for - */ - public virtual void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension) - { - } - - /** - * @brief Return the natural size of the actor. - * - * @return The actor's natural size - */ - public virtual Size GetNaturalSize() - { - return new Size(0.0f, 0.0f, 0.0f); - } - - /** - * @brief Calculate the size for a child. - * - * @param[in] child The child actor to calculate the size for - * @param[in] dimension The dimension to calculate the size for. E.g. width or height. - * @return Return the calculated size for the given dimension. - */ - public virtual float CalculateChildSize(Actor child, DimensionType dimension) - { - return viewWrapperImpl.CalculateChildSizeBase(child, dimension); - } - - /** - * @brief This method is called during size negotiation when a height is required for a given width. - * - * Derived classes should override this if they wish to customize the height returned. - * - * @param width Width to use. - * @return The height based on the width. - */ - public virtual float GetHeightForWidth(float width) - { - return viewWrapperImpl.GetHeightForWidthBase(width); - } - - /** - * @brief This method is called during size negotiation when a width is required for a given height. - * - * Derived classes should override this if they wish to customize the width returned. - * - * @param height Height to use. - * @return The width based on the width. - */ - public virtual float GetWidthForHeight(float height) - { - return viewWrapperImpl.GetWidthForHeightBase(height); - } - - /** - * @brief Determine if this actor is dependent on it's children for relayout. - * - * @param dimension The dimension(s) to check for - * @return Return if the actor is dependent on it's children. - */ - public virtual bool RelayoutDependentOnChildren(DimensionType dimension) - { - return viewWrapperImpl.RelayoutDependentOnChildrenBase(dimension); - } - - /** - * @brief Determine if this actor is dependent on it's children for relayout from the base class. - * - * @return Return if the actor is dependent on it's children. - */ - public virtual bool RelayoutDependentOnChildren() - { - return viewWrapperImpl.RelayoutDependentOnChildrenBase(); - } - - /** - * @brief Virtual method to notify deriving classes that relayout dependencies have been - * met and the size for this object is about to be calculated for the given dimension - * - * @param dimension The dimension that is about to be calculated - */ - public virtual void OnCalculateRelayoutSize(DimensionType dimension) - { - } - - /** - * @brief Virtual method to notify deriving classes that the size for a dimension - * has just been negotiated - * - * @param[in] size The new size for the given dimension - * @param[in] dimension The dimension that was just negotiated - */ - public virtual void OnLayoutNegotiated(float size, DimensionType dimension) - { - } - - /** - * @brief This method should be overridden by deriving classes requiring notifications when the style changes. - * - * @param[in] styleManager The StyleManager object. - * @param[in] change Information denoting what has changed. - */ - public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change) - { - } - - /** - * @brief This method is called when the control is accessibility activated. - * - * Derived classes should override this to perform custom accessibility activation. - * @return true if this control can perform accessibility activation. - */ - internal virtual bool OnAccessibilityActivated() - { - return false; - } - - /** - * @brief This method should be overridden by deriving classes when they wish to respond the accessibility - * pan gesture. - * - * @param[in] gesture The pan gesture. - * @return true if the pan gesture has been consumed by this control - */ - internal virtual bool OnAccessibilityPan(PanGesture gestures) - { - return false; - } - - /** - * @brief This method should be overridden by deriving classes when they wish to respond the accessibility - * touch event. - * - * @param[in] touch The touch event. - * @return true if the touch event has been consumed by this control - */ - internal virtual bool OnAccessibilityTouch(Touch touch) - { - return false; - } - - /** - * @brief This method should be overridden by deriving classes when they wish to respond - * the accessibility up and down action (i.e. value change of slider control). - * - * @param[in] isIncrease Whether the value should be increased or decreased - * @return true if the value changed action has been consumed by this control - */ - internal virtual bool OnAccessibilityValueChange(bool isIncrease) - { - return false; - } - - /** - * @brief This method should be overridden by deriving classes when they wish to respond - * the accessibility zoom action. - * - * @return true if the zoom action has been consumed by this control - */ - internal virtual bool OnAccessibilityZoom() - { - return false; - } - - /** - * @brief This method should be overridden by deriving classes when they wish to respond - * the accessibility zoom action. - * - * @return true if the zoom action has been consumed by this control - */ - public virtual void OnFocusGained() - { - } - - /** - * @brief Called when the control loses key input focus. - * - * Should be overridden by derived classes if they need to customize what happens when focus is lost. - */ - public virtual void OnFocusLost() - { - } - - /** - * @brief Gets the next keyboard focusable actor in this control towards the given direction. - * - * A control needs to override this function in order to support two dimensional keyboard navigation. - * @param[in] currentFocusedActor The current focused actor. - * @param[in] direction The direction to move the focus towards. - * @param[in] loopEnabled Whether the focus movement should be looped within the control. - * @return the next keyboard focusable actor in this control or an empty handle if no actor can be focused. - */ - public virtual View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled) - { - return new View(); - } - - /** - * @brief Informs this control that its chosen focusable actor will be focused. - * - * This allows the application to preform any actions if wishes - * before the focus is actually moved to the chosen actor. - * - * @param[in] commitedFocusableActor The commited focusable actor. - */ - public virtual void OnFocusChangeCommitted(View commitedFocusableView) - { - } - - - /** - * @brief This method is called when the control has enter pressed on it. - * - * Derived classes should override this to perform custom actions. - * @return true if this control supported this action. - */ - public virtual bool OnKeyEnter() - { - return false; - } - - - /** - * @brief Called whenever a pinch gesture is detected on this control. - * - * This can be overridden by deriving classes when pinch detection - * is enabled. The default behaviour is to scale the control by the - * pinch scale. - * - * @param[in] pinch The pinch gesture. - * @note If overridden, then the default behaviour will not occur. - * @note Pinch detection should be enabled via EnableGestureDetection(). - * @see EnableGestureDetection - */ - internal virtual void OnPinch(PinchGesture pinch) - { - } - - /** - * @brief Called whenever a pan gesture is detected on this control. - * - * This should be overridden by deriving classes when pan detection - * is enabled. - * - * @param[in] pan The pan gesture. - * @note There is no default behaviour with panning. - * @note Pan detection should be enabled via EnableGestureDetection(). - * @see EnableGestureDetection - */ - internal virtual void OnPan(PanGesture pan) - { - } - - /** - * @brief Called whenever a tap gesture is detected on this control. - * - * This should be overridden by deriving classes when tap detection - * is enabled. - * - * @param[in] tap The tap gesture. - * @note There is no default behaviour with a tap. - * @note Tap detection should be enabled via EnableGestureDetection(). - * @see EnableGestureDetection - */ - internal virtual void OnTap(TapGesture tap) - { - } - - /** - * @brief Called whenever a long press gesture is detected on this control. - * - * This should be overridden by deriving classes when long press - * detection is enabled. - * - * @param[in] longPress The long press gesture. - * @note There is no default behaviour associated with a long press. - * @note Long press detection should be enabled via EnableGestureDetection(). - * @see EnableGestureDetection - */ - internal virtual void OnLongPress(LongPressGesture longPress) - { - } - - private void SignalConnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback) - { - } - - private void SignalDisconnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback) - { - } - - private void OnControlChildAdd(Actor child) - { - } - - private void OnControlChildRemove(Actor child) - { - } - } - public enum ViewBehaviour - { - ViewBehaviourDefault = 0, - DisableSizeNegotiation = 1 << 0, - RequiresKeyboardNavigationSupport = 1 << 5, - DisableStyleChangeSignals = 1 << 6, - LastViewBehaviourFlag - } - -} +/* + * Copyright (c) 2016 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 +{ + public class CustomView : ViewWrapper + { + public CustomView(string typeName, CustomViewBehaviour behaviour) : base(typeName, new ViewWrapperImpl(behaviour)) + { + // Registering CustomView virtual functions to viewWrapperImpl delegates. + viewWrapperImpl.OnStageConnection = new ViewWrapperImpl.OnStageConnectionDelegate(OnStageConnection); + viewWrapperImpl.OnStageDisconnection = new ViewWrapperImpl.OnStageDisconnectionDelegate(OnStageDisconnection); + viewWrapperImpl.OnChildAdd = new ViewWrapperImpl.OnChildAddDelegate(OnChildAdd); + viewWrapperImpl.OnChildRemove = new ViewWrapperImpl.OnChildRemoveDelegate(OnChildRemove); + viewWrapperImpl.OnPropertySet = new ViewWrapperImpl.OnPropertySetDelegate(OnPropertySet); + viewWrapperImpl.OnSizeSet = new ViewWrapperImpl.OnSizeSetDelegate(OnSizeSet); + viewWrapperImpl.OnSizeAnimation = new ViewWrapperImpl.OnSizeAnimationDelegate(OnSizeAnimation); + viewWrapperImpl.OnTouch = new ViewWrapperImpl.OnTouchDelegate(OnTouch); + viewWrapperImpl.OnHover = new ViewWrapperImpl.OnHoverDelegate(OnHover); + viewWrapperImpl.OnKey = new ViewWrapperImpl.OnKeyDelegate(OnKey); + viewWrapperImpl.OnWheel = new ViewWrapperImpl.OnWheelDelegate(OnWheel); + viewWrapperImpl.OnRelayout = new ViewWrapperImpl.OnRelayoutDelegate(OnRelayout); + viewWrapperImpl.OnSetResizePolicy = new ViewWrapperImpl.OnSetResizePolicyDelegate(OnSetResizePolicy); + viewWrapperImpl.GetNaturalSize = new ViewWrapperImpl.GetNaturalSizeDelegate(GetNaturalSize); + viewWrapperImpl.CalculateChildSize = new ViewWrapperImpl.CalculateChildSizeDelegate(CalculateChildSize); + viewWrapperImpl.GetHeightForWidth = new ViewWrapperImpl.GetHeightForWidthDelegate(GetHeightForWidth); + viewWrapperImpl.GetWidthForHeight = new ViewWrapperImpl.GetWidthForHeightDelegate(GetWidthForHeight); + viewWrapperImpl.RelayoutDependentOnChildrenDimension = new ViewWrapperImpl.RelayoutDependentOnChildrenDimensionDelegate(RelayoutDependentOnChildren); + viewWrapperImpl.RelayoutDependentOnChildren = new ViewWrapperImpl.RelayoutDependentOnChildrenDelegate(RelayoutDependentOnChildren); + viewWrapperImpl.OnCalculateRelayoutSize = new ViewWrapperImpl.OnCalculateRelayoutSizeDelegate(OnCalculateRelayoutSize); + viewWrapperImpl.OnLayoutNegotiated = new ViewWrapperImpl.OnLayoutNegotiatedDelegate(OnLayoutNegotiated); + viewWrapperImpl.OnControlChildAdd = new ViewWrapperImpl.OnControlChildAddDelegate(OnControlChildAdd); + viewWrapperImpl.OnControlChildRemove = new ViewWrapperImpl.OnControlChildRemoveDelegate(OnControlChildRemove); + viewWrapperImpl.OnStyleChange = new ViewWrapperImpl.OnStyleChangeDelegate(OnStyleChange); + viewWrapperImpl.OnAccessibilityActivated = new ViewWrapperImpl.OnAccessibilityActivatedDelegate(OnAccessibilityActivated); + viewWrapperImpl.OnAccessibilityPan = new ViewWrapperImpl.OnAccessibilityPanDelegate(OnAccessibilityPan); + viewWrapperImpl.OnAccessibilityTouch = new ViewWrapperImpl.OnAccessibilityTouchDelegate(OnAccessibilityTouch); + viewWrapperImpl.OnAccessibilityValueChange = new ViewWrapperImpl.OnAccessibilityValueChangeDelegate(OnAccessibilityValueChange); + viewWrapperImpl.OnAccessibilityZoom = new ViewWrapperImpl.OnAccessibilityZoomDelegate(OnAccessibilityZoom); + viewWrapperImpl.OnKeyInputFocusGained = new ViewWrapperImpl.OnKeyInputFocusGainedDelegate(OnKeyInputFocusGained); + viewWrapperImpl.OnKeyInputFocusLost = new ViewWrapperImpl.OnKeyInputFocusLostDelegate(OnKeyInputFocusLost); + viewWrapperImpl.GetNextKeyboardFocusableActor = new ViewWrapperImpl.GetNextKeyboardFocusableActorDelegate(GetNextKeyboardFocusableActor); + viewWrapperImpl.OnKeyboardFocusChangeCommitted = new ViewWrapperImpl.OnKeyboardFocusChangeCommittedDelegate(OnKeyboardFocusChangeCommitted); + viewWrapperImpl.OnKeyboardEnter = new ViewWrapperImpl.OnKeyboardEnterDelegate(OnKeyboardEnter); + viewWrapperImpl.OnPinch = new ViewWrapperImpl.OnPinchDelegate(OnPinch); + viewWrapperImpl.OnPan = new ViewWrapperImpl.OnPanDelegate(OnPan); + viewWrapperImpl.OnTap = new ViewWrapperImpl.OnTapDelegate(OnTap); + viewWrapperImpl.OnLongPress = new ViewWrapperImpl.OnLongPressDelegate(OnLongPress); + + // Make sure CustomView is initialized. + OnInitialize(); + + // Set the StyleName the name of the View + // We have to do this because the StyleManager on Native side can't workout it out + // This will also ensure that the style of actors/visuals initialized above are applied by the style manager. + SetStyleName(this.GetType().Name); + } + + /** + * @brief Set the background with a property map. + * + * @param[in] map The background property map. + */ + public void SetBackground(Tizen.NUI.PropertyMap map) + { + viewWrapperImpl.SetBackground(map); + } + + /** + * @brief Allows deriving classes to enable any of the gesture detectors that are available. + * + * Gesture detection can be enabled one at a time or in bitwise format as shown: + * @code + * EnableGestureDetection(Gesture.Type.Pinch | Gesture.Type.Tap | Gesture.Type.Pan)); + * @endcode + * @param[in] type The gesture type(s) to enable. + */ + internal void EnableGestureDetection(Gesture.GestureType type) + { + viewWrapperImpl.EnableGestureDetection(type); + } + + /** + * @brief Allows deriving classes to disable any of the gesture detectors. + * + * Like EnableGestureDetection, this can also be called using bitwise or. + * @param[in] type The gesture type(s) to disable. + * @see EnableGetureDetection + */ + internal void DisableGestureDetection(Gesture.GestureType type) + { + viewWrapperImpl.DisableGestureDetection(type); + } + + /** + * @brief Sets whether this control supports two dimensional + * keyboard navigation (i.e. whether it knows how to handle the + * keyboard focus movement between its child actors). + * + * The control doesn't support it by default. + * @param[in] isSupported Whether this control supports two dimensional keyboard navigation. + */ + + public bool FocusNavigationSupport + { + get + { + return IsKeyboardNavigationSupported(); + } + set + { + SetKeyboardNavigationSupport(value); + } + } + + internal void SetKeyboardNavigationSupport(bool isSupported) + { + viewWrapperImpl.SetKeyboardNavigationSupport(isSupported); + } + + + /** + * @brief Gets whether this control supports two dimensional keyboard navigation. + * + * @return true if this control supports two dimensional keyboard navigation. + */ + internal bool IsKeyboardNavigationSupported() + { + return viewWrapperImpl.IsKeyboardNavigationSupported(); + } + + + public bool FocusGroup + { + get + { + return IsKeyboardFocusGroup(); + } + set + { + SetAsKeyboardFocusGroup(value); + } + } + + /** + * @brief Sets whether this control is a focus group for keyboard navigation. + * + * (i.e. the scope of keyboard focus movement + * can be limitied to its child actors). The control is not a focus group by default. + * @param[in] isFocusGroup Whether this control is set as a focus group for keyboard navigation. + */ + internal void SetAsKeyboardFocusGroup(bool isFocusGroup) + { + viewWrapperImpl.SetAsKeyboardFocusGroup(isFocusGroup); + } + + /** + * @brief Gets whether this control is a focus group for keyboard navigation. + * + * @return true if this control is set as a focus group for keyboard navigation. + */ + internal bool IsKeyboardFocusGroup() + { + return viewWrapperImpl.IsKeyboardFocusGroup(); + } + + /** + * @brief Called by the AccessibilityManager to activate the Control. + * @SINCE_1_0.0 + */ + internal void AccessibilityActivate() + { + viewWrapperImpl.AccessibilityActivate(); + } + + /** + * @brief Called by the KeyboardFocusManager. + */ + public void KeyboardEnter() + { + viewWrapperImpl.KeyboardEnter(); + } + + /** + * @brief Called by the KeyInputFocusManager to emit key event signals. + * + * @param[in] key The key event. + * @return True if the event was consumed. + */ + public bool EmitKeyEventSignal(Key key) + { + return viewWrapperImpl.EmitKeyEventSignal(key); + } + + /** + * @brief Request a relayout, which means performing a size negotiation on this actor, its parent and children (and potentially whole scene). + * + * This method can also be called from a derived class every time it needs a different size. + * At the end of event processing, the relayout process starts and + * all controls which requested Relayout will have their sizes (re)negotiated. + * + * @note RelayoutRequest() can be called multiple times; the size negotiation is still + * only performed once, i.e. there is no need to keep track of this in the calling side. + */ + protected void RelayoutRequest() + { + viewWrapperImpl.RelayoutRequest(); + } + + /** + * @brief Provides the Actor implementation of GetHeightForWidth. + * @param width Width to use. + * @return The height based on the width. + */ + protected float GetHeightForWidthBase(float width) + { + return viewWrapperImpl.GetHeightForWidthBase(width); + } + + /** + * @brief Provides the Actor implementation of GetWidthForHeight. + * @param height Height to use. + * @return The width based on the height. + */ + protected float GetWidthForHeightBase(float height) + { + return viewWrapperImpl.GetWidthForHeightBase(height); + } + + /** + * @brief Calculate the size for a child using the base actor object. + * + * @param[in] child The child actor to calculate the size for + * @param[in] dimension The dimension to calculate the size for. E.g. width or height + * @return Return the calculated size for the given dimension. If more than one dimension is requested, just return the first one found. + */ + protected float CalculateChildSizeBase(Actor child, DimensionType dimension) + { + return viewWrapperImpl.CalculateChildSizeBase(child, dimension); + } + + /** + * @brief Determine if this actor is dependent on it's children for relayout from the base class. + * + * @param dimension The dimension(s) to check for + * @return Return if the actor is dependent on it's children. + */ + protected bool RelayoutDependentOnChildrenBase(DimensionType dimension) + { + return viewWrapperImpl.RelayoutDependentOnChildrenBase(dimension); + } + + /** + * @brief Determine if this actor is dependent on it's children for relayout from the base class. + * + * @param dimension The dimension(s) to check for + * @return Return if the actor is dependent on it's children. + */ + protected bool RelayoutDependentOnChildrenBase() + { + return viewWrapperImpl.RelayoutDependentOnChildrenBase(); + } + + /** + * @brief Register a visual by Property Index, linking an Actor to visual when required. + * In the case of the visual being an actor or control deeming visual not required then visual should be an empty handle. + * No parenting is done during registration, this should be done by derived class. + * + * @param[in] index The Property index of the visual, used to reference visual + * @param[in] visual The visual to register + * @note Derived class should not call visual.SetOnStage(actor). It is the responsibility of the base class to connect/disconnect registered visual to stage. + * Use below API with enabled set to false if derived class wishes to control when visual is staged. + */ + protected void RegisterVisual(int index, VisualBase visual) + { + viewWrapperImpl.RegisterVisual(index, visual); + } + + /** + * @brief Register a visual by Property Index, linking an Actor to visual when required. + * In the case of the visual being an actor or control deeming visual not required then visual should be an empty handle. + * If enabled is false then the visual is not set on stage until enabled by the derived class. + * @see EnableVisual + * + * @param[in] index The Property index of the visual, used to reference visual + * @param[in] visual The visual to register + * @param[in] enabled false if derived class wants to control when visual is set on stage. + * + */ + protected void RegisterVisual(int index, VisualBase visual, bool enabled) + { + viewWrapperImpl.RegisterVisual(index, visual, enabled); + } + + /** + * @brief Erase the entry matching the given index from the list of registered visuals + * @param[in] index The Property index of the visual, used to reference visual + * + */ + protected void UnregisterVisual(int index) + { + viewWrapperImpl.UnregisterVisual(index); + } + + /** + * @brief Retrieve the visual associated with the given property index. + * + * @param[in] index The Property index of the visual. + * @return The registered visual if exist, otherwise empty handle. + * @note For managing object life-cycle, do not store the returned visual as a member which increments its reference count. + */ + protected VisualBase GetVisual(int index) + { + return viewWrapperImpl.GetVisual(index); + } + + /** + * @brief Sets the given visual to be displayed or not when parent staged. + * + * @param[in] index The Property index of the visual + * @param[in] enable flag to set enabled or disabled. + */ + protected void EnableVisual(int index, bool enable) + { + viewWrapperImpl.EnableVisual(index, enable); + } + + /** + * @brief Queries if the given visual is to be displayed when parent staged. + * + * @param[in] index The Property index of the visual + * @return bool whether visual is enabled or not + */ + protected bool IsVisualEnabled(int index) + { + return viewWrapperImpl.IsVisualEnabled(index); + } + + /** + * @brief Create a transition effect on the control. + * + * @param[in] transitionData The transition data describing the effect to create + * @return A handle to an animation defined with the given effect, or an empty + * handle if no properties match. + */ + protected Animation CreateTransition(TransitionData transitionData) + { + return viewWrapperImpl.CreateTransition(transitionData); + } + + /** + * @brief Emits KeyInputFocusGained signal if true else emits KeyInputFocusLost signal + * + * Should be called last by the control after it acts on the Input Focus change. + * + * @param[in] focusGained True if gained, False if lost + */ + protected void EmitKeyInputFocusSignal(bool focusGained) + { + viewWrapperImpl.EmitKeyInputFocusSignal(focusGained); + } + + /** + * @brief This method is called after the Control has been initialized. + * + * Derived classes should do any second phase initialization by overriding this method. + */ + public virtual void OnInitialize() + { + } + + /** + * @brief Called after the actor has been connected to the stage. + * + * When an actor is connected, it will be directly or indirectly parented to the root Actor. + * @param[in] depth The depth in the hierarchy for the actor + * + * @note The root Actor is provided automatically by Dali::Stage, and is always considered to be connected. + * When the parent of a set of actors is connected to the stage, then all of the children + * will received this callback. + * For the following actor tree, the callback order will be A, B, D, E, C, and finally F. + * + * @code + * + * A (parent) + * / \ + * B C + * / \ \ + * D E F + * + * @endcode + * @param[in] depth The depth in the hierarchy for the actor + */ + public virtual void OnStageConnection(int depth) + { + } + + /** + * @brief Called after the actor has been disconnected from Stage. + * + * If an actor is disconnected it either has no parent, or is parented to a disconnected actor. + * + * @note When the parent of a set of actors is disconnected to the stage, then all of the children + * will received this callback, starting with the leaf actors. + * For the following actor tree, the callback order will be D, E, B, F, C, and finally A. + * + * @code + * + * A (parent) + * / \ + * B C + * / \ \ + * D E F + * + * @endcode + */ + public virtual void OnStageDisconnection() + { + } + + /** + * @brief Called after a child has been added to the owning actor. + * + * @param[in] child The child which has been added + */ + public virtual void OnChildAdd(Actor actor) + { + } + + /** + * @brief Called after the owning actor has attempted to remove a child( regardless of whether it succeeded or not ). + * + * @param[in] child The child being removed + */ + public virtual void OnChildRemove(Actor actor) + { + } + + /** + * @brief Called when the owning actor property is set. + * + * @param[in] index The Property index that was set + * @param[in] propertyValue The value to set + */ + public virtual void OnPropertySet(int index, Tizen.NUI.PropertyValue propertyValue) + { + } + + /** + * @brief Called when the owning actor's size is set e.g. using Actor::SetSize(). + * + * @param[in] targetSize The target size. Note that this target size may not match the size returned via Actor.GetTargetSize. + */ + public virtual void OnSizeSet(Vector3 targetSize) + { + } + + /** + * @brief Called when the owning actor's size is animated e.g. using Animation::AnimateTo( Property( actor, Actor::Property::SIZE ), ... ). + * + * @param[in] animation The object which is animating the owning actor. + * @param[in] targetSize The target size. Note that this target size may not match the size returned via @ref Actor.GetTargetSize. + */ + public virtual void OnSizeAnimation(Animation animation, Vector3 targetSize) + { + } + + /** + * @DEPRECATED_1_1.37 Connect to TouchSignal() instead. + * + * @brief Called after a touch-event is received by the owning actor. + * + * @param[in] touch The touch event + * @return True if the event should be consumed. + * @note CustomViewBehaviour.REQUIRES_TOUCH_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour). + */ + public virtual bool OnTouch(Touch touch) + { + return false; // Do not consume + } + + /** + * @brief Called after a hover-event is received by the owning actor. + * + * @param[in] hover The hover event + * @return True if the hover event should be consumed. + * @note CustomViewBehaviour.REQUIRES_HOVER_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour). + */ + public virtual bool OnHover(Hover hover) + { + return false; // Do not consume + } + + /** + * @brief Called after a key-event is received by the actor that has had its focus set. + * + * @param[in] key the Key Event + * @return True if the event should be consumed. + */ + public virtual bool OnKey(Key key) + { + return false; // Do not consume + } + + /** + * @brief Called after a wheel-event is received by the owning actor. + * + * @param[in] wheel The wheel event + * @return True if the event should be consumed. + * @note CustomViewBehaviour.REQUIRES_WHEEL_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour). + */ + public virtual bool OnWheel(Wheel wheel) + { + return false; // Do not consume + } + + /** + * @brief Called after the size negotiation has been finished for this control. + * + * The control is expected to assign this given size to itself/its children. + * + * Should be overridden by derived classes if they need to layout + * actors differently after certain operations like add or remove + * actors, resize or after changing specific properties. + * + * @param[in] size The allocated size. + * @param[in,out] container The control should add actors to this container that it is not able + * to allocate a size for. + * @note As this function is called from inside the size negotiation algorithm, you cannot + * call RequestRelayout (the call would just be ignored). + */ + public virtual void OnRelayout(Vector2 size, RelayoutContainer container) + { + } + + /** + * @brief Notification for deriving classes + * + * @param[in] policy The policy being set + * @param[in] dimension The dimension the policy is being set for + */ + public virtual void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension) + { + } + + /** + * @brief Return the natural size of the actor. + * + * @return The actor's natural size + */ + public virtual Size GetNaturalSize() + { + return new Size(0.0f, 0.0f, 0.0f); + } + + /** + * @brief Calculate the size for a child. + * + * @param[in] child The child actor to calculate the size for + * @param[in] dimension The dimension to calculate the size for. E.g. width or height. + * @return Return the calculated size for the given dimension. + */ + public virtual float CalculateChildSize(Actor child, DimensionType dimension) + { + return viewWrapperImpl.CalculateChildSizeBase(child, dimension); + } + + /** + * @brief This method is called during size negotiation when a height is required for a given width. + * + * Derived classes should override this if they wish to customize the height returned. + * + * @param width Width to use. + * @return The height based on the width. + */ + public virtual float GetHeightForWidth(float width) + { + return viewWrapperImpl.GetHeightForWidthBase(width); + } + + /** + * @brief This method is called during size negotiation when a width is required for a given height. + * + * Derived classes should override this if they wish to customize the width returned. + * + * @param height Height to use. + * @return The width based on the width. + */ + public virtual float GetWidthForHeight(float height) + { + return viewWrapperImpl.GetWidthForHeightBase(height); + } + + /** + * @brief Determine if this actor is dependent on it's children for relayout. + * + * @param dimension The dimension(s) to check for + * @return Return if the actor is dependent on it's children. + */ + public virtual bool RelayoutDependentOnChildren(DimensionType dimension) + { + return viewWrapperImpl.RelayoutDependentOnChildrenBase(dimension); + } + + /** + * @brief Determine if this actor is dependent on it's children for relayout from the base class. + * + * @return Return if the actor is dependent on it's children. + */ + public virtual bool RelayoutDependentOnChildren() + { + return viewWrapperImpl.RelayoutDependentOnChildrenBase(); + } + + /** + * @brief Virtual method to notify deriving classes that relayout dependencies have been + * met and the size for this object is about to be calculated for the given dimension + * + * @param dimension The dimension that is about to be calculated + */ + public virtual void OnCalculateRelayoutSize(DimensionType dimension) + { + } + + /** + * @brief Virtual method to notify deriving classes that the size for a dimension + * has just been negotiated + * + * @param[in] size The new size for the given dimension + * @param[in] dimension The dimension that was just negotiated + */ + public virtual void OnLayoutNegotiated(float size, DimensionType dimension) + { + } + + /** + * @brief This method should be overridden by deriving classes requiring notifications when the style changes. + * + * @param[in] styleManager The StyleManager object. + * @param[in] change Information denoting what has changed. + */ + public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change) + { + } + + /** + * @brief This method is called when the control is accessibility activated. + * + * Derived classes should override this to perform custom accessibility activation. + * @return true if this control can perform accessibility activation. + */ + internal virtual bool OnAccessibilityActivated() + { + return false; + } + + /** + * @brief This method should be overridden by deriving classes when they wish to respond the accessibility + * pan gesture. + * + * @param[in] gesture The pan gesture. + * @return true if the pan gesture has been consumed by this control + */ + internal virtual bool OnAccessibilityPan(PanGesture gestures) + { + return false; + } + + /** + * @brief This method should be overridden by deriving classes when they wish to respond the accessibility + * touch event. + * + * @param[in] touch The touch event. + * @return true if the touch event has been consumed by this control + */ + internal virtual bool OnAccessibilityTouch(Touch touch) + { + return false; + } + + /** + * @brief This method should be overridden by deriving classes when they wish to respond + * the accessibility up and down action (i.e. value change of slider control). + * + * @param[in] isIncrease Whether the value should be increased or decreased + * @return true if the value changed action has been consumed by this control + */ + internal virtual bool OnAccessibilityValueChange(bool isIncrease) + { + return false; + } + + /** + * @brief This method should be overridden by deriving classes when they wish to respond + * the accessibility zoom action. + * + * @return true if the zoom action has been consumed by this control + */ + internal virtual bool OnAccessibilityZoom() + { + return false; + } + + /** + * @brief This method should be overridden by deriving classes when they wish to respond + * the accessibility zoom action. + * + * @return true if the zoom action has been consumed by this control + */ + public virtual void OnKeyInputFocusGained() + { + } + + /** + * @brief Called when the control loses key input focus. + * + * Should be overridden by derived classes if they need to customize what happens when focus is lost. + */ + public virtual void OnKeyInputFocusLost() + { + } + + /** + * @brief Gets the next keyboard focusable actor in this control towards the given direction. + * + * A control needs to override this function in order to support two dimensional keyboard navigation. + * @param[in] currentFocusedActor The current focused actor. + * @param[in] direction The direction to move the focus towards. + * @param[in] loopEnabled Whether the focus movement should be looped within the control. + * @return the next keyboard focusable actor in this control or an empty handle if no actor can be focused. + */ + public virtual Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, View.FocusDirection direction, bool loopEnabled) + { + return new Actor(); + } + + /** + * @brief Informs this control that its chosen focusable actor will be focused. + * + * This allows the application to preform any actions if wishes + * before the focus is actually moved to the chosen actor. + * + * @param[in] commitedFocusableActor The commited focusable actor. + */ + public virtual void OnKeyboardFocusChangeCommitted(Actor commitedFocusableActor) + { + } + + /** + * @brief This method is called when the control has enter pressed on it. + * + * Derived classes should override this to perform custom actions. + * @return true if this control supported this action. + */ + public virtual bool OnKeyboardEnter() + { + return false; + } + + /** + * @brief Called whenever a pinch gesture is detected on this control. + * + * This can be overridden by deriving classes when pinch detection + * is enabled. The default behaviour is to scale the control by the + * pinch scale. + * + * @param[in] pinch The pinch gesture. + * @note If overridden, then the default behaviour will not occur. + * @note Pinch detection should be enabled via EnableGestureDetection(). + * @see EnableGestureDetection + */ + internal virtual void OnPinch(PinchGesture pinch) + { + } + + /** + * @brief Called whenever a pan gesture is detected on this control. + * + * This should be overridden by deriving classes when pan detection + * is enabled. + * + * @param[in] pan The pan gesture. + * @note There is no default behaviour with panning. + * @note Pan detection should be enabled via EnableGestureDetection(). + * @see EnableGestureDetection + */ + public virtual void OnPan(PanGesture pan) + { + } + + /** + * @brief Called whenever a tap gesture is detected on this control. + * + * This should be overridden by deriving classes when tap detection + * is enabled. + * + * @param[in] tap The tap gesture. + * @note There is no default behaviour with a tap. + * @note Tap detection should be enabled via EnableGestureDetection(). + * @see EnableGestureDetection + */ + internal virtual void OnTap(TapGesture tap) + { + } + + /** + * @brief Called whenever a long press gesture is detected on this control. + * + * This should be overridden by deriving classes when long press + * detection is enabled. + * + * @param[in] longPress The long press gesture. + * @note There is no default behaviour associated with a long press. + * @note Long press detection should be enabled via EnableGestureDetection(). + * @see EnableGestureDetection + */ + internal virtual void OnLongPress(LongPressGesture longPress) + { + } + + private void OnControlChildAdd(Actor child) + { + } + + private void OnControlChildRemove(Actor child) + { + } + } + public enum CustomViewBehaviour + { + ViewBehaviourDefault = 0, + DisableSizeNegotiation = 1 << 0, + RequiresKeyboardNavigationSupport = 1 << 5, + DisableStyleChangeSignals = 1 << 6, + LastViewBehaviourFlag + } +} diff --git a/src/Tizen.NUI/src/public/CustomView/Spin.cs b/src/Tizen.NUI/src/public/CustomView/Spin.cs new file mode 100755 index 0000000..22c133e --- /dev/null +++ b/src/Tizen.NUI/src/public/CustomView/Spin.cs @@ -0,0 +1,314 @@ +/* + * 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 Tizen.NUI; + +// A spin control (for continously changing values when users can easily predict a set of values) + +namespace Tizen.NUI +{ + public class Spin : CustomView + { + private VisualBase _arrowVisual; + private TextField _textField; + private int _arrowVisualPropertyIndex; + private string _arrowImage; + private int _currentValue; + private int _minValue; + private int _maxValue; + private int _singleStep; + private bool _wrappingEnabled; + private string _fontFamily; + private string _fontStyle; + private int _pointSize; + private Color _textColor; + private Color _textBackgroundColor; + private int _maxTextLength; + + // Called by DALi Builder if it finds a Spin control in a JSON file + static CustomView CreateInstance() + { + return new Spin(); + } + + // static constructor registers the control type (only runs once) + static Spin() + { + // ViewRegistry registers control type with DALi type registery + // also uses introspection to find any properties that need to be registered with type registry + ViewRegistry.Instance.Register(CreateInstance, typeof(Spin)); + } + + public Spin() : base(typeof(Spin).Name, CustomViewBehaviour.RequiresKeyboardNavigationSupport) + { + + } + + public override void OnInitialize() + { + // Initialize the propertiesControl + _arrowImage = "/home/owner/apps_rw/NUISamples.TizenTV/res/images/arrow.png"; + _textBackgroundColor = new Color(0.6f, 0.6f, 0.6f, 1.0f); + _currentValue = 0; + _minValue = 0; + _maxValue = 0; + _singleStep = 1; + _maxTextLength = 0; + + // Create image visual for the arrow keys + _arrowVisualPropertyIndex = RegisterProperty("ArrowImage", new PropertyValue(_arrowImage), Tizen.NUI.PropertyAccessMode.ReadWrite); + _arrowVisual = VisualFactory.Get().CreateVisual(_arrowImage, new Uint16Pair(150, 150)); + RegisterVisual(_arrowVisualPropertyIndex, _arrowVisual); + + // Create a text field + _textField = new TextField(); + _textField.ParentOrigin = Tizen.NUI.ParentOrigin.Center; + _textField.AnchorPoint = Tizen.NUI.AnchorPoint.Center; + _textField.WidthResizePolicy = ResizePolicyType.SizeRelativeToParent; + _textField.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent; + _textField.SizeModeFactor = new Vector3(1.0f, 0.45f, 1.0f); + _textField.PlaceholderText = "----"; + _textField.BackgroundColor = _textBackgroundColor; + _textField.HorizontalAlignment = "Center"; + _textField.VerticalAlignment = "Center"; + _textField.Focusable = (true); + _textField.Name = "_textField"; + + this.Add(_textField); + + _textField.KeyInputFocusGained += TextFieldKeyInputFocusGained; + _textField.KeyInputFocusLost += TextFieldKeyInputFocusLost; + } + + public override Size GetNaturalSize() + { + return new Size(150.0f, 150.0f, 0.0f); + } + + public void TextFieldKeyInputFocusGained(object source, KeyInputFocusGainedEventArgs e) + { + // Make sure when the current spin that takes input focus also takes the keyboard focus + // For example, when you tap the spin directly + FocusManager.Instance.SetCurrentFocusActor(_textField); + } + + public void TextFieldKeyInputFocusLost(object source, KeyInputFocusLostEventArgs e) + { + int previousValue = _currentValue; + + // If the input value is invalid, change it back to the previous valid value + if (int.TryParse(_textField.Text, out _currentValue)) + { + if (_currentValue < _minValue || _currentValue > _maxValue) + { + _currentValue = previousValue; + } + } + else + { + _currentValue = previousValue; + } + + // Otherwise take the new value + this.Value = _currentValue; + } + + public override Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, View.FocusDirection direction, bool loopEnabled) + { + // Respond to Up/Down keys to change the value while keeping the current spin focused + Actor nextFocusedActor = currentFocusedActor; + if (direction == View.FocusDirection.Up) + { + this.Value += this.Step; + nextFocusedActor = _textField; + } + else if (direction == View.FocusDirection.Down) + { + this.Value -= this.Step; + nextFocusedActor = _textField; + } + else + { + // Return a native empty handle as nothing can be focused in the left or right + nextFocusedActor = new Actor(); + nextFocusedActor.Reset(); + } + + return nextFocusedActor; + } + + + [ScriptableProperty()] + public int Value + { + get + { + return _currentValue; + } + set + { + + Console.WriteLine("Value set to " + value); + _currentValue = value; + + // Make sure no invalid value is accepted + if (_currentValue < _minValue) + { + _currentValue = _minValue; + } + + if (_currentValue > _maxValue) + { + _currentValue = _maxValue; + } + + _textField.Text = _currentValue.ToString(); + } + } + // MinValue property of type int: + [ScriptableProperty()] + public int MinValue + { + get + { + return _minValue; + } + set + { + _minValue = value; + } + } + + // MaxValue property of type int: + [ScriptableProperty()] + public int MaxValue + { + get + { + return _maxValue; + } + set + { + _maxValue = value; + } + } + + // Step property of type int: + [ScriptableProperty()] + public int Step + { + get + { + return _singleStep; + } + set + { + _singleStep = value; + } + } + + // WrappingEnabled property of type bool: + [ScriptableProperty()] + public bool WrappingEnabled + { + get + { + return _wrappingEnabled; + } + set + { + _wrappingEnabled = value; + } + } + + // TextPointSize property of type int: + [ScriptableProperty()] + public int TextPointSize + { + get + { + return _pointSize; + } + set + { + _pointSize = value; + _textField.PointSize = _pointSize; + } + } + + // TextColor property of type Color: + [ScriptableProperty()] + public Color TextColor + { + get + { + return _textColor; + } + set + { + Console.WriteLine("TextColor set to " + value.R + "," + value.G + "," + value.B); + + _textColor = value; + _textField.TextColor = _textColor; + } + } + + // MaxTextLength property of type int: + [ScriptableProperty()] + public int MaxTextLength + { + get + { + return _maxTextLength; + } + set + { + _maxTextLength = value; + _textField.MaxLength = _maxTextLength; + } + } + + public TextField SpinText + { + get + { + return _textField; + } + set + { + _textField = value; + } + } + + // Indicator property of type string: + public string IndicatorImage + { + get + { + return _arrowImage; + } + set + { + _arrowImage = value; + _arrowVisual = VisualFactory.Get().CreateVisual(_arrowImage, new Uint16Pair(150, 150)); + RegisterVisual(_arrowVisualPropertyIndex, _arrowVisual); + } + } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/public/Degree.cs b/src/Tizen.NUI/src/public/Degree.cs index b8e90b2..925f8cd 100755 --- a/src/Tizen.NUI/src/public/Degree.cs +++ b/src/Tizen.NUI/src/public/Degree.cs @@ -1,75 +1,91 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.9 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace Tizen.NUI { +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.9 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ - public class Degree : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Degree(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(Degree obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~Degree() { - DisposeQueue.Instance.Add(this); - } - - public virtual void Dispose() { - if (!Stage.IsInstalled()) { - DisposeQueue.Instance.Add(this); - return; - } - - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - NDalicPINVOKE.delete_Degree(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - - public Degree() : this(NDalicPINVOKE.new_Degree__SWIG_0(), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public Degree(float value) : this(NDalicPINVOKE.new_Degree__SWIG_1(value), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public Degree(Radian value) : this(NDalicPINVOKE.new_Degree__SWIG_2(Radian.getCPtr(value)), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public float degree { - set { - NDalicPINVOKE.Degree_degree_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get { - float ret = NDalicPINVOKE.Degree_degree_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - -} - -} +namespace Tizen.NUI +{ + + public class Degree : global::System.IDisposable + { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Degree(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(Degree obj) + { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~Degree() + { + DisposeQueue.Instance.Add(this); + } + + public virtual void Dispose() + { + if (!Stage.IsInstalled()) + { + DisposeQueue.Instance.Add(this); + return; + } + + lock (this) + { + if (swigCPtr.Handle != global::System.IntPtr.Zero) + { + if (swigCMemOwn) + { + swigCMemOwn = false; + NDalicPINVOKE.delete_Degree(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + + public Degree() : this(NDalicPINVOKE.new_Degree__SWIG_0(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public Degree(float value) : this(NDalicPINVOKE.new_Degree__SWIG_1(value), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public Degree(Radian value) : this(NDalicPINVOKE.new_Degree__SWIG_2(Radian.getCPtr(value)), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public float degree + { + set + { + NDalicPINVOKE.Degree_degree_set(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get + { + float ret = NDalicPINVOKE.Degree_degree_get(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + } + +} diff --git a/src/Tizen.NUI/src/public/Doxyfile b/src/Tizen.NUI/src/public/Doxyfile deleted file mode 100755 index edec82d..0000000 --- a/src/Tizen.NUI/src/public/Doxyfile +++ /dev/null @@ -1,2448 +0,0 @@ -# Doxyfile 1.8.6 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project. -# -# All text after a double hash (##) is considered a comment and is placed in -# front of the TAG it is preceding. -# -# All text after a single hash (#) is considered a comment and will be ignored. -# The format is: -# TAG = value [value, ...] -# For lists, items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (\" \"). - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all text -# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv -# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv -# for the list of possible encodings. -# The default value is: UTF-8. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by -# double-quotes, unless you are using Doxywizard) that should identify the -# project for which the documentation is generated. This name is used in the -# title of most generated pages and in a few other places. -# The default value is: My Project. - -PROJECT_NAME = DALi-HALO-C# - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. This -# could be handy for archiving the generated documentation or if some version -# control system is used. - -PROJECT_NUMBER = - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer a -# quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = - -# With the PROJECT_LOGO tag one can specify an logo or icon that is included in -# the documentation. The maximum height of the logo should not exceed 55 pixels -# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo -# to the output directory. - -PROJECT_LOGO = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path -# into which the generated documentation will be written. If a relative path is -# entered, it will be relative to the location where doxygen was started. If -# left blank the current directory will be used. - -OUTPUT_DIRECTORY = - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- -# directories (in 2 levels) under the output directory of each output format and -# will distribute the generated files over these directories. Enabling this -# option can be useful when feeding doxygen a huge amount of source files, where -# putting all generated files in the same directory would otherwise causes -# performance problems for the file system. -# The default value is: NO. - -CREATE_SUBDIRS = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, -# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), -# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, -# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), -# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, -# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, -# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, -# Ukrainian and Vietnamese. -# The default value is: English. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member -# descriptions after the members that are listed in the file and class -# documentation (similar to Javadoc). Set to NO to disable this. -# The default value is: YES. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief -# description of a member or function before the detailed description -# -# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. -# The default value is: YES. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator that is -# used to form the text in various listings. Each string in this list, if found -# as the leading text of the brief description, will be stripped from the text -# and the result, after processing the whole list, is used as the annotated -# text. Otherwise, the brief description is used as-is. If left blank, the -# following values are used ($name is automatically replaced with the name of -# the entity):The $name class, The $name widget, The $name file, is, provides, -# specifies, contains, represents, a, an and the. - -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# doxygen will generate a detailed section even if there is only a brief -# description. -# The default value is: NO. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. -# The default value is: NO. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path -# before files name in the file list and in the header files. If set to NO the -# shortest path that makes the file name unique will be used -# The default value is: YES. - -FULL_PATH_NAMES = YES - -# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. -# Stripping is only done if one of the specified strings matches the left-hand -# part of the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the path to -# strip. -# -# Note that you can specify absolute paths here, but also relative paths, which -# will be relative from the directory where doxygen is started. -# This tag requires that the tag FULL_PATH_NAMES is set to YES. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the -# path mentioned in the documentation of a class, which tells the reader which -# header file to include in order to use a class. If left blank only the name of -# the header file containing the class definition is used. Otherwise one should -# specify the list of include paths that are normally passed to the compiler -# using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but -# less readable) file names. This can be useful is your file systems doesn't -# support long names like on DOS, Mac, or CD-ROM. -# The default value is: NO. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the -# first line (until the first dot) of a Javadoc-style comment as the brief -# description. If set to NO, the Javadoc-style will behave just like regular Qt- -# style comments (thus requiring an explicit @brief command for a brief -# description.) -# The default value is: NO. - -JAVADOC_AUTOBRIEF = NO - -# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first -# line (until the first dot) of a Qt-style comment as the brief description. If -# set to NO, the Qt-style will behave just like regular Qt-style comments (thus -# requiring an explicit \brief command for a brief description.) -# The default value is: NO. - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a -# multi-line C++ special comment block (i.e. a block of //! or /// comments) as -# a brief description. This used to be the default behavior. The new default is -# to treat a multi-line C++ comment block as a detailed description. Set this -# tag to YES if you prefer the old behavior instead. -# -# Note that setting this tag to YES also means that rational rose comments are -# not recognized any more. -# The default value is: NO. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the -# documentation from any documented member that it re-implements. -# The default value is: YES. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a -# new page for each member. If set to NO, the documentation of a member will be -# part of the file/class/namespace that contains it. -# The default value is: NO. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen -# uses this value to replace tabs by spaces in code fragments. -# Minimum value: 1, maximum value: 16, default value: 4. - -TAB_SIZE = 4 - -# This tag can be used to specify a number of aliases that act as commands in -# the documentation. An alias has the form: -# name=value -# For example adding -# "sideeffect=@par Side Effects:\n" -# will allow you to put the command \sideeffect (or @sideeffect) in the -# documentation, which will result in a user-defined paragraph with heading -# "Side Effects:". You can put \n's in the value part of an alias to insert -# newlines. - -ALIASES = -# Clip alias inserts the specified file between two text markers. -# EG: @clip{"button.h",public,private} -# Shows all lines between public and private *inclusive*. -ALIASES += clip{3}="\dontinclude \1 \n \skip \2 \n \until \3" - -# -# -# Use @SINCE_1_0, @SINCE_1_1, ... instead of @since, -# and use @DEPRECATED_1_0, @DEPRECATED_1_1, ... instead of @deprecated. -# It enables integrated management of version tagging between -# the open source DALi API reference and Tizen API reference. -# Using those tags with different ALIASES settings in each doxygen config file allows us -# to generate two versions of "Since" and "Deprecated" generated output -# from one set of public header files. -# -# If you need a newer version number like @SINCE_1_5 or @SINCE_2_0, just add new ALIASES for it. -# -# ##################################################3 -# # Guide for Open Source DALi API Reference -# -# ### @SINCE example: -# [some-public-header.h] -# /** -# * ... -# * @SINCE_1_0.1 -# */ -# void SomeFunction(); -# -# [generated html file] -# void SomeFunction() -# ... -# Since: -# 1.0.1 -# -# ### @DEPRECATED example 1: -# [some-public-header.h] -# /** -# * @DEPRECATED_1_0.3 -# * ... -# */ -# void SomeFunction(); -# -# [generated html file] -# void SomeFunction() -# Deprecated: -# Deprecated since 1.0.3 -# ... -# -# ### @DEPRECATED example 2: -# [some-public-header.h] -# ... -# /** -# * @DEPRECATED_1_0.3. Use SomeFunction2() instead. -# * ... -# */ -# void SomeFunction(); -# -# [generated html file] -# void SomeFunction() -# Deprecated: -# Deprecated since 1.0.3. Use SomeFunction2() instead. -# ... -# -# ##################################################3 -# # Guide for Tizen Native API Reference -# -# ### @SINCE example: -# [some-public-header.h] -# /** -# * ... -# * @SINCE_1_0.1 -# */ -# void SomeFunction(); -# -# [generated html file] -# void SomeFunction() -# ... -# Since: -# 2.4, DALi Version 1.0.1 -# -# ### @DEPRECATED example 1: -# [some-public-header.h] -# /** -# * @DEPRECATED_1_0.3 -# * ... -# */ -# void SomeFunction(); -# -# [generated html file] -# void SomeFunction() -# Deprecated: -# Deprecated since 3.0, DALi version 1.0.3 -# ... -# -# ### @DEPRECATED example 2: -# [some-public-header.h] -# ... -# /** -# * @DEPRECATED_1_0.3. Use SomeFunction2() instead. -# * ... -# */ -# void SomeFunction(); -# -# [generated html file] -# void SomeFunction() -# Deprecated: -# Deprecated since 3.0, DALi version 1.0.3. Use SomeFunction2() instead. -# ... - -########################################### -# For Open Source DALi API Reference -ALIASES += SINCE_1_0="@since 1.0" -ALIASES += SINCE_1_1="@since 1.1" - -ALIASES += DEPRECATED_1_0="@deprecated Deprecated since 1.0" -ALIASES += DEPRECATED_1_1="@deprecated Deprecated since 1.1" - -ALIASES += PLATFORM="" -ALIASES += PRIVLEVEL_PLATFORM="" -ALIASES += PRIVILEGE_KEYGRAB="" - -############################################ -## For Tizen Native API Reference -#ALIASES += SINCE_1_0="\par Since:\n 2.4, DALi version 1.0" -#ALIASES += SINCE_1_1="\par Since:\n 3.0, DALi version 1.1" - -## DALi has no deprecated API in Tizen 2.4 because it's DALi's first release. -## Thus deprecated APIs in DALi 1.0.xx will be deprecated in Tizen 3.0. -#ALIASES += DEPRECATED_1_0="@deprecated Deprecated since 3.0, DALi version 1.0" -#ALIASES += DEPRECATED_1_1="@deprecated Deprecated since 3.0, DALi version 1.1" - -#ALIASES += PLATFORM="@platform" -#ALIASES += PRIVLEVEL_PLATFORM="\par Privilege Level:\n platform" -#ALIASES += PRIVILEGE_KEYGRAB="\par Privilege:\n http://tizen.org/privilege/keygrab" - - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding "class=itcl::class" -# will allow you to use the command class in the itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources -# only. Doxygen will then generate output that is more tailored for C. For -# instance, some of the names that are used will be different. The list of all -# members will be omitted, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_FOR_C = NO - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or -# Python sources only. Doxygen will then generate output that is more tailored -# for that language. For instance, namespaces will be presented as packages, -# qualified scopes will look different, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources. Doxygen will then generate output that is tailored for Fortran. -# The default value is: NO. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for VHDL. -# The default value is: NO. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given -# extension. Doxygen has a built-in mapping, but you can override or extend it -# using this tag. The format is ext=language, where ext is a file extension, and -# language is one of the parsers supported by doxygen: IDL, Java, Javascript, -# C#, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL. For instance to make -# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C -# (default is Fortran), use: inc=Fortran f=C. -# -# Note For files without extension you can use no_extension as a placeholder. -# -# Note that for custom extensions you also need to set FILE_PATTERNS otherwise -# the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments -# according to the Markdown format, which allows for more readable -# documentation. See http://daringfireball.net/projects/markdown/ for details. -# The output of markdown processing is further processed by doxygen, so you can -# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in -# case of backward compatibilities issues. -# The default value is: YES. - -MARKDOWN_SUPPORT = YES - -# When enabled doxygen tries to link words that correspond to documented -# classes, or namespaces to their corresponding documentation. Such a link can -# be prevented in individual cases by by putting a % sign in front of the word -# or globally by setting AUTOLINK_SUPPORT to NO. -# The default value is: YES. - -AUTOLINK_SUPPORT = YES - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should set this -# tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); -# versus func(std::string) {}). This also make the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. -# The default value is: NO. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. -# The default value is: NO. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: -# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen -# will parse them like normal C++ but will assume all classes use public instead -# of private inheritance when no explicit protection keyword is present. -# The default value is: NO. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate -# getter and setter methods for a property. Setting this option to YES will make -# doxygen to replace the get and set methods by a property in the documentation. -# This will only work if the methods are indeed getting or setting a simple -# type. If this is not the case, or you want to show the methods anyway, you -# should set this option to NO. -# The default value is: YES. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. -# The default value is: NO. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES to allow class member groups of the same type -# (for instance a group of public functions) to be put as a subgroup of that -# type (e.g. under the Public Functions section). Set it to NO to prevent -# subgrouping. Alternatively, this can be done per class using the -# \nosubgrouping command. -# The default value is: YES. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions -# are shown inside the group in which they are included (e.g. using \ingroup) -# instead of on a separate page (for HTML and Man pages) or section (for LaTeX -# and RTF). -# -# Note that this feature does not work in combination with -# SEPARATE_MEMBER_PAGES. -# The default value is: NO. - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions -# with only public data fields or simple typedef fields will be shown inline in -# the documentation of the scope in which they are defined (i.e. file, -# namespace, or group documentation), provided this scope is documented. If set -# to NO, structs, classes, and unions are shown on a separate page (for HTML and -# Man pages) or section (for LaTeX and RTF). -# The default value is: NO. - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or -# enum is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically be -# useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. -# The default value is: NO. - -TYPEDEF_HIDES_STRUCT = NO - -# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This -# cache is used to resolve symbols given their name and scope. Since this can be -# an expensive process and often the same symbol appears multiple times in the -# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small -# doxygen will become slower. If the cache is too large, memory is wasted. The -# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range -# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 -# symbols. At the end of a run doxygen will report the cache usage and suggest -# the optimal cache size from a speed point of view. -# Minimum value: 0, maximum value: 9, default value: 0. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. Private -# class members and static file members will be hidden unless the -# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. -# Note: This will also disable the warnings about undocumented members that are -# normally produced when WARNINGS is set to YES. -# The default value is: NO. - -EXTRACT_ALL = YES - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will -# be included in the documentation. -# The default value is: NO. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal -# scope will be included in the documentation. -# The default value is: NO. - -EXTRACT_PACKAGE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file will be -# included in the documentation. -# The default value is: NO. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined -# locally in source files will be included in the documentation. If set to NO -# only classes defined in header files are included. Does not have any effect -# for Java sources. -# The default value is: YES. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local methods, -# which are defined in the implementation section but not in the interface are -# included in the documentation. If set to NO only methods in the interface are -# included. -# The default value is: NO. - -EXTRACT_LOCAL_METHODS = YES - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base name of -# the file that contains the anonymous namespace. By default anonymous namespace -# are hidden. -# The default value is: NO. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all -# undocumented members inside documented classes or files. If set to NO these -# members will be included in the various overviews, but no documentation -# section is generated. This option has no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_MEMBERS = YES - -# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. If set -# to NO these classes will be included in the various overviews. This option has -# no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_CLASSES = YES - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend -# (class|struct|union) declarations. If set to NO these declarations will be -# included in the documentation. -# The default value is: NO. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any -# documentation blocks found inside the body of a function. If set to NO these -# blocks will be appended to the function's detailed documentation block. -# The default value is: NO. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation that is typed after a -# \internal command is included. If the tag is set to NO then the documentation -# will be excluded. Set it to YES to include the internal documentation. -# The default value is: NO. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file -# names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. -# The default value is: system dependent. - -CASE_SENSE_NAMES = NO - -# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with -# their full class and namespace scopes in the documentation. If set to YES the -# scope will be hidden. -# The default value is: NO. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of -# the files that are included by a file in the documentation of that file. -# The default value is: YES. - -SHOW_INCLUDE_FILES = YES - -# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each -# grouped member an include statement to the documentation, telling the reader -# which file to include in order to use the member. -# The default value is: NO. - -SHOW_GROUPED_MEMB_INC = NO - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include -# files with double quotes in the documentation rather than with sharp brackets. -# The default value is: NO. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the -# documentation for inline members. -# The default value is: YES. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the -# (detailed) documentation of file and class members alphabetically by member -# name. If set to NO the members will appear in declaration order. -# The default value is: YES. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief -# descriptions of file, namespace and class members alphabetically by member -# name. If set to NO the members will appear in declaration order. Note that -# this will also influence the order of the classes in the class list. -# The default value is: NO. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the -# (brief and detailed) documentation of class members so that constructors and -# destructors are listed first. If set to NO the constructors will appear in the -# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. -# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief -# member documentation. -# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting -# detailed member documentation. -# The default value is: NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy -# of group names into alphabetical order. If set to NO the group names will -# appear in their defined order. -# The default value is: NO. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by -# fully-qualified names, including namespaces. If set to NO, the class list will -# be sorted only by class name, not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the alphabetical -# list. -# The default value is: NO. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper -# type resolution of all parameters of a function it will reject a match between -# the prototype and the implementation of a member function even if there is -# only one candidate or it is obvious which candidate to choose by doing a -# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still -# accept a match between prototype and implementation in such cases. -# The default value is: NO. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the -# todo list. This list is created by putting \todo commands in the -# documentation. -# The default value is: YES. - -GENERATE_TODOLIST = NO - -# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the -# test list. This list is created by putting \test commands in the -# documentation. -# The default value is: YES. - -GENERATE_TESTLIST = NO - -# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug -# list. This list is created by putting \bug commands in the documentation. -# The default value is: YES. - -GENERATE_BUGLIST = NO - -# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO) -# the deprecated list. This list is created by putting \deprecated commands in -# the documentation. -# The default value is: YES. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional documentation -# sections, marked by \if ... \endif and \cond -# ... \endcond blocks. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the -# initial value of a variable or macro / define can have for it to appear in the -# documentation. If the initializer consists of more lines than specified here -# it will be hidden. Use a value of 0 to hide initializers completely. The -# appearance of the value of individual variables and macros / defines can be -# controlled using \showinitializer or \hideinitializer command in the -# documentation regardless of this setting. -# Minimum value: 0, maximum value: 10000, default value: 30. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at -# the bottom of the documentation of classes and structs. If set to YES the list -# will mention the files that were used to generate the documentation. -# The default value is: YES. - -SHOW_USED_FILES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This -# will remove the Files entry from the Quick Index and from the Folder Tree View -# (if specified). -# The default value is: YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces -# page. This will remove the Namespaces entry from the Quick Index and from the -# Folder Tree View (if specified). -# The default value is: YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command command input-file, where command is the value of the -# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided -# by doxygen. Whatever the program writes to standard output is used as the file -# version. For an example see the documentation. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. You can -# optionally specify a file name after the option, if omitted DoxygenLayout.xml -# will be used as the name of the layout file. -# -# Note that if you run doxygen from a directory containing a file called -# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE -# tag is left empty. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files containing -# the reference definitions. This must be a list of .bib files. The .bib -# extension is automatically appended if omitted. This requires the bibtex tool -# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. -# For LaTeX the style of the bibliography can be controlled using -# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the -# search path. Do not use file names with spaces, bibtex cannot handle them. See -# also \cite for info how to create references. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# Configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated to -# standard output by doxygen. If QUIET is set to YES this implies that the -# messages are off. -# The default value is: NO. - -QUIET = NO - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES -# this implies that the warnings are on. -# -# Tip: Turn warnings on while writing the documentation. -# The default value is: YES. - -WARNINGS = YES - -# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate -# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag -# will automatically be disabled. -# The default value is: YES. - -WARN_IF_UNDOCUMENTED = YES - -# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some parameters -# in a documented function, or documenting parameters that don't exist or using -# markup commands wrongly. -# The default value is: YES. - -WARN_IF_DOC_ERROR = YES - -# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that -# are documented, but have no documentation for their parameters or return -# value. If set to NO doxygen will only warn about wrong or incomplete parameter -# documentation, but not about the absence of documentation. -# The default value is: NO. - -WARN_NO_PARAMDOC = YES - -# The WARN_FORMAT tag determines the format of the warning messages that doxygen -# can produce. The string should contain the $file, $line, and $text tags, which -# will be replaced by the file and line number from which the warning originated -# and the warning text. Optionally the format may contain $version, which will -# be replaced by the version of the file (if it could be obtained via -# FILE_VERSION_FILTER) -# The default value is: $file:$line: $text. - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning and error -# messages should be written. If left blank the output is written to standard -# error (stderr). - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# Configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag is used to specify the files and/or directories that contain -# documented source files. You may enter file names like myfile.cpp or -# directories like /usr/src/myproject. Separate the files or directories with -# spaces. -# Note: If this tag is empty the current directory is searched. - -INPUT = - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses -# libiconv (or the iconv built into libc) for the transcoding. See the libiconv -# documentation (see: http://www.gnu.org/software/libiconv) for the list of -# possible encodings. -# The default value is: UTF-8. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and -# *.h) to filter out the source-files in the directories. If left blank the -# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, -# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, -# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, -# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, -# *.qsf, *.as and *.js. - -FILE_PATTERNS = *.cs - -# The RECURSIVE tag can be used to specify whether or not subdirectories should -# be searched for input files as well. -# The default value is: NO. - -RECURSIVE = NO - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. -# The default value is: NO. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories use the pattern */test/* - -EXCLUDE_SYMBOLS = SWIGTYPE_*, *swigC* - -# The EXAMPLE_PATH tag can be used to specify one or more files or directories -# that contain example code fragments that are included (see the \include -# command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and -# *.h) to filter out the source-files in the directories. If left blank all -# files are included. - -EXAMPLE_PATTERNS = - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude commands -# irrespective of the value of the RECURSIVE tag. -# The default value is: NO. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or directories -# that contain images that are to be included in the documentation (see the -# \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command: -# -# -# -# where is the value of the INPUT_FILTER tag, and is the -# name of an input file. Doxygen will then use the output that the filter -# program writes to standard output. If FILTER_PATTERNS is specified, this tag -# will be ignored. -# -# Note that the filter must not add or remove lines; it is applied before the -# code is scanned, but not when the output code is generated. If lines are added -# or removed, the anchors will not be placed correctly. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. The filters are a list of the form: pattern=filter -# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how -# filters are used. If the FILTER_PATTERNS tag is empty or if none of the -# patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER ) will also be used to filter the input files that are used for -# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). -# The default value is: NO. - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and -# it is also possible to disable source filtering for a specific pattern using -# *.ext= (so without naming a filter). -# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. - -FILTER_SOURCE_PATTERNS = - -# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that -# is part of the input, its contents will be placed on the main page -# (index.html). This can be useful if you have a project on for instance GitHub -# and want to reuse the introduction page also for the doxygen output. - -USE_MDFILE_AS_MAINPAGE = - -#--------------------------------------------------------------------------- -# Configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will be -# generated. Documented entities will be cross-referenced with these sources. -# -# Note: To get rid of all source code in the generated output, make sure that -# also VERBATIM_HEADERS is set to NO. -# The default value is: NO. - -SOURCE_BROWSER = NO - -# Setting the INLINE_SOURCES tag to YES will include the body of functions, -# classes and enums directly into the documentation. -# The default value is: NO. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any -# special comment blocks from generated source code fragments. Normal C, C++ and -# Fortran comments will always remain visible. -# The default value is: YES. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES then for each documented -# function all documented functions referencing it will be listed. -# The default value is: NO. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES then for each documented function -# all documented entities called/used by that function will be listed. -# The default value is: NO. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set -# to YES, then the hyperlinks from functions in REFERENCES_RELATION and -# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will -# link to the documentation. -# The default value is: YES. - -REFERENCES_LINK_SOURCE = YES - -# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the -# source code will show a tooltip with additional information such as prototype, -# brief description and links to the definition and documentation. Since this -# will make the HTML file larger and loading of large files a bit slower, you -# can opt to disable this feature. -# The default value is: YES. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -SOURCE_TOOLTIPS = YES - -# If the USE_HTAGS tag is set to YES then the references to source code will -# point to the HTML generated by the htags(1) tool instead of doxygen built-in -# source browser. The htags tool is part of GNU's global source tagging system -# (see http://www.gnu.org/software/global/global.html). You will need version -# 4.8.6 or higher. -# -# To use it do the following: -# - Install the latest version of global -# - Enable SOURCE_BROWSER and USE_HTAGS in the config file -# - Make sure the INPUT points to the root of the source tree -# - Run doxygen as normal -# -# Doxygen will invoke htags (and that will in turn invoke gtags), so these -# tools must be available from the command line (i.e. in the search path). -# -# The result: instead of the source browser generated by doxygen, the links to -# source code will now point to the output of htags. -# The default value is: NO. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a -# verbatim copy of the header file for each class for which an include is -# specified. Set to NO to disable this. -# See also: Section \class. -# The default value is: YES. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# Configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all -# compounds will be generated. Enable this if the project contains a lot of -# classes, structs, unions or interfaces. -# The default value is: YES. - -ALPHABETICAL_INDEX = YES - -# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in -# which the alphabetical index list will be split. -# Minimum value: 1, maximum value: 20, default value: 5. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all classes will -# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag -# can be used to specify a prefix (or a list of prefixes) that should be ignored -# while generating the index headers. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output -# The default value is: YES. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a -# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of -# it. -# The default directory is: html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each -# generated HTML page (for example: .htm, .php, .asp). -# The default value is: .html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a user-defined HTML header file for -# each generated HTML page. If the tag is left blank doxygen will generate a -# standard header. -# -# To get valid HTML the header file that includes any scripts and style sheets -# that doxygen needs, which is dependent on the configuration options used (e.g. -# the setting GENERATE_TREEVIEW). It is highly recommended to start with a -# default header using -# doxygen -w html new_header.html new_footer.html new_stylesheet.css -# YourConfigFile -# and then modify the file new_header.html. See also section "Doxygen usage" -# for information on how to generate the default header that doxygen normally -# uses. -# Note: The header is subject to change so you typically have to regenerate the -# default header when upgrading to a newer version of doxygen. For a description -# of the possible markers and block names see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each -# generated HTML page. If the tag is left blank doxygen will generate a standard -# footer. See HTML_HEADER for more information on how to generate a default -# footer and what special commands can be used inside the footer. See also -# section "Doxygen usage" for information on how to generate the default footer -# that doxygen normally uses. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style -# sheet that is used by each HTML page. It can be used to fine-tune the look of -# the HTML output. If left blank doxygen will generate a default style sheet. -# See also section "Doxygen usage" for information on how to generate the style -# sheet that doxygen normally uses. -# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as -# it is more robust and this tag (HTML_STYLESHEET) will in the future become -# obsolete. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_STYLESHEET = - -# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user- -# defined cascading style sheet that is included after the standard style sheets -# created by doxygen. Using this option one can overrule certain style aspects. -# This is preferred over using HTML_STYLESHEET since it does not replace the -# standard style sheet and is therefor more robust against future updates. -# Doxygen will copy the style sheet file to the output directory. For an example -# see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that the -# files will be copied as-is; there are no commands or markers available. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen -# will adjust the colors in the stylesheet and background images according to -# this color. Hue is specified as an angle on a colorwheel, see -# http://en.wikipedia.org/wiki/Hue for more information. For instance the value -# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 -# purple, and 360 is red again. -# Minimum value: 0, maximum value: 359, default value: 220. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors -# in the HTML output. For a value of 0 the output will use grayscales only. A -# value of 255 will produce the most vivid colors. -# Minimum value: 0, maximum value: 255, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the -# luminance component of the colors in the HTML output. Values below 100 -# gradually make the output lighter, whereas values above 100 make the output -# darker. The value divided by 100 is the actual gamma applied, so 80 represents -# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not -# change the gamma. -# Minimum value: 40, maximum value: 240, default value: 80. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting this -# to NO can help when comparing the output of multiple runs. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_TIMESTAMP = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_DYNAMIC_SECTIONS = NO - -# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries -# shown in the various tree structured indices initially; the user can expand -# and collapse entries dynamically later on. Doxygen will expand the tree to -# such a level that at most the specified number of entries are visible (unless -# a fully collapsed tree already exceeds this amount). So setting the number of -# entries 1 will produce a full collapsed tree by default. 0 is a special value -# representing an infinite number of entries and will result in a full expanded -# tree by default. -# Minimum value: 0, maximum value: 9999, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_INDEX_NUM_ENTRIES = 100 - -# If the GENERATE_DOCSET tag is set to YES, additional index files will be -# generated that can be used as input for Apple's Xcode 3 integrated development -# environment (see: http://developer.apple.com/tools/xcode/), introduced with -# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a -# Makefile in the HTML output directory. Running make will produce the docset in -# that directory and running make install will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at -# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_DOCSET = NO - -# This tag determines the name of the docset feed. A documentation feed provides -# an umbrella under which multiple documentation sets from a single provider -# (such as a company or product suite) can be grouped. -# The default value is: Doxygen generated docs. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# This tag specifies a string that should uniquely identify the documentation -# set bundle. This should be a reverse domain-name style string, e.g. -# com.mycompany.MyDocSet. Doxygen will append .docset to the name. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. -# The default value is: org.doxygen.Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. -# The default value is: Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three -# additional HTML index files: index.hhp, index.hhc, and index.hhk. The -# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop -# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on -# Windows. -# -# The HTML Help Workshop contains a compiler that can convert all HTML output -# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML -# files are now used as the Windows 98 help format, and will replace the old -# Windows help format (.hlp) on all Windows platforms in the future. Compressed -# HTML files also contain an index, a table of contents, and you can search for -# words in the documentation. The HTML workshop also contains a viewer for -# compressed HTML files. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_HTMLHELP = NO - -# The CHM_FILE tag can be used to specify the file name of the resulting .chm -# file. You can add a path in front of the file if the result should not be -# written to the html output directory. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_FILE = - -# The HHC_LOCATION tag can be used to specify the location (absolute path -# including file name) of the HTML help compiler ( hhc.exe). If non-empty -# doxygen will try to run the HTML help compiler on the generated index.hhp. -# The file has to be specified with full path. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -HHC_LOCATION = - -# The GENERATE_CHI flag controls if a separate .chi index file is generated ( -# YES) or that it should be included in the master .chm file ( NO). -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -GENERATE_CHI = NO - -# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc) -# and project file content. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_INDEX_ENCODING = - -# The BINARY_TOC flag controls whether a binary table of contents is generated ( -# YES) or a normal table of contents ( NO) in the .chm file. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members to -# the table of contents of the HTML help documentation and to the tree view. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that -# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help -# (.qch) of the generated HTML documentation. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify -# the file name of the resulting .qch file. The path specified is relative to -# the HTML output folder. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help -# Project output. For more information please see Qt Help Project / Namespace -# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt -# Help Project output. For more information please see Qt Help Project / Virtual -# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- -# folders). -# The default value is: doc. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_VIRTUAL_FOLDER = doc - -# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom -# filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- -# filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- -# filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's filter section matches. Qt Help Project / Filter Attributes (see: -# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_SECT_FILTER_ATTRS = - -# The QHG_LOCATION tag can be used to specify the location of Qt's -# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the -# generated .qhp file. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be -# generated, together with the HTML files, they form an Eclipse help plugin. To -# install this plugin and make it available under the help contents menu in -# Eclipse, the contents of the directory containing the HTML and XML files needs -# to be copied into the plugins directory of eclipse. The name of the directory -# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. -# After copying Eclipse needs to be restarted before the help appears. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the Eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have this -# name. Each documentation set should have its own identifier. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# If you want full control over the layout of the generated HTML pages it might -# be necessary to disable the index and replace it with your own. The -# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top -# of each HTML page. A value of NO enables the index and the value YES disables -# it. Since the tabs in the index contain the same information as the navigation -# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. If the tag -# value is set to YES, a side panel will be generated containing a tree-like -# index structure (just like the one that is generated for HTML Help). For this -# to work a browser that supports JavaScript, DHTML, CSS and frames is required -# (i.e. any modern browser). Windows users are probably better off using the -# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can -# further fine-tune the look of the index. As an example, the default style -# sheet generated by doxygen has an example that shows how to put an image at -# the root of the tree instead of the PROJECT_NAME. Since the tree basically has -# the same information as the tab index, you could consider setting -# DISABLE_INDEX to YES when enabling this option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_TREEVIEW = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that -# doxygen will group on one line in the generated HTML documentation. -# -# Note that a value of 0 will completely suppress the enum values from appearing -# in the overview section. -# Minimum value: 0, maximum value: 20, default value: 4. -# This tag requires that the tag GENERATE_HTML is set to YES. - -ENUM_VALUES_PER_LINE = 4 - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used -# to set the initial width (in pixels) of the frame in which the tree is shown. -# Minimum value: 0, maximum value: 1500, default value: 250. -# This tag requires that the tag GENERATE_HTML is set to YES. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to -# external symbols imported via tag files in a separate window. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of LaTeX formulas included as images in -# the HTML documentation. When you change the font size after a successful -# doxygen run you need to manually remove any form_*.png images from the HTML -# output directory to force them to be regenerated. -# Minimum value: 8, maximum value: 50, default value: 10. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are not -# supported properly for IE 6.0, but are supported on all modern browsers. -# -# Note that when changing this option you need to delete any form_*.png files in -# the HTML output directory before the changes have effect. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see -# http://www.mathjax.org) which uses client side Javascript for the rendering -# instead of using prerendered bitmaps. Use this if you do not have LaTeX -# installed or if you want to formulas look prettier in the HTML output. When -# enabled you may also need to install MathJax separately and configure the path -# to it using the MATHJAX_RELPATH option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -USE_MATHJAX = NO - -# When MathJax is enabled you can set the default output format to be used for -# the MathJax output. See the MathJax site (see: -# http://docs.mathjax.org/en/latest/output.html) for more details. -# Possible values are: HTML-CSS (which is slower, but has the best -# compatibility), NativeMML (i.e. MathML) and SVG. -# The default value is: HTML-CSS. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_FORMAT = HTML-CSS - -# When MathJax is enabled you need to specify the location relative to the HTML -# output directory using the MATHJAX_RELPATH option. The destination directory -# should contain the MathJax.js script. For instance, if the mathjax directory -# is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax -# Content Delivery Network so you can quickly see the result without installing -# MathJax. However, it is strongly recommended to install a local copy of -# MathJax from http://www.mathjax.org before deployment. -# The default value is: http://cdn.mathjax.org/mathjax/latest. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest - -# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax -# extension names that should be enabled during MathJax rendering. For example -# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_EXTENSIONS = - -# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces -# of code that will be used on startup of the MathJax code. See the MathJax site -# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an -# example see the documentation. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_CODEFILE = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box for -# the HTML output. The underlying search engine uses javascript and DHTML and -# should work on any modern browser. Note that when using HTML help -# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) -# there is already a search function so this one should typically be disabled. -# For large projects the javascript based search engine can be slow, then -# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to -# search using the keyboard; to jump to the search box use + S -# (what the is depends on the OS and browser, but it is typically -# , /