新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gtk::SourceLanguage

Gtk::SourceLanguage クラス

Source language.

インスタンスメソッド

style_ids()
要編集
get_style_name()
要編集
globs()
要編集
get_metadata()
要編集
hidden?()
要編集
id()
要編集
each_mime_type { |mime_type| ... }

存在しない?

Calls the block for each mime type for the given language, passing a string as parameter.

  • Returns: self.
each_tag { |tag| ... }

存在しない?

Calls the block for each tag for the given language, passing a reference to a Gtk::SourceTag? object as parameter.

  • Returns: self.
escape_char

存在しない?

This method returns the value of the ESC character in the given language.

  • Returns: the value of the ESC character in the given language.
get_tag_default_style(tag_id)

存在しない?

Gets the default style of the tag whose ID is tag_id.

get_tag_style(tag_id)

存在しない?

Gets the style of the tag whose ID is tag_id. If the style is not defined then returns the default style.

mime_types
This method returns a list of mime types for the given language, as an array of strings.
  • Returns: a list of mime types for the given language, as an array of strings.
mime_types=(arr)

存在しない?

Sets a list of mime types for the given language. If mime types is nil this method will use the default mime types from the language file.

  • arr: an array of mime types (strings).
  • Returns: the given parameter 'arr'.
name
This method returns the localized name of the language.
  • Returns: the localized name of the language.
section
HTML belogs to the Markup section).
  • Returns: the localized section of the language, each language belong to a section (ex.
set_mime_types(arr)

存在しない?

Sets a list of mime types for the given language. If mime types is nil this method will use the default mime types from the language file.

  • arr: an array of mime types (strings).
  • Returns: self.
set_style_scheme(scheme)

存在しない?

Sets the style scheme of the given language.

set_tag_style(tag_id, style=nil)

存在しない?

Sets the style of the tag whose ID is tag_id. If style is nil restore the default style.

style_scheme

存在しない?

This method returns the style scheme associated with the given language, as a reference to a Gtk::SourceStyleScheme object.

  • Returns: the style scheme associated with the given language, as a reference to a Gtk::SourceStyleScheme object.
style_scheme=(scheme)

存在しない?

Sets the style scheme of the given language.

tags

存在しない?

This method returns a list of tags for the given language, as an array of Gtk::SourceTag? objects.

  • Returns: a list of tags for the given language, as an array of Gtk::SourceTag? objects.

プロパティ

hidden:
要編集
section:
要編集
name:
要編集
id:
要編集

シグナル

tag-style-changed
存在しない?

更新履歴

  • 2014-06-14 クラスのメンバ項目の存在チェック("存在しない?"とマーク)。リストから漏れているものを追加。 - きたがわ
  • - lrz?
更新日時:2014/06/14 19:53:13
キーワード:
参照:[Gtk::SourceLanguage] [Ruby/GtkSourceView] [Gtk::SourceBuffer] [Ruby/GTK] [Gtk::SourceLanguagesManager]