set_raw_coordinates


Description:

[ Version ( deprecated = true , deprecated_since = "3.14" , since = "2.4" ) ]
public void set_raw_coordinates (bool raw_coordinates)

Warning: set_raw_coordinates is deprecated since 3.14.

Sets whether the coordinates returned by get_embedded_rect and get_attach_points should be returned in their original form as specified in the icon theme, instead of scaled appropriately for the pixbuf returned by load_icon.

Note:

Embedded rectangles and attachment points are deprecated

Raw coordinates are somewhat strange; they are specified to be with respect to the unscaled pixmap for PNG and XPM icons, but for SVG icons, they are in a 1000x1000 coordinate space that is scaled to the final size of the icon. You can determine if the icon is an SVG icon by using get_filename, and seeing if it is non- null and ends in “.svg”.

This function is provided primarily to allow compatibility wrappers for older API's, and is not expected to be useful for applications.

Parameters:

this

a IconInfo

raw_coordinates

whether the coordinates of embedded rectangles and attached points should be returned in their original (unscaled) form.




2022 vala-language.org