Class: Exerb::Win32::Struct::IconImageHeader
- Defined in:
- lib/exerb/win32/struct/icon_dir_entry.rb
Overview
#
Constant Summary collapse
- FORMAT =
'LllSSLLllLL'
Instance Attribute Summary collapse
-
#_size ⇒ Object
Returns the value of attribute _size.
-
#bit_count ⇒ Object
Returns the value of attribute bit_count.
-
#clr_important ⇒ Object
Returns the value of attribute clr_important.
-
#clr_used ⇒ Object
Returns the value of attribute clr_used.
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#height ⇒ Object
Returns the value of attribute height.
-
#planes ⇒ Object
Returns the value of attribute planes.
-
#size_image ⇒ Object
Returns the value of attribute size_image.
-
#width ⇒ Object
Returns the value of attribute width.
-
#xpels_per_meter ⇒ Object
Returns the value of attribute xpels_per_meter.
-
#ypels_per_meter ⇒ Object
Returns the value of attribute ypels_per_meter.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ IconImageHeader
constructor
A new instance of IconImageHeader.
- #pack ⇒ Object
- #unpack(bin) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ IconImageHeader
Returns a new instance of IconImageHeader.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 53 def initialize # This struct is identical to BITMAPINFOHEADER. @_size = 0 @width = 0 @height = 0 @planes = 0 @bit_count = 0 @compression = 0 @size_image = 0 @xpels_per_meter = 0 @ypels_per_meter = 0 @clr_used = 0 @clr_important = 0 end |
Instance Attribute Details
#_size ⇒ Object
Returns the value of attribute _size.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def _size @_size end |
#bit_count ⇒ Object
Returns the value of attribute bit_count.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def bit_count @bit_count end |
#clr_important ⇒ Object
Returns the value of attribute clr_important.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def clr_important @clr_important end |
#clr_used ⇒ Object
Returns the value of attribute clr_used.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def clr_used @clr_used end |
#compression ⇒ Object
Returns the value of attribute compression.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def compression @compression end |
#height ⇒ Object
Returns the value of attribute height.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def height @height end |
#planes ⇒ Object
Returns the value of attribute planes.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def planes @planes end |
#size_image ⇒ Object
Returns the value of attribute size_image.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def size_image @size_image end |
#width ⇒ Object
Returns the value of attribute width.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def width @width end |
#xpels_per_meter ⇒ Object
Returns the value of attribute xpels_per_meter.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def xpels_per_meter @xpels_per_meter end |
#ypels_per_meter ⇒ Object
Returns the value of attribute ypels_per_meter.
69 70 71 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 69 def ypels_per_meter @ypels_per_meter end |
Instance Method Details
#pack ⇒ Object
71 72 73 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 71 def pack return [@_size, @width, @height, @planes, @bit_count, @compression, @size_image, @xpels_per_meter, @ypels_per_meter, @clr_used, @clr_important].pack(FORMAT) end |
#unpack(bin) ⇒ Object
75 76 77 78 |
# File 'lib/exerb/win32/struct/icon_dir_entry.rb', line 75 def unpack(bin) @_size, @width, @height, @planes, @bit_count, @compression, @size_image, @xpels_per_meter, @ypels_per_meter, @clr_used, @clr_important = bin.unpack(FORMAT) return self end |