Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

skin_item_s Struct Reference
[Skin related routines]

#include <skin.h>

Data Fields


Detailed Description

Skin item information structure

Definition at line 276 of file skin.h.


Field Documentation

DWORD attached
 

The attached private data with the item by application.

Definition at line 376 of file skin.h.

int bmp_index
 

The index of the item bitmap in the skin bitmap array.

Definition at line 370 of file skin.h.

int id
 

The identifier of the item.

Definition at line 279 of file skin.h.

RECT item_rc
 

The hit-test rectangle of the item.

Definition at line 367 of file skin.h.

DWORD style
 

The style of the item.

The style of an item is composed of five classes of information:

  • The type of an item.
  • The hit-test shape type.
  • The common status.
  • The item specific status.
  • The item specific style.

The type of an item can be one of the following values:

  • SI_TYPE_NRMLABEL
    The item is a normal label.
  • SI_TYPE_BMPLABEL
    The item is a bitmap label.
  • SI_TYPE_CMDBUTTON
    The item is a command button.
  • SI_TYPE_CHKBUTTON
    The item is a check button.
  • SI_TYPE_NRMSLIDER
    The item is a normal slider.
  • SI_TYPE_ROTSLIDER
    The item is a rotation slider.

The hit-test shape type can be one of the following values:

  • SI_TEST_SHAPE_RECT
    The hit-test shape is a rect.
  • SI_TEST_SHAPE_ELLIPSE
    The hit-test shape is an ellipse.
  • SI_TEST_SHAPE_LOZENGE
    The hit-test shape is a lozenge.
  • SI_TEST_SHAPE_LTRIANGLE
    The hit-test shape is a left triangle.
  • SI_TEST_SHAPE_RTRIANGLE
    The hit-test shape is a right triangle.
  • SI_TEST_SHAPE_UTRIANGLE
    The hit-test shape is a up triangle.
  • SI_TEST_SHAPE_DTRIANGLE
    The hit-test shape is a down triangle.

The common status of an item can be OR'ed with the following values:

  • SI_STATUS_OK
    The basic status of an item, always be there.
  • SI_STATUS_VISIBLE
    The item is visble.
  • SI_STATUS_DISABLED
    The item is disabled.
  • SI_STATUS_HILIGHTED
    The item is hilighted.

The item specific status can be one of the following values:

  • SI_BTNSTATUS_CLICKED
    The three-state button is clicked.
  • SI_BTNSTATUS_CHECKED
    The check button is ckecked.

The item specific style can be a valued OR'ed with the following values:

  • SI_NRMSLIDER_HORZ
    The normal slider is horizontal.
  • SI_NRMSLIDER_VERT
    The normal slider is vertical.
  • SI_NRMSLIDER_STATIC
    The normal slider is static, i.e., the slider acts like a progress bar.
  • SI_ROTSLIDER_CW
    The rotation slider is clockwise.
  • SI_ROTSLIDER_ANTICW
    The rotation slider is anti-clockwise.
  • SI_ROTSLIDER_STATIC
    The rotation slider is static, i.e., the slider acts like a progress bar.

Definition at line 359 of file skin.h.

char* tip
 

The tip text.

Definition at line 373 of file skin.h.

void* type_data
 

The type-specific data of the item, used to define extra information of the item.

Definition at line 382 of file skin.h.

int x
 

X-coordinate of the item in the skin.

Definition at line 362 of file skin.h.

int y
 

Y-coordinate of the item in the skin.

Definition at line 364 of file skin.h.


The documentation for this struct was generated from the following file:
Generated on Mon Jun 26 14:21:36 2006 for MiniGUI V2.0.3 API Reference by  doxygen 1.4.2