mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-20 03:51:18 +00:00
Replace glib types with primitive types
This help tolua++ to recognize them as native types and not as usertypes.
This commit is contained in:
parent
cf94f82c53
commit
04c7323cac
26
lua/rsvg.pkg
26
lua/rsvg.pkg
@ -61,8 +61,8 @@ typedef struct _RsvgPositionData RsvgPositionData;
|
|||||||
struct _RsvgDimensionData {
|
struct _RsvgDimensionData {
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
gdouble em;
|
double em;
|
||||||
gdouble ex;
|
double ex;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -81,9 +81,9 @@ void rsvg_handle_set_dpi (RsvgHandle * handle, double dpi);
|
|||||||
void rsvg_handle_set_dpi_x_y (RsvgHandle * handle, double dpi_x, double dpi_y);
|
void rsvg_handle_set_dpi_x_y (RsvgHandle * handle, double dpi_x, double dpi_y);
|
||||||
|
|
||||||
RsvgHandle *rsvg_handle_new (void);
|
RsvgHandle *rsvg_handle_new (void);
|
||||||
gboolean rsvg_handle_write (RsvgHandle * handle, const guchar * buf,
|
int rsvg_handle_write (RsvgHandle * handle, const unsigned char * buf,
|
||||||
gsize count, GError ** error);
|
unsigned long count, GError ** error);
|
||||||
gboolean rsvg_handle_close (RsvgHandle * handle, GError ** error);
|
int rsvg_handle_close (RsvgHandle * handle, GError ** error);
|
||||||
GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle * handle);
|
GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle * handle);
|
||||||
GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle * handle, const char *id);
|
GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle * handle, const char *id);
|
||||||
|
|
||||||
@ -92,17 +92,17 @@ void rsvg_handle_set_base_uri (RsvgHandle * handle, const char *base_uri
|
|||||||
|
|
||||||
void rsvg_handle_get_dimensions (RsvgHandle * handle, RsvgDimensionData * dimension_data);
|
void rsvg_handle_get_dimensions (RsvgHandle * handle, RsvgDimensionData * dimension_data);
|
||||||
|
|
||||||
gboolean rsvg_handle_get_dimensions_sub (RsvgHandle * handle, RsvgDimensionData * dimension_data, const char *id);
|
int rsvg_handle_get_dimensions_sub (RsvgHandle * handle, RsvgDimensionData * dimension_data, const char *id);
|
||||||
gboolean rsvg_handle_get_position_sub (RsvgHandle * handle, RsvgPositionData * position_data, const char *id);
|
int rsvg_handle_get_position_sub (RsvgHandle * handle, RsvgPositionData * position_data, const char *id);
|
||||||
|
|
||||||
gboolean rsvg_handle_has_sub (RsvgHandle * handle, const char *id);
|
int rsvg_handle_has_sub (RsvgHandle * handle, const char *id);
|
||||||
|
|
||||||
RsvgHandle *rsvg_handle_new_with_flags (RsvgHandleFlags flags);
|
RsvgHandle *rsvg_handle_new_with_flags (RsvgHandleFlags flags);
|
||||||
|
|
||||||
void rsvg_handle_set_base_gfile (RsvgHandle *handle,
|
void rsvg_handle_set_base_gfile (RsvgHandle *handle,
|
||||||
GFile *base_file);
|
GFile *base_file);
|
||||||
|
|
||||||
gboolean rsvg_handle_read_stream_sync (RsvgHandle *handle,
|
int rsvg_handle_read_stream_sync (RsvgHandle *handle,
|
||||||
GInputStream *stream,
|
GInputStream *stream,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
@ -118,11 +118,11 @@ RsvgHandle *rsvg_handle_new_from_stream_sync (GInputStream *input_stream,
|
|||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
RsvgHandle *rsvg_handle_new_from_data (const guint8 * data, gsize data_len, GError ** error);
|
RsvgHandle *rsvg_handle_new_from_data (const unsigned char * data, unsigned long data_len, GError ** error);
|
||||||
RsvgHandle *rsvg_handle_new_from_file (const gchar * file_name, GError ** error);
|
RsvgHandle *rsvg_handle_new_from_file (const char * file_name, GError ** error);
|
||||||
|
|
||||||
gboolean rsvg_handle_render_cairo (RsvgHandle * handle, cairo_t * cr);
|
int rsvg_handle_render_cairo (RsvgHandle * handle, cairo_t * cr);
|
||||||
gboolean rsvg_handle_render_cairo_sub (RsvgHandle * handle, cairo_t * cr, const char *id);
|
int rsvg_handle_render_cairo_sub (RsvgHandle * handle, cairo_t * cr, const char *id);
|
||||||
|
|
||||||
void g_type_init(void);
|
void g_type_init(void);
|
||||||
void g_object_unref(gpointer object);
|
void g_object_unref(gpointer object);
|
||||||
|
Loading…
Reference in New Issue
Block a user