[18403] | 1 | ;; -*- lisp -*- |
---|
| 2 | |
---|
| 3 | (define-object GtkTextBuffer (GObject)) |
---|
| 4 | (define-object GtkTextMark (GObject)) |
---|
| 5 | (define-object GtkTextTag (GObject)) |
---|
| 6 | (define-object GtkTextTagTable (GObject)) |
---|
| 7 | |
---|
| 8 | (define-boxed GtkTextIter |
---|
| 9 | (copy gtk_text_iter_copy) |
---|
| 10 | (free gtk_text_iter_free)) |
---|
| 11 | |
---|
| 12 | (define-object GtkTextMark (GObject)) |
---|
| 13 | |
---|
| 14 | (define-object GtkTextView (GtkContainer)) |
---|
| 15 | |
---|
| 16 | (define-flags GtkTextSearchFlags |
---|
| 17 | (visible-only GTK_TEXT_SEARCH_VISIBLE_ONLY) |
---|
| 18 | (text-only GTK_TEXT_SEARCH_TEXT_ONLY)) |
---|
| 19 | |
---|
| 20 | (define-enum GtkTextWindowType |
---|
| 21 | (private GTK_TEXT_WINDOW_PRIVATE) |
---|
| 22 | (widget GTK_TEXT_WINDOW_WIDGET) |
---|
| 23 | (text GTK_TEXT_WINDOW_TEXT) |
---|
| 24 | (left GTK_TEXT_WINDOW_LEFT) |
---|
| 25 | (right GTK_TEXT_WINDOW_RIGHT) |
---|
| 26 | (top GTK_TEXT_WINDOW_TOP) |
---|
| 27 | (bottom GTK_TEXT_WINDOW_BOTTOM)) |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | ;; TextMark |
---|
| 31 | |
---|
| 32 | (define-func gtk_text_mark_set_visible |
---|
| 33 | none |
---|
| 34 | ((GtkTextMark mark) |
---|
| 35 | (bool setting))) |
---|
| 36 | |
---|
| 37 | (define-func gtk_text_mark_get_visible |
---|
| 38 | bool |
---|
| 39 | ((GtkTextMark mark))) |
---|
| 40 | |
---|
| 41 | (define-func gtk_text_mark_get_name |
---|
| 42 | static_string |
---|
| 43 | ((GtkTextMark mark))) |
---|
| 44 | |
---|
| 45 | (define-func gtk_text_mark_get_deleted |
---|
| 46 | bool |
---|
| 47 | ((GtkTextMark mark))) |
---|
| 48 | |
---|
| 49 | (define-func gtk_text_mark_get_buffer |
---|
| 50 | GtkTextBuffer |
---|
| 51 | ((GtkTextMark mark))) |
---|
| 52 | |
---|
| 53 | (define-func gtk_text_mark_get_left_gravity |
---|
| 54 | bool |
---|
| 55 | ((GtkTextMark mark))) |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | ;; TextTag |
---|
| 59 | |
---|
| 60 | (define-func gtk_text_tag_new |
---|
| 61 | GtkTextTag |
---|
| 62 | ((string name))) |
---|
| 63 | |
---|
| 64 | (define-func gtk_text_tag_get_priority |
---|
| 65 | int |
---|
| 66 | ((GtkTextTag tag))) |
---|
| 67 | |
---|
| 68 | (define-func gtk_text_tag_set_priority |
---|
| 69 | none |
---|
| 70 | ((GtkTextTag tag) |
---|
| 71 | (int priority))) |
---|
| 72 | |
---|
| 73 | (define-func gtk_text_tag_event |
---|
| 74 | bool |
---|
| 75 | ((GtkTextTag tag) |
---|
| 76 | (GObject event_object) |
---|
| 77 | (GdkEvent event) |
---|
| 78 | (GtkTextIter iter))) |
---|
| 79 | |
---|
| 80 | ;; XXX text_attributes foo? |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | ;; TextTagTable |
---|
| 84 | |
---|
| 85 | (define-func gtk_text_tag_table_new |
---|
| 86 | GtkTextTagTable |
---|
| 87 | ()) |
---|
| 88 | |
---|
| 89 | (define-func gtk_text_tag_table_add |
---|
| 90 | none |
---|
| 91 | ((GtkTextTagTable table) |
---|
| 92 | (GtkTextTag tag))) |
---|
| 93 | |
---|
| 94 | (define-func gtk_text_tag_table_remove |
---|
| 95 | none |
---|
| 96 | ((GtkTextTagTable table) |
---|
| 97 | (GtkTextTag tag))) |
---|
| 98 | |
---|
| 99 | (define-func gtk_text_tag_table_lookup |
---|
| 100 | GtkTextTag |
---|
| 101 | ((GtkTextTagTable table) |
---|
| 102 | (string name))) |
---|
| 103 | |
---|
| 104 | ;; XXX foreach |
---|
| 105 | |
---|
| 106 | (define-func gtk_text_tag_table_get_size |
---|
| 107 | int |
---|
| 108 | ((GtkTextTagTable table))) |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | ;; TextIter |
---|
| 112 | |
---|
| 113 | ;; not in the usual API, defined locally |
---|
| 114 | (define-func gtk_text_iter_new |
---|
| 115 | GtkTextIter |
---|
| 116 | ()) |
---|
| 117 | |
---|
| 118 | (define-func gtk_text_iter_get_offset |
---|
| 119 | int |
---|
| 120 | ((GtkTextIter iter))) |
---|
| 121 | |
---|
| 122 | (define-func gtk_text_iter_get_line |
---|
| 123 | int |
---|
| 124 | ((GtkTextIter iter))) |
---|
| 125 | |
---|
| 126 | (define-func gtk_text_iter_get_line_offset |
---|
| 127 | int |
---|
| 128 | ((GtkTextIter iter))) |
---|
| 129 | |
---|
| 130 | (define-func gtk_text_iter_get_line_index |
---|
| 131 | int |
---|
| 132 | ((GtkTextIter iter))) |
---|
| 133 | |
---|
| 134 | (define-func gtk_text_iter_get_visible_line_offset |
---|
| 135 | int |
---|
| 136 | ((GtkTextIter iter))) |
---|
| 137 | |
---|
| 138 | (define-func gtk_text_iter_get_visible_line_index |
---|
| 139 | int |
---|
| 140 | ((GtkTextIter iter))) |
---|
| 141 | |
---|
| 142 | (define-func gtk_text_iter_get_char |
---|
| 143 | char |
---|
| 144 | ((GtkTextIter iter))) |
---|
| 145 | |
---|
| 146 | (define-func gtk_text_iter_get_slice |
---|
| 147 | string |
---|
| 148 | ((GtkTextIter start) |
---|
| 149 | (GtkTextIter end))) |
---|
| 150 | |
---|
| 151 | (define-func gtk_text_iter_get_text |
---|
| 152 | string |
---|
| 153 | ((GtkTextIter start) |
---|
| 154 | (GtkTextIter end))) |
---|
| 155 | |
---|
| 156 | (define-func gtk_text_iter_get_visible_slice |
---|
| 157 | string |
---|
| 158 | ((GtkTextIter start) |
---|
| 159 | (GtkTextIter end))) |
---|
| 160 | |
---|
| 161 | (define-func gtk_text_iter_get_visible_text |
---|
| 162 | string |
---|
| 163 | ((GtkTextIter start) |
---|
| 164 | (GtkTextIter end))) |
---|
| 165 | |
---|
| 166 | (define-func gtk_text_iter_get_pixbuf |
---|
| 167 | GdkPixbuf |
---|
| 168 | ((GtkTextIter iter))) |
---|
| 169 | |
---|
| 170 | ;; XXX get_marks, get_child_anchor, get_toggle_tags |
---|
| 171 | |
---|
| 172 | (define-func gtk_text_iter_begins_tag |
---|
| 173 | bool |
---|
| 174 | ((GtkTextIter iter) |
---|
| 175 | (GtkTextTag tag))) |
---|
| 176 | |
---|
| 177 | (define-func gtk_text_iter_ends_tag |
---|
| 178 | bool |
---|
| 179 | ((GtkTextIter iter) |
---|
| 180 | (GtkTextTag tag))) |
---|
| 181 | |
---|
| 182 | (define-func gtk_text_iter_toggles_tag |
---|
| 183 | bool |
---|
| 184 | ((GtkTextIter iter) |
---|
| 185 | (GtkTextTag tag))) |
---|
| 186 | |
---|
| 187 | (define-func gtk_text_iter_has_tag |
---|
| 188 | bool |
---|
| 189 | ((GtkTextIter iter) |
---|
| 190 | (GtkTextTag tag))) |
---|
| 191 | |
---|
| 192 | ;; XXX get_tags |
---|
| 193 | |
---|
| 194 | (define-func gtk_text_iter_editable |
---|
| 195 | bool |
---|
| 196 | ((GtkTextIter iter) |
---|
| 197 | (bool default_setting))) |
---|
| 198 | |
---|
| 199 | (define-func gtk_text_iter_can_insert |
---|
| 200 | bool |
---|
| 201 | ((GtkTextIter iter) |
---|
| 202 | (bool default_editability))) |
---|
| 203 | |
---|
| 204 | (define-func gtk_text_iter_starts_word |
---|
| 205 | bool |
---|
| 206 | ((GtkTextIter iter))) |
---|
| 207 | |
---|
| 208 | (define-func gtk_text_iter_ends_word |
---|
| 209 | bool |
---|
| 210 | ((GtkTextIter iter))) |
---|
| 211 | |
---|
| 212 | (define-func gtk_text_iter_inside_word |
---|
| 213 | bool |
---|
| 214 | ((GtkTextIter iter))) |
---|
| 215 | |
---|
| 216 | (define-func gtk_text_iter_starts_sentence |
---|
| 217 | bool |
---|
| 218 | ((GtkTextIter iter))) |
---|
| 219 | |
---|
| 220 | (define-func gtk_text_iter_ends_sentence |
---|
| 221 | bool |
---|
| 222 | ((GtkTextIter iter))) |
---|
| 223 | |
---|
| 224 | (define-func gtk_text_iter_inside_sentence |
---|
| 225 | bool |
---|
| 226 | ((GtkTextIter iter))) |
---|
| 227 | |
---|
| 228 | (define-func gtk_text_iter_starts_line |
---|
| 229 | bool |
---|
| 230 | ((GtkTextIter iter))) |
---|
| 231 | |
---|
| 232 | (define-func gtk_text_iter_ends_line |
---|
| 233 | bool |
---|
| 234 | ((GtkTextIter iter))) |
---|
| 235 | |
---|
| 236 | (define-func gtk_text_iter_is_cursor_position |
---|
| 237 | bool |
---|
| 238 | ((GtkTextIter iter))) |
---|
| 239 | |
---|
| 240 | (define-func gtk_text_iter_get_chars_in_line |
---|
| 241 | int |
---|
| 242 | ((GtkTextIter iter))) |
---|
| 243 | |
---|
| 244 | (define-func gtk_text_iter_get_bytes_in_line |
---|
| 245 | int |
---|
| 246 | ((GtkTextIter iter))) |
---|
| 247 | |
---|
| 248 | ;; XXX get_attributes, get_language |
---|
| 249 | |
---|
| 250 | (define-func gtk_text_iter_is_end |
---|
| 251 | bool |
---|
| 252 | ((GtkTextIter iter))) |
---|
| 253 | |
---|
| 254 | (define-func gtk_text_iter_is_start |
---|
| 255 | bool |
---|
| 256 | ((GtkTextIter iter))) |
---|
| 257 | |
---|
| 258 | (define-func gtk_text_iter_forward_char |
---|
| 259 | bool |
---|
| 260 | ((GtkTextIter iter))) |
---|
| 261 | |
---|
| 262 | (define-func gtk_text_iter_backward_char |
---|
| 263 | bool |
---|
| 264 | ((GtkTextIter iter))) |
---|
| 265 | |
---|
| 266 | (define-func gtk_text_iter_forward_chars |
---|
| 267 | bool |
---|
| 268 | ((GtkTextIter iter) |
---|
| 269 | (int count))) |
---|
| 270 | |
---|
| 271 | (define-func gtk_text_iter_backward_chars |
---|
| 272 | bool |
---|
| 273 | ((GtkTextIter iter) |
---|
| 274 | (int count))) |
---|
| 275 | |
---|
| 276 | (define-func gtk_text_iter_forward_line |
---|
| 277 | bool |
---|
| 278 | ((GtkTextIter iter))) |
---|
| 279 | |
---|
| 280 | (define-func gtk_text_iter_backward_line |
---|
| 281 | bool |
---|
| 282 | ((GtkTextIter iter))) |
---|
| 283 | |
---|
| 284 | (define-func gtk_text_iter_forward_lines |
---|
| 285 | bool |
---|
| 286 | ((GtkTextIter iter) |
---|
| 287 | (int count))) |
---|
| 288 | |
---|
| 289 | (define-func gtk_text_iter_backward_lines |
---|
| 290 | bool |
---|
| 291 | ((GtkTextIter iter) |
---|
| 292 | (int count))) |
---|
| 293 | |
---|
| 294 | (define-func gtk_text_iter_forward_word_end |
---|
| 295 | bool |
---|
| 296 | ((GtkTextIter iter))) |
---|
| 297 | |
---|
| 298 | (define-func gtk_text_iter_backward_word_start |
---|
| 299 | bool |
---|
| 300 | ((GtkTextIter iter))) |
---|
| 301 | |
---|
| 302 | (define-func gtk_text_iter_forward_word_ends |
---|
| 303 | bool |
---|
| 304 | ((GtkTextIter iter) |
---|
| 305 | (int count))) |
---|
| 306 | |
---|
| 307 | (define-func gtk_text_iter_backward_sentence_starts |
---|
| 308 | bool |
---|
| 309 | ((GtkTextIter iter) |
---|
| 310 | (int count))) |
---|
| 311 | |
---|
| 312 | (define-func gtk_text_iter_forward_sentence_end |
---|
| 313 | bool |
---|
| 314 | ((GtkTextIter iter))) |
---|
| 315 | |
---|
| 316 | (define-func gtk_text_iter_backward_sentence_start |
---|
| 317 | bool |
---|
| 318 | ((GtkTextIter iter))) |
---|
| 319 | |
---|
| 320 | (define-func gtk_text_iter_forward_sentence_ends |
---|
| 321 | bool |
---|
| 322 | ((GtkTextIter iter) |
---|
| 323 | (int count))) |
---|
| 324 | |
---|
| 325 | (define-func gtk_text_iter_backward_sentence_starts |
---|
| 326 | bool |
---|
| 327 | ((GtkTextIter iter) |
---|
| 328 | (int count))) |
---|
| 329 | |
---|
| 330 | (define-func gtk_text_iter_forward_cursor_position |
---|
| 331 | bool |
---|
| 332 | ((GtkTextIter iter))) |
---|
| 333 | |
---|
| 334 | (define-func gtk_text_iter_backward_cursor_position |
---|
| 335 | bool |
---|
| 336 | ((GtkTextIter iter))) |
---|
| 337 | |
---|
| 338 | (define-func gtk_text_iter_forward_cursor_positions |
---|
| 339 | bool |
---|
| 340 | ((GtkTextIter iter) |
---|
| 341 | (int count))) |
---|
| 342 | |
---|
| 343 | (define-func gtk_text_iter_backward_cursor_positions |
---|
| 344 | bool |
---|
| 345 | ((GtkTextIter iter) |
---|
| 346 | (int count))) |
---|
| 347 | |
---|
| 348 | (define-func gtk_text_iter_set_offset |
---|
| 349 | none |
---|
| 350 | ((GtkTextIter iter) |
---|
| 351 | (int char_offsets))) |
---|
| 352 | |
---|
| 353 | (define-func gtk_text_iter_set_line |
---|
| 354 | none |
---|
| 355 | ((GtkTextIter iter) |
---|
| 356 | (int line_number))) |
---|
| 357 | |
---|
| 358 | (define-func gtk_text_iter_set_line_offset |
---|
| 359 | none |
---|
| 360 | ((GtkTextIter iter) |
---|
| 361 | (int line_offset))) |
---|
| 362 | |
---|
| 363 | (define-func gtk_text_iter_set_line_index |
---|
| 364 | none |
---|
| 365 | ((GtkTextIter iter) |
---|
| 366 | (int line_index))) |
---|
| 367 | |
---|
| 368 | (define-func gtk_text_iter_forward_to_end |
---|
| 369 | none |
---|
| 370 | ((GtkTextIter iter))) |
---|
| 371 | |
---|
| 372 | (define-func gtk_text_iter_forward_to_line_end |
---|
| 373 | bool |
---|
| 374 | ((GtkTextIter iter))) |
---|
| 375 | |
---|
| 376 | (define-func gtk_text_iter_set_visible_line_offset |
---|
| 377 | none |
---|
| 378 | ((GtkTextIter iter) |
---|
| 379 | (int char_on_line))) |
---|
| 380 | |
---|
| 381 | (define-func gtk_text_iter_set_visible_line_index |
---|
| 382 | none |
---|
| 383 | ((GtkTextIter iter) |
---|
| 384 | (int byte_on_line))) |
---|
| 385 | |
---|
| 386 | (define-func gtk_text_iter_forward_to_tag_toggle |
---|
| 387 | bool |
---|
| 388 | ((GtkTextIter iter) |
---|
| 389 | (GtkTextTag tag))) |
---|
| 390 | |
---|
| 391 | (define-func gtk_text_iter_backward_to_tag_toggle |
---|
| 392 | bool |
---|
| 393 | ((GtkTextIter iter) |
---|
| 394 | (GtkTextTag tag))) |
---|
| 395 | |
---|
| 396 | ;; XXX {forward,backward}_find_char |
---|
| 397 | |
---|
| 398 | (define-func gtk_text_iter_forward_search |
---|
| 399 | bool |
---|
| 400 | ((GtkTextIter iter) |
---|
| 401 | (string str) |
---|
| 402 | (GtkTextSearchFlags flags) |
---|
| 403 | (GtkTextIter match_start) |
---|
| 404 | (GtkTextIter match_end) |
---|
| 405 | (GtkTextIter limit))) |
---|
| 406 | |
---|
| 407 | (define-func gtk_text_iter_backward_search |
---|
| 408 | bool |
---|
| 409 | ((GtkTextIter iter) |
---|
| 410 | (string str) |
---|
| 411 | (GtkTextSearchFlags flags) |
---|
| 412 | (GtkTextIter match_start) |
---|
| 413 | (GtkTextIter match_end) |
---|
| 414 | (GtkTextIter limit))) |
---|
| 415 | |
---|
| 416 | (define-func gtk_text_iter_equal |
---|
| 417 | bool |
---|
| 418 | ((GtkTextIter lhs) |
---|
| 419 | (GtkTextIter rhs))) |
---|
| 420 | |
---|
| 421 | (define-func gtk_text_iter_compare |
---|
| 422 | int |
---|
| 423 | ((GtkTextIter lhs) |
---|
| 424 | (GtkTextIter rhs))) |
---|
| 425 | |
---|
| 426 | (define-func gtk_text_iter_in_range |
---|
| 427 | bool |
---|
| 428 | ((GtkTextIter iter) |
---|
| 429 | (GtkTextIter start) |
---|
| 430 | (GtkTextIter end))) |
---|
| 431 | |
---|
| 432 | (define-func gtk_text_iter_order |
---|
| 433 | none |
---|
| 434 | ((GtkTextIter first) |
---|
| 435 | (GtkTextIter second))) |
---|
| 436 | |
---|
| 437 | |
---|
| 438 | ;; TextBuffer |
---|
| 439 | |
---|
| 440 | (define-func gtk_text_buffer_new |
---|
| 441 | GtkTextBuffer |
---|
| 442 | ((GtkTextTagTable table (null-ok)))) |
---|
| 443 | |
---|
| 444 | (define-func gtk_text_buffer_get_line_count |
---|
| 445 | int |
---|
| 446 | ((GtkTextBuffer buffer))) |
---|
| 447 | |
---|
| 448 | (define-func gtk_text_buffer_get_char_count |
---|
| 449 | int |
---|
| 450 | ((GtkTextBuffer buffer))) |
---|
| 451 | |
---|
| 452 | (define-func gtk_text_buffer_set_text |
---|
| 453 | none |
---|
| 454 | ((GtkTextBuffer buffer) |
---|
| 455 | (string text) |
---|
| 456 | (int len (= "-1")))) |
---|
| 457 | |
---|
| 458 | (define-func gtk_text_buffer_insert |
---|
| 459 | none |
---|
| 460 | ((GtkTextBuffer buffer) |
---|
| 461 | (GtkTextIter iter) |
---|
| 462 | (string text) |
---|
| 463 | (int len (= "-1")))) |
---|
| 464 | |
---|
| 465 | (define-func gtk_text_buffer_insert_at_cursor |
---|
| 466 | none |
---|
| 467 | ((GtkTextBuffer buffer) |
---|
| 468 | (string text) |
---|
| 469 | (int len (= "-1")))) |
---|
| 470 | |
---|
| 471 | (define-func gtk_text_buffer_insert_interactive |
---|
| 472 | bool |
---|
| 473 | ((GtkTextBuffer buffer) |
---|
| 474 | (GtkTextIter iter) |
---|
| 475 | (string text) |
---|
| 476 | (int len (= "-1")) |
---|
| 477 | (bool default_editable))) |
---|
| 478 | |
---|
| 479 | (define-func gtk_text_buffer_insert_interactive_at_cursor |
---|
| 480 | bool |
---|
| 481 | ((GtkTextBuffer buffer) |
---|
| 482 | (string text) |
---|
| 483 | (int len (= "-1")) |
---|
| 484 | (bool default_editable))) |
---|
| 485 | |
---|
| 486 | (define-func gtk_text_buffer_insert_range |
---|
| 487 | none |
---|
| 488 | ((GtkTextBuffer buffer) |
---|
| 489 | (GtkTextIter iter) |
---|
| 490 | (GtkTextIter start) |
---|
| 491 | (GtkTextIter end))) |
---|
| 492 | |
---|
| 493 | (define-func gtk_text_buffer_insert_range_interactive |
---|
| 494 | bool |
---|
| 495 | ((GtkTextBuffer buffer) |
---|
| 496 | (GtkTextIter iter) |
---|
| 497 | (GtkTextIter start) |
---|
| 498 | (GtkTextIter end) |
---|
| 499 | (bool default_editable))) |
---|
| 500 | |
---|
| 501 | ;; XXX insert_with_tags |
---|
| 502 | |
---|
| 503 | (define-func gtk_text_buffer_delete |
---|
| 504 | none |
---|
| 505 | ((GtkTextBuffer buffer) |
---|
| 506 | (GtkTextIter start) |
---|
| 507 | (GtkTextIter end))) |
---|
| 508 | |
---|
| 509 | (define-func gtk_text_buffer_delete_interactive |
---|
| 510 | none |
---|
| 511 | ((GtkTextBuffer buffer) |
---|
| 512 | (GtkTextIter start) |
---|
| 513 | (GtkTextIter end) |
---|
| 514 | (bool default_editable))) |
---|
| 515 | |
---|
| 516 | (define-func gtk_text_buffer_get_text |
---|
| 517 | string |
---|
| 518 | ((GtkTextBuffer buffer) |
---|
| 519 | (GtkTextIter start) |
---|
| 520 | (GtkTextIter end) |
---|
| 521 | (bool include_hidden_chars))) |
---|
| 522 | |
---|
| 523 | (define-func gtk_text_buffer_get_slice |
---|
| 524 | string |
---|
| 525 | ((GtkTextBuffer buffer) |
---|
| 526 | (GtkTextIter start) |
---|
| 527 | (GtkTextIter end) |
---|
| 528 | (bool include_hidden_chars))) |
---|
| 529 | |
---|
| 530 | (define-func gtk_text_buffer_insert_pixbuf |
---|
| 531 | none |
---|
| 532 | ((GtkTextBuffer buffer) |
---|
| 533 | (GtkTextIter iter) |
---|
| 534 | (GdkPixbuf pixbuf))) |
---|
| 535 | |
---|
| 536 | ;; XXX {insert,create}_child_anchor |
---|
| 537 | |
---|
| 538 | (define-func gtk_text_buffer_create_mark |
---|
| 539 | GtkTextMark |
---|
| 540 | ((GtkTextBuffer buffer) |
---|
| 541 | (string mark_name) |
---|
| 542 | (GtkTextIter where) |
---|
| 543 | (bool left_gravity))) |
---|
| 544 | |
---|
| 545 | (define-func gtk_text_buffer_move_mark |
---|
| 546 | none |
---|
| 547 | ((GtkTextBuffer buffer) |
---|
| 548 | (GtkTextMark mark) |
---|
| 549 | (GtkTextIter where))) |
---|
| 550 | |
---|
| 551 | (define-func gtk_text_buffer_delete_mark |
---|
| 552 | none |
---|
| 553 | ((GtkTextBuffer buffer) |
---|
| 554 | (GtkTextMark mark))) |
---|
| 555 | |
---|
| 556 | (define-func gtk_text_buffer_get_mark |
---|
| 557 | GtkTextMark |
---|
| 558 | ((GtkTextBuffer buffer) |
---|
| 559 | (string name))) |
---|
| 560 | |
---|
| 561 | (define-func gtk_text_buffer_move_mark_by_name |
---|
| 562 | none |
---|
| 563 | ((GtkTextBuffer buffer) |
---|
| 564 | (string name) |
---|
| 565 | (GtkTextIter where))) |
---|
| 566 | |
---|
| 567 | (define-func gtk_text_buffer_delete_mark_by_name |
---|
| 568 | none |
---|
| 569 | ((GtkTextBuffer buffer) |
---|
| 570 | (string name))) |
---|
| 571 | |
---|
| 572 | (define-func gtk_text_buffer_get_insert |
---|
| 573 | GtkTextMark |
---|
| 574 | ((GtkTextBuffer buffer))) |
---|
| 575 | |
---|
| 576 | (define-func gtk_text_buffer_get_selection_bound |
---|
| 577 | GtkTextMark |
---|
| 578 | ((GtkTextBuffer buffer))) |
---|
| 579 | |
---|
| 580 | (define-func gtk_text_buffer_place_cursor |
---|
| 581 | none |
---|
| 582 | ((GtkTextBuffer buffer) |
---|
| 583 | (GtkTextIter where))) |
---|
| 584 | |
---|
| 585 | (define-func gtk_text_buffer_apply_tag |
---|
| 586 | none |
---|
| 587 | ((GtkTextBuffer buffer) |
---|
| 588 | (GtkTextTag tag) |
---|
| 589 | (GtkTextIter start) |
---|
| 590 | (GtkTextIter end))) |
---|
| 591 | |
---|
| 592 | (define-func gtk_text_buffer_remove_tag |
---|
| 593 | none |
---|
| 594 | ((GtkTextBuffer buffer) |
---|
| 595 | (GtkTextTag tag) |
---|
| 596 | (GtkTextIter start) |
---|
| 597 | (GtkTextIter end))) |
---|
| 598 | |
---|
| 599 | (define-func gtk_text_buffer_apply_tag_by_name |
---|
| 600 | none |
---|
| 601 | ((GtkTextBuffer buffer) |
---|
| 602 | (string name) |
---|
| 603 | (GtkTextIter start) |
---|
| 604 | (GtkTextIter end))) |
---|
| 605 | |
---|
| 606 | (define-func gtk_text_buffer_remove_tag_by_name |
---|
| 607 | none |
---|
| 608 | ((GtkTextBuffer buffer) |
---|
| 609 | (string name) |
---|
| 610 | (GtkTextIter start) |
---|
| 611 | (GtkTextIter end))) |
---|
| 612 | |
---|
| 613 | (define-func gtk_text_buffer_remove_all_tags |
---|
| 614 | none |
---|
| 615 | ((GtkTextBuffer buffer) |
---|
| 616 | (GtkTextIter start) |
---|
| 617 | (GtkTextIter end))) |
---|
| 618 | |
---|
| 619 | ;; XXX create_tag |
---|
| 620 | |
---|
| 621 | (define-func gtk_text_buffer_get_iter_at_line_offset |
---|
| 622 | none |
---|
| 623 | ((GtkTextBuffer buffer) |
---|
| 624 | (GtkTextIter iter) |
---|
| 625 | (int line_number) |
---|
| 626 | (int char_offset))) |
---|
| 627 | |
---|
| 628 | (define-func gtk_text_buffer_get_iter_at_line_index |
---|
| 629 | none |
---|
| 630 | ((GtkTextBuffer buffer) |
---|
| 631 | (GtkTextIter iter) |
---|
| 632 | (int line_number) |
---|
| 633 | (int byte_index))) |
---|
| 634 | |
---|
| 635 | (define-func gtk_text_buffer_get_iter_at_offset |
---|
| 636 | none |
---|
| 637 | ((GtkTextBuffer buffer) |
---|
| 638 | (GtkTextIter iter) |
---|
| 639 | (int char_offset))) |
---|
| 640 | |
---|
| 641 | (define-func gtk_text_buffer_get_iter_at_line |
---|
| 642 | none |
---|
| 643 | ((GtkTextBuffer buffer) |
---|
| 644 | (GtkTextIter iter) |
---|
| 645 | (int line_number))) |
---|
| 646 | |
---|
| 647 | (define-func gtk_text_buffer_get_start_iter |
---|
| 648 | none |
---|
| 649 | ((GtkTextBuffer buffer) |
---|
| 650 | (GtkTextIter iter))) |
---|
| 651 | |
---|
| 652 | (define-func gtk_text_buffer_get_end_iter |
---|
| 653 | none |
---|
| 654 | ((GtkTextBuffer buffer) |
---|
| 655 | (GtkTextIter iter))) |
---|
| 656 | |
---|
| 657 | (define-func gtk_text_buffer_get_bounds |
---|
| 658 | none |
---|
| 659 | ((GtkTextBuffer buffer) |
---|
| 660 | (GtkTextIter start) |
---|
| 661 | (GtkTextIter end))) |
---|
| 662 | |
---|
| 663 | (define-func gtk_text_buffer_get_iter_at_mark |
---|
| 664 | none |
---|
| 665 | ((GtkTextBuffer buffer) |
---|
| 666 | (GtkTextIter iter) |
---|
| 667 | (GtkTextMark mark))) |
---|
| 668 | |
---|
| 669 | ;; XXX get_iter_at_child_anchor |
---|
| 670 | |
---|
| 671 | (define-func gtk_text_buffer_get_modified |
---|
| 672 | bool |
---|
| 673 | ((GtkTextBuffer buffer))) |
---|
| 674 | |
---|
| 675 | (define-func gtk_text_buffer_set_modified |
---|
| 676 | none |
---|
| 677 | ((GtkTextBuffer buffer) |
---|
| 678 | (bool setting))) |
---|
| 679 | |
---|
| 680 | ;; XXX GtkClipboard? |
---|
| 681 | ;(define-func gtk_text_buffer_add_selection_clipboard |
---|
| 682 | ; none |
---|
| 683 | ; ((GtkTextBuffer buffer) |
---|
| 684 | ; (GtkClipboard clipboard))) |
---|
| 685 | ; |
---|
| 686 | ;(define-func gtk_text_buffer_remove_selection_clipboard |
---|
| 687 | ; none |
---|
| 688 | ; ((GtkTextBuffer buffer) |
---|
| 689 | ; (GtkClipboard clipboard))) |
---|
| 690 | ; |
---|
| 691 | ;(define-func gtk_text_buffer_cut_clipboard |
---|
| 692 | ; none |
---|
| 693 | ; ((GtkTextBuffer buffer) |
---|
| 694 | ; (GtkClipboard clipboard) |
---|
| 695 | ; (bool default_editable))) |
---|
| 696 | ; |
---|
| 697 | ;(define-func gtk_text_buffer_copy_clipboard |
---|
| 698 | ; none |
---|
| 699 | ; ((GtkTextBuffer buffer) |
---|
| 700 | ; (GtkClipboard clipboard))) |
---|
| 701 | ; |
---|
| 702 | ;(define-func gtk_text_buffer_paste_clipboard |
---|
| 703 | ; none |
---|
| 704 | ; ((GtkTextBuffer buffer) |
---|
| 705 | ; (GtkClipboard clipboard) |
---|
| 706 | ; (GtkTextIter override_location (null-ok)) |
---|
| 707 | ; (bool default_editable))) |
---|
| 708 | |
---|
| 709 | (define-func gtk_text_buffer_get_selection_bounds |
---|
| 710 | bool |
---|
| 711 | ((GtkTextBuffer buffer) |
---|
| 712 | (GtkTextIter start) |
---|
| 713 | (GtkTextIter end))) |
---|
| 714 | |
---|
| 715 | (define-func gtk_text_buffer_delete_selection |
---|
| 716 | bool |
---|
| 717 | ((GtkTextBuffer buffer) |
---|
| 718 | (bool interactive) |
---|
| 719 | (bool default_editable))) |
---|
| 720 | |
---|
| 721 | (define-func gtk_text_buffer_begin_user_action |
---|
| 722 | none |
---|
| 723 | ((GtkTextBuffer buffer))) |
---|
| 724 | |
---|
| 725 | (define-func gtk_text_buffer_end_user_action |
---|
| 726 | none |
---|
| 727 | ((GtkTextBuffer buffer))) |
---|
| 728 | |
---|
| 729 | |
---|
| 730 | ;; TextView |
---|
| 731 | |
---|
| 732 | (define-func gtk_text_view_new |
---|
| 733 | GtkWidget |
---|
| 734 | ()) |
---|
| 735 | |
---|
| 736 | (define-func gtk_text_view_new_with_buffer |
---|
| 737 | GtkWidget |
---|
| 738 | ((GtkTextBuffer buffer))) |
---|
| 739 | |
---|
| 740 | (define-func gtk_text_view_set_buffer |
---|
| 741 | none |
---|
| 742 | ((GtkTextView view) |
---|
| 743 | (GtkTextBuffer buffer))) |
---|
| 744 | |
---|
| 745 | (define-func gtk_text_view_get_buffer |
---|
| 746 | GtkTextBuffer |
---|
| 747 | ((GtkTextView view))) |
---|
| 748 | |
---|
| 749 | (define-func gtk_text_view_scroll_to_iter |
---|
| 750 | bool |
---|
| 751 | ((GtkTextView view) |
---|
| 752 | (GtkTextIter iter) |
---|
| 753 | (double within_margin) |
---|
| 754 | (bool use_align) |
---|
| 755 | (double xalign) |
---|
| 756 | (double yalign))) |
---|
| 757 | |
---|
| 758 | (define-func gtk_text_view_scroll_to_mark |
---|
| 759 | none |
---|
| 760 | ((GtkTextView view) |
---|
| 761 | (GtkTextMark mark) |
---|
| 762 | (double within_margin) |
---|
| 763 | (bool use_align) |
---|
| 764 | (double xalign) |
---|
| 765 | (double yalign))) |
---|
| 766 | |
---|
| 767 | (define-func gtk_text_view_scroll_mark_onscreen |
---|
| 768 | none |
---|
| 769 | ((GtkTextView view) |
---|
| 770 | (GtkTextMark mark))) |
---|
| 771 | |
---|
| 772 | (define-func gtk_text_view_move_mark_onscreen |
---|
| 773 | bool |
---|
| 774 | ((GtkTextView view) |
---|
| 775 | (GtkTextMark mark))) |
---|
| 776 | |
---|
| 777 | (define-func gtk_text_view_place_cursor_onscreen |
---|
| 778 | bool |
---|
| 779 | ((GtkTextView view))) |
---|
| 780 | |
---|
| 781 | ;; XXX GdkRectangle? |
---|
| 782 | ;(define-func gtk_text_view_get_visible_rect |
---|
| 783 | ; none |
---|
| 784 | ; ((GtkTextView view) |
---|
| 785 | ; (GdkRectangle rect))) |
---|
| 786 | |
---|
| 787 | (define-func gtk_text_view_set_cursor_visible |
---|
| 788 | none |
---|
| 789 | ((GtkTextView view) |
---|
| 790 | (bool setting))) |
---|
| 791 | |
---|
| 792 | (define-func gtk_text_view_get_cursor_visible |
---|
| 793 | bool |
---|
| 794 | ((GtkTextView view))) |
---|
| 795 | |
---|
| 796 | ;; XXX GdkRectangle? |
---|
| 797 | ;(define-func gtk_text_view_get_iter_location |
---|
| 798 | ; none |
---|
| 799 | ; ((GtkTextView view) |
---|
| 800 | ; (GtkTextIter iter) |
---|
| 801 | ; (GdkRectangle location))) |
---|
| 802 | |
---|
| 803 | (define-func gtk_text_view_get_iter_at_location |
---|
| 804 | none |
---|
| 805 | ((GtkTextView view) |
---|
| 806 | (GtkTextIter iter) |
---|
| 807 | (int x) |
---|
| 808 | (int y))) |
---|
| 809 | |
---|
| 810 | ;; XXX get_line_yrange, get_line_at_y, buffer_to_window_coords, window_to_buffer_coords |
---|
| 811 | |
---|
| 812 | (define-func gtk_text_view_get_window |
---|
| 813 | GdkWindow |
---|
| 814 | ((GtkTextView view) |
---|
| 815 | (GtkTextWindowType type))) |
---|
| 816 | |
---|
| 817 | (define-func gtk_text_view_get_window_type |
---|
| 818 | GtkTextWindowType |
---|
| 819 | ((GtkTextView view) |
---|
| 820 | (GdkWindow window))) |
---|
| 821 | |
---|
| 822 | (define-func gtk_text_view_set_border_window_size |
---|
| 823 | none |
---|
| 824 | ((GtkTextView view) |
---|
| 825 | (GtkTextWindowType type) |
---|
| 826 | (int size))) |
---|
| 827 | |
---|
| 828 | (define-func gtk_text_view_get_border_window_size |
---|
| 829 | int |
---|
| 830 | ((GtkTextView view) |
---|
| 831 | (GtkTextWindowType type))) |
---|
| 832 | |
---|
| 833 | (define-func gtk_text_view_forward_display_line |
---|
| 834 | bool |
---|
| 835 | ((GtkTextView view) |
---|
| 836 | (GtkTextIter iter))) |
---|
| 837 | |
---|
| 838 | (define-func gtk_text_view_backward_display_line |
---|
| 839 | bool |
---|
| 840 | ((GtkTextView view) |
---|
| 841 | (GtkTextIter iter))) |
---|
| 842 | |
---|
| 843 | (define-func gtk_text_view_forward_display_line_end |
---|
| 844 | bool |
---|
| 845 | ((GtkTextView view) |
---|
| 846 | (GtkTextIter iter))) |
---|
| 847 | |
---|
| 848 | (define-func gtk_text_view_backward_display_line_start |
---|
| 849 | bool |
---|
| 850 | ((GtkTextView view) |
---|
| 851 | (GtkTextIter iter))) |
---|
| 852 | |
---|
| 853 | (define-func gtk_text_view_starts_display_line |
---|
| 854 | bool |
---|
| 855 | ((GtkTextView view) |
---|
| 856 | (GtkTextIter iter))) |
---|
| 857 | |
---|
| 858 | (define-func gtk_text_view_move_visually |
---|
| 859 | bool |
---|
| 860 | ((GtkTextView view) |
---|
| 861 | (GtkTextIter iter) |
---|
| 862 | (int count))) |
---|
| 863 | |
---|
| 864 | ;; XXX add_child_at_anchor |
---|
| 865 | |
---|
| 866 | (define-func gtk_text_view_add_child_in_window |
---|
| 867 | none |
---|
| 868 | ((GtkTextView view) |
---|
| 869 | (GtkWidget child) |
---|
| 870 | (GtkTextWindowType which_window) |
---|
| 871 | (int xpos) |
---|
| 872 | (int ypos))) |
---|
| 873 | |
---|
| 874 | (define-func gtk_text_view_move_child |
---|
| 875 | none |
---|
| 876 | ((GtkTextView view) |
---|
| 877 | (GtkWidget child) |
---|
| 878 | (int xpos) |
---|
| 879 | (int ypos))) |
---|
| 880 | |
---|
| 881 | (define-func gtk_text_view_set_wrap_mode |
---|
| 882 | none |
---|
| 883 | ((GtkTextView view) |
---|
| 884 | (GtkWrapMode wrap_mode))) |
---|
| 885 | |
---|
| 886 | (define-func gtk_text_view_get_wrap_mode |
---|
| 887 | GtkWrapMode |
---|
| 888 | ((GtkTextView view))) |
---|
| 889 | |
---|
| 890 | (define-func gtk_text_view_set_editable |
---|
| 891 | none |
---|
| 892 | ((GtkTextView view) |
---|
| 893 | (bool setting))) |
---|
| 894 | |
---|
| 895 | (define-func gtk_text_view_get_editable |
---|
| 896 | bool |
---|
| 897 | ((GtkTextView view))) |
---|
| 898 | |
---|
| 899 | (define-func gtk_text_view_set_pixels_above_lines |
---|
| 900 | none |
---|
| 901 | ((GtkTextView view) |
---|
| 902 | (int setting))) |
---|
| 903 | |
---|
| 904 | (define-func gtk_text_view_get_pixels_above_lines |
---|
| 905 | int |
---|
| 906 | ((GtkTextView view))) |
---|
| 907 | |
---|
| 908 | (define-func gtk_text_view_set_pixels_below_lines |
---|
| 909 | none |
---|
| 910 | ((GtkTextView view) |
---|
| 911 | (int setting))) |
---|
| 912 | |
---|
| 913 | (define-func gtk_text_view_get_pixels_below_lines |
---|
| 914 | int |
---|
| 915 | ((GtkTextView view))) |
---|
| 916 | |
---|
| 917 | (define-func gtk_text_view_set_pixels_inside_wrap |
---|
| 918 | none |
---|
| 919 | ((GtkTextView view) |
---|
| 920 | (int setting))) |
---|
| 921 | |
---|
| 922 | (define-func gtk_text_view_get_pixels_inside_wrap |
---|
| 923 | int |
---|
| 924 | ((GtkTextView view))) |
---|
| 925 | |
---|
| 926 | (define-func gtk_text_view_set_justification |
---|
| 927 | none |
---|
| 928 | ((GtkTextView view) |
---|
| 929 | (GtkJustification setting))) |
---|
| 930 | |
---|
| 931 | (define-func gtk_text_view_get_justification |
---|
| 932 | GtkJustification |
---|
| 933 | ((GtkTextView view))) |
---|
| 934 | |
---|
| 935 | (define-func gtk_text_view_set_left_margin |
---|
| 936 | none |
---|
| 937 | ((GtkTextView view) |
---|
| 938 | (int setting))) |
---|
| 939 | |
---|
| 940 | (define-func gtk_text_view_get_left_margin |
---|
| 941 | int |
---|
| 942 | ((GtkTextView view))) |
---|
| 943 | |
---|
| 944 | (define-func gtk_text_view_set_right_margin |
---|
| 945 | none |
---|
| 946 | ((GtkTextView view) |
---|
| 947 | (int setting))) |
---|
| 948 | |
---|
| 949 | (define-func gtk_text_view_get_right_margin |
---|
| 950 | int |
---|
| 951 | ((GtkTextView view))) |
---|
| 952 | |
---|
| 953 | (define-func gtk_text_view_set_indent |
---|
| 954 | none |
---|
| 955 | ((GtkTextView view) |
---|
| 956 | (int setting))) |
---|
| 957 | |
---|
| 958 | (define-func gtk_text_view_get_indent |
---|
| 959 | int |
---|
| 960 | ((GtkTextView view))) |
---|
| 961 | |
---|
| 962 | ;; XXX set/get_tabs |
---|
| 963 | |
---|