NETIcon Struct

Simple icon class for NET classes. More...

Header: #include <NETIcon>
CMake: find_package(KF6 REQUIRED COMPONENTS KWindowSystem)
target_link_libraries(mytarget PRIVATE KF6::KWindowSystem)

Public Functions

Public Variables

unsigned char *data
NETSize size

Detailed Description

This class is a convenience class defining an icon of size width by height. The existence of this class is to keep the implementation from being dependent on a separate framework/library.

NETIcon is only used by the NET API. Usually QIcon is the appropriate class for representing an icon.

Member Function Documentation

NETIcon::NETIcon()

Constructor to initialize this icon to 0x0 with data=0.

Member Variable Documentation

unsigned char *NETIcon::data

Image data for the icon.

This is an array of 32bit packed CARDINAL ARGB with high byte being A, low byte being B. First two bytes are width, height. Data is in rows, left to right and top to bottom.

NETSize NETIcon::size

This variable holds the size of the icon.

See also NETSize.