medit/moo/mooterm/mootermbuffer.h

62 lines
2.1 KiB
C
Raw Normal View History

2005-06-22 11:20:32 -07:00
/*
* mootermbuffer.h
2005-06-22 11:20:32 -07:00
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
2005-06-22 11:20:32 -07:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* See COPYING file that comes with this distribution.
2005-07-23 21:58:57 -07:00
*/
2005-06-22 11:20:32 -07:00
#ifndef __MOO_TERM_BUFFER_H__
#define __MOO_TERM_BUFFER_H__
2005-06-22 11:20:32 -07:00
#include <glib-object.h>
2005-06-22 11:20:32 -07:00
G_BEGIN_DECLS
#define MOO_TYPE_TERM_BUFFER (moo_term_buffer_get_type ())
#define MOO_TERM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOO_TYPE_TERM_BUFFER, MooTermBuffer))
#define MOO_TERM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_TERM_BUFFER, MooTermBufferClass))
#define MOO_IS_TERM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOO_TYPE_TERM_BUFFER))
#define MOO_IS_TERM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_TERM_BUFFER))
#define MOO_TERM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_TERM_BUFFER, MooTermBufferClass))
typedef struct _MooTermBuffer MooTermBuffer;
typedef struct _MooTermBufferPrivate MooTermBufferPrivate;
typedef struct _MooTermBufferClass MooTermBufferClass;
struct _MooTermBuffer {
GObject parent;
MooTermBufferPrivate *priv;
};
struct _MooTermBufferClass {
GObjectClass parent_class;
void (*full_reset) (MooTermBuffer *buf);
2005-06-22 11:20:32 -07:00
};
GType moo_term_buffer_get_type (void) G_GNUC_CONST;
MooTermBuffer *moo_term_buffer_new (guint width,
guint height);
2005-06-22 11:20:32 -07:00
/* chars must be valid utf8 */
void moo_term_buffer_print_chars (MooTermBuffer *buf,
const char *chars,
int len);
void moo_term_buffer_print_unichar (MooTermBuffer *buf,
gunichar c);
2005-06-22 11:20:32 -07:00
G_END_DECLS
#endif /* __MOO_TERM_BUFFER_H__ */