public void CustomActorImplOnRelayout() { tlog.Debug(tag, $"CustomActorImplOnRelayout START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); using (Vector2 vector = new Vector2(100.0f, 20.0f)) { using (RelayoutContainer container = new RelayoutContainer(view.SwigCPtr.Handle, false)) { try { testingTarget.OnRelayout(vector, container); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplOnRelayout END (OK)"); }
public void CustomActorImplOnSizeSet() { tlog.Debug(tag, $"CustomActorImplOnSizeSet START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); try { using (Vector3 vector = new Vector3(100.0f, 20.0f, 80.0f)) { testingTarget.OnSizeSet(vector); } } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplOnSizeSet END (OK)"); }
public void CustomActorImplOnSetResizePolicy() { tlog.Debug(tag, $"CustomActorImplOnSetResizePolicy START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); try { testingTarget.OnSetResizePolicy(ResizePolicyType.Fixed, DimensionType.Width); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplOnSetResizePolicy END (OK)"); }
public void CustomActorImplOnCalculateRelayoutSize() { tlog.Debug(tag, $"CustomActorImplOnCalculateRelayoutSize START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); try { testingTarget.OnCalculateRelayoutSize(DimensionType.AllDimensions); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplOnCalculateRelayoutSize END (OK)"); }
public void CustomActorImplOnSceneConnection() { tlog.Debug(tag, $"CustomActorImplOnSceneConnection START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); try { testingTarget.OnSceneConnection(1); testingTarget.OnSceneDisconnection(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplOnSceneConnection END (OK)"); }
public void NDalicGetAlphaOffsetAndMask() { tlog.Debug(tag, $"NDalicGetAlphaOffsetAndMask START"); intp dummy1 = new intp(); dummy1.assign(1); intp dummy2 = new intp(); dummy2.assign(10); try { NDalic.GetAlphaOffsetAndMask(PixelFormat.BGR8888, dummy1.cast(), dummy2.cast()); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } dummy1.Dispose(); dummy2.Dispose(); tlog.Debug(tag, $"NDalicGetAlphaOffsetAndMask END (OK)"); }
public void NDalicRaiseAbove() { tlog.Debug(tag, $"NDalicRaiseAbove START"); using (View view = new View() { Size = new Size(100, 50) }) { using (View target = new View() { Size = new Size(100, 50) }) { try { NDalic.RaiseAbove(view, target); NDalic.LowerBelow(target, view); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed"); } } } tlog.Debug(tag, $"NDalicRaiseAbove END (OK)"); }
public void CustomActorImplOnChildAdd() { tlog.Debug(tag, $"CustomActorImplOnChildAdd START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); using (View child = new View()) { try { testingTarget.OnChildAdd(child); var result = testingTarget.CalculateChildSize(child, DimensionType.Width); tlog.Debug(tag, "CalculateChildSize : " + result); testingTarget.OnChildRemove(child); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplOnChildAdd END (OK)"); }
public void CustomActorImplOnPropertySet() { tlog.Debug(tag, $"CustomActorImplOnPropertySet START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); try { testingTarget.OnPropertySet(View.Property.OPACITY, new PropertyValue(0.3f)); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplOnPropertySet END (OK)"); }
public void NDalicGetName() { tlog.Debug(tag, $"NDalicGetName START"); var result = NDalic.GetName(PropertyType.Float); tlog.Debug(tag, "Get name : " + result); tlog.Debug(tag, $"NDalicGetName END (OK)"); }
public void NDalicEqualsZero() { tlog.Debug(tag, $"NDalicEqualsZero START"); var result = NDalic.EqualsZero(0.0f); tlog.Debug(tag, "EqualsZero : " + result); tlog.Debug(tag, $"NDalicEqualTo END (OK)"); }
public void NDalicGetRangedEpsilon() { tlog.Debug(tag, $"NDalicGetRangedEpsilon START"); var result = NDalic.GetRangedEpsilon(0.3f, 1.0f); tlog.Debug(tag, "Get ranged epsilon : " + result); tlog.Debug(tag, $"NDalicGetRangedEpsilon END (OK)"); }
public void NDalicGetBytesPerPixel() { tlog.Debug(tag, $"NDalicGetBytesPerPixel START"); var result = NDalic.GetBytesPerPixel(PixelFormat.A8); tlog.Debug(tag, "FIRST_VALID_PIXEL_FORMAT : " + result); tlog.Debug(tag, $"NDalicGetBytesPerPixel END (OK)"); }
public void NDalicHasAlpha() { tlog.Debug(tag, $"NDalicHasAlpha START"); var result = NDalic.HasAlpha(PixelFormat.A8); tlog.Debug(tag, "FIRST_VALID_PIXEL_FORMAT : " + result); tlog.Debug(tag, $"NDalicHasAlpha END (OK)"); }
public void NDalicIntToUint() { tlog.Debug(tag, $"NDalicIntToUint START"); var result = NDalic.int_to_uint(1); tlog.Debug(tag, "int_to_uint : " + result); tlog.Debug(tag, $"NDalicIntToUint END (OK)"); }
public void NDalicShortestDistanceInDomain() { tlog.Debug(tag, $"NDalicShortestDistanceInDomain START"); var result = NDalic.ShortestDistanceInDomain(0.1f, 0.3f, 0.0f, 1.0f); tlog.Debug(tag, "WrapInDomain : " + result); tlog.Debug(tag, $"NDalicShortestDistanceInDomain END (OK)"); }
public void NDalicWrapInDomain() { tlog.Debug(tag, $"NDalicWrapInDomain START"); var result = NDalic.WrapInDomain(0.3f, 0.0f, 1.0f); tlog.Debug(tag, "WrapInDomain : " + result); tlog.Debug(tag, $"NDalicWrapInDomain END (OK)"); }
public void NDalicRound() { tlog.Debug(tag, $"NDalicRound START"); var result = NDalic.Round(0.3f, 1); tlog.Debug(tag, "Round : " + result); tlog.Debug(tag, $"NDalicRound END (OK)"); }
public void NDalicNewItemLayout() { tlog.Debug(tag, $"NDalicNewItemLayout START"); var result = NDalic.NewItemLayout(DefaultItemLayoutType.GRID); tlog.Debug(tag, "New item layout :" + result); tlog.Debug(tag, $"NDalicNewItemLayout END (OK)"); }
public void NDalicNextPowerOfTwo() { tlog.Debug(tag, $"NDalicNextPowerOfTwo START"); var result = NDalic.NextPowerOfTwo(1); tlog.Debug(tag, "Next power of two : " + result); tlog.Debug(tag, $"NDalicNextPowerOfTwo END (OK)"); }
public void NDalicClamp() { tlog.Debug(tag, $"NDalicClamp START"); using (Vector2 vec = new Vector2(0.3f, 0.5f)) { NDalic.Clamp(vec, 0.0f, 1.0f); } tlog.Debug(tag, $"NDalicClamp END (OK)"); }
public void NDalicGetDeviceClass() { tlog.Debug(tag, $"NDalicGetDeviceClass START"); using (Key key = new Key()) { var type = NDalic.GetDeviceClass(key); tlog.Debug(tag, "Get device class type : " + type); } tlog.Debug(tag, $"NDalicGetDeviceClass END (OK)"); }
public void NDalicEqualTo() { tlog.Debug(tag, $"NDalicEqualTo START"); AngleAxis lhs = new AngleAxis(); AngleAxis rhs = new AngleAxis(); var result = NDalic.EqualTo(lhs, rhs); tlog.Debug(tag, "EqualTo : " + result); tlog.Debug(tag, $"NDalicEqualTo END (OK)"); }
public void NDalicMin() { tlog.Debug(tag, $"NDalicMin START"); Vector2 dummy1 = new Vector2(0.3f, 0.5f); Vector2 dummy2 = new Vector2(0.5f, 0.9f); tlog.Debug(tag, "Min : " + NDalic.Min(dummy1, dummy2)); tlog.Debug(tag, "Max : " + NDalic.Max(dummy1, dummy2)); dummy1.Dispose(); dummy2.Dispose(); tlog.Debug(tag, $"NDalicMin END (OK)"); }
public void NDalicEquals() { tlog.Debug(tag, $"NDalicEquals START"); bool result = false; result = NDalic.Equals(0.3f, 0.3f); tlog.Debug(tag, "Equals : " + result); // with epsilon result = NDalic.Equals(0.5f, 0.9f, 0.3f); tlog.Debug(tag, "Equals : " + result); tlog.Debug(tag, $"NDalicEquals END (OK)"); }
public void NDalicC() { tlog.Debug(tag, $"NDalicC START"); using (View view = new View() { Size = new Size(100, 50) }) { var result = NDalic.c(view); tlog.Debug(tag, "BaseObject : " + result); } tlog.Debug(tag, $"NDalicC END (OK)"); }
public void CustomActorImplSelf() { tlog.Debug(tag, $"CustomActorImplSelf START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view).Self(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!"); testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplSelf END (OK)"); }
public void NDalicDaliAssertMessage() { tlog.Debug(tag, $"NDalicDaliAssertMessage START"); try { NDalic.DaliAssertMessage("true", " arg > 0"); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } tlog.Debug(tag, $"NDalicDaliAssertMessage END (OK)"); }
public void CustomActorImplIsRelayoutEnabled() { tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); var result = testingTarget.IsRelayoutEnabled(); tlog.Debug(tag, "IsRelayoutEnabled : " + result); testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled END (OK)"); }
public void CustomActorImplRelayoutDependentOnChildren() { tlog.Debug(tag, $"CustomActorImplRelayoutDependentOnChildren START"); using (View view = new View()) { var testingTarget = NDalic.GetImplementation(view); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!"); var result = testingTarget.RelayoutDependentOnChildren(); tlog.Debug(tag, "RelayoutDependentOnChildren : " + result); result = testingTarget.RelayoutDependentOnChildren(DimensionType.Height); tlog.Debug(tag, "RelayoutDependentOnChildren : " + result); testingTarget.Dispose(); } tlog.Debug(tag, $"CustomActorImplRelayoutDependentOnChildren END (OK)"); }