| Top |
void (*GOComponentSaxHandler) (GOComponent *component,gpointer user_data);
GOComponent *
go_component_duplicate (GOComponent const *component);
Duplicates the component.
GtkWindow *
go_component_edit (GOComponent *component);
Opens a top level window editor for the component if it can be edited.
gboolean go_component_export_image (GOComponent *component,GOImageFormat format,GsfOutput *output,double x_dpi,double y_dpi);
Exports an image of graph
in given format
, writing results in a GsfOutput stream.
If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and
graph
size (see
).gog_graph_get_size()
component |
||
format |
image format for export |
|
output |
a GsfOutput stream |
|
x_dpi |
x resolution of exported graph |
|
y_dpi |
y resolution of exported graph |
GOCmdContext *
go_component_get_command_context (GOComponent *component);
gboolean go_component_get_data (GOComponent *component,gpointer *data,int *length,GDestroyNotify *clearfunc,gpointer *user_data);
gboolean
go_component_get_inline (GOComponent *component);
Returns the in-line or not nature of the component.
void go_component_get_size (GOComponent *component,double *width,double *height);
void const * go_component_get_snapshot (GOComponent *component,GOSnapshotType *type,size_t *length);
Returns a snapshot is either svg or png format for the component.
gboolean
go_component_get_use_font_from_app (GOComponent *component);
Returns whether the component should use the font from the calling application or use its own font.
GOComponent *
go_component_new_by_mime_type (char const *mime_type);
void go_component_render (GOComponent *component,cairo_t *cr,double width,double height);
void go_component_sax_push_parser (GsfXMLIn *xin,xmlChar const **attrs,GOComponentSaxHandler handler,gpointer user_data);
Loads the component from the xml stream. handler
will be called when done.
void go_component_set_command_context (GOComponent *component,GOCmdContext *cc);
void go_component_set_data (GOComponent *component,char const *data,int length);
void
go_component_set_default_command_context
(GOCmdContext *cc);
void go_component_set_default_size (GOComponent *component,double width,double ascent,double descent);
gboolean go_component_set_font (GOComponent *component,PangoFontDescription const *desc);
Sets the font the component should use. Not all components will actually changed the font they use.
void go_component_set_inline (GOComponent *component,gboolean is_inline);
Sets the in-line or not nature of the component. Default is FALSE.
void go_component_set_size (GOComponent *component,double width,double height);
void go_component_set_window (GOComponent *component,GdkWindow *window);
void go_component_set_use_font_from_app (GOComponent *component,gboolean use_font_from_app);
Sets the source of the font that the component should use. Default is FALSE.
void go_component_write_xml_sax (GOComponent *component,GsfXMLOut *output);
typedef struct {
GObjectClass parent_class;
GtkWindow* (*edit) (GOComponent *component);
gboolean (*get_data) (GOComponent *component, gpointer *data, int *length,
GDestroyNotify *clearfunc, gpointer *user_data);
void (*mime_type_set) (GOComponent* component);
void (*set_data) (GOComponent *component);
void (*set_default_size) (GOComponent* component);
void (*set_size) (GOComponent *component);
void (*render) (GOComponent *component, cairo_t *cr,
double width, double height);
gboolean (*set_font) (GOComponent *component, PangoFontDescription const *desc);
} GOComponentClass;
The component base object class.
“ascent” property “ascent” gdouble
Component ascent.
Owner: GOComponent
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“descent” property “descent” gdouble
Component descent.
Owner: GOComponent
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“height” property “height” gdouble
Component height.
Owner: GOComponent
Flags: Read
Allowed values: >= 0
Default value: 0
“inline” property “inline” gboolean
Whether the component should be displayed in-line.
Owner: GOComponent
Flags: Read / Write
Default value: FALSE
“mime-type” property “mime-type” gchar *
mime type of the content of the component.
Owner: GOComponent
Flags: Read / Write / Construct Only
Default value: NULL
“changed” signalvoid user_function (GOComponent *gocomponent, gpointer user_data)
Flags: Run Last