IconData Struct Reference

#include <operatingsystem.h>

详细描述

Represents a single icon in a large bitmap array.

Public Attributes

BaseBitmap bmp
Int32   x
Int32   y
Int32   w
Int32   h
ICONDATAFLAGS   flags

Constructors

  IconData ()
  IconData ( BaseBitmap *t_bmp, Int32 t_x, Int32 t_y, Int32 t_w, Int32 t_h)

Part

BaseBitmap GetClonePart () const
BaseBitmap GetGuiScalePart () const

GUI Scale

Int32   GetGuiW () const
Int32   GetGuiH () const

构造函数 & 析构函数文档编制

◆  IconData() [1/2]

IconData ( )

Default constructor.

◆  IconData() [2/2]

IconData ( BaseBitmap t_bmp ,
Int32   t_x ,
Int32   t_y ,
Int32   t_w ,
Int32   t_h  
)

Fills the icon data.

参数
[in] t_bmp The bitmap. The caller owns the pointed base bitmap.
[in] t_x The X coordinate of the upper-left corner of the icon.
[in] t_y The Y coordinate of the upper-left corner of the icon.
[in] t_w The width of the icon.
[in] t_h The height of the icon.

成员函数文档编制

◆  GetClonePart()

BaseBitmap * GetClonePart ( ) const

Gets a copy of the bitmap's part for the icon data.

另请参阅
BaseBitmap::GetClonePart
返回
The copy of the icon part.

◆  GetGuiScalePart()

BaseBitmap * GetGuiScalePart ( ) const

Gets a copy of the scaled bitmap's part for the icon data with the size GetGuiW() / GetGuiH() .

返回
The copy of the scaled icon part.

◆  GetGuiW()

Int32 GetGuiW ( ) const

Gets the GUI scaled width of the icon data.

返回
The GUI scaled width.

◆  GetGuiH()

Int32 GetGuiH ( ) const

Gets the GUI scaled height of the icon data.

返回
The GUI scaled height.

Member Data Documentation

◆  bmp

BaseBitmap * bmp

The bitmap. Can be nullptr .

◆  x

Int32 x

The X coordinate of the upper-left corner of the icon.

◆  y

Int32 y

The Y coordinate of the upper-left corner of the icon.

◆  w

Int32 w

The width of the icon.

◆  h

Int32 h

The height of the icon.

◆  flags

ICONDATAFLAGS flags

The flags: ICONDATAFLAGS .