Re: [Gimp-developer] Tool API [LONG!]

2003-04-03 Thread Sven Neumann
Hi,

Nathan Carl Summers <[EMAIL PROTECTED]> writes:

> Here is a list of all the symbols currently used by the current tools,
> courtesy of
> nm tools/*.o paint/*.o | cut -b 10- | grep ^T | cut -b 3- | sort | uniq

this list clearly shows that tools use almost everything in the core
API (if we can call this an API at all). Is that what you wanted to
prove?


Salut, Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


RE: [Gimp-developer] Tool API [LONG!]

2003-04-03 Thread Austin Donnelly
> [...] "the_gimp" should not be
> accessed directly, and tile_manager is probably too ugly for tool
> developers with weak stomachs.

Not clear; iscissors uses a custom tile manager which supplies tiles
containing gradient/direction information.  This way, the expensive
calculation of this info is delayed until it is actually needed by the
selection-boundary walking code (we don't know ahead of time where the
boundary is, but we can guess that it's not going to include every tile in
the image).

Austin


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


[Gimp-developer] Tool API [LONG!]

2003-04-02 Thread Nathan Carl Summers
Here is a list of all the symbols currently used by the current tools,
courtesy of
nm tools/*.o paint/*.o | cut -b 10- | grep ^T | cut -b 3- | sort | uniq

stdlib, glib, gdk, pango, and gtk calls have been eliminated from this
list.

The big things that stand out are accessing the global "the_gimp", and
calling tile and tile manager functions.  "the_gimp" should not be
accessed directly, and tile_manager is probably too ugly for tool
developers with weak stomachs.

Rockwalrus


active_color
add_alpha_region
apply_mask_to_region
blend_region
brightness_contrast_lut_setup
brush_scale_mask
brush_scale_pixmap
color_balance
color_balance_create_lookup_tables
color_balance_init
color_balance_range_reset
color_pixels
color_region
combine_mask_and_region
convolve_region
copy_region
curves_calculate_curve
curves_channel_reset
curves_init
curves_lut_func
find_mask_boundary
floating_sel_anchor
floating_sel_relax
floating_sel_rigor
gdisplays_check_valid
gimp_base_config_get_type
gimp_bezier_stroke_extend
gimp_bezier_stroke_get_type
gimp_bezier_stroke_new
gimp_brush_get_spacing
gimp_brush_get_type
gimp_brush_select_brush
gimp_brush_want_null_motion
gimp_bucket_fill_mode_get_type
gimp_channel_add_segment
gimp_channel_invalidate_bounds
gimp_channel_new_mask
gimp_channel_ops_get_type
gimp_channel_value
gimp_color_area_get_type
gimp_color_area_new
gimp_color_area_set_color
gimp_color_panel_get_type
gimp_color_panel_set_context
gimp_config_connect
gimp_config_copy_properties
gimp_config_deserialize
gimp_config_disconnect
gimp_config_duplicate
gimp_config_reset
gimp_config_serialize
gimp_container_add
gimp_container_add_handler
gimp_container_get_child_by_name
gimp_container_remove_handler
gimp_container_thaw
gimp_context_copy_properties
gimp_context_define_properties
gimp_context_get_brush
gimp_context_get_display
gimp_context_get_gradient
gimp_context_get_opacity
gimp_context_get_paint_mode
gimp_context_get_pattern
gimp_context_get_tool
gimp_context_get_type
gimp_context_new
gimp_context_set_background
gimp_context_set_display
gimp_context_set_foreground
gimp_context_set_parent
gimp_context_set_tool
gimp_context_tool_changed
gimp_crop_type_get_type
gimp_cursor_new
gimp_devices_get_current
gimp_dialog_create_action_area
gimp_dialog_factory_dialog_raise
gimp_dialog_get_type
gimp_directory
gimp_display_config_get_type
gimp_display_coords_in_active_drawable
gimp_display_flush
gimp_display_flush_now
gimp_display_get_type
gimp_display_shell_draw_guide
gimp_display_shell_get_type
gimp_display_shell_scale_by_values
gimp_display_shell_selection_visibility
gimp_display_shell_set_cursor
gimp_display_shell_set_override_cursor
gimp_display_shell_transform_xy
gimp_display_shell_transform_xy_f
gimp_display_shell_unset_override_cursor
gimp_display_shell_untransform_xy
gimp_dock_get_type
gimp_double_adjustment_update
gimp_drawable_blend
gimp_drawable_bucket_fill
gimp_drawable_bytes
gimp_drawable_calculate_histogram
gimp_drawable_data
gimp_drawable_get_color_at
gimp_drawable_get_type
gimp_drawable_has_alpha
gimp_drawable_height
gimp_drawable_is_indexed
gimp_drawable_is_rgb
gimp_drawable_mask_bounds
gimp_drawable_offsets
gimp_drawable_push_undo
gimp_drawable_transform_cut
gimp_drawable_transform_matrix_perspective
gimp_drawable_transform_matrix_rotate_center
gimp_drawable_transform_matrix_scale
gimp_drawable_transform_matrix_shear
gimp_drawable_transform_paste
gimp_drawable_transform_tiles_affine
gimp_drawable_transform_tiles_flip
gimp_drawable_type
gimp_drawable_width
gimp_enum_option_menu_new
gimp_enum_radio_frame_new
gimp_get_current_context
gimp_get_mod_name_alt
gimp_get_mod_name_control
gimp_get_type
gimp_get_user_context
gimp_gradient_get_color_at
gimp_gradient_type_get_type
gimp_gui_config_get_type
gimp_help_connect
gimp_help_set_help_data
gimp_histogram_box_get_type
gimp_histogram_box_new
gimp_histogram_calculate
gimp_histogram_channel_get_type
gimp_histogram_free
gimp_histogram_get_count
gimp_histogram_get_mean
gimp_histogram_get_median
gimp_histogram_get_std_dev
gimp_histogram_nchannels
gimp_histogram_new
gimp_histogram_view_get_channel
gimp_histogram_view_get_type
gimp_histogram_view_new
gimp_histogram_view_set_channel
gimp_histogram_view_set_histogram
gimp_histogram_view_set_range
gimp_hls_to_rgb_int
gimp_image_active_drawable
gimp_image_add_guide
gimp_image_add_hguide
gimp_image_add_layer
gimp_image_add_vectors
gimp_image_add_vguide
gimp_image_apply_image
gimp_image_contiguous_region_by_seed
gimp_image_crop
gimp_image_crop_auto_shrink
gimp_image_delete_guide
gimp_image_find_guide
gimp_image_floating_sel
gimp_image_flush
gimp_image_get_active_layer
gimp_image_get_background
gimp_image_get_color
gimp_image_get_foreground
gimp_image_get_type
gimp_image_map_abort
gimp_image_map_apply
gimp_image_map_clear
gimp_image_map_commit
gimp_image_map_get_color_at
gimp_image_map_new
gimp_image_mask_boundary
gimp_image_mask_bounds
gimp_image_mask_clear
gimp_image_mask_float
gimp_image_mask_is_empty
gimp_image_mask_select_by_color
gimp_image_mas