ruby-****@sourc*****
ruby-****@sourc*****
2014年 5月 11日 (日) 00:53:20 JST
------------------------- REMOTE_ADDR = 106.188.6.150 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gtk%3A%3ASourceBuffer ------------------------- @@ -1,8 +1,8 @@ -= class Gtk::SourceBuffer += Gtk::SourceBuffer クラス -Text buffer object for Gtk::SourceView. +Gtk::SourceView用のテキストバッファ -== Object Hierarchy +== オブジェクト階層 * Object * GLib::Instantiatable @@ -10,7 +10,7 @@ * Gtk::TextBuffer * Gtk::SourceBuffer -== Class Methods +== クラスメソッド --- Gtk::SourceBuffer.new(obj=nil) @@ -22,11 +22,19 @@ the 'language' property. * obj: either a Gtk::SourceTagTable, a Gtk::SourceLanguage, or nil. * Returns: a newly created Gtk::SourceBuffer object. + 新しいバッファオブジェクトを作成します。 -== Instance Methods + objがGtk::TextTagTableオブジェクトの場合、作成されたバッファでそれが使用され、Gtk::TextTagTableオブジェクトでなかった場合は、新しいGtk::TextTagTableオブジェクトが作成されます。 ---- bracket_match_style=(style) + objがGtk::SourceLanguageオブジェクトの場合、作成されたバッファオブジェクトでその言語のハイライトパターンが使用されます。これは引数なしでこのメソッドを実行し、後からlanguageプロパティを設定するのと同じです。 + * obj: Gtk::TextTagTableオブジェクトまたはGtk::SourceLanguageオブジェクトまたはnil + * 戻り値: 作成されたバッファオブジェクト + +== インスタンスメソッド + +--- bracket_match_style=(style)(存在しない) + Sets the style used for highlighting matching brackets. * style: the Gtk::SourceTagStyle specifying colors and text attributes. * Returns: the given parameter 'style'. @@ -36,14 +44,28 @@ Determines whether a source buffer can redo the last action (i.e. if the last operation was an undo). * Returns: whether a redo is possible. + Redo(やり直し)が可能かどうか(=直前の操作がUndo(元に戻す)かどうか)を返します。 + * 戻り値: Redo(やり直し)が可能かどうかの真偽値 + --- can_undo? Determines whether a source buffer can undo the last action. * Returns: whether it's possible to undo the last action. + 直前の操作をUndoする(元に戻す)ことができるかどうかを返します。 ---- create_marker(name=nil, type=nil, where) + * 戻り値: 直前の操作をUndoする(元に戻す)ことができるかどうかの真偽値 +--- create_marker(name=nil, type=nil, where)(存在しない。ただしTextBufferから継承したメソッドとしてcreate_markあり) + Creates a marker in the buffer of the given type. A marker is semantically very similar to a Gtk::TextMark, except it has a type which is used by the Gtk::SourceView object displaying the buffer to show a pixmap on the left @@ -65,33 +79,47 @@ * type: a string defining the marker type. * Returns: a new Gtk::SourceMarker object, owned by the buffer. ---- delete_marker(marker) +--- delete_marker(marker)(存在しない。ただしTextBufferから継承したメソッドとしてdelete_markあり) Deletes a marker from the source buffer. The same conditions as for Gtk::TextMark apply here. * marker: a Gtk::SourceMarker object in the buffer. * Returns: self. ---- first_marker +--- first_marker(存在しない) Gets the first (nearest to the top of the buffer) marker in the buffer. * Returns: a reference to the first Gtk::SourceMarker, or nil if there are no markers in the buffer. ---- get_iter_at_marker(iter, marker) +--- get_iter_at_marker(iter, marker)(存在しない。ただしTextBufferから継承したメソッドとしてget_iter_at_markあり) Initializes iter at the location of marker. * iter: a Gtk::TextIter to initialize. * marker: a Gtk::SourceMarker of the buffer. * Returns: self. ---- get_marker(name) +--- get_marker(name)(存在しない。ただしTextBufferから継承したメソッドとしてget_markあり) Looks up the Gtk::SourceMarker named name in buffer, returning nil if it doesn't exists. * name: the name of the marker to retrieve. * Returns: a reference to a Gtk::SourceMarker object, or nil if it's not found. ---- get_markers(begin, end) +--- get_markers(begin, end)(存在しない) Returns an ordered (by position) list of Gtk::SourceMarker objects inside the region delimited by the Gtk::TextIter begin and end. The iters may be in @@ -100,7 +114,21 @@ * end: end of the range, as a Gtk::TextIter object. * Returns: an array of Gtk::SourceMarker objects inside the range. ---- get_next_marker(iter) +--- get_next_marker(iter)(存在しない) Returns the nearest marker to the right of iter. If there are multiple markers at the same position, this method will always return the first one @@ -109,7 +123,21 @@ * iter: the location to search from, as a Gtk::TextIter object. * Returns: the Gtk::SourceMarker nearest to the right of iter, or nil if there are no more markers after iter. ---- get_prev_marker(iter) +--- get_prev_marker(iter)(存在しない) Returns the nearest marker to the left of iter. If there are multiple markers at the same position, this method will always return the last one @@ -118,12 +132,26 @@ * iter: the location to search from, as a Gtk::TextIter object. * Returns: the Gtk::SourceMarker nearest to the left of iter, or nil if there are no more markers after iter. ---- last_marker +--- last_marker(存在しない) Returns the last (nearest to the bottom of the buffer) marker in buffer. * Returns: a reference to the first Gtk::SourceMarker, or nil if there are no markers in the buffer. ---- move_marker(marker, where) +--- move_marker(marker, where)(存在しない。ただしTextBufferから継承したメソッドとしてmove_markあり) Moves a marker to a new location in the buffer. * where: the new location of the marker, as a Gtk::TreeIter object. @@ -134,6 +148,22 @@ Synonym for Gtk::SourceBuffer#not_undoable_action. * Returns: the return value of the provided block. + Gtk::SourceBuffer#not_undoable_actionと同じです。 + * 戻り値: 与えられたブロックの戻り値 --- begin_not_undoable_action --- begin_not_undoable_action { ... } @@ -165,7 +181,23 @@ whether a call to this function will have any effect. * Returns: self. ---- set_bracket_match_style(style) +--- set_bracket_match_style(style)(存在しない?) Sets the style used for highlighting matching brackets. * style: the Gtk::SourceTagStyle specifying colors and text attributes. @@ -181,35 +197,51 @@ or sequences of similar edits (inserts or deletes) on the same line. * Returns: self. ---- check_brackets=(check_brackets) +--- check_brackets=(check_brackets)(存在しない) Sets the value whether to check and highlight matching brackets or not. * check_brackets: true if to check and highlight matching brackets * Returns: check_brackets ---- check_brackets? +--- check_brackets?(存在しない) Gets the value whether to check and highlight matching brackets or not. * Returns: true if to check and highlight matching brackets ---- escape_char +--- escape_char(存在しない) Gets the Escaping character for syntax patterns. * Returns: Escaping character for syntax patterns ---- escape_char=(escape_char) +--- escape_char=(escape_char)(存在しない) Sets the Escaping character for syntax patterns. * escape_char: Escaping character for syntax patterns * Returns: escape_char ---- highlight=(highlight) +--- highlight=(highlight)(存在しない) Sets the value whether to highlight syntax in the buffer or not. * highlight: true if to highlight syntax in the buffer * Returns: highlight ---- highlight? +--- highlight?(存在しない) Gets the value whether to highlight syntax in the buffer or not. * Returns: true if to highlight syntax in the buffer @@ -236,19 +252,35 @@ * max_undo_levels: Number of undo levels for the buffer * Returns: max_undo_levels ---- set_check_brackets(check_brackets) +--- set_check_brackets(check_brackets)(存在しない) Same as check_brackets=. * check_brackets: true if to check and highlight matching brackets * Returns: self ---- set_escape_char(escape_char) +--- set_escape_char(escape_char)(存在しない) Same as escape_char=. * escape_char: Escaping character for syntax patterns * Returns: self ---- set_highlight(highlight) +--- set_highlight(highlight)(存在しない) Same as highlight=. * highlight: true if to highlight syntax in the buffer @@ -362,17 +378,33 @@ * undo_manager: The buffer undo manager * Returns: undo_manager -== Properties +== プロパティ --- check-brackets: true or false (Read/Write) Whether to check and highlight matching brackets. ---- escape-char: Integer (Read/Write) +--- escape-char: Integer (Read/Write)(存在しない) Escaping character for syntax patterns. ---- highlight: true or false (Read/Write) +--- highlight: true or false (Read/Write)(存在しない) Whether to highlight syntax in the buffer. @@ -404,16 +420,37 @@ Style scheme ---- undo-manager: Gtk::SourceUndoManager (Read/Write) +--- undo-manager: Gtk::SourceUndoManager (Read/Write)(無名のクラスとして存在?) The buffer undo manager -== Signals +== シグナル + --- can-redo + --- can-undo + --- highlight-updated + --- marker-updated + --- redo: self * self: Gtk::SourceBuffer: ((*FIXME*)) @@ -426,12 +447,35 @@ * self: Gtk::SourceBuffer: ((*FIXME*)) -== See Also +== こちらも参照してください ((<Gtk>)). + +== 変更履歴 -== ChangeLog +- 2014-05-11 メソッド、プロパティの存在チェック。 -2014-05-08 現在の英語版で上書き +- 2014-05-08 現在の英語版で上書き - ((<lrz>))