开发者

What are the differences between GtkEntry and GtkTextView?

开发者 https://www.devze.com 2022-12-18 10:10 出处:网络
Apart from GTextView 开发者_JS百科being multiline and able to display text in different styles (font, color etc. using tags), what are other obvious differences between the two?Both GtkEntry and GtkTe

Apart from GTextView 开发者_JS百科being multiline and able to display text in different styles (font, color etc. using tags), what are other obvious differences between the two?


Both GtkEntry and GtkTextView can be multiline.

GtkTextView can in addition:

  • Does not store any data, it uses GtkTextBuffer for that
  • Several GtkTextView widgets can display the same content
  • Be serialized to disk as RTF
  • Contain other GtkWidgets
  • Support advanced buffer manipulation through the GtkTextBuffer api


I think those are the big differences. They are meant to accomplish different tasks.

0

精彩评论

暂无评论...
验证码 换一张
取 消