Class: Gio::BytesIcon
- Inherits:
-
Object
- Object
- Gio::BytesIcon
- Defined in:
- lib/gio2/bytes-icon.rb
Overview
GBytesIcon specifies an image held in memory in a common format (usually
PNG) to be used as icon.
Instance Method Summary collapse
-
#bytes ⇒ GLib::Bytes
The bytes containing the icon.
-
#bytes=(bytes) ⇒ GLib::Bytes
The bytes containing the icon.
-
#initialize(bytes) ⇒ Gio::BytesIcon
constructor
Creates a new icon for a bytes.
-
#initialize_raw ⇒ Gio::BytesIcon
Creates a new icon for a bytes.
Constructor Details
#initialize(bytes) ⇒ Gio::BytesIcon
Creates a new icon for a bytes.
This cannot fail, but loading and interpreting the bytes may fail later on (for example, if g_loadable_icon_load() is called) if the image is invalid.
20 21 22 23 |
# File 'lib/gio2/bytes-icon.rb', line 20 def initialize(bytes) @bytes = bytes initialize_raw(@bytes) end |
Instance Method Details
#bytes ⇒ GLib::Bytes
The bytes containing the icon.
#bytes=(bytes) ⇒ GLib::Bytes
The bytes containing the icon.
#initialize_raw ⇒ Gio::BytesIcon
Creates a new icon for a bytes.
This cannot fail, but loading and interpreting the bytes may fail later on (for example, if g_loadable_icon_load() is called) if the image is invalid.
|
|
# File 'lib/gio2/bytes-icon.rb', line 19
|