scigraphic.h File Reference

#include "bcg.h"

Include dependency graph for scigraphic.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int sciSetScrollInfo (struct BCG *Scilabgc, int sb_ctl, SCROLLINFO *si, BOOLEAN bRedraw)
int sciGetScrollInfo (struct BCG *Scilabgc, int sb_ctl, SCROLLINFO *si)
integer sciGetwresize ()
integer sciGetPixmapStatus ()
void SciViewportGet __PARAMS ((struct BCG *ScilabXgc, int *x, int *y))
void SciViewportMove __PARAMS ((struct BCG *ScilabXgc, int x, int y))


Function Documentation

void SciViewportMove __PARAMS ( (struct BCG *ScilabXgc, int x, int y  ) 

used to move the panner and the viewport interactively through scilab command.

Parameters:
[in] struct BCG *ScilabGC : structure associated to a Scilab Graphic window
[in] int x,y : the x,y point of the graphic window to be moved at the up-left position of the viewport

void SciViewportGet __PARAMS ( (struct BCG *ScilabXgc, int *x, int *y  ) 

used to get panner position through scilab command.

Parameters:
[in] struct BCG *ScilabGC : structure associated to a Scilab Graphic window
[in] int x,y : the x,y point of the graphic window to be moved at the up-left position of the viewport

integer sciGetPixmapStatus (  ) 

Returns the pixmap status. 0: it's drawn directly on screen 1: it's drawn by a pixmap first

Author:
Matthieu PHILIPPE
Date:
Dec 1999

Definition at line 1978 of file periWin.c.

References BCG::CurPixmapStatus, and ScilabXgc.

Referenced by clearwindow(), CPixmapResize1(), getpixmapOn(), MaybeSetWinhdc(), ReleaseWinHdc(), scig_replay_hdc(), setpixmapOn(), and SetWinhdc().

01979 {
01980   return ScilabXgc->CurPixmapStatus;
01981 }

Here is the caller graph for this function:

int sciGetScrollInfo ( struct BCG Scilabgc,
int  sb_ctl,
SCROLLINFO *  si 
)

Returns the dimension of the scroll bars

Attention:
Do not call GetScrollInfo windows function, sciGetScrollInfo do that and more things !
Parameters:
[in] Scilabgc 
[in] sb_ctl 
[in] si 
Author:
Matthieu PHILIPPE
Date:
Dec 1999

Definition at line 214 of file periWin.c.

Referenced by GPopupResize(), initgraphic(), ON_WND_GRAPH_WM_HSCROLL(), ON_WND_GRAPH_WM_SIZE(), ON_WND_GRAPH_WM_VSCROLL(), sciSetScrollInfo(), SciViewportMove(), and setwindowdim().

00215 {
00216   SCROLLINFO totosi;
00217   switch (sb_ctl) 
00218     {
00219     case SB_VERT:
00220       /* definition des scroll bars verticalles */
00221       si->cbSize = Scilabgc->vertsi.cbSize;
00222       si->fMask  = Scilabgc->vertsi.fMask;
00223       si->nMin   = Scilabgc->vertsi.nMin;
00224       si->nMax   = Scilabgc->vertsi.nMax;
00225       si->nPage  = Scilabgc->vertsi.nPage;
00226       si->nPos   = Scilabgc->vertsi.nPos;
00227       break;
00228     case SB_HORZ:
00229       /* definition des scroll bars horizontalles */
00230       si->cbSize = Scilabgc->horzsi.cbSize;
00231       si->fMask  = Scilabgc->horzsi.fMask;
00232       si->nMin   = Scilabgc->horzsi.nMin;
00233       si->nMax   = Scilabgc->horzsi.nMax;
00234       si->nPage  = Scilabgc->horzsi.nPage;
00235       si->nPos   = Scilabgc->horzsi.nPos;
00236       break;
00237     default:
00238       break;
00239     }
00240   /* force le rafraichissement de l'affichage des SB !!! */
00241   GetScrollInfo(Scilabgc->CWindow, sb_ctl, &totosi);
00242   return 0;
00243 }

Here is the caller graph for this function:

integer sciGetwresize (  ) 

Returns the wresize status. 0: it's in scroll bars mode 1: it's in wresize mode

Author:
Matthieu PHILIPPE
Date:
Dec 1999

Definition at line 2017 of file periWin.c.

References BCG::CurResizeStatus, and ScilabXgc.

Referenced by getwresize(), GPopupResize(), set_clip_after_scroll(), set_current_clip(), and setwindowdim().

02018 {
02019   return ScilabXgc->CurResizeStatus;
02020 }

Here is the caller graph for this function:

int sciSetScrollInfo ( struct BCG Scilabgc,
int  sb_ctl,
SCROLLINFO *  si,
BOOLEAN  bRedraw 
)

Sets the dimension of the scroll bars

Attention:
Do not call SetScrollInfo windows function, sciSetScrollInfo do that and more things !
Parameters:
[in] Scilabgc 
[in] sb_ctl 
[in] si 
[in] bRedraw 
Author:
Matthieu PHILIPPE
Date:
Dec 1999

Definition at line 245 of file periWin.c.

Referenced by GPopupResize(), initgraphic(), ON_WND_GRAPH_WM_HSCROLL(), ON_WND_GRAPH_WM_SIZE(), ON_WND_GRAPH_WM_VSCROLL(), sciInitScrollBar(), SciViewportMove(), and setwindowdim().

00246 {
00247   int inttmp = si->nMax;
00248   SCROLLINFO totosi;
00249   
00250   switch (sb_ctl) {
00251   case SB_VERT:
00252     /* definition des scroll bars verticalles */
00253     Scilabgc->vertsi.cbSize = si->cbSize;
00254     Scilabgc->vertsi.fMask  = si->fMask;
00255     Scilabgc->vertsi.nMin   = si->nMin;
00256     Scilabgc->vertsi.nMax   = si->nMax;
00257     Scilabgc->vertsi.nPage  = si->nPage;
00258     if ( Scilabgc->CurResizeStatus == 1) 
00259       {
00260         si->nMax = 0; /* on effectue un swapp pour ne pas changer la val (pointeur !!) */
00261         /* 0 permet de faire disparaitre les scrollbars */
00262       }
00263     Scilabgc->vertsi.nPos   = si->nPos; 
00264     break;
00265   case SB_HORZ:
00266     /* definition des scroll bars horizontalles */
00267     Scilabgc->horzsi.cbSize = si->cbSize;
00268     Scilabgc->horzsi.fMask  = si->fMask;
00269     Scilabgc->horzsi.nMin   = si->nMin;
00270     Scilabgc->horzsi.nMax   = si->nMax;
00271     Scilabgc->horzsi.nPage  = si->nPage;
00272     if ( Scilabgc->CurResizeStatus == 1 ) {  si->nMax = 0;} 
00273     Scilabgc->horzsi.nPos   = si->nPos;
00274     break;
00275   default:
00276     break;
00277   }
00278   /* reset clip region after a scroll */
00279   /* set_clip_after_scroll() ; */
00280   /* ? */  
00281   SetScrollInfo(Scilabgc->CWindow, sb_ctl, si, bRedraw);
00282   if (  Scilabgc->CurResizeStatus == 1)
00283     si->nMax = inttmp;
00284   /* force le rafraichissement de l'affichage des SB !!! */
00285   sciGetScrollInfo(Scilabgc, sb_ctl, &totosi);
00286   return 0;
00287 }

Here is the caller graph for this function:


Generated on Sun Mar 4 15:31:56 2007 for Scilab [trunk] by  doxygen 1.5.1