#ifndef _ol_ #define _ol_ /********************************************************* * Display items */ #ifndef displayitem #define displayitem any #endif operator void DIPaint(displayitem i); operator void DIPaintCentered(displayitem i, float x, float y, float w, float h); operator void DIPaintLeft(displayitem i, float x, float y, float w, float h); operator void DIPaintRight(displayitem i, float x, float y, float w, float h); operator float *DISize(displayitem i) = "[exch DISize]"; operator float DIWidth(displayitem i) = "DISize pop"; operator float DIHeight(displayitem i) = "DISize exch pop"; operator char *DIString(displayitem i); /********************************************************* * OpenLook constants */ operator float OLButH() = "//OLButH"; operator float OLButW() = "//OLButW"; operator float OLButtonH() = "//OLButtonH"; operator float OLButtonCapW() = "//OLButtonCapW"; operator float OLButtonCapW2() = "//OLButtonCapW2"; operator float OLMenuButtonCapW2() = "//OLMenuButtonCapW2"; operator float OLSettingH() = "//OLSettingH"; operator float OLScrollButW() = "//OLScrollButW"; operator float OLScrollButH() = "//OLScrollButH"; operator float OLScrollW() = "//OLScrollW"; operator float OLAnchorH() = "//OLAnchorH"; operator float OLElevH() = "//OLElevH"; operator float OLElevatorH() = "//OLElevatorH"; operator float OLCableGap() = "//OLCableGap"; operator float OLCableW() = "//OLCableW"; operator float OLCableOff() = "//OLCableOff"; /********************************************************* * OpenLook drawing routines */ operator void OLRect(boolean down, float x, float y, float w, float h); operator void OLBox(boolean down, float x, float y, float w, float h); operator void OLHLine(boolean down, float x, float y, float len); operator void OLVLine(boolean down, float x, float y, float len); operator void OLBut(boolean down); operator void OLButton(boolean down, float w); operator void OLButtonDefault(float w); operator void OLMenuBut(boolean menudown, boolean down); operator void OLMenuButton(boolean menudown, boolean down, float w); operator void OLSetting(boolean down, float w); operator void OLSettingDefault(float w); operator void OLCheckBox(boolean check, boolean down); operator void OLScrollButUp(boolean down, float x, float y); operator void OLScrollButDown(boolean down, float x, float y); operator void OLScrollButRight(boolean down, float x, float y); operator void OLScrollButLeft(boolean down, float x, float y); operator void OLPin(boolean pinned, float x, float y); operator void OLElevator(boolean downactive, boolean upactive, boolean abbreviated, boolean vertical); operator void OLElevatorHilite(nametype state, boolean abbreviated, boolean vertical); operator nametype OLElevatorWhere(float x1, float x2, boolean abbreviated, boolean vertical); operator void OLAnchor(boolean down, boolean vertical); operator void OLStipple(); operator void OLCaret(boolean active); operator void OLMoreArrow(); operator void OLShow(displayitem,float,float,float,float); operator void OLReshapeNE(boolean down, float x, float y); operator void OLReshapeNW(boolean down, float x, float y); operator void OLReshapeSW(boolean down, float x, float y); operator void OLReshapeSE(boolean down, float x, float y); #endif