示例#1
1
文件: qquickwindow.go 项目: xland/qt
func (ptr *QQuickWindow) SetColor(color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QQuickWindow_SetColor(ptr.Pointer(), gui.PointerFromQColor(color))
	}
}
示例#2
0
文件: qtabbar.go 项目: xland/qt
func (ptr *QTabBar) SetTabTextColor(index int, color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QTabBar_SetTabTextColor(ptr.Pointer(), C.int(index), gui.PointerFromQColor(color))
	}
}
示例#3
0
文件: qquickwidget.go 项目: xland/qt
func (ptr *QQuickWidget) SetClearColor(color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QQuickWidget_SetClearColor(ptr.Pointer(), gui.PointerFromQColor(color))
	}
}
示例#4
0
文件: qcolordialog.go 项目: xland/qt
func (ptr *QColorDialog) SetCurrentColor(color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QColorDialog_SetCurrentColor(ptr.Pointer(), gui.PointerFromQColor(color))
	}
}
示例#5
0
文件: qcolordialog.go 项目: xland/qt
func NewQColorDialog2(initial gui.QColor_ITF, parent QWidget_ITF) *QColorDialog {
	return NewQColorDialogFromPointer(C.QColorDialog_NewQColorDialog2(gui.PointerFromQColor(initial), PointerFromQWidget(parent)))
}
示例#6
0
文件: qcolordialog.go 项目: xland/qt
func QColorDialog_GetColor(initial gui.QColor_ITF, parent QWidget_ITF, title string, options QColorDialog__ColorDialogOption) *gui.QColor {
	return gui.NewQColorFromPointer(C.QColorDialog_QColorDialog_GetColor(gui.PointerFromQColor(initial), PointerFromQWidget(parent), C.CString(title), C.int(options)))
}
示例#7
0
文件: qcolordialog.go 项目: xland/qt
func QColorDialog_SetStandardColor(index int, color gui.QColor_ITF) {
	C.QColorDialog_QColorDialog_SetStandardColor(C.int(index), gui.PointerFromQColor(color))
}
示例#8
0
func (ptr *QSGFlatColorMaterial) SetColor(color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QSGFlatColorMaterial_SetColor(ptr.Pointer(), gui.PointerFromQColor(color))
	}
}
示例#9
0
func (ptr *QGraphicsTextItem) SetDefaultTextColor(col gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QGraphicsTextItem_SetDefaultTextColor(ptr.Pointer(), gui.PointerFromQColor(col))
	}
}
示例#10
0
func (ptr *QGraphicsDropShadowEffect) SetColor(color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QGraphicsDropShadowEffect_SetColor(ptr.Pointer(), gui.PointerFromQColor(color))
	}
}
示例#11
0
文件: qsplashscreen.go 项目: xland/qt
func (ptr *QSplashScreen) ShowMessage(message string, alignment int, color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QSplashScreen_ShowMessage(ptr.Pointer(), C.CString(message), C.int(alignment), gui.PointerFromQColor(color))
	}
}
示例#12
0
文件: qtextedit.go 项目: xland/qt
func (ptr *QTextEdit) SetTextColor(c gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QTextEdit_SetTextColor(ptr.Pointer(), gui.PointerFromQColor(c))
	}
}
示例#13
0
func (ptr *QQuickPaintedItem) SetFillColor(v gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QQuickPaintedItem_SetFillColor(ptr.Pointer(), gui.PointerFromQColor(v))
	}
}
示例#14
0
func (ptr *QSGAbstractRenderer) SetClearColor(color gui.QColor_ITF) {
	if ptr.Pointer() != nil {
		C.QSGAbstractRenderer_SetClearColor(ptr.Pointer(), gui.PointerFromQColor(color))
	}
}