Top |
GtkPageSetup *
gtk_page_setup_new (void
);
Creates a new GtkPageSetup.
Since: 2.10
GtkPageSetup *
gtk_page_setup_copy (GtkPageSetup *other
);
Copies a GtkPageSetup.
Since: 2.10
GtkPageOrientation
gtk_page_setup_get_orientation (GtkPageSetup *setup
);
Gets the page orientation of the GtkPageSetup.
Since: 2.10
void gtk_page_setup_set_orientation (GtkPageSetup *setup
,GtkPageOrientation orientation
);
Sets the page orientation of the GtkPageSetup.
Since: 2.10
GtkPaperSize *
gtk_page_setup_get_paper_size (GtkPageSetup *setup
);
Gets the paper size of the GtkPageSetup.
Since: 2.10
void gtk_page_setup_set_paper_size (GtkPageSetup *setup
,GtkPaperSize *size
);
Sets the paper size of the GtkPageSetup without
changing the margins. See
gtk_page_setup_set_paper_size_and_default_margins()
.
Since: 2.10
gdouble gtk_page_setup_get_top_margin (GtkPageSetup *setup
,GtkUnit unit
);
Gets the top margin in units of unit
.
Since: 2.10
void gtk_page_setup_set_top_margin (GtkPageSetup *setup
,gdouble margin
,GtkUnit unit
);
Sets the top margin of the GtkPageSetup.
Since: 2.10
gdouble gtk_page_setup_get_bottom_margin (GtkPageSetup *setup
,GtkUnit unit
);
Gets the bottom margin in units of unit
.
Since: 2.10
void gtk_page_setup_set_bottom_margin (GtkPageSetup *setup
,gdouble margin
,GtkUnit unit
);
Sets the bottom margin of the GtkPageSetup.
Since: 2.10
gdouble gtk_page_setup_get_left_margin (GtkPageSetup *setup
,GtkUnit unit
);
Gets the left margin in units of unit
.
Since: 2.10
void gtk_page_setup_set_left_margin (GtkPageSetup *setup
,gdouble margin
,GtkUnit unit
);
Sets the left margin of the GtkPageSetup.
Since: 2.10
gdouble gtk_page_setup_get_right_margin (GtkPageSetup *setup
,GtkUnit unit
);
Gets the right margin in units of unit
.
Since: 2.10
void gtk_page_setup_set_right_margin (GtkPageSetup *setup
,gdouble margin
,GtkUnit unit
);
Sets the right margin of the GtkPageSetup.
Since: 2.10
void gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup *setup
,GtkPaperSize *size
);
Sets the paper size of the GtkPageSetup and modifies the margins according to the new paper size.
Since: 2.10
gdouble gtk_page_setup_get_paper_width (GtkPageSetup *setup
,GtkUnit unit
);
Returns the paper width in units of unit
.
Note that this function takes orientation, but
not margins into consideration.
See gtk_page_setup_get_page_width()
.
Since: 2.10
gdouble gtk_page_setup_get_paper_height (GtkPageSetup *setup
,GtkUnit unit
);
Returns the paper height in units of unit
.
Note that this function takes orientation, but
not margins into consideration.
See gtk_page_setup_get_page_height()
.
Since: 2.10
gdouble gtk_page_setup_get_page_width (GtkPageSetup *setup
,GtkUnit unit
);
Returns the page width in units of unit
.
Note that this function takes orientation and
margins into consideration.
See gtk_page_setup_get_paper_width()
.
Since: 2.10
gdouble gtk_page_setup_get_page_height (GtkPageSetup *setup
,GtkUnit unit
);
Returns the page height in units of unit
.
Note that this function takes orientation and
margins into consideration.
See gtk_page_setup_get_paper_height()
.
Since: 2.10
GtkPageSetup * gtk_page_setup_new_from_file (const gchar *file_name
,GError **error
);
Reads the page setup from the file file_name
. Returns a
new GtkPageSetup object with the restored page setup,
or NULL
if an error occurred. See gtk_page_setup_to_file()
.
file_name |
the filename to read the page setup from |
|
error |
return location for an error, or |
[allow-none] |
Since: 2.12
GtkPageSetup * gtk_page_setup_new_from_key_file (GKeyFile *key_file
,const gchar *group_name
,GError **error
);
Reads the page setup from the group group_name
in the key file
key_file
. Returns a new GtkPageSetup object with the restored
page setup, or NULL
if an error occurred.
key_file |
the GKeyFile to retrieve the page_setup from |
|
group_name |
the name of the group in the key_file to read, or |
[allow-none] |
error |
return location for an error, or |
[allow-none] |
Since: 2.12
gboolean gtk_page_setup_load_file (GtkPageSetup *setup
,const char *file_name
,GError **error
);
Reads the page setup from the file file_name
.
See gtk_page_setup_to_file()
.
setup |
||
file_name |
the filename to read the page setup from |
|
error |
return location for an error, or |
[allow-none] |
Since: 2.14
gboolean gtk_page_setup_load_key_file (GtkPageSetup *setup
,GKeyFile *key_file
,const gchar *group_name
,GError **error
);
Reads the page setup from the group group_name
in the key file
key_file
.
setup |
||
key_file |
the GKeyFile to retrieve the page_setup from |
|
group_name |
the name of the group in the key_file to read, or |
[allow-none] |
error |
return location for an error, or |
[allow-none] |
Since: 2.14
gboolean gtk_page_setup_to_file (GtkPageSetup *setup
,const char *file_name
,GError **error
);
This function saves the information from setup
to file_name
.
setup |
||
file_name |
the file to save to |
|
error |
return location for errors, or |
[allow-none] |
Since: 2.12
void gtk_page_setup_to_key_file (GtkPageSetup *setup
,GKeyFile *key_file
,const gchar *group_name
);
This function adds the page setup from setup
to key_file
.
setup |
||
key_file |
the GKeyFile to save the page setup to |
|
group_name |
the group to add the settings to in |
Since: 2.12