mplisp

miniPicoLisp with FFI and modules for Buddy BDD library, OpenGL, Gtk and GMP
git clone https://logand.com/git/mplisp.git/
Log | Files | Refs

gtk.ffi (17801B)


      1 # -*- picolisp -*-
      2 
      3 (load "@src/mod/ffi.l")
      4 
      5 (module 'gtk)
      6 #(module 'gtk '((X) (pack "gtk:" (cddddr (chop X)))))
      7 
      8 (include "gtk/gtk.h" "glade/glade.h")
      9 
     10 (cfun void* gtk_window_new long)
     11 (cfun void gtk_window_set_title void* cstr)
     12 (cfun cstr gtk_window_get_title void*)
     13 (cfun void gtk_window_set_default_size void* long long)
     14 (cfun void gtk_window_set_position void* long)
     15 (cfun void gtk_window_set_resizable void* bool)
     16 (cfun void gtk_window_set_transient_for void* void*)
     17 (cfun void gtk_window_maximize void*)
     18 (cfun void* gtk_message_dialog_new void* long long long cstr)
     19 (cfun bool gtk_window_set_icon_from_file void* cstr null)
     20 (cfun void gtk_window_set_keep_above void* bool)
     21 (cfun void gtk_window_set_keep_below void* bool)
     22 (cfun void gtk_about_dialog_set_version void* cstr)
     23 (cfun void* gtk_table_new long long bool)
     24 (cfun void gtk_table_attach_defaults void* void* long long long long)
     25 (cfun void gtk_container_add void* void*)
     26 (cfun void gtk_container_remove void* void*)
     27 (cfun void gtk_container_set_border_width void* long)
     28 (cfun void* gtk_hbox_new bool long)
     29 (cfun void* gtk_vbox_new bool long)
     30 (cfun void gtk_box_pack_start void* void* bool bool long)
     31 (cfun void gtk_box_pack_end void* void* bool bool long)
     32 (cfun void gtk_box_pack_start_defaults void* void*)
     33 (cfun void gtk_box_pack_end_defaults void* void*)
     34 (cfun void* gtk_button_new)
     35 (cfun void* gtk_button_new_with_label cstr)
     36 (cfun void* gtk_button_new_from_stock cstr)
     37 (cfun void* gtk_button_new_with_mnemonic cstr)
     38 (cfun void gtk_button_set_use_stock void* bool)
     39 (cfun void gtk_button_set_label void* cstr)
     40 (cfun void gtk_button_set_relief void* long)
     41 (cfun void* gtk_toggle_button_new)
     42 (cfun void* gtk_toggle_button_new_with_label cstr)
     43 (cfun bool gtk_toggle_button_get_active void*)
     44 (cfun void gtk_toggle_button_set_active void* bool)
     45 (cfun void* gtk_check_button_new_with_label cstr)
     46 (cfun void* gtk_entry_new)
     47 (cfun cstr gtk_entry_get_text void*)
     48 (cfun void gtk_entry_set_text void* cstr)
     49 (cfun void gtk_entry_set_visibility void* bool)
     50 (cfun void gtk_editable_delete_text void* long long)
     51 (cfun cstr gtk_editable_get_chars void* long long)
     52 (cfun void gtk_editable_set_editable void* bool)
     53 (cfun void gtk_editable_select_region void* long long)
     54 (cfun void* gtk_text_buffer_new null)
     55 (cfun void gtk_text_buffer_set_text void* cstr long)
     56 (cfun void gtk_text_buffer_insert_at_cursor void* cstr long)
     57 (cfun void* gtk_text_buffer_get_insert void*)
     58 (cfun void gtk_text_buffer_get_start_iter void* void*)
     59 (cfun void gtk_text_buffer_get_end_iter void* void*)
     60 (cfun void gtk_text_buffer_get_bounds void* void* void*)
     61 (cfun bool gtk_text_buffer_get_selection_bounds void* void* void*)
     62 (cfun void gtk_text_buffer_get_iter_at_offset void* void* long)
     63 (cfun cstr gtk_text_buffer_get_text void* void* void* bool)
     64 (cfun void gtk_text_buffer_insert void* void* cstr long)
     65 (cfun void* gtk_text_buffer_create_tag void* cstr cstr long null)
     66 (cfun void gtk_text_buffer_insert_with_tags_by_name void* void* cstr long cstr cstr cstr null)
     67 (cfun void gtk_text_buffer_apply_tag_by_name void* cstr void* void*)
     68 (cfun void gtk_text_buffer_remove_tag_by_name void* cstr void* void*)
     69 (cfun void gtk_text_buffer_remove_all_tags void* void* void*)
     70 (cfun void* gtk_text_buffer_get_tag_table void*)
     71 (cfun void gtk_text_buffer_select_range void* void* void*)
     72 (cfun void* gtk_text_buffer_get_selection_bound void*)
     73 (cfun long gtk_text_buffer_get_line_count void*)
     74 (cfun void* gtk_text_buffer_create_mark void* cstr void* bool)
     75 (cfun void gtk_text_buffer_get_iter_at_mark void* void* void*)
     76 (cfun void gtk_text_buffer_get_iter_at_line void* void* long)
     77 (cfun void gtk_text_buffer_delete void* void* void*)
     78 (cfun void gtk_text_buffer_delete_mark void* void*)
     79 (cfun void gtk_text_buffer_delete_mark_by_name void* cstr)
     80 (cfun void gtk_text_buffer_place_cursor void* void*)
     81 (cfun void gtk_text_buffer_copy_clipboard void* void*)
     82 (cfun void gtk_text_buffer_cut_clipboard void* void* bool)
     83 (cfun void gtk_text_buffer_paste_clipboard void* void* null bool)
     84 (cfun void* gtk_scrolled_window_new null null)
     85 (cfun void gtk_scrolled_window_set_policy void* long long)
     86 (cfun void gtk_scrolled_window_set_shadow_type void* long)
     87 (cfun void gtk_scrolled_window_add_with_viewport void* void*)
     88 (cfun void* gtk_text_view_new_with_buffer void*)
     89 (cfun void gtk_text_view_set_wrap_mode void* long)
     90 (cfun void gtk_text_view_set_editable void* bool)
     91 (cfun void gtk_text_view_set_border_window_size void* long long)
     92 (cfun bool gtk_text_view_move_mark_onscreen void* void*)
     93 (cfun void gtk_text_view_scroll_to_mark void* void* double bool double double)
     94 (cfun void gtk_text_view_scroll_mark_onscreen void* void*)
     95 (cfun void gtk_text_view_set_pixels_inside_wrap void* long)
     96 (cfun long gtk_text_view_get_pixels_inside_wrap void*)
     97 (cfun void gtk_text_view_set_pixels_above_lines void* long)
     98 (cfun long gtk_text_view_get_pixels_above_lines void*)
     99 (cfun void gtk_text_view_set_cursor_visible void* bool)
    100 (cfun void gtk_text_view_window_to_buffer_coords void* long long long void* void*)
    101 (cfun bool gtk_text_iter_forward_search void* cstr long void* void* null)
    102 (cfun bool gtk_text_iter_forward_visible_cursor_position void*)
    103 (cfun bool gtk_text_iter_forward_to_line_end void*)
    104 (cfun void gtk_text_iter_set_line void* long)
    105 (cfun void gtk_text_iter_set_line_offset void* long)
    106 (cfun void gtk_text_iter_set_line_index void* long)
    107 (cfun cstr gtk_text_iter_get_text void* void*)
    108 (cfun long gtk_text_iter_get_line void*)
    109 (cfun void* gtk_text_view_new)
    110 (cfun void* gtk_text_view_get_buffer void*)
    111 (cfun void gtk_text_tag_table_remove void* void*)
    112 (cfun void* gdk_font_load cstr)
    113 (cfun void* gdk_pixmap_new void* long long long)
    114 (cfun void gdk_pixmap_unref void*)
    115 (cfun void* gdk_pixmap_create_from_xpm void* null null cstr)
    116 (cfun void* gdk_pixmap_colormap_create_from_xpm null void* null null cstr)
    117 (cfun void gdk_draw_rectangle void* void* bool long long long long)
    118 (cfun void gdk_draw_arc void* void* bool long long long long long long)
    119 (cfun void gdk_draw_line void* void* long long long long)
    120 (cfun void gdk_draw_point void* void* long long)
    121 (cfun void gdk_draw_layout void* void* long long void*)
    122 (cfun void gdk_draw_drawable void* void* void* long long long long long long)
    123 (cfun void* gdk_gc_new void*)
    124 (cfun void gdk_gc_set_rgb_fg_color void* void*)
    125 (cfun void gdk_gc_set_rgb_bg_color void* void*)
    126 (cfun void gdk_gc_set_foreground void* void*)
    127 (cfun void gdk_gc_set_background void* void*)
    128 (cfun void gdk_gc_set_colormap void* void*)
    129 (cfun long gdk_color_alloc void* void*)
    130 (cfun long gdk_color_parse cstr void*)
    131 (cfun void* gdk_colormap_get_system)
    132 (cfun bool gdk_colormap_alloc_color void* void* bool bool)
    133 (cfun void* gdk_get_default_root_window)
    134 (cfun void gdk_rgb_find_color void* void*)
    135 (cfun void gdk_drawable_set_colormap void* void*)
    136 (cfun void gdk_drawable_get_size void* void* void*)
    137 (cfun bool gdk_keymap_translate_keyboard_state null long long long void* null null null)
    138 (cfun void gdk_window_process_all_updates)
    139 (cfun void gdk_window_get_geometry void* null null void* cstr null)
    140 (cfun void* gdk_screen_get_default)
    141 (cfun long gdk_screen_get_width void*)
    142 (cfun long gdk_screen_get_height void*)
    143 (cfun long gdk_screen_width)
    144 (cfun long gdk_screen_height)
    145 (cfun void gdk_flush)
    146 (cfun void gdk_init null null)
    147 (cfun void* gdk_display_get_default)
    148 (cfun void gdk_display_get_pointer void* null void* void* null)
    149 (cfun void* gtk_image_new)
    150 (cfun void* gtk_image_new_from_pixmap void* void*)
    151 (cfun void gtk_image_set_from_pixbuf void* void*)
    152 (cfun void gtk_image_set_from_pixmap void* void* null)
    153 (cfun void gtk_image_set void* void* null)
    154 (cfun void gtk_image_set_from_file void* cstr)
    155 (cfun void* gtk_image_new_from_file cstr)
    156 (cfun void* gtk_pixmap_new void* null)
    157 (cfun void* gtk_drawing_area_new)
    158 (cfun void gtk_widget_queue_draw void*)
    159 (cfun void* gtk_widget_get_colormap void*)
    160 (cfun void* gtk_widget_get_parent_window void*)
    161 (cfun void* gtk_widget_create_pango_layout void* cstr)
    162 (cfun void* gtk_vscrollbar_new void*)
    163 (cfun void* gtk_label_new cstr)
    164 (cfun void gtk_label_set_text void* cstr)
    165 (cfun cstr gtk_label_get_text void*)
    166 (cfun void gtk_label_set_line_wrap void* bool)
    167 (cfun void gtk_label_set_selectable void* bool)
    168 (cfun void gtk_label_set_use_markup void* bool)
    169 (cfun void gtk_label_set_justify void* long)
    170 (cfun long gtk_label_get_width_chars void*)
    171 (cfun long gtk_label_get_max_width_chars void*)
    172 (cfun void gtk_label_set_markup_with_mnemonic void* cstr)
    173 (cfun void* gtk_frame_new null)
    174 (cfun void gtk_frame_set_label_align void* float float)
    175 (cfun void gtk_frame_set_label void* cstr)
    176 (cfun cstr gtk_frame_get_label void*)
    177 (cfun void* gtk_aspect_frame_new cstr float float float bool)
    178 (cfun void gtk_aspect_frame_set void* float float float bool)
    179 (cfun void* gtk_radio_button_new null)
    180 (cfun void* gtk_radio_button_new_with_label void* cstr)
    181 (cfun void* gtk_radio_button_new_from_widget void*)
    182 (cfun void* gtk_radio_button_new_with_label_from_widget void* cstr)
    183 (cfun void* gtk_notebook_new)
    184 (cfun void gtk_notebook_set_tab_pos void* long)
    185 (cfun void gtk_notebook_popup_enable void*)
    186 (cfun void gtk_notebook_insert_page void* void* void* long)
    187 (cfun void gtk_notebook_remove_page void* long)
    188 (cfun void gtk_notebook_get_current_page void*)
    189 (cfun void gtk_notebook_set_page void* long)
    190 (cfun void gtk_notebook_set_tab_label_text void* void* cstr)
    191 (cfun void* gtk_adjustment_new double double double double double double)
    192 (cfun float gtk_adjustment_get_value void*)
    193 (cfun void* gtk_range_get_adjustment void*)
    194 (cfun float gtk_range_get_value void*)
    195 (cfun void gtk_range_set_value void* double)
    196 (cfun void gtk_scale_set_draw_value void* bool)
    197 (cfun void gtk_scale_set_value_pos void* long)
    198 (cfun void* gtk_hscale_new void*)
    199 (cfun void* gtk_hscale_new_with_range double double double)
    200 (cfun void* gtk_vscale_new_with_range double double double)
    201 (cfun void* gtk_spin_button_new void* double long)
    202 (cfun long gtk_spin_button_get_value_as_int void*)
    203 (cfun float gtk_spin_button_get_value void*)
    204 (cfun void gtk_spin_button_set_wrap void* bool)
    205 (cfun void gtk_spin_button_set_value void* double)
    206 (cfun void* gtk_arrow_new long long)
    207 (cfun void* gtk_file_chooser_dialog_new cstr void* long cstr long cstr long null)
    208 (cfun void* gtk_file_chooser_widget_new long)
    209 (cfun long gtk_dialog_run void*)
    210 (cfun cstr gtk_file_chooser_get_filename void*)
    211 (cfun bool gtk_file_chooser_set_filename void* cstr)
    212 (cfun void* gtk_file_filter_new)
    213 (cfun void gtk_file_filter_add_pattern void* cstr)
    214 (cfun void gtk_file_filter_set_name void* cstr)
    215 (cfun void gtk_file_chooser_add_filter void* void*)
    216 (cfun void* gtk_font_selection_dialog_new cstr)
    217 (cfun cstr gtk_font_selection_dialog_get_font_name void*)
    218 (cfun void* gtk_font_selection_new)
    219 (cfun cstr gtk_font_selection_get_font_name void*)
    220 (cfun bool gtk_font_selection_set_font_name void* cstr)
    221 (cfun void* gtk_color_selection_new)
    222 (cfun void gtk_color_selection_set_has_opacity_control void* bool)
    223 (cfun void gtk_color_selection_set_current_color void* cstr)
    224 (cfun void gtk_color_selection_get_current_color void* void*)
    225 (cfun void gtk_color_selection_set_color void* cstr)
    226 (cfun void* gtk_menu_bar_new)
    227 (cfun void gtk_menu_shell_append void* void*)
    228 (cfun void* gtk_menu_item_new)
    229 (cfun void* gtk_menu_item_new_with_label cstr)
    230 (cfun void* gtk_menu_item_new_with_mnemonic cstr)
    231 (cfun void* gtk_menu_new)
    232 (cfun void gtk_menu_item_set_right_justified void* bool)
    233 (cfun void gtk_menu_item_set_submenu void* void*)
    234 (cfun void* gtk_check_menu_item_new_with_label cstr)
    235 (cfun void* gtk_check_menu_item_new_with_mnemonic cstr)
    236 (cfun bool gtk_check_menu_item_get_active void*)
    237 (cfun void gtk_check_menu_item_set_active void* bool)
    238 (cfun void gtk_menu_popup void* null null null null long long)
    239 (cfun void* gtk_progress_bar_new)
    240 (cfun void gtk_progress_bar_set_text void* cstr)
    241 (cfun void gtk_progress_bar_set_fraction void* double)
    242 (cfun void gtk_progress_bar_pulse void*)
    243 (cfun void gtk_progress_bar_set_pulse_step void* double)
    244 (cfun void* gtk_statusbar_new)
    245 (cfun long gtk_statusbar_get_context_id void* cstr)
    246 (cfun long gtk_statusbar_push void* long cstr)
    247 (cfun void gtk_statusbar_pop void* long)
    248 (cfun void gtk_statusbar_remove void* long long)
    249 (cfun void gtk_statusbar_set_has_resize_grip void* bool)
    250 (cfun void* gtk_event_box_new)
    251 (cfun void* gtk_combo_box_new_text)
    252 (cfun void gtk_combo_box_append_text void* cstr)
    253 (cfun void gtk_combo_box_insert_text void* long cstr)
    254 (cfun void gtk_combo_box_prepend_text void* cstr)
    255 (cfun void gtk_combo_box_remove_text void* long)
    256 (cfun long gtk_combo_box_get_active void*)
    257 (cfun void gtk_combo_box_set_active void* long)
    258 (cfun cstr gtk_combo_box_get_active_text void*)
    259 (cfun void* gtk_vseparator_new)
    260 (cfun void* gtk_hseparator_new)
    261 (cfun void gtk_editable_copy_clipboard void*)
    262 (cfun void gtk_editable_cut_clipboard void*)
    263 (cfun void gtk_editable_paste_clipboard void*)
    264 (cfun void* gdk_atom_intern cstr long)
    265 (cfun void* gtk_clipboard_get long)
    266 (cfun void gtk_clipboard_set_text void* cstr long)
    267 (cfun cstr gtk_clipboard_wait_for_text void*)
    268 (cfun void* gtk_clist_new long)
    269 (cfun void gtk_clist_set_column_title void* long cstr)
    270 (cfun void gtk_clist_column_titles_show void*)
    271 (cfun long gtk_clist_append void* void*)
    272 (cfun void gtk_clist_set_text void* long long cstr)
    273 (cfun void* gtk_fixed_new)
    274 (cfun void gtk_fixed_put void* void* long long)
    275 (cfun void gtk_fixed_move void* void* long long)
    276 (cfun void* gtk_list_store_new long long)
    277 (cfun void gtk_list_store_append void* void*)
    278 (cfun void gtk_list_store_set void* void* long cstr long)
    279 (cfun void gtk_list_store_set_value void* void* long cstr)
    280 (cfun void gtk_list_store_clear void*)
    281 (cfun bool gtk_list_store_remove void* void*)
    282 (cfun void* gtk_cell_renderer_text_new)
    283 (cfun void* gtk_tree_view_new_with_model void*)
    284 (cfun void* gtk_tree_view_column_new)
    285 (cfun void* gtk_tree_view_column_new_with_attributes cstr void* cstr long null)
    286 (cfun void gtk_tree_view_column_pack_start void* void* bool)
    287 (cfun void gtk_tree_view_append_column void* void*)
    288 (cfun void gtk_tree_view_set_headers_visible void* bool)
    289 (cfun void gtk_tree_view_set_headers_clickable void* bool)
    290 (cfun void* gtk_tree_view_get_selection void*)
    291 (cfun void gtk_tree_view_column_set_resizable void* bool)
    292 (cfun void gtk_tree_view_column_set_clickable void* bool)
    293 (cfun bool gtk_tree_selection_get_selected void* null void*)
    294 (cfun void gtk_tree_selection_select_iter void* void*)
    295 (cfun void gtk_tree_selection_select_path void* void*)
    296 (cfun void gtk_tree_model_get void* void* long cstr long)
    297 (cfun cstr gtk_tree_model_get_string_from_iter void* void*)
    298 (cfun void* gtk_tree_path_new_from_string cstr)
    299 (cfun void gtk_tree_path_free void*)
    300 (cfun void gtk_tree_sortable_set_sort_column_id void* long long)
    301 (cfun void gtk_init null null)
    302 (cfun void gtk_widget_show void*)
    303 (cfun void gtk_widget_show_all void*)
    304 (cfun void gtk_widget_realize void*)
    305 (cfun void gtk_widget_unrealize void*)
    306 (cfun void gtk_widget_hide void*)
    307 (cfun void gtk_widget_destroy void*)
    308 (cfun void gtk_widget_grab_focus void*)
    309 (cfun void gtk_widget_set_size_request void* long long)
    310 (cfun void gtk_widget_size_request void* void*)
    311 (cfun void gtk_widget_set_usize void* long long)
    312 (cfun void gtk_widget_modify_base void* long long)
    313 (cfun void gtk_widget_modify_bg void* long long)
    314 (cfun void gtk_widget_set_sensitive void* bool)
    315 (cfun void* gtk_settings_get_default)
    316 (cfun void* gtk_widget_get_parent void*)
    317 (cfun void gtk_misc_set_alignment void* float float)
    318 (cfun void gtk_main)
    319 (cfun bool gtk_main_iteration)
    320 (cfun bool gtk_main_iteration_do bool)
    321 (cfun bool gtk_events_pending)
    322 (cfun void gtk_exit long)
    323 (cfun void gtk_main_quit)
    324 (cfun void gtk_rc_parse cstr)
    325 (cfun void gtk_rc_parse_string cstr)
    326 (cfun bool gtk_rc_reparse_all)
    327 (cfun void gtk_rc_reset_styles void*)
    328 (cfun void gtk_rc_add_default_file cstr)
    329 (cfun void gtk_widget_set_name void* cstr)
    330 (cfun cstr gtk_check_version long long long)
    331 (cfun void gtk_drag_source_set void* long long long long)
    332 (cfun void gtk_drag_dest_set void* long long long long)
    333 (cfun void gtk_drag_finish void* bool bool long)
    334 (cfun long gtk_get_current_event_time)
    335 (cfun void gtk_widget_get_size_request void* void* void*)
    336 (cfun void gtk_signal_emit_by_name void* cstr)
    337 (cfun void* gtk_invisible_new)
    338 (cfun void* gdk_pixbuf_new_from_file cstr null)
    339 (cfun void* gdk_pixbuf_new_from_file_at_size cstr long long null)
    340 (cfun void* gdk_pixbuf_rotate_simple void* long)
    341 (cfun void g_object_unref void*)
    342 (cfun cstr g_locale_to_utf8 cstr long null null null)
    343 (cfun cstr g_locale_from_utf8 cstr long null null null)
    344 (cfun void g_free void*)
    345 
    346 (cfun void glade_init)
    347 (cfun void* glade_xml_new (cstr filename) null null)
    348 #(cfun void glade_xml_signal_autoconnect (void* xml))
    349 (cfun void* glade_xml_get_widget (void* xml) (cstr name))
    350 #(cfun void glade_xml_signal_connect (void* xml) (cstr name) (lfun handler))
    351 #(cfun void glade_xml_signal_connect_data (void* xml) (cstr name) (lfun handler) (void* data))
    352 #(cfun void glade_xml_signal_connect_full (void* xml) (cstr name) (lfun handler) (void* data))
    353 (lfun void handler (cstr handlerName) (void* object) (cstr signalName) (cstr signalData) (void* connectObject) (bool after) (void* userData))
    354 (cfun void glade_xml_signal_autoconnect_full (void* xml) (lfun handler) (void* data))
    355 
    356 (cfun cstr glade_get_widget_name (void* widget))
    357 (cfun void* glade_get_widget_tree (void* widget))
    358 
    359 (lfun void signal)
    360 #(lfun void callbackMarshal (void* object) (void* data) (uint nargs) (void* args))
    361 (lfun void destroyNotify)
    362 #(cfun ulong gtk_signal_connect_full (void* object) (cstr name) (lfun signal) (lfun callbackMarshal) (void* data) (lfun destroyNotify) (int objectSignal) (int after))
    363 (cfun ulong gtk_signal_connect_full (void* object) (cstr name) (lfun signal) null (void* data) (lfun destroyNotify) (int objectSignal) (int after))
    364 
    365 (lfun void signal2 (void* data))
    366 (cfun void g_signal_connect (void* object) (cstr name) (lfun signal2) (void* data))