Example #1
0
//export callbackQColorDialogColorSelected
func callbackQColorDialogColorSelected(ptrName *C.char, color unsafe.Pointer) {
	qt.GetSignal(C.GoString(ptrName), "colorSelected").(func(*gui.QColor))(gui.NewQColorFromPointer(color))
}
Example #2
0
File: qtabbar.go Project: xland/qt
func (ptr *QTabBar) TabTextColor(index int) *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QTabBar_TabTextColor(ptr.Pointer(), C.int(index)))
	}
	return nil
}
Example #3
0
func QColorDialog_StandardColor(index int) *gui.QColor {
	return gui.NewQColorFromPointer(C.QColorDialog_QColorDialog_StandardColor(C.int(index)))
}
Example #4
0
func (ptr *QColorDialog) CurrentColor() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QColorDialog_CurrentColor(ptr.Pointer()))
	}
	return nil
}
Example #5
0
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)))
}
Example #6
0
func (ptr *QColorDialog) SelectedColor() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QColorDialog_SelectedColor(ptr.Pointer()))
	}
	return nil
}
Example #7
0
func (ptr *QGraphicsTextItem) DefaultTextColor() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QGraphicsTextItem_DefaultTextColor(ptr.Pointer()))
	}
	return nil
}
Example #8
0
func (ptr *QSGAbstractRenderer) ClearColor() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QSGAbstractRenderer_ClearColor(ptr.Pointer()))
	}
	return nil
}
Example #9
0
//export callbackQGraphicsDropShadowEffectColorChanged
func callbackQGraphicsDropShadowEffectColorChanged(ptrName *C.char, color unsafe.Pointer) {
	qt.GetSignal(C.GoString(ptrName), "colorChanged").(func(*gui.QColor))(gui.NewQColorFromPointer(color))
}
Example #10
0
func (ptr *QSGFlatColorMaterial) Color() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QSGFlatColorMaterial_Color(ptr.Pointer()))
	}
	return nil
}
Example #11
0
func (ptr *QGraphicsDropShadowEffect) Color() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QGraphicsDropShadowEffect_Color(ptr.Pointer()))
	}
	return nil
}
Example #12
0
func (ptr *QTextEdit) TextColor() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QTextEdit_TextColor(ptr.Pointer()))
	}
	return nil
}
Example #13
0
func (ptr *QQuickPaintedItem) FillColor() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QQuickPaintedItem_FillColor(ptr.Pointer()))
	}
	return nil
}
Example #14
0
//export callbackQQuickWindowColorChanged
func callbackQQuickWindowColorChanged(ptrName *C.char, v unsafe.Pointer) {
	qt.GetSignal(C.GoString(ptrName), "colorChanged").(func(*gui.QColor))(gui.NewQColorFromPointer(v))
}
Example #15
0
func QColorDialog_CustomColor(index int) *gui.QColor {
	return gui.NewQColorFromPointer(C.QColorDialog_QColorDialog_CustomColor(C.int(index)))
}
Example #16
0
func (ptr *QQuickWindow) Color() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QQuickWindow_Color(ptr.Pointer()))
	}
	return nil
}
Example #17
0
func (ptr *QAccessibleWidget) ForegroundColor() *gui.QColor {
	if ptr.Pointer() != nil {
		return gui.NewQColorFromPointer(C.QAccessibleWidget_ForegroundColor(ptr.Pointer()))
	}
	return nil
}