コード例 #1
0
void TiUIBase::onCreateStaticMembers()
{
    TiProxy::onCreateStaticMembers();
    TiGenericFunctionObject::addGenericFunctionToParent(this, "add", this, _add);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "hide", this, _hide);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "remove", this, _remove);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "show", this, _show);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "startLayout", this, _startLayout);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "finishLayout", this, _finishLayout);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "updateLayout", this, _updateLayout);
    setTiMappingProperties(g_tiProperties, sizeof(g_tiProperties) / sizeof(*g_tiProperties));
    TiObject* value = TiPropertyGetObject::createGetProperty(this, "children", this, _getChildren);
    TiPropertyGetFunctionObject::addPropertyGetter(this, value, "getChildren");
    value->release();
}
コード例 #2
0
void TiUIBase::onCreateStaticMembers()
{
    TiProxy::onCreateStaticMembers();
    TiGenericFunctionObject::addGenericFunctionToParent(this, "add", this, _add);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "hide", this, _hide);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "remove", this, _remove);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "show", this, _show);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "startLayout", this, _startLayout);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "finishLayout", this, _finishLayout);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "updateLayout", this, _updateLayout);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "focus", this, _focus);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "blur", this, _blur);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "animate", this, _animate);
    TiGenericFunctionObject::addGenericFunctionToParent(this, "convertPointToView", this, _convertPointToView);

    TiPropertySetGetObject::createProperty(this, "children", this, NULL, _getChildren);
    setTiMappingProperties(g_tiProperties, sizeof(g_tiProperties) / sizeof(*g_tiProperties));
}
コード例 #3
0
void TiGeolocation::onCreateStaticMembers() {
    TiProxy::onCreateStaticMembers();
    setTiMappingProperties(g_tiProperties, sizeof(g_tiProperties) / sizeof(*g_tiProperties));
}