本文整理汇总了Golang中github.com/grd/iup.Ihandle类的典型用法代码示例。如果您正苦于以下问题:Golang Ihandle类的具体用法?Golang Ihandle怎么用?Golang Ihandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Ihandle类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: AddPoints
func AddPoints(ih *iup.Ihandle, index int, x, y []float64) {
count := len(x)
cX := float64ArrayToC(x)
cY := float64ArrayToC(y)
C.IupPPlotAddPoints(ih.C(), C.int(index), &cX[0], &cY[0], C.int(count))
}
示例2: Transform
func Transform(ih *iup.Ihandle, x, y float64) (int, int) {
cIX := new(C.int)
cIY := new(C.int)
C.IupPPlotTransform(ih.C(), C.float(x), C.float(y), cIX, cIY)
return int(*cIX), int(*cIY)
}
示例3: AddStringPoints
func AddStringPoints(ih *iup.Ihandle, index int, x []string, y []float64) {
count := len(x)
cX := stringArrayToC(x)
defer freeCStringArray(cX)
cY := float64ArrayToC(y)
C.IupPPlotAddStrPoints(ih.C(), C.int(index), &cX[0], &cY[0], C.int(count))
}
示例4: Begin
func Begin(ih *iup.Ihandle, strXdata int) {
C.IupPPlotBegin(ih.C(), C.int(strXdata))
}
示例5: InsertString
func InsertString(ih *iup.Ihandle, index, sample_index int, x string, y float64) {
cX := C.CString(x)
defer C.free(unsafe.Pointer(cX))
C.IupPPlotInsertStr(ih.C(), C.int(index), C.int(sample_index), cX, C.float(y))
}
示例6: End
func End(ih *iup.Ihandle) {
C.IupPPlotEnd(ih.C())
}
示例7: Insert
func Insert(ih *iup.Ihandle, index, sample_index int, x, y float64) {
C.IupPPlotInsert(ih.C(), C.int(index), C.int(sample_index), C.float(x), C.float(y))
}
示例8: Add
func Add(ih *iup.Ihandle, x, y float64) {
C.IupPPlotAdd(ih.C(), C.float(x), C.float(y))
}
示例9: AddString
func AddString(ih *iup.Ihandle, x string, y float64) {
cX := C.CString(x)
defer C.free(unsafe.Pointer(cX))
C.IupPPlotAddStr(ih.C(), cX, C.float(y))
}
示例10: UseFont
func UseFont(ih *iup.Ihandle, first, count, list_base int) {
C.IupGLUseFont(ih.C(), C.int(first), C.int(count), C.int(list_base))
}
示例11: Palette
func Palette(ih *iup.Ihandle, index int, r, g, b float64) {
C.IupGLPalette(ih.C(), C.int(index), C.float(r), C.float(g), C.float(b))
}
示例12: SwapBuffers
func SwapBuffers(ih *iup.Ihandle) {
C.IupGLSwapBuffers(ih.C())
}
示例13: IsCurrent
func IsCurrent(ih *iup.Ihandle) int {
return int(C.IupGLIsCurrent(ih.C()))
}
示例14: MakeCurrent
func MakeCurrent(ih *iup.Ihandle) {
C.IupGLMakeCurrent(ih.C())
}