/usr/lib/ocaml/lablgtk2/ogtkTextProps.ml is in liblablgtk2-ocaml-dev 2.18.3+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | open GtkSignal
open Gobject
open Data
let set = set
let get = get
let param = param
open GtkTextProps
class virtual text_view_props = object
val virtual obj : _ obj
method set_editable = set TextView.P.editable obj
method set_cursor_visible = set TextView.P.cursor_visible obj
method set_indent = set TextView.P.indent obj
method set_justification = set TextView.P.justification obj
method set_left_margin = set TextView.P.left_margin obj
method set_pixels_above_lines = set TextView.P.pixels_above_lines obj
method set_pixels_below_lines = set TextView.P.pixels_below_lines obj
method set_pixels_inside_wrap = set TextView.P.pixels_inside_wrap obj
method set_right_margin = set TextView.P.right_margin obj
method set_wrap_mode = set TextView.P.wrap_mode obj
method set_accepts_tab = set TextView.P.accepts_tab obj
method editable = get TextView.P.editable obj
method cursor_visible = get TextView.P.cursor_visible obj
method indent = get TextView.P.indent obj
method justification = get TextView.P.justification obj
method left_margin = get TextView.P.left_margin obj
method pixels_above_lines = get TextView.P.pixels_above_lines obj
method pixels_below_lines = get TextView.P.pixels_below_lines obj
method pixels_inside_wrap = get TextView.P.pixels_inside_wrap obj
method right_margin = get TextView.P.right_margin obj
method wrap_mode = get TextView.P.wrap_mode obj
method accepts_tab = get TextView.P.accepts_tab obj
end
class virtual text_view_notify obj = object (self)
val obj : 'a obj = obj
method private notify : 'b. ('a, 'b) property ->
callback:('b -> unit) -> _ =
fun prop ~callback -> GtkSignal.connect_property obj
~prop ~callback
method editable = self#notify TextView.P.editable
method cursor_visible = self#notify TextView.P.cursor_visible
method indent = self#notify TextView.P.indent
method justification = self#notify TextView.P.justification
method left_margin = self#notify TextView.P.left_margin
method pixels_above_lines = self#notify TextView.P.pixels_above_lines
method pixels_below_lines = self#notify TextView.P.pixels_below_lines
method pixels_inside_wrap = self#notify TextView.P.pixels_inside_wrap
method right_margin = self#notify TextView.P.right_margin
method wrap_mode = self#notify TextView.P.wrap_mode
method accepts_tab = self#notify TextView.P.accepts_tab
end
class virtual text_view_sigs = object (self)
method private virtual connect :
'b. ('a,'b) GtkSignal.t -> callback:'b -> GtkSignal.id
method private virtual notify :
'b. ('a,'b) property -> callback:('b -> unit) -> GtkSignal.id
method copy_clipboard = self#connect TextView.S.copy_clipboard
method cut_clipboard = self#connect TextView.S.cut_clipboard
method delete_from_cursor = self#connect TextView.S.delete_from_cursor
method insert_at_cursor = self#connect TextView.S.insert_at_cursor
method move_cursor = self#connect TextView.S.move_cursor
method move_focus = self#connect TextView.S.move_focus
method page_horizontally = self#connect TextView.S.page_horizontally
method paste_clipboard = self#connect TextView.S.paste_clipboard
method populate_popup = self#connect TextView.S.populate_popup
method set_anchor = self#connect TextView.S.set_anchor
method set_scroll_adjustments = self#connect
{TextView.S.set_scroll_adjustments with marshaller = fun f ->
marshal2 GData.conv_adjustment_option GData.conv_adjustment_option
"GtkTextView::set_scroll_adjustments" f}
method toggle_overwrite = self#connect TextView.S.toggle_overwrite
method notify_editable ~callback =
self#notify TextView.P.editable ~callback
method notify_cursor_visible ~callback =
self#notify TextView.P.cursor_visible ~callback
method notify_indent ~callback = self#notify TextView.P.indent ~callback
method notify_justification ~callback =
self#notify TextView.P.justification ~callback
method notify_left_margin ~callback =
self#notify TextView.P.left_margin ~callback
method notify_pixels_above_lines ~callback =
self#notify TextView.P.pixels_above_lines ~callback
method notify_pixels_below_lines ~callback =
self#notify TextView.P.pixels_below_lines ~callback
method notify_pixels_inside_wrap ~callback =
self#notify TextView.P.pixels_inside_wrap ~callback
method notify_right_margin ~callback =
self#notify TextView.P.right_margin ~callback
method notify_wrap_mode ~callback =
self#notify TextView.P.wrap_mode ~callback
method notify_accepts_tab ~callback =
self#notify TextView.P.accepts_tab ~callback
end
class virtual text_buffer_props = object
val virtual obj : _ obj
method tag_table = get TextBuffer.P.tag_table obj
method cursor_position = get TextBuffer.P.cursor_position obj
method has_selection = get TextBuffer.P.has_selection obj
end
class virtual text_buffer_notify obj = object (self)
val obj : 'a obj = obj
method private notify : 'b. ('a, 'b) property ->
callback:('b -> unit) -> _ =
fun prop ~callback -> GtkSignal.connect_property obj
~prop ~callback
method tag_table = self#notify TextBuffer.P.tag_table
method cursor_position = self#notify TextBuffer.P.cursor_position
method has_selection = self#notify TextBuffer.P.has_selection
end
class virtual text_buffer_sigs = object (self)
method private virtual connect :
'b. ('a,'b) GtkSignal.t -> callback:'b -> GtkSignal.id
method private virtual notify :
'b. ('a,'b) property -> callback:('b -> unit) -> GtkSignal.id
method begin_user_action = self#connect TextBuffer.S.begin_user_action
method changed = self#connect TextBuffer.S.changed
method end_user_action = self#connect TextBuffer.S.end_user_action
method mark_deleted = self#connect TextBuffer.S.mark_deleted
method modified_changed = self#connect TextBuffer.S.modified_changed
method notify_tag_table ~callback =
self#notify TextBuffer.P.tag_table ~callback
method notify_cursor_position ~callback =
self#notify TextBuffer.P.cursor_position ~callback
method notify_has_selection ~callback =
self#notify TextBuffer.P.has_selection ~callback
end
let text_tag_param = function
| `BACKGROUND p -> param TextTag.P.background p
| `BACKGROUND_FULL_HEIGHT p -> param TextTag.P.background_full_height p
| `BACKGROUND_FULL_HEIGHT_SET p ->
param TextTag.P.background_full_height_set p
| `BACKGROUND_GDK p -> param TextTag.P.background_gdk p
| `BACKGROUND_SET p -> param TextTag.P.background_set p
| `BACKGROUND_STIPPLE p -> param TextTag.P.background_stipple p
| `BACKGROUND_STIPPLE_SET p -> param TextTag.P.background_stipple_set p
| `DIRECTION p -> param TextTag.P.direction p
| `EDITABLE p -> param TextTag.P.editable p
| `EDITABLE_SET p -> param TextTag.P.editable_set p
| `FAMILY p -> param TextTag.P.family p
| `FAMILY_SET p -> param TextTag.P.family_set p
| `FONT p -> param TextTag.P.font p
| `FONT_DESC p -> param TextTag.P.font_desc p
| `FOREGROUND p -> param TextTag.P.foreground p
| `FOREGROUND_GDK p -> param TextTag.P.foreground_gdk p
| `FOREGROUND_SET p -> param TextTag.P.foreground_set p
| `FOREGROUND_STIPPLE p -> param TextTag.P.foreground_stipple p
| `FOREGROUND_STIPPLE_SET p -> param TextTag.P.foreground_stipple_set p
| `INDENT p -> param TextTag.P.indent p
| `INDENT_SET p -> param TextTag.P.indent_set p
| `INVISIBLE p -> param TextTag.P.invisible p
| `INVISIBLE_SET p -> param TextTag.P.invisible_set p
| `JUSTIFICATION p -> param TextTag.P.justification p
| `JUSTIFICATION_SET p -> param TextTag.P.justification_set p
| `LANGUAGE p -> param TextTag.P.language p
| `LANGUAGE_SET p -> param TextTag.P.language_set p
| `LEFT_MARGIN p -> param TextTag.P.left_margin p
| `LEFT_MARGIN_SET p -> param TextTag.P.left_margin_set p
| `PIXELS_ABOVE_LINES p -> param TextTag.P.pixels_above_lines p
| `PIXELS_ABOVE_LINES_SET p -> param TextTag.P.pixels_above_lines_set p
| `PIXELS_BELOW_LINES p -> param TextTag.P.pixels_below_lines p
| `PIXELS_BELOW_LINES_SET p -> param TextTag.P.pixels_below_lines_set p
| `PIXELS_INSIDE_WRAP p -> param TextTag.P.pixels_inside_wrap p
| `PIXELS_INSIDE_WRAP_SET p -> param TextTag.P.pixels_inside_wrap_set p
| `RIGHT_MARGIN p -> param TextTag.P.right_margin p
| `RIGHT_MARGIN_SET p -> param TextTag.P.right_margin_set p
| `RISE p -> param TextTag.P.rise p
| `RISE_SET p -> param TextTag.P.rise_set p
| `SCALE p -> param TextTag.P.scale p
| `SCALE_SET p -> param TextTag.P.scale_set p
| `SIZE p -> param TextTag.P.size p
| `SIZE_POINTS p -> param TextTag.P.size_points p
| `SIZE_SET p -> param TextTag.P.size_set p
| `STRETCH p -> param TextTag.P.stretch p
| `STRETCH_SET p -> param TextTag.P.stretch_set p
| `STRIKETHROUGH p -> param TextTag.P.strikethrough p
| `STRIKETHROUGH_SET p -> param TextTag.P.strikethrough_set p
| `STYLE p -> param TextTag.P.style p
| `STYLE_SET p -> param TextTag.P.style_set p
| `TABS_SET p -> param TextTag.P.tabs_set p
| `UNDERLINE p -> param TextTag.P.underline p
| `UNDERLINE_SET p -> param TextTag.P.underline_set p
| `VARIANT p -> param TextTag.P.variant p
| `VARIANT_SET p -> param TextTag.P.variant_set p
| `WEIGHT p -> param TextTag.P.weight p
| `WEIGHT_SET p -> param TextTag.P.weight_set p
| `WRAP_MODE p -> param TextTag.P.wrap_mode p
| `WRAP_MODE_SET p -> param TextTag.P.wrap_mode_set p
class virtual text_tag_table_sigs = object (self)
method private virtual connect :
'b. ('a,'b) GtkSignal.t -> callback:'b -> GtkSignal.id
method private virtual notify :
'b. ('a,'b) property -> callback:('b -> unit) -> GtkSignal.id
method tag_added = self#connect TextTagTable.S.tag_added
method tag_changed = self#connect TextTagTable.S.tag_changed
method tag_removed = self#connect TextTagTable.S.tag_removed
end
|