Exemplo n.º 1
0
// protected override sealed void Dispose(bool disposing) :1901
void StreamWriter__Dispose1_fn(StreamWriter* __this, bool* disposing)
{
    bool disposing_ = *disposing;
    __this->Flush();

    if (disposing_ && (__this->_stream != NULL))
        uPtr(__this->_stream)->Close();

    ::g::Uno::IO::TextWriter__Dispose1_fn(__this, uCRef(disposing_));
}
Exemplo n.º 2
0
// public static void Assert(bool value, string expression, string filename, int line, object[] operands) [static] :79
void Debug::Assert(bool value, uString* expression, uString* filename, int line, uArray* operands)
{
    Debug_typeof()->Init();

    if (::g::Uno::Delegate::op_Inequality(Debug::_assertionHandler(), NULL))
        uPtr(Debug::_assertionHandler())->Invoke(5, uCRef(value), expression, filename, uCRef<int>(line), operands);

    if (!value)
        Debug::EmitLog(::g::Uno::String::op_Addition2(::g::Uno::String::op_Addition1(::g::Uno::String::op_Addition2(::g::Uno::String::op_Addition2(::g::Uno::String::op_Addition2(::g::Uno::String::op_Addition2(::STRINGS[1/*"Assertion F...*/], expression), ::STRINGS[2/*"' in "*/]), filename), ::STRINGS[3/*"("*/]), uBox<int>(::g::Uno::Int_typeof(), line)), ::STRINGS[4/*")"*/]), 3);
}
Exemplo n.º 3
0
// protected override sealed void Dispose(bool disposing) :1767
void StreamReader__Dispose1_fn(StreamReader* __this, bool* disposing)
{
    bool disposing_ = *disposing;

    if (disposing_ && (__this->_stream != NULL))
    {
        uPtr(__this->_stream)->Close();
        __this->_stream = NULL;
    }

    ::g::Uno::IO::TextReader__Dispose1_fn(__this, uCRef(disposing_));
}
// protected override sealed void OnApply(Fuse.Controls.Rectangle self) :13
void HamburgerIcon__Template__OnApply_fn(HamburgerIcon__Template* __this, ::g::Fuse::Controls::Rectangle* self)
{
    bool ret2;
    bool ret3;
    bool ret4;
    ::g::Fuse::Drawing::SolidColor* temp = ::g::Fuse::Drawing::SolidColor::New1();
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::Rectangle::CornerRadiusProperty()), self, uCRef(::g::Uno::Float4__New2(3.0f, 3.0f, 3.0f, 3.0f)), &ret2);
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Elements::Element::HeightProperty()), self, uCRef(3.0f), &ret3);
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Elements::Element::MarginProperty()), self, uCRef(::g::Uno::Float4__New2(0.0f, 2.0f, 0.0f, 2.0f)), &ret4);
    temp->Color(::g::Uno::Float4__New2(1.0f, 1.0f, 1.0f, 1.0f));
    uPtr(self)->AddStyleFill(temp);
}
Exemplo n.º 5
0
// public BoolChangedArgs(bool value, object origin) [instance] :134
void BoolChangedArgs::ctor_2(bool value, uObject* origin)
{
    ::g::Uno::UX::ValueChangedArgs__ctor_1_fn(this, uCRef(value), origin);
}
Exemplo n.º 6
0
// public DoubleChangedArgs(double value, object origin) [instance] :122
void DoubleChangedArgs::ctor_2(double value, uObject* origin)
{
    ::g::Uno::UX::ValueChangedArgs__ctor_1_fn(this, uCRef(value), origin);
}
// protected override sealed void OnApply(Fuse.Controls.Text self) :41
void MainView__Template__OnApply_fn(MainView__Template* __this, ::g::Fuse::Controls::Text* self)
{
    bool ret2;
    bool ret3;
    bool ret4;
    bool ret5;
    bool ret6;
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::TextWrappingProperty()), self, uCRef<int>(1), &ret2);
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::FontSizeProperty()), self, uCRef(16.0f), &ret3);
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::TextAlignmentProperty()), self, uCRef<int>(1), &ret4);
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::TextColorProperty()), self, uCRef(::g::Uno::Float4__New2(1.0f, 1.0f, 1.0f, 1.0f)), &ret5);
    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Elements::Element::YProperty()), self, uCRef(100.0f), &ret6);
}
// public sealed extern class Button :24
// {
// static Button() :24
static void Button__cctor_1_fn(uType* __type)
{
    ::g::Fuse::StyleProperty1* ret2;
    Button::TextColorProperty_ = (::g::Fuse::StyleProperty1__New1_fn(::TYPES[0/*Fuse.StyleProperty<Fuse.Android.Controls.Button, float4>*/], uCRef(::g::Uno::Float4__New2(1.0f, 1.0f, 1.0f, 1.0f)), uDelegate::New(::TYPES[1/*Uno.Action<Fuse.Android.Controls.Button>*/], (void*)Button__OnButtonPropertyChanged_fn), &ret2), ret2);
}
// public void set_TextColor(float4 value) [instance] :29
void Button::TextColor(::g::Uno::Float4 value)
{
    uStackFrame __("Fuse.Android.Controls.Button", "set_TextColor(float4)");
    bool ret4;
    ::g::Fuse::StyleProperty1__Set_fn(uPtr(Button::TextColorProperty()), this, uCRef(value), &ret4);
}