Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDx_Input_Library::TDIPropHeader ]
[ next: TDIPropRange ]
[ prev: TDIPropGuidAndPath ]
class TDIPropHeader : public TComponent
class PACKAGE TDIPropHeader : public TComponent
class type : Wrapper
TDIPROPHEADER
[ component ]
- Description
The TDIPropHeader component wraps the DirectX DIPROPHEADER structure which is located at the start of all TDIProperty-derived components internal structures, in a structure-in-structure relationship.
These TDIProperty-derived components are TDIPropDWORD, TDIPropGuidAndPath, TDIPropRange and TDIPropString, which wrap the various DIPROPDWORD, DIGUIDANDPATH, DIPROPRANGE and DIPROPSTRING structures.
Each of these internal structures contains a DIPROPHEADER structure which is used to define the size of the encapsulating structure and how the data within the encapsulating structure should be interpreted. This structure also defines a special-purpose dwSize member, usually maintained with manual code.
To automatically maintain this dwSize member and to access all relevant information within these TDIProperty components, link a TDIPropHeader component using the relevant TDIPropDWORD::PropHeader, TDIPropGuidAndPath::PropHeader, TDIPropRange::PropHeader and TDIPropString::PropHeader properties.
During linking, the TDIPropHeader::Size property is automatically set to the TDIProperty's Size property.
Example code that sets a property :-
DIPropHeader1->Obj = 0;
DIPropHeader1->How = DIPH_DEVICE;
DIPropDWORD1->PropHeader = DIPropHeader1;
DIPropDWORD1->Data = 10;
Dx_InputDevice1->SetProperty( DIPROP_BUFFERSIZE, DIPropDWORD1 );
You can also access the contents of the TDIPropDWORD's internal DIPROPHEADER structure using standard vcl code like :-
DIPropDWORD1->PropHeader = DIPropHeader1;
DIPropDWORD1->PropHeader->Obj = 0;
DIPropDWORD1->PropHeader->How = DIPH_DEVICE;
DIPropDWORD1->Data = 10;
Dx_InputDevice1->SetProperty( DIPROP_BUFFERSIZE, DIPropDWORD1 );
After linking and setting up the relevant details, pass the TDIProperty-derived component into TDx_InputDevice::GetProperty() and TDx_InputDevice::SetProperty() to perform a range of property related operations on an input device or object.
- Properties
- Methods
- Events
- SeeAlso
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|