Product
Home Class
Index Download
CK_AdjustmentLayer
CK_Object
|
+----CK_Component
|
+----CK_Manager
|
+----CK_AdjustmentLayer
The CK_AdjustmentLayer is a manager
component that can have only one child. The adjustment layer takes the width
and height of its child. It first draws its child, and then applies a pixel-modifying
effect to the result. Currently, the choices are to either lighten or darken
the brightness of the pixels.
See Example 31
and 33.
Properties
- CP_AdjustmentType
- Adjustment types can be ADJUST_NONE, ADJUST_LIGHTEN, or ADJUST_DARKEN.
- CP_AdjustmentVal
- For lightening and darkening effects, this represents the percentage of
lightening or darkening.
- CP_CallbackArg1
- An integer value to be passed to the screen's componentCB method
when an event occurs in this component.
- CP_CallbackArg2
- Same as CP_CallbackArg1.
- CP_Cursor
- The cursor to be displayed when the mouse pointer is over the component.
(v1.02)
- CP_Height
- The height is automatically set to that of the child component.
- CP_RelativeX
- Only used when this component is a child of a CK_BBoard or CK_ClipWindow.
It is the X position of the component relative to the parent's left edge.
- CP_RelativeY
- Only used when this component is a child of a CK_BBoard or CK_ClipWindow.
It is the Y position of the component relative to the parent's top edge.
- CP_Width
- The width is automatically set to that of the child component.
- CP_X
- The absolute X-position, in screen coordinates, of the component. This can
only be set for the top-level component of a screen or a dialog.
- CP_Y
- The absolute Y-position, in screen coordinates, of the component. This can
only be set for the top-level component of a screen or a dialog.
- CP_ZOrder
- Used when this component is a child of a CK_BBoard. The CK_BBoard uses this
value to determine the order in which children are drawn. Smaller Z-order
values are drawn before larger Z-order values.
Example of creating an adjustment
layer:
CK_AdjustmentLayer *adjLayer = (CK_AdjustmentLayer *) CreateComponent(CT_AdjustmentLayer, 0,
CT_AdjustmentType, ADJUST_LIGHTEN,
CT_AdjustmentVal, 50,
0);