![]() |
![]() |
![]() |
Goffice Reference Manual | ![]() |
---|---|---|---|---|
GOComponent; #define GO_COMPONENT_TYPE #define GO_COMPONENT (o) #define IS_GO_COMPONENT (o) #define GOC_PARAM_PERSISTENT GType go_component_get_type (void); GOComponent* go_component_new_by_mime_type (char const *mime_type); void go_component_set_default_size (GOComponent *component, double width, double ascent, double descent); gboolean go_component_needs_window (GOComponent *component); void go_component_set_window (GOComponent *component, GdkWindow *window); void go_component_set_data (GOComponent *component, char const *data, int length); gboolean go_component_get_data (GOComponent *component, gpointer *data, int *length, void (clearfuncgpointer data) (), gpointer *user_data); void go_component_set_size (GOComponent *component, double width, double height); gboolean go_component_is_resizable (GOComponent *component); gboolean go_component_is_editable (GOComponent *component); GtkWindow* go_component_edit (GOComponent *component); void go_component_emit_changed (GOComponent *component); void go_component_set_command_context (GOCmdContext *cc); GOCmdContext* go_component_get_command_context (void); void go_component_render (GOComponent *component, cairo_t *cr, double width, double height);
typedef struct { GObject parent; /*protected*/ char *mime_type; double width, ascent, descent, height; double default_width, default_ascent, default_descent; gboolean needs_window, resizable, editable; char const *data; int length; GdkWindow *window; } GOComponent;
#define GO_COMPONENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_COMPONENT_TYPE, GOComponent))
|
#define IS_GO_COMPONENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_COMPONENT_TYPE))
|
GOComponent* go_component_new_by_mime_type (char const *mime_type);
|
|
Returns : |
void go_component_set_default_size (GOComponent *component, double width, double ascent, double descent);
|
|
|
|
|
|
|
gboolean go_component_needs_window (GOComponent *component);
|
|
Returns : |
void go_component_set_window (GOComponent *component, GdkWindow *window);
|
|
|
void go_component_set_data (GOComponent *component, char const *data, int length);
|
|
|
|
|
gboolean go_component_get_data (GOComponent *component, gpointer *data, int *length, void (clearfuncgpointer data) (), gpointer *user_data);
|
|
|
|
|
|
|
|
|
|
Returns : |
void go_component_set_size (GOComponent *component, double width, double height);
|
|
|
|
|
gboolean go_component_is_resizable (GOComponent *component);
|
|
Returns : |
gboolean go_component_is_editable (GOComponent *component);
|
|
Returns : |
GOCmdContext* go_component_get_command_context (void);
Returns : |
void go_component_render (GOComponent *component, cairo_t *cr, double width, double height);
|
|
|
|
|
|
|