Photon microGUI widgets library 0.6.0
PhCursorDef_t Struct Reference

#include <PhWidgetsNativeTypes.h>

Detailed Description

Bitmap for the cursor.

The PhCursorDef_t structure is used to define bitmaps to be used as the cursor. The members include at least:

Members

PhRegionDataHdr_t hdr A pointer to a PhRegionDataHdr_t structure that defines the region data header.

PhPoint_t size1 The dimensions of the first bitmap plane, in pixels.

PhPoint_t offset1 The position of the upper-left corner of the first plane of the bitmap, relative to the hot spot.

PgColor_t color1 The color of the first bitmap plane.

‍char bytesperline1 The number of bytes per line for the first bitmap plane.

PhPoint_t size2 The dimensions of the second bitmap plane, in pixels.

PhPoint_t offset2 The position of the upper-left corner of the second plane of the bitmap, relative to the hot spot.

PgColor_t color2 The color of the second bitplane. You can't have more than two bitplanes.

‍char bytesperline2 The number of bytes per line for the second bitmap plane.

‍char images[1] The bitmap image data, as a series of 1-bit-per-pixel planes.

Remarks
Use PhWidgets::Cursor and PhWidgets::Widget::Cursor property to manipulate widget cursor resource.

The documentation for this struct was generated from the following file: