home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
FACET.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
9KB
|
314 lines
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
#ifndef _FACET_
#define _FACET_
#ifndef _ODOBJECT_
#include "ODObject.idl"
#endif
//=====================================================================================
// Classes defined in this interface
//=====================================================================================
interface ODFacet;
//=====================================================================================
// Classes used by this interface
//=====================================================================================
interface ODCanvas;
interface ODDragItemIterator;
interface ODFacet;
interface ODFacetIterator;
interface ODFrame;
interface ODShape;
interface ODTransform;
interface ODWindow;
#ifdef _PLATFORM_OS2_
interface M_ODFacet;
interface ODPlatformCanvas;
interface ODPlatformWindowCanvas;
#endif // _PLATFORM_OS2_
//=====================================================================================
// Implementation Types
//=====================================================================================
//=====================================================================================
// ODFacet
//=====================================================================================
#ifdef _PLATFORM_OS2_
//=====================================================================================
// Constants used in this interface
//=====================================================================================
// Bitfield flags used by Set/GetHandleMouseEvents
#pragma somemittypes on
const ODULong kODPartHandlesMouseEvents = 1;
const ODULong kODPartHandlesDragDropEvents = 2;
#pragma somemittypes off
#endif
interface ODFacet : ODObject
{
ODFrame GetFrame();
ODFacet CreateEmbeddedFacet(in ODFrame frame,
in ODShape clipShape,
in ODTransform externalTransform,
in ODCanvas canvas,
in ODCanvas biasCanvas,
in ODFacet siblingFacet,
in ODFramePosition position);
void RemoveFacet(in ODFacet facet);
void MoveBefore(in ODFacet child,
in ODFacet sibling);
void MoveBehind(in ODFacet child,
in ODFacet sibling);
ODFacet GetContainingFacet();
ODFacetIterator CreateFacetIterator(in ODTraversalType traversalType,
in ODSiblingOrder siblingOrder);
ODShape CreateShape();
ODShape AcquireClipShape(in ODCanvas biasCanvas);
void ChangeGeometry(in ODShape clipShape,
in ODTransform transform,
in ODCanvas biasCanvas);
ODShape AcquireAggregateClipShape(in ODCanvas biasCanvas);
ODShape AcquireWindowAggregateClipShape(in ODCanvas biasCanvas);
ODShape AcquireActiveShape(in ODCanvas biasCanvas);
void ChangeActiveShape(in ODShape activeShape, in ODCanvas biasCanvas);
ODTransform CreateTransform();
ODTransform AcquireExternalTransform(in ODCanvas biasCanvas);
ODTransform AcquireFrameTransform(in ODCanvas biasCanvas);
ODTransform AcquireContentTransform(in ODCanvas biasCanvas);
ODTransform AcquireWindowFrameTransform(in ODCanvas biasCanvas);
ODTransform AcquireWindowContentTransform(in ODCanvas biasCanvas);
ODCanvas CreateCanvas(in ODGraphicsSystem graphicsSystem,
in ODPlatformCanvas platformCanvas,
in ODBoolean isDynamic,
in ODBoolean isOffscreen);
ODBoolean HasCanvas();
ODCanvas GetCanvas();
void ChangeCanvas(in ODCanvas canvas);
ODWindow GetWindow();
ODInfoType GetPartInfo();
void SetPartInfo(in ODInfoType partInfo);
ODDragResult DragEnter(in ODPoint point,
in ODDragItemIterator dragInfo,
in ODCanvas biasCanvas);
ODDragResult DragWithin(in ODPoint point,
in ODDragItemIterator dragInfo,
in ODCanvas biasCanvas);
void DragLeave(in ODPoint point,
in ODCanvas biasCanvas);
ODDropResult Drop(in ODPoint point,
in ODDragItemIterator dropInfo,
in ODCanvas biasCanvas);
void Update(in ODShape invalidShape, in ODCanvas biasCanvas);
void Invalidate(in ODShape invalidShape, in ODCanvas biasCanvas);
void Validate(in ODShape validShape, in ODCanvas biasCanvas);
void Draw(in ODShape invalidShape, in ODCanvas biasCanvas);
void DrawChildren(in ODShape invalidShape, in ODCanvas biasCanvas);
void DrawChildrenAlways(in ODShape invalidShape, in ODCanvas biasCanvas);
void DrawnIn(in ODShape shape, in ODCanvas biasCanvas);
void InvalidateActiveBorder();
void DrawActiveBorder();
ODBoolean ContainsPoint(in ODPoint point, in ODCanvas biasCanvas);
ODBoolean ActiveBorderContainsPoint(in ODPoint point, in ODCanvas biasCanvas);
ODBoolean IsSelected();
void SetSelected(in ODBoolean isSelected);
ODHighlight GetHighlight();
void ChangeHighlight(in ODHighlight highlight);
#ifdef _PLATFORM_OS2_ // CED
HWND GetFacetHWND();
ODShape AcquireFrameAggregateClipShape( in ODCanvas biasCanvas );
ODShape AcquireWindowFrameAggregateClipShape( in ODCanvas biasCanvas );
ODPlatformCanvas CreatePlatformCanvas( in HPS hps );
ODPlatformCanvas CreatePlatformWindowCanvas( in ODWindow window );
void SetHandleMouseEvents(in ODULong flags);
ODULong GetHandleMouseEvents();
#endif // _PLATFORM_OS2_
#ifdef __SOMIDL__
implementation
{
functionprefix = ODFacet;
#ifdef _PLATFORM_OS2_
metaclass = M_ODFacet;
#endif // _PLATFORM_OS2_
override:
somInit,
somUninit,
Purge;
releaseorder:
GetFrame,
CreateEmbeddedFacet,
RemoveFacet,
MoveBefore,
MoveBehind,
GetContainingFacet,
CreateFacetIterator,
CreateShape,
AcquireClipShape,
ChangeGeometry,
AcquireAggregateClipShape,
AcquireWindowAggregateClipShape,
AcquireActiveShape,
ChangeActiveShape,
CreateTransform,
AcquireExternalTransform,
AcquireFrameTransform,
AcquireContentTransform,
AcquireWindowFrameTransform,
AcquireWindowContentTransform,
CreateCanvas,
HasCanvas,
GetCanvas,
ChangeCanvas,
GetWindow,
GetPartInfo,
SetPartInfo,
DragEnter,
DragWithin,
DragLeave,
Drop,
Update,
Invalidate,
Validate,
Draw,
DrawChildren,
DrawChildrenAlways,
DrawnIn,
InvalidateActiveBorder,
DrawActiveBorder,
ContainsPoint,
ActiveBorderContainsPoint,
IsSelected,
SetSelected,
GetHighlight,
ChangeHighlight,
#ifdef _PLATFORM_OS2_
GetFacetHWND,
AcquireFrameAggregateClipShape,
AcquireWindowFrameAggregateClipShape,
CreatePlatformCanvas,
CreatePlatformWindowCanvas,
SetHandleMouseEvents,
GetHandleMouseEvents,
#endif
reserved1,
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
#ifndef _PLATFORM_OS2_
reserved8;
#else
reserved8,
reserved9,
reserved10,
reserved11,
reserved12,
reserved13,
reserved14;
#endif // _PLATFORM_OS2_
majorversion = 1; minorversion = 0;
};
#endif
};
#ifdef _PLATFORM_OS2_
interface M_ODFacet : SOMClass
{
ODFacet clsGetFacetFromHWND(in HWND hwnd);
#ifdef __SOMIDL__
implementation
{
functionprefix = M_ODFacet;
releaseorder:
clsGetFacetFromHWND;
};
#endif // __SOMIDL__
};
#endif // _PLATFORM_OS2_
#endif // _FACET_