view gtk/plugins/perl/common/GtkIMHtml.xs @ 14438:01915dd6ff85

[gaim-migrate @ 17152] I'm not sure how I put these in the wrong place to being with, but this is where they belong. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 04 Sep 2006 04:08:07 +0000
parents eeca8be382a5
children d6eae5115b31
line wrap: on
line source

#include "gtkmodule.h"

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
Gtk::Widget
gtk_imhtml_new(a, b)
*/

/* This can't work at the moment since I don't have a typemap for
 * Gtk::TextIter.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
void
gtk_imhtml_insert_html_at_iter(imhtml, text, options, iter)
	Gaim::Gtk::IMHtml imhtml
	const gchar * text
	Gaim::Gtk::IMHtml::Options options
	Gtk::TextIter iter
*/

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
void
gtk_imhtml_delete(imhtml, start, end)
	Gaim::Gtk::IMHtml imhtml
	Gtk::TextIter start
	Gtk::TextIter end
*/

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
void
gtk_imhtml_insert_link(imhtml, mark, url, text)
	Gaim::Gtk::IMHtml imhtml
	Gtk::TextMark mark
	const char * url
	const char * text
*/

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
void
gtk_imhtml_insert_smiley_at_iter(imhtml, sml, smiley, iter)
	Gaim::Gtk::IMHtml imhtml
	const char * sml
	char * smiley
	Gtk::TextIter iter

void
gtk_imhtml_insert_image_at_iter(imhtml, id, iter)
	Gaim::Gtk::IMHtml imhtml
	int id
	Gtk::TextIter iter
*/

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
char *
gtk_imhtml_get_markup_range(imhtml, start, end)
	Gaim::Gtk::IMHtml imhtml
	Gtk::TextIter start
	Gtk::TextIter end
*/

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
char *
gtk_imhtml_get_text(imhtml, start, end)
	Gaim::Gtk::IMHtml imhtml
	Gtk::TextIter start
	Gtk::TextIter end
*/

/* This can't work at the moment since I don't have a typemap for Gdk::Pixbuf.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
Gaim::Gtk::IMHtml::Scalable
gtk_imhtml_image_new(img, filename, id)
	Gdk::Pixbuf img
	const gchar * filename
	int id
*/

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
void
gtk_imhtml_image_add_to(scale, imhtml, iter)
	Gaim::Gtk::IMHtml::Scalable scale
	Gaim::Gtk::IMHtml imhtml
	Gtk::TextIter iter
*/

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
void
gtk_imhtml_hr_add_to(scale, imhtml, iter)
	Gaim::Gtk::IMHtml::Scalable scale
	Gaim::Gtk::IMHtml imhtml
	Gtk::TextIter iter
*/

/* This can't work at the moment since I don't have a typemap for gboolean *.
void
gtk_imhtml_get_current_format(imhtml, bold, italic, underline)
	Gaim::Gtk::IMHtml imhtml
	gboolean * bold
	gboolean * italic
	gboolean * underline
*/

MODULE = Gaim::Gtk::IMHtml  PACKAGE = Gaim::Gtk::IMHtml  PREFIX = gtk_imhtml_
PROTOTYPES: ENABLE

Gaim::Gtk::IMHtml::Smiley
gtk_imhtml_smiley_get(imhtml, sml, text)
	Gaim::Gtk::IMHtml imhtml
	const gchar * sml
	const gchar * text

void
gtk_imhtml_associate_smiley(imhtml, sml, smiley)
	Gaim::Gtk::IMHtml imhtml
	const gchar * sml
	Gaim::Gtk::IMHtml::Smiley smiley

