Ejemplo n.º 1
0
func (ptr *QFontMetrics) InFont(ch core.QChar_ITF) bool {
	if ptr.Pointer() != nil {
		return C.QFontMetrics_InFont(ptr.Pointer(), core.PointerFromQChar(ch)) != 0
	}
	return false
}
Ejemplo n.º 2
0
func (ptr *QFontMetrics) Width3(ch core.QChar_ITF) int {
	if ptr.Pointer() != nil {
		return int(C.QFontMetrics_Width3(ptr.Pointer(), core.PointerFromQChar(ch)))
	}
	return 0
}
Ejemplo n.º 3
0
func (ptr *QFontMetrics) RightBearing(ch core.QChar_ITF) int {
	if ptr.Pointer() != nil {
		return int(C.QFontMetrics_RightBearing(ptr.Pointer(), core.PointerFromQChar(ch)))
	}
	return 0
}
Ejemplo n.º 4
0
func (ptr *QFontMetricsF) Width2(ch core.QChar_ITF) float64 {
	if ptr.Pointer() != nil {
		return float64(C.QFontMetricsF_Width2(ptr.Pointer(), core.PointerFromQChar(ch)))
	}
	return 0
}
Ejemplo n.º 5
0
func (ptr *QFontMetricsF) RightBearing(ch core.QChar_ITF) float64 {
	if ptr.Pointer() != nil {
		return float64(C.QFontMetricsF_RightBearing(ptr.Pointer(), core.PointerFromQChar(ch)))
	}
	return 0
}
Ejemplo n.º 6
0
Archivo: qrawfont.go Proyecto: xland/qt
func (ptr *QRawFont) SupportsCharacter(character core.QChar_ITF) bool {
	if ptr.Pointer() != nil {
		return C.QRawFont_SupportsCharacter(ptr.Pointer(), core.PointerFromQChar(character)) != 0
	}
	return false
}