当我使用对象的get_text(start_iter, end_iter, include_hidden_chars)
方法时遇到问题Gtk TextBuffer
。我不明白 include_hidden_chars arg 它是什么以及它做什么?你能举一个关于 Gtk TextView 中隐藏字符的简单例子吗?
谢谢
您可以通过使用将“invisible”属性设置为 true [1] 的文本标记在文本缓冲区中设置一些不可见文本
当您使用缓冲区的 get_text 方法时,您可以决定该方法是否应该或不应该在返回值中包含隐藏文本
[1] https://developer.gnome.org/gtk3/stable/GtkTextTag.html#GtkTextTag--invisible
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句