当前位置: 首页>>代码示例>>Golang>>正文


Golang C.TTF_FontDescent函数代码示例

本文整理汇总了Golang中C.TTF_FontDescent函数的典型用法代码示例。如果您正苦于以下问题:Golang TTF_FontDescent函数的具体用法?Golang TTF_FontDescent怎么用?Golang TTF_FontDescent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了TTF_FontDescent函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: Descent

// Descent (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_31.html#SEC31)
func (f *Font) Descent() int { return int(C.TTF_FontDescent(f.f)) }
开发者ID:veandco,项目名称:go-sdl2,代码行数:2,代码来源:sdl_ttf.go

示例2: TTFFontDescent

// Get the offset from the baseline to the bottom of the font
// This is a negative value, relative to the baseline.
func TTFFontDescent(font *C.TTF_Font) int {
	return int(C.TTF_FontDescent(font))
}
开发者ID:beoran,项目名称:fungo,代码行数:5,代码来源:ttf.go

示例3: Descent

// Returns the maximum pixel descent (from the baseline) of all the glyphs
// of the font.
func (f *Font) Descent() int {
	f.mutex.RLock()
	result := int(C.TTF_FontDescent(f.cfont))
	f.mutex.RUnlock()
	return result
}
开发者ID:Zwobot,项目名称:Go-SDL,代码行数:8,代码来源:ttf.go

示例4: Descent

// Returns the maximum pixel descent (from the baseline) of all the glyphs
// of the font.
func (f *Font) Descent() int {
	result := int(C.TTF_FontDescent(f.cfont))
	return result
}
开发者ID:krig,项目名称:Go-SDL2,代码行数:6,代码来源:ttf.go


注:本文中的C.TTF_FontDescent函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。