diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-21 11:49:13 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-07-21 13:26:40 -0700 |
commit | 45ebe47d944d0168c90fa826e74f9a51c63c7be5 (patch) | |
tree | 3ce5c82a9f8a8fd450b33f632a0028437575713f | |
parent | 2803bd93ce605970708cb519d662ef62b25bfc59 (diff) | |
download | gtk+-45ebe47d944d0168c90fa826e74f9a51c63c7be5.tar.gz |
textview: Stop exporting private apis
These headers are no longer 'semi-public, but private
and uninstalled, so exporting these functions does
not do any good.
-rw-r--r-- | gtk/gtktextlayoutprivate.h | 70 | ||||
-rw-r--r-- | gtk/gtktextsegment.h | 1 |
2 files changed, 1 insertions, 70 deletions
diff --git a/gtk/gtktextlayoutprivate.h b/gtk/gtktextlayoutprivate.h index ee7c5759b4..4a44731373 100644 --- a/gtk/gtktextlayoutprivate.h +++ b/gtk/gtktextlayoutprivate.h @@ -246,215 +246,147 @@ struct _GtkTextLineDisplay extern G_GNUC_INTERNAL PangoAttrType gtk_text_attr_appearance_type; #endif -GDK_AVAILABLE_IN_ALL GType gtk_text_layout_get_type (void) G_GNUC_CONST; -GDK_AVAILABLE_IN_ALL GtkTextLayout* gtk_text_layout_new (void); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_buffer (GtkTextLayout *layout, GtkTextBuffer *buffer); -GDK_AVAILABLE_IN_ALL GtkTextBuffer *gtk_text_layout_get_buffer (GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_default_style (GtkTextLayout *layout, GtkTextAttributes *values); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_contexts (GtkTextLayout *layout, PangoContext *ltr_context, PangoContext *rtl_context); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_cursor_direction (GtkTextLayout *layout, GtkTextDirection direction); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_overwrite_mode (GtkTextLayout *layout, gboolean overwrite); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_keyboard_direction (GtkTextLayout *layout, GtkTextDirection keyboard_dir); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_default_style_changed (GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_screen_width (GtkTextLayout *layout, gint width); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_preedit_string (GtkTextLayout *layout, const gchar *preedit_string, PangoAttrList *preedit_attrs, gint cursor_pos); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_set_cursor_visible (GtkTextLayout *layout, gboolean cursor_visible); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_get_cursor_visible (GtkTextLayout *layout); -/* Getting the size or the lines potentially results in a call to - * recompute, which is pretty massively expensive. Thus it should - * basically only be done in an idle handler. - * - * Long-term, we would really like to be able to do these without - * a full recompute so they may get cheaper over time. - */ -GDK_AVAILABLE_IN_ALL void gtk_text_layout_get_size (GtkTextLayout *layout, gint *width, gint *height); -GDK_AVAILABLE_IN_ALL GSList* gtk_text_layout_get_lines (GtkTextLayout *layout, - /* [top_y, bottom_y) */ gint top_y, gint bottom_y, gint *first_line_y); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_wrap_loop_start (GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_wrap_loop_end (GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL GtkTextLineDisplay* gtk_text_layout_get_line_display (GtkTextLayout *layout, GtkTextLine *line, gboolean size_only); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_free_line_display (GtkTextLayout *layout, GtkTextLineDisplay *display); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_get_line_at_y (GtkTextLayout *layout, GtkTextIter *target_iter, gint y, gint *line_top); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_get_iter_at_pixel (GtkTextLayout *layout, GtkTextIter *iter, gint x, gint y); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_get_iter_at_position (GtkTextLayout *layout, GtkTextIter *iter, gint *trailing, gint x, gint y); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_invalidate (GtkTextLayout *layout, const GtkTextIter *start, const GtkTextIter *end); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_invalidate_cursors(GtkTextLayout *layout, const GtkTextIter *start, const GtkTextIter *end); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_free_line_data (GtkTextLayout *layout, GtkTextLine *line, GtkTextLineData *line_data); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_is_valid (GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_validate_yrange (GtkTextLayout *layout, GtkTextIter *anchor_line, gint y0_, gint y1_); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_validate (GtkTextLayout *layout, gint max_pixels); -/* This function should return the passed-in line data, - * OR remove the existing line data from the line, and - * return a NEW line data after adding it to the line. - * That is, invariant after calling the callback is that - * there should be exactly one line data for this view - * stored on the btree line. - */ -GDK_AVAILABLE_IN_ALL GtkTextLineData* gtk_text_layout_wrap (GtkTextLayout *layout, GtkTextLine *line, - GtkTextLineData *line_data); /* may be NULL */ -GDK_AVAILABLE_IN_ALL + GtkTextLineData *line_data); void gtk_text_layout_changed (GtkTextLayout *layout, gint y, gint old_height, gint new_height); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_cursors_changed (GtkTextLayout *layout, gint y, gint old_height, gint new_height); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_get_iter_location (GtkTextLayout *layout, const GtkTextIter *iter, GdkRectangle *rect); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_get_line_yrange (GtkTextLayout *layout, const GtkTextIter *iter, gint *y, gint *height); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_get_cursor_locations (GtkTextLayout *layout, GtkTextIter *iter, GdkRectangle *strong_pos, GdkRectangle *weak_pos); gboolean _gtk_text_layout_get_block_cursor (GtkTextLayout *layout, GdkRectangle *pos); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_clamp_iter_to_vrange (GtkTextLayout *layout, GtkTextIter *iter, gint top, gint bottom); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_move_iter_to_line_end (GtkTextLayout *layout, GtkTextIter *iter, gint direction); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout, GtkTextIter *iter); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_move_iter_to_next_line (GtkTextLayout *layout, GtkTextIter *iter); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_move_iter_to_x (GtkTextLayout *layout, GtkTextIter *iter, gint x); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_move_iter_visually (GtkTextLayout *layout, GtkTextIter *iter, gint count); -GDK_AVAILABLE_IN_ALL gboolean gtk_text_layout_iter_starts_line (GtkTextLayout *layout, const GtkTextIter *iter); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_get_iter_at_line (GtkTextLayout *layout, GtkTextIter *iter, GtkTextLine *line, gint byte_offset); -/* Don't use these. Use gtk_text_view_add_child_at_anchor(). - * These functions are defined in gtktextchild.c, but here - * since they are semi-public and require GtkTextLayout to - * be declared. - */ -GDK_AVAILABLE_IN_ALL void gtk_text_child_anchor_register_child (GtkTextChildAnchor *anchor, GtkWidget *child, GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL void gtk_text_child_anchor_unregister_child (GtkTextChildAnchor *anchor, GtkWidget *child); -GDK_AVAILABLE_IN_ALL void gtk_text_child_anchor_queue_resize (GtkTextChildAnchor *anchor, GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL void gtk_text_anchored_child_set_layout (GtkWidget *child, GtkTextLayout *layout); -GDK_AVAILABLE_IN_ALL void gtk_text_layout_spew (GtkTextLayout *layout); G_END_DECLS diff --git a/gtk/gtktextsegment.h b/gtk/gtktextsegment.h index 039d96e348..690edba4fe 100644 --- a/gtk/gtktextsegment.h +++ b/gtk/gtktextsegment.h @@ -150,7 +150,6 @@ struct _GtkTextLineSegment { }; -GDK_AVAILABLE_IN_ALL GtkTextLineSegment *gtk_text_line_segment_split (const GtkTextIter *iter); GtkTextLineSegment *_gtk_char_segment_new (const gchar *text, |