本文整理匯總了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())
}