• OpenW(l,t,w,h,i,f,n=NIL,s=NIL,st=1,g=NIL,ta=NIL)(PTR TO Window)
    This function returns pointer to opened window if everything went ok or NIL if no. If so <stdrast> variable is set to this window, and all graphics functions will be drawn in this window. This function is AmigaE's equivalent.

    Arguments:
        l  - left edge of the window
        t  - top edge of the window
        w  - width of the window
        h  - height of the window
        i  - idcmp flags
        f  - window flags
        n  - window name
        s  - pointer to screen to open window on
        st - screen type (1 to open window on WB screen, 15 on custom screen)
        g  - window gadgets
        ta - window tagitems (see 'intuition/intuition.m')
    


  • CloseW(w:PTR TO Window)
    This function closes OpenW() opened window, this also clears <stdrast> variable if it is this's window.

  • SetStdRast(rp:PTR TO RastPort)(PTR TO RastPort)
    This functions setups <stdrast> variable to the rp and returns old <stdrast> to store.

  • OpenS(w,h,d,m,n=NIL,t=NIL)(PTR TO Screen)
    This function returns pointer to opened screen if everything went ok or NIL if no. This function is AmigaE's equivalent, but it doesn't initialize <stdrast>, drawing to screen's rastport shouldn't be used, try window!

    Arguments:
        w - width of the screen
        h - height of the screen
        d - depth of the screen (1=2 colours, 2=4 colours, 3=8 colours, ...)
        m - screenmode (see 'graphics/modeid')
              $0000 - lores
              $8000 - hires
              $0004 - laced
              $8020 - super hires
              $0800 - ham
              $0080 - ehb
              etc.
            if You want more specific screen like multiscan productivity,
            use SA_DisplayID tag in tag item list.
        t - screen tagitems (see 'intuition/screens.m')
    


  • CloseS(s:PTR TO Screen)
    This function closes OpenS() opened screen.

  • WaitIMessage(w:PTR TO Window)(LONG,LONG,LONG,LONG)
    This function waits for a message in window specified by <w> and returns four values. The first is class, second is code, third is qual and fourth is iaddress.

  • Mouse()
    This function returns %001 if left mouse button is pressed, %010 if right mouse button is pressed and %100 if middle mouse button is pressed. It can return it's combinations.

  • MouseX(w:PTR TO Window)
    Returns mouse horizontal position in window <w>.

  • MouseY(w:PTR TO Window)
    Returns mouse vertical position in window <w>.

  • MouseXY(w:PTR TO Window)(LONG,LONG)
    Returns mouse position in window <w>.