本文整理汇总了Golang中golang.org/x/mobile/bind/seq.Register函数的典型用法代码示例。如果您正苦于以下问题:Golang Register函数的具体用法?Golang Register怎么用?Golang Register使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Register函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
seq.Register(proxyS_Descriptor, proxyS_X_Set_Code, proxyS_X_Set)
seq.Register(proxyS_Descriptor, proxyS_X_Get_Code, proxyS_X_Get)
seq.Register(proxyS_Descriptor, proxyS_Y_Set_Code, proxyS_Y_Set)
seq.Register(proxyS_Descriptor, proxyS_Y_Get_Code, proxyS_Y_Get)
seq.Register(proxyS_Descriptor, proxyS_Sum_Code, proxyS_Sum)
}
示例2: init
func init() {
seq.Register("testpkg.IntVar", 1, var_setIntVar)
seq.Register("testpkg.IntVar", 2, var_getIntVar)
seq.Register("testpkg.InterfaceVar", 1, var_setInterfaceVar)
seq.Register("testpkg.InterfaceVar", 2, var_getInterfaceVar)
seq.Register("testpkg.StringVar", 1, var_setStringVar)
seq.Register("testpkg.StringVar", 2, var_getStringVar)
seq.Register("testpkg.StructVar", 1, var_setStructVar)
seq.Register("testpkg.StructVar", 2, var_getStructVar)
}
示例3: init
func init() {
seq.Register("testpkg", 1, proxy_Add)
seq.Register("testpkg", 2, proxy_Call)
seq.Register("testpkg", 3, proxy_Err)
seq.Register("testpkg", 4, proxy_GC)
seq.Register("testpkg", 5, proxy_Keep)
seq.Register("testpkg", 6, proxy_New)
seq.Register("testpkg", 7, proxy_NumSCollected)
seq.Register("testpkg", 8, proxy_StrDup)
}
示例4: init
func init() {
seq.Register(proxyIDescriptor, proxyIECode, proxyIE)
seq.Register(proxyIDescriptor, proxyIFCode, proxyIF)
seq.Register(proxyIDescriptor, proxyIICode, proxyII)
seq.Register(proxyIDescriptor, proxyISCode, proxyIS)
seq.Register(proxyIDescriptor, proxyIStringCode, proxyIString)
seq.Register(proxyIDescriptor, proxyIVCode, proxyIV)
seq.Register(proxyIDescriptor, proxyIVECode, proxyIVE)
}
示例5: init
func init() {
seq.Register(proxyS_Descriptor, proxyS_X_Set_Code, proxyS_X_Set)
seq.Register(proxyS_Descriptor, proxyS_X_Get_Code, proxyS_X_Get)
seq.Register(proxyS_Descriptor, proxyS_Y_Set_Code, proxyS_Y_Set)
seq.Register(proxyS_Descriptor, proxyS_Y_Get_Code, proxyS_Y_Get)
seq.Register(proxyS_Descriptor, proxyS_Sum_Code, proxyS_Sum)
seq.Register(proxyS_Descriptor, proxyS_TryTwoStrings_Code, proxyS_TryTwoStrings)
}
示例6: init
func init() {
seq.Register("hi", 1, proxy_Hello)
}
示例7: init
func init() {
seq.Register("flashlight", 1, proxy_RunClientProxy)
seq.Register("flashlight", 2, proxy_StopClientProxy)
}
示例8: init
func init() {
seq.Register(proxyI_Descriptor, proxyI_Times_Code, proxyI_Times)
}
示例9: init
func init() {
seq.Register(proxyStructThatStartsWithLetterBeforeZ_Descriptor, proxyStructThatStartsWithLetterBeforeZ_Value_Set_Code, proxyStructThatStartsWithLetterBeforeZ_Value_Set)
seq.Register(proxyStructThatStartsWithLetterBeforeZ_Descriptor, proxyStructThatStartsWithLetterBeforeZ_Value_Get_Code, proxyStructThatStartsWithLetterBeforeZ_Value_Get)
}