Packages
appstream
AppStream
Icon
Icon
get_filename
get_height
get_kind
get_name
get_scale
get_url
get_width
set_filename
set_height
set_kind
set_name
set_scale
set_url
set_width
Icon
Object Hierarchy:
AppStream.Icon
AppStream.Icon
AppStream.Icon
GLib.Object
GLib.Object
GLib.Object->AppStream.Icon
Description:
[
CCode
( type_id =
"as_icon_get_type ()"
) ]
public
class
Icon
:
Object
Namespace:
AppStream
Package:
appstream
Content:
Creation methods:
public
Icon
()
Creates a new
Icon
.
Methods:
public
unowned
string
get_filename
()
public
uint
get_height
()
public
IconKind
get_kind
()
Gets the icon kind.
public
unowned
string
get_name
()
public
uint
get_scale
()
public
unowned
string
get_url
()
Gets the icon URL, pointing at a remote location.
public
uint
get_width
()
public
void
set_filename
(
string
filename)
Sets the icon absolute filename.
public
void
set_height
(
uint
height)
Sets the icon height.
public
void
set_kind
(
IconKind
kind)
Sets the icon kind.
public
void
set_name
(
string
name)
Sets the stock name or basename to use for the icon.
public
void
set_scale
(
uint
scale)
Sets the icon scaling factor used for HiDPI displays.
public
void
set_url
(
string
url)
Sets the icon URL.
public
void
set_width
(
uint
width)
Sets the icon width.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref