home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
od124os2.exe
/
od12otk1.exe
/
include
/
Facet.idl
< prev
next >
Wrap
Text File
|
1997-04-02
|
13KB
|
408 lines
/* @(#)Z 1.36 com/src/layout/idl/Facet.idl, odlayout, od96os2, odos29712d 97/03/21 17:18:28 (97/02/19 09:14:41) */
//#====START_GENERATED_PROLOG======================================
//#
//#
//# COMPONENT_NAME: odlayout
//#
//# CLASSES: none
//#
//# ORIGINS: 82,27
//#
//#
//# (C) COPYRIGHT International Business Machines Corp. 1995,1996
//# All Rights Reserved
//# Licensed Materials - Property of IBM
//# US Government Users Restricted Rights - Use, duplication or
//# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//#
//# IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
//# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//# PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
//# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
//# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
//# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
//# OR PERFORMANCE OF THIS SOFTWARE.
//#
//#====END_GENERATED_PROLOG========================================
//#
/********************************************************************/
/* 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. */
/* */
/* */
/********************************************************************/
//# IBM Change History (most recent first): */
//# 20657 03/29/96 sa Merged OS2 changes */
//# 138899 11/12/95 ced Change SetHandleMouseEvents param from */
//# ODBoolean to ODULong w/ flags. add */
//# GetHandleMouseEvents. */
//# 130552 7/22/95 ced Change ret type of CreatePlatformWindowCanvas*/
//# 125700 6/14/95 ced Add SetHandleMouseEvents method. */
//# 125697 6/14/95 ced Add _fUpdateShape & AcquireUpdateShape() */
//# to support kODNULL invalidShape param in */
//# Update method when called recursively. */
//# 124854 6/07/95 ced change GetFrameAggregateClipShape and */
//# GetWindowFrameAggregateClipShape to */
//# AcquireXXXX */
//# 122394 6/01/95 map Fix again problem with //# comments */
//# 122943 5/21/95 map Method name changes for multi-threading */
//# 120349 5/15/95 map Fix problem with //# comment on #endifs */
//# 120604 4/28/95 ced Merge with B1C16 Apple code. */
//# 119888 4/21/95 ced Added IvalidateBorderShape private */
//# method */
//# 117472 3/31/95 ced Add CreatePlatformCanvas & */
//# CreatePlatformWindowCanvas */
//#******************************************************************/
//# Copyright: (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
#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 ODFacetIterator;
interface ODFrame;
interface ODShape;
interface ODTransform;
interface ODWindow;
#if defined (_PLATFORM_OS2_) || defined (_PLATFORM_WIN32_) || defined (_PLATFORM_UNIX_)
interface ODPlatformCanvas;
#endif // _PLATFORM_OS2_ || _PLATFORM_WIN32_ || _PLATFORM_UNIX_
#if defined (_PLATFORM_OS2_) || defined (_PLATFORM_WIN32_)
interface M_ODFacet;
#endif // _PLATFORM_OS2_ || _PLATFORM_WIN32_
#ifdef _PLATFORM_OS2_
interface ODOS2StandardCanvas;
interface ODOS2WindowCanvas;
#endif //_PLATFORM_OS2_
#ifdef _PLATFORM_WIN32_
interface ODWin32StandardCanvas;
#endif // _PLATFORM_WIN32_
#ifdef _PLATFORM_UNIX_
interface ODAIXStandardCanvas;
typedef somToken Display;
typedef somToken Pixmap;
typedef somToken GC;
typedef somToken Widget;
typedef somToken Window;
#endif // UNIX
#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 // _PLATFORM_OS2_
//=====================================================================================
// ODFacet
//=====================================================================================
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_WIN32_
HWND GetFacetHWND();
ODWin32StandardCanvas CreatePlatformCanvas( in HDC hdc);
#endif
#ifdef _PLATFORM_OS2_
HWND GetFacetHWND();
ODOS2StandardCanvas CreatePlatformCanvas( in HPS hps );
void SetHandleMouseEvents(in ODULong flags);
ODULong GetHandleMouseEvents();
ODRgnHandle CopyAggregateClipRegion( in HPS hps );
ODRgnHandle CopyFacetClipRegion( in HPS hps );
ODPlatformWindow ChildUnderPoint( in ODPoint odPt );
#endif // _PLATFORM_OS2_
#ifdef _PLATFORM_UNIX_
Widget GetFacetWidget();
ODBoolean IsEventInActiveBorder( in ODEventData event);
ODAIXStandardCanvas CreatePlatformCanvas( in Display* display,
in Pixmap pixmap,
in GC gc );
#endif // UNIX
//# Private to implementation
#ifdef __SOMIDL__
implementation
{
majorversion = 1; minorversion = 0;
functionprefix = ODFacet;
#if defined (_PLATFORM_OS2_) || defined (_PLATFORM_WIN32_)
metaclass = M_ODFacet;
#endif // _PLATFORM_OS2_ || _PLATFORM_WIN32_
override:
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_WIN32_
GetFacetHWND,
CreatePlatformCanvas,
#endif
#ifdef _PLATFORM_OS2_
GetFacetHWND,
CreatePlatformCanvas,
SetHandleMouseEvents,
GetHandleMouseEvents,
CopyAggregateClipRegion,
CopyFacetClipRegion,
ChildUnderPoint,
#endif // _PLATFORM_OS2_
#ifdef _PLATFORM_UNIX_
GetFacetWidget,
IsEventInActiveBorder,
CreatePlatformCanvas,
#endif //UNIX
reserved1,
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
#ifdef _PLATFORM_MACINTOSH_
reserved8;
#endif // _PLATFORM_MACINTOSH_
#ifdef _PLATFORM_UNIX_
reserved8,
reserved9,
reserved10,
reserved11,
reserved12,
reserved13;
#endif
#ifdef _PLATFORM_WIN32_
reserved8,
reserved9,
reserved10,
reserved11;
#endif // _PLATFORM_WIN32_
#ifdef _PLATFORM_OS2_
reserved8,
reserved9,
reserved10,
reserved11,
reserved12;
#endif // _PLATFORM_OS2_
};
#endif // __SOMIDL__
};
#endif // _FACET_