mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-20 03:51:18 +00:00
Functions for creating and accessing Dimension/Position structs
This commit is contained in:
parent
32c60685ba
commit
dee71f4eb2
@ -26,6 +26,7 @@
|
|||||||
#define _LIBRSVG_HELPER_H_
|
#define _LIBRSVG_HELPER_H_
|
||||||
|
|
||||||
#include <glib>
|
#include <glib>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <librsvg/rsvg.h>
|
#include <librsvg/rsvg.h>
|
||||||
|
|
||||||
RsvgDimensionData *
|
RsvgDimensionData *
|
||||||
|
@ -61,6 +61,8 @@ typedef struct _RsvgDimensionData {
|
|||||||
int height;
|
int height;
|
||||||
double em;
|
double em;
|
||||||
double ex;
|
double ex;
|
||||||
|
static tolua_outside RsvgDimensionData * rsvgDimensionDataCreate @ create();
|
||||||
|
tolua_outside rsvgDimensionDataGet @ get(int width, int height, double em, double ex);
|
||||||
} RsvgDimensionData;
|
} RsvgDimensionData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -70,6 +72,8 @@ typedef struct _RsvgDimensionData {
|
|||||||
typedef struct _RsvgPositionData {
|
typedef struct _RsvgPositionData {
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
|
static tolua_outside RsvgPositionData * rsvgPositionDataCreate @ create();
|
||||||
|
tolua_outside rsvgPositionDataGet @ get(int x, int y);
|
||||||
} RsvgPositionData;
|
} RsvgPositionData;
|
||||||
|
|
||||||
RsvgHandle *rsvg_handle_new (void);
|
RsvgHandle *rsvg_handle_new (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user