Back to index

plt-scheme  4.2.1
Defines | Functions | Variables
Menu.cc File Reference
#include "wx.h"
#include "widgets.h"
#include "wx_visual.h"

Go to the source code of this file.

Defines

#define Uses_XtIntrinsic
#define Uses_wxGDI
#define Uses_wxMenu
#define Uses_ShellWidget
#define Uses_MenuWidget

Functions

void wxAddGrab (Widget)
void wxRemoveGrab (Widget)
static void FreeSaferef (Widget WXUNUSED(w), wxMenu **menup, XtPointer WXUNUSED(null))
void wxInitPopupMgr (void)
void wxUnpopMenu (void)

Variables

static wxMenupopped_up_menu

Define Documentation

#define Uses_MenuWidget

Definition at line 36 of file Menu.cc.

Definition at line 35 of file Menu.cc.

#define Uses_wxGDI

Definition at line 32 of file Menu.cc.

#define Uses_wxMenu

Definition at line 33 of file Menu.cc.

Definition at line 31 of file Menu.cc.


Function Documentation

static void FreeSaferef ( Widget   WXUNUSEDw,
wxMenu **  menup,
XtPointer   WXUNUSEDnull 
) [static]

Definition at line 134 of file Menu.cc.

{
  FREE_SAFEREF((char *)menup);

  /* No XFORM_RESET_VAR_STACK because this one isn't xformed.  No need
     to xform because FREE_SAFEREF won't set the GC variable stack. */
}
void wxAddGrab ( Widget  )

Definition at line 44 of file mredx.cxx.

    {
      if (!grab_stack_pos) {
       Widget *naya;
       if (!grab_stack)
         wxREGGLOB(grab_stack);
       grab_stack_size += WSTACK_INC;
       naya = (Widget *)scheme_malloc(grab_stack_size * sizeof(Widget));
       memcpy(naya + WSTACK_INC, grab_stack, (grab_stack_size - WSTACK_INC) * sizeof(Widget));
       grab_stack = naya;
       grab_stack_pos = WSTACK_INC;
      }

      grabber = grab_stack[--grab_stack_pos] = w;
    }

Definition at line 679 of file Menu.cc.

Here is the caller graph for this function:

void wxRemoveGrab ( Widget  )

Definition at line 60 of file mredx.cxx.

    {
      if (w != grabber)
       return;

      if (++grab_stack_pos < grab_stack_size)
       grabber = grab_stack[grab_stack_pos];
      else
       grabber = NULL;
    }

Definition at line 684 of file Menu.cc.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 40 of file Menu.cc.