void
gtk_imhtml_remove_smileys(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_set_funcs(imhtml, f)
	Gaim::Gtk::IMHtml imhtml
	Gaim::Gtk::IMHtml::Funcs f

void
gtk_imhtml_show_comments(imhtml, show)
	Gaim::Gtk::IMHtml imhtml
	gboolean show

const char *
gtk_imhtml_get_protocol_name(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_set_protocol_name(imhtml, protocol_name)
	Gaim::Gtk::IMHtml imhtml
	const gchar * protocol_name

void
gtk_imhtml_append_text(imhtml, text, options)
	Gaim::Gtk::IMHtml imhtml
	const gchar * text
	Gaim::Gtk::IMHtml::Options options

void
gtk_imhtml_append_text_with_images(imhtml, text, options, unused = NULL)
	Gaim::Gtk::IMHtml imhtml
	const gchar * text
	Gaim::Gtk::IMHtml::Options options
	SV *unused
PREINIT:
	GSList *t_GL;
	int i, t_len;
PPCODE:
	t_GL = NULL;
	t_len = av_len((AV *)SvRV(unused));

	for (i = 0; i < t_len; i++) {
		STRLEN t_sl;
		t_GL = g_slist_append(t_GL, SvPV(*av_fetch((AV *)SvRV(unused), i, 0), t_sl));
	}
	gtk_imhtml_append_text_with_images(imhtml, text, options, t_GL);

void
gtk_imhtml_scroll_to_end(imhtml, smooth)
	Gaim::Gtk::IMHtml imhtml
	gboolean smooth

void
gtk_imhtml_clear(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_page_up(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_page_down(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_set_editable(imhtml, editable)
	Gaim::Gtk::IMHtml imhtml
	gboolean editable

void
gtk_imhtml_set_whole_buffer_formatting_only(imhtml, wbo)
	Gaim::Gtk::IMHtml imhtml
	gboolean wbo

void
gtk_imhtml_set_format_functions(imhtml, buttons)
	Gaim::Gtk::IMHtml imhtml
	Gaim::Gtk::IMHtml::Buttons buttons

Gaim::Gtk::IMHtml::Buttons
gtk_imhtml_get_format_functions(imhtml)
	Gaim::Gtk::IMHtml imhtml

char *
gtk_imhtml_get_current_fontface(imhtml)
	Gaim::Gtk::IMHtml imhtml

char *
gtk_imhtml_get_current_forecolor(imhtml)
	Gaim::Gtk::IMHtml imhtml

char *
gtk_imhtml_get_current_backcolor(imhtml)
	Gaim::Gtk::IMHtml imhtml

char *
gtk_imhtml_get_current_background(imhtml)
	Gaim::Gtk::IMHtml imhtml

gint
gtk_imhtml_get_current_fontsize(imhtml)
	Gaim::Gtk::IMHtml imhtml

gboolean
gtk_imhtml_get_editable(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_clear_formatting(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_toggle_bold(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_toggle_italic(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_toggle_underline(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_toggle_strike(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_toggle_forecolor(imhtml, color)
	Gaim::Gtk::IMHtml imhtml
	const char * color

void
gtk_imhtml_toggle_backcolor(imhtml, color)
	Gaim::Gtk::IMHtml imhtml
	const char * color

void
gtk_imhtml_toggle_background(imhtml, color)
	Gaim::Gtk::IMHtml imhtml
	const char * color

void
gtk_imhtml_toggle_fontface(imhtml, face)
	Gaim::Gtk::IMHtml imhtml
	const char * face

void
gtk_imhtml_toggle_link(imhtml, url)
	Gaim::Gtk::IMHtml imhtml
	const char * url

void
gtk_imhtml_insert_smiley(imhtml, sml, smiley)
	Gaim::Gtk::IMHtml imhtml
	const char * sml
	char * smiley

void
gtk_imhtml_font_set_size(imhtml, size)
	Gaim::Gtk::IMHtml imhtml
	gint size

void
gtk_imhtml_font_shrink(imhtml)
	Gaim::Gtk::IMHtml imhtml

void
gtk_imhtml_font_grow(imhtml)
	Gaim::Gtk::IMHtml imhtml

char *
gtk_imhtml_get_markup(imhtml)
	Gaim::Gtk::IMHtml imhtml

char **
gtk_imhtml_get_markup_lines(imhtml)
	Gaim::Gtk::IMHtml imhtml

MODULE = Gaim::Gtk::IMHtml  PACKAGE = Gaim::Gtk::IMHtml::Scalable  PREFIX = gtk_imhtml_image_
PROTOTYPES: ENABLE

void
gtk_imhtml_image_free(scale)
	Gaim::Gtk::IMHtml::Scalable scale

void
gtk_imhtml_image_scale(scale, width, height)
	Gaim::Gtk::IMHtml::Scalable scale
	int width
	int height

MODULE = Gaim::Gtk::IMHtml  PACKAGE = Gaim::Gtk::IMHtml::Hr  PREFIX = gtk_imhtml_hr_
PROTOTYPES: ENABLE

Gaim::Gtk::IMHtml::Scalable
gtk_imhtml_hr_new()

void
gtk_imhtml_hr_free(scale)
	Gaim::Gtk::IMHtml::Scalable scale

void
gtk_imhtml_hr_scale(scale, width, height)
	Gaim::Gtk::IMHtml::Scalable scale
	int width
	int height

MODULE = Gaim::Gtk::IMHtml  PACKAGE = Gaim::Gtk::IMHtml::Search  PREFIX = gtk_imhtml_search_
PROTOTYPES: ENABLE

gboolean
gtk_imhtml_search_find(imhtml, text)
	Gaim::Gtk::IMHtml imhtml
	const gchar * text

void
gtk_imhtml_search_clear(imhtml)
	Gaim::Gtk::IMHtml imhtml