Beispiel #1
0
// private void InitializeUX() [instance] :10
void Cloud::InitializeUX()
{
    uStackFrame __("Cloud", "InitializeUX()");
    ::g::Fuse::Controls::Image* temp = ::g::Fuse::Controls::Image::New2();
    ::g::Fuse::Effects::DropShadow* temp1 = ::g::Fuse::Effects::DropShadow::New1();
    temp->Color(::g::Uno::Float4__New2(0.4235294f, 0.4156863f, 0.4705882f, 1.0f));
    temp->Alignment(10);
    temp->File(::g::Uno::UX::BundleFileSource::New1(::g::outsideTheBox_bundle::cloudf6cd2dfe()));
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp->Effects()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[4/*Fuse.Effects.Effect*/])), temp1);
    temp1->Size(5.0f);
    temp1->Distance(10.0f);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[7/*Fuse.Node*/])), temp);
}
// public Fuse.Drawing.Polygon get_Output() [instance] :185
::g::Fuse::Drawing::Polygon* Stroke::Output()
{
    uStackFrame __("Fuse.Entities.Processing.Stroke", "get_Output()");
    ::g::Fuse::Drawing::Polygon* ret2;
    ::g::Fuse::Drawing::Polygon* ret3;

    if (_output != NULL)
        return _output;

    if ((_source == NULL) || ((::g::Fuse::IOutput::get_Output_ex(uInterface(uPtr(_source), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), &ret2), ret2) == NULL))
        return NULL;

    _output = uPtr((::g::Fuse::IOutput::get_Output_ex(uInterface(uPtr(Source()), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), &ret3), ret3))->Stroke(::g::Uno::Math::Max1(0.1f, Width()), Offset(), StartCap(), EndCap());
    return _output;
}
Beispiel #3
0
// internal void InitializeUX() [instance] :42
void Payment::InitializeUX1()
{
    ::g::Fuse::Resources::FileImageSource* temp = ::g::Fuse::Resources::FileImageSource::New1();
    ::g::Uno::UX::Resource* temp1 = ::g::Uno::UX::Resource::New1(::STRINGS[0/*"iconFile"*/], temp);
    temp->File(::g::Uno::UX::BundleFileSource::New1(::g::WelcomeAnimation_bundle::paymentfbc7c195()));
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Resources()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::g::Uno::UX::Resource_typeof())), temp1);
}
// private void DoDispose() [instance] :59
void VideoLoader__VideoPromise::DoDispose()
{
    if (_readyToDispose)
    {
        ::g::Uno::IDisposable::Dispose(uInterface(uPtr(_player), ::g::Uno::IDisposable_typeof()));
        ::g::Fuse::UpdateManager::RemoveAction(uDelegate::New(::TYPES[1/*Uno.Action*/], (void*)VideoLoader__VideoPromise__DoDispose_fn, this), 0);
    }
}
// public void set_Source(Fuse.IOutput<Fuse.Drawing.Polygon> value) [instance] :164
void Stroke::Source(uObject* value)
{
    uStackFrame __("Fuse.Entities.Processing.Stroke", "set_Source(Fuse.IOutput<Fuse.Drawing.Polygon>)");

    if (value == _source)
        return;

    if (_source != NULL)
        ::g::Fuse::IOutput::remove_OutputChanged(uInterface(uPtr(_source), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), uDelegate::New(::TYPES[1/*Uno.Action*/], (void*)Stroke__Invalidate_fn, this));

    _source = value;

    if (_source != NULL)
        ::g::Fuse::IOutput::add_OutputChanged(uInterface(uPtr(_source), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), uDelegate::New(::TYPES[1/*Uno.Action*/], (void*)Stroke__Invalidate_fn, this));

    Invalidate();
}
// public static bool IsSelected(object obj) [static] :5989
bool SelectionManager::IsSelected(uObject* obj)
{
    uStackFrame __("Fuse.Preview.SelectionManager", "IsSelected(object)");

    if (SelectionManager::Selection() != NULL)
        return ::g::Fuse::Preview::ISelection::IsSelected(uInterface(uPtr(SelectionManager::Selection()), ::g::Fuse::Preview::ISelection_typeof()), obj);

    return false;
}
Beispiel #7
0
// private void InitializeUX() [instance] :62
void NativeStyle::InitializeUX()
{
    uStackFrame __("Fuse.Desktop.NativeStyle", "InitializeUX()");
    NativeStyle__Template* collection1;
    NativeStyle__Template1* collection2;
    collection1 = NativeStyle__Template::New1(this);
    uPtr(collection1)->Cascade(true);
    true;
    uPtr(collection1)->AffectSubtypes(true);
    true;
    NativeStyle__Template* temp = collection1;
    collection2 = NativeStyle__Template1::New1(this);
    uPtr(collection2)->Cascade(true);
    true;
    uPtr(collection2)->AffectSubtypes(true);
    true;
    NativeStyle__Template1* temp1 = collection2;
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Templates()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[13/*Uno.UX.ITemplate*/])), (uObject*)temp);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Templates()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[13/*Uno.UX.ITemplate*/])), (uObject*)temp1);
}
// private void InitializeUX() [instance] :30
void HamburgerIcon::InitializeUX()
{
    HamburgerIcon__Template* collection1;
    ::g::Fuse::Style* temp = ::g::Fuse::Style::New1();
    collection1 = HamburgerIcon__Template::New1(this);
    uPtr(collection1)->Cascade(true);
    true;
    uPtr(collection1)->AffectSubtypes(true);
    true;
    HamburgerIcon__Template* temp1 = collection1;
    ::g::Fuse::Controls::Rectangle* temp2 = ::g::Fuse::Controls::Rectangle::New2();
    ::g::Fuse::Controls::Rectangle* temp3 = ::g::Fuse::Controls::Rectangle::New2();
    ::g::Fuse::Controls::Rectangle* temp4 = ::g::Fuse::Controls::Rectangle::New2();
    Width(25.0f);
    Height(21.0f);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp->Templates()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[3/*Uno.UX.ITemplate*/])), (uObject*)temp1);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[5/*Fuse.Node*/])), temp2);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[5/*Fuse.Node*/])), temp3);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[5/*Fuse.Node*/])), temp4);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Styles()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[2/*Fuse.Style*/])), temp);
}
// private void InitializeUX() [instance] :29
void CloseIcon::InitializeUX()
{
    CloseIcon__Template* collection1;
    ::g::Fuse::Style* temp = ::g::Fuse::Style::New1();
    collection1 = CloseIcon__Template::New1(this);
    uPtr(collection1)->Cascade(true);
    true;
    uPtr(collection1)->AffectSubtypes(true);
    true;
    CloseIcon__Template* temp1 = collection1;
    ::g::Fuse::Controls::Rectangle* temp2 = ::g::Fuse::Controls::Rectangle::New2();
    ::g::Fuse::Rotation* temp3 = ::g::Fuse::Rotation::New1();
    ::g::Fuse::Controls::Rectangle* temp4 = ::g::Fuse::Controls::Rectangle::New2();
    ::g::Fuse::Rotation* temp5 = ::g::Fuse::Rotation::New1();
    Width(25.0f);
    Height(25.0f);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp->Templates()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[3/*Uno.UX.ITemplate*/])), (uObject*)temp1);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp2->Transforms()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[5/*Fuse.Transform*/])), temp3);
    temp3->Degrees(45.0f);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp4->Transforms()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[5/*Fuse.Transform*/])), temp5);
    temp5->Degrees(-45.0f);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[4/*Fuse.Node*/])), temp2);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[4/*Fuse.Node*/])), temp4);
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Styles()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[2/*Fuse.Style*/])), temp);
}
// private static void CreateFile(string filepath) [static] :26
void ApplicationDir::CreateFile(uString* filepath)
{
    ::g::Uno::IO::Stream* stream = ::g::Uno::IO::File::Open(filepath, 2);

    {
        const auto __finally_fun = [&]()
        {
            ::g::Uno::IDisposable::Dispose(uInterface(uPtr((uObject*)stream), ::TYPES[0/*Uno.IDisposable*/]));
        };

        const uFinally<decltype(__finally_fun)> __f(__finally_fun);
    }
}
// public Fuse.Entities.Mesh get_Output() [instance] :80
::g::Fuse::Entities::Mesh* Extrude::Output()
{
    uStackFrame __("Fuse.Entities.Processing.Extrude", "get_Output()");
    ::g::Fuse::Drawing::Polygon* ret2;
    ::g::Fuse::Drawing::Polygon* ret3;

    if (_output != NULL)
        return _output;

    if ((_source == NULL) || ((::g::Fuse::IOutput::get_Output_ex(uInterface(uPtr(_source), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), &ret2), ret2) == NULL))
        return NULL;

    _output = ::g::Fuse::Entities::Mesh::New2(uPtr((::g::Fuse::IOutput::get_Output_ex(uInterface(uPtr(_source), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), &ret3), ret3))->Extrude(Depth(), SmoothingThreshold()));
    return _output;
}
// private static void NotifyNameChanged(object obj, string name) [static] :79
void NameRegistry::NotifyNameChanged(uObject* obj, uString* name)
{
    NameRegistry_typeof()->Init();
    uArray* array2;
    int index3;
    int length4;
    bool ret14;
    ::g::Uno::Collections::List* ret15;

    if ((::g::Uno::Collections::Dictionary__ContainsKey_fn(uPtr(NameRegistry::_listeners()), name, &ret14), ret14))

        for (array2 = (uArray*)uPtr((::g::Uno::Collections::Dictionary__get_Item_fn(uPtr(NameRegistry::_listeners()), name, &ret15), ret15))->ToArray(), index3 = 0, length4 = uPtr(array2)->Length(); index3 < length4; ++index3)
        {
            uObject* listener = uPtr(array2)->Strong<uObject*>(index3);
            ::g::Fuse::Scripting::INameListener::OnNameChanged(uInterface(uPtr(listener), ::g::Fuse::Scripting::INameListener_typeof()), obj, name);
        }
}
Beispiel #13
0
uDelegate* uFunction::CreateDelegate(uType* type, uObject* object)
{
    if (!type || (!object && !(Flags & uFunctionFlagsStatic)))
        U_THROW_NRE();

    /* Uncommented for now, or createdelegate wont work with the current simulator bytecode
    if (!uIsDelegateType(type, ReturnType, ParameterTypes))
        U_THROW_ICE();
    */

    U_ASSERT(DeclaringType);
    DeclaringType->Init();
    return DeclaringType->Type == uTypeTypeInterface
            ? uDelegate::New(type, uInterface(object, DeclaringType), _offset, Generic) :
        Flags & uFunctionFlagsVirtual
            ? uDelegate::New(type, object, _offset, Generic)
            : uDelegate::New(type, _func, Flags & uFunctionFlagsStatic ? NULL : uPtr(object), Generic);
}
// public static extern void setTimeListener_IMPL_378(bool arg0, Android.Base.Primitives.ujobject arg1, Android.Base.Wrappers.IJWrapper arg2) [static] :2296
void TimeAnimator::setTimeListener_IMPL_378(bool arg0_, jobject arg1_, uObject* arg2_)
{
    INIT_JNI;
    CLASS_INIT(TimeAnimator::_javaClass4(),TimeAnimator::_Init4());
    jobject _obArg2 = ((!arg2_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg2_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    CACHE_METHOD(TimeAnimator::setTimeListener_378_ID(),TimeAnimator::_javaClass4(),"setTimeListener","(Landroid/animation/TimeAnimator$TimeListener;)V",GetMethodID,"Id for fallback method android.animation.TimeAnimator.setTimeListener could not be cached",89);
    if (arg0_) {
        U_JNIVAR->CallNonvirtualVoidMethod(arg1_, TimeAnimator::_javaClass4(), TimeAnimator::setTimeListener_378_ID(), _obArg2);
    }
    else
    {
        U_JNIVAR->CallVoidMethod(arg1_, TimeAnimator::setTimeListener_378_ID(), _obArg2);
    }
    ::g::Android::Base::JNI::CheckException1(U_JNIVAR);
}
// public static extern Android.Base.Wrappers.IJWrapper getDeclaredField_IMPL_30898(bool arg0, Android.Base.Primitives.ujobject arg1, Android.Base.Wrappers.IJWrapper arg2) [static] :9413
uObject* Class::getDeclaredField_IMPL_30898(bool arg0_, jobject arg1_, uObject* arg2_)
{
    INIT_JNI;
    CLASS_INIT(Class::_javaClass2(),Class::_Init2());
    jobject _obArg2 = ((!arg2_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg2_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    uObject* result;
    CACHE_METHOD(Class::getDeclaredField_30898_ID(),Class::_javaClass2(),"getDeclaredField","(Ljava/lang/String;)Ljava/lang/reflect/Field;",GetMethodID,"Id for fallback method java.lang.Class.getDeclaredField could not be cached",75);
    if (arg0_) {
        NEW_UNO(U_JNIVAR->CallNonvirtualObjectMethod(arg1_, Class::_javaClass2(), Class::getDeclaredField_30898_ID(), _obArg2),result,::g::Android::java::lang::reflect::Field_typeof(),::g::Android::java::lang::reflect::Field*,false,true);
    }
    else
    {
// public static extern Android.Base.Wrappers.IJWrapper forName_IMPL_30884(Android.Base.Wrappers.IJWrapper arg0) [static] :9371
uObject* Class::forName_IMPL_30884(uObject* arg0_)
{
    INIT_JNI;
    CLASS_INIT(Class::_javaClass2(),Class::_Init2());
    jobject _obArg0 = ((!arg0_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg0_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    uObject* result;
    CACHE_METHOD(Class::forName_30884_ID(),Class::_javaClass2(),"forName","(Ljava/lang/String;)Ljava/lang/Class;",GetStaticMethodID,"Id for fallback method java.lang.Class.forName could not be cached",66);
    NEW_UNO(U_JNIVAR->CallStaticObjectMethod(Class::_javaClass2(), Class::forName_30884_ID(), _obArg0),result,Class_typeof(),Class*,false,true);
    ::g::Android::Base::JNI::CheckException1(U_JNIVAR);
    return result;
}
// public static extern Android.Base.Wrappers.IJWrapper parse_IMPL_10996(Android.Base.Wrappers.IJWrapper arg0) [static] :253
uObject* Uri::parse_IMPL_10996(uObject* arg0_)
{
    INIT_JNI;
    CLASS_INIT(Uri::_javaClass2(),Uri::_Init2());
    jobject _obArg0 = ((!arg0_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg0_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    uObject* result;
    CACHE_METHOD(Uri::parse_10996_ID(),Uri::_javaClass2(),"parse","(Ljava/lang/String;)Landroid/net/Uri;",GetStaticMethodID,"Id for fallback method android.net.Uri.parse could not be cached",64);
    NEW_UNO(U_JNIVAR->CallStaticObjectMethod(Uri::_javaClass2(), Uri::parse_10996_ID(), _obArg0),result,::g::Android::Fallbacks::Android_android_net_Uri_typeof(),Uri*,true,true);
    ::g::Android::Base::JNI::CheckException1(U_JNIVAR);
    return result;
}
// public static extern Android.Base.Wrappers.IJWrapper getSystemService_IMPL_847(bool arg0, Android.Base.Primitives.ujobject arg1, Android.Base.Wrappers.IJWrapper arg2) [static] :3000
uObject* Activity::getSystemService_IMPL_847(bool arg0_, jobject arg1_, uObject* arg2_)
{
    INIT_JNI;
    CLASS_INIT(Activity::_javaClass5(),Activity::_Init5());
    jobject _obArg2 = ((!arg2_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg2_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    uObject* result;
    CACHE_METHOD(Activity::getSystemService_847_ID(),Activity::_javaClass5(),"getSystemService","(Ljava/lang/String;)Ljava/lang/Object;",GetMethodID,"Id for fallback method android.app.Activity.getSystemService could not be cached",80);
    if (arg0_) {
        NEW_UNO(U_JNIVAR->CallNonvirtualObjectMethod(arg1_, Activity::_javaClass5(), Activity::getSystemService_847_ID(), _obArg2),result,::g::Android::java::lang::Object_typeof(),::g::Android::java::lang::Object*,false,true);
    }
    else
    {
// private void InitializeUX() [instance] :10
void Nakamura::InitializeUX()
{
    ::g::Fuse::Controls::Image* temp = ::g::Fuse::Controls::Image::New2();
    temp->File(::g::Uno::UX::BundleFileSource::New1(::g::MyFirstProject_bundle::nakamurae464ba9f()));
    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[4/*Fuse.Node*/])), temp);
}
// public static extern Android.Base.Wrappers.IJWrapper GetResponseHeader_IMPL_44307(bool arg0, Android.Base.Primitives.ujobject arg1, Android.Base.Wrappers.IJWrapper arg2) [static] :238
uObject* HttpRequest::GetResponseHeader_IMPL_44307(bool arg0_, jobject arg1_, uObject* arg2_)
{
    INIT_JNI;
    jobject _obArg2 = ((!arg2_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg2_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    uObject* result;
    CLASS_INIT(HttpRequest::_javaClass1(),HttpRequest::_Init1());
    CACHE_METHOD(HttpRequest::GetResponseHeader_44307_ID(),HttpRequest::_javaClass1(),"GetResponseHeader","(Ljava/lang/String;)Ljava/lang/String;",GetMethodID,"Id for fallback method com.fuse.ExperimentalHttp.HttpRequest.GetResponseHeader could not be cached",98);
    if (arg0_) {
        NEW_UNO(U_JNIVAR->CallNonvirtualObjectMethod(arg1_, HttpRequest::_javaClass1(), HttpRequest::GetResponseHeader_44307_ID(), _obArg2),result,::g::Android::Base::Wrappers::JWrapper_typeof(),::g::Android::Base::Wrappers::JWrapper*,false,false);
    }
    else
    {
Beispiel #21
0
// private static extern ObjC.ID GetHandle(ObjC.Object o) [static] :41
::id Helpers::GetHandle(uObject* o)
{
    return (o == NULL) ? ::g::ObjC::ID::Null() : ::g::ObjC::Object::Handle(uInterface(uPtr(o), ::TYPES[1/*ObjC.Object*/]));
}
// public static extern float getDesiredWidth_IMPL_19893(Android.Base.Wrappers.IJWrapper arg0, Android.Base.Wrappers.IJWrapper arg1) [static] :372
float Layout::getDesiredWidth_IMPL_19893(uObject* arg0_, uObject* arg1_)
{
    INIT_JNI;
    CLASS_INIT(Layout::_javaClass2(),Layout::_Init2());
    jobject _obArg0 = ((!arg0_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg0_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    jobject _obArg1 = ((!arg1_) ? NULL : ::g::Android::Base::Wrappers::IJWrapper::_GetJavaObject(uInterface(arg1_, ::g::Android::Base::Wrappers::IJWrapper_typeof())));
    float result;
    CACHE_METHOD(Layout::getDesiredWidth_19893_ID(),Layout::_javaClass2(),"getDesiredWidth","(Ljava/lang/CharSequence;Landroid/text/TextPaint;)F",GetStaticMethodID,"Id for fallback method android.text.Layout.getDesiredWidth could not be cached",78);
    result = ((float)U_JNIVAR->CallStaticFloatMethod(Layout::_javaClass2(), Layout::getDesiredWidth_19893_ID(), _obArg0, _obArg1));
    ::g::Android::Base::JNI::CheckException1(U_JNIVAR);
    return result;
}