c - 在微调按钮中右对齐 (gtk/C)

标签 c gtk gimp

我正在用 C 编写 GIMP 插件,需要右对齐 GTK+ 旋转按钮内的数字。

我发现了 gtk_button_set_alignment() 但似乎没有像 gtk_spin_button_set_alignment() 的东西存在。

如何做到这一点?

最佳答案

您可以检查 the class hierarchy ,并注意 GtkSpinButton 继承自 GtkEntry .

后者有方法gtk_entry_set_alignment() ,这是我推荐的,它确实应该有效。

还有 this question它在 C# 中,但几乎是一个骗局。虽然不确定该答案中的“假”是什么意思,xalign property在 C API 中是一个float

关于c - 在微调按钮中右对齐 (gtk/C),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16585114/

相关文章:

c# - 在类似 StringBuilder 的 C 模块中增加多少缓冲区?

c - Visual Studio 的新安装中未安装标准 C/C++ 库

python - Gimp python-fu : How to create and save multilayer xcf from 1 jpg and 1 png?

python - 我怎样才能制作这个 GIMP/ImageMagick 脚本?

scheme - 通过 Script-Fu 将数组传递给 GIMP 模块

c - GCC 编译错误 : expected specifier-qualifier-list

java - 使用 jni 时将第三方线程附加到 vm

linux - 在 TRichView 上自动滚动(lazarus)

user-interface - 当用户停止输入文本时运行函数

window - GTK 主题和窗口装饰主题有什么区别?