Back to index

plt-scheme  4.2.1
Public Member Functions | Public Attributes
wxLayoutConstraints Class Reference

#include <Layout.h>

Inheritance diagram for wxLayoutConstraints:
Inheritance graph
[legend]
Collaboration diagram for wxLayoutConstraints:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxLayoutConstraints (void)
Bool SatisfyConstraints (wxWindow *child)
void UnDone (void)
wxIndividualLayoutConstraint wxLC_DECL (left)
wxIndividualLayoutConstraint wxLC_DECL (top)
wxIndividualLayoutConstraint wxLC_DECL (right)
wxIndividualLayoutConstraint wxLC_DECL (bottom)
wxIndividualLayoutConstraint wxLC_DECL (width)
wxIndividualLayoutConstraint wxLC_DECL (height)
wxIndividualLayoutConstraint wxLC_DECL (centreX)
wxIndividualLayoutConstraint wxLC_DECL (centreY)
void install_cleanup ()
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
voidoperator new (size_t size, void *p)
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
void operator delete (void *obj)
void operator delete (void *, void *)
void operator delete (void *obj)
voidoperator new[] (size_t size)
voidoperator new[] (size_t size, GCPlacement gcp)
voidoperator new[] (size_t size, void *p)
void operator delete[] (void *obj)
void operator delete[] (void *, void *)

Public Attributes

WXTYPE __type
void__gc_external

Detailed Description

Definition at line 96 of file Layout.h.


Constructor & Destructor Documentation

Definition at line 42 of file Layout.cc.

: wxObject(FALSE)
{
    __type = wxTYPE_CONSTRAINTS;

#ifdef MZ_PRECISE_GC
    left = new wxIndividualLayoutConstraint;
    top = new wxIndividualLayoutConstraint;
    right = new wxIndividualLayoutConstraint;
    bottom = new wxIndividualLayoutConstraint;
    centreX = new wxIndividualLayoutConstraint;
    centreY = new wxIndividualLayoutConstraint;
    width = new wxIndividualLayoutConstraint;
    height = new wxIndividualLayoutConstraint;
#endif

    wxLC_MEM(left, myEdge)    = wxLeft;
    wxLC_MEM(top, myEdge)     = wxTop;
    wxLC_MEM(right, myEdge)   = wxRight;
    wxLC_MEM(bottom, myEdge)  = wxBottom;
    wxLC_MEM(centreX, myEdge) = wxCentreX;
    wxLC_MEM(centreY, myEdge) = wxCentreY;
    wxLC_MEM(width, myEdge)   = wxWidth;
    wxLC_MEM(height, myEdge)  = wxHeight;
}

Member Function Documentation

Definition at line 99 of file wxGC.cxx.

{
  GC_finalization_proc old_fn;
  void *old_data;

# ifdef MZ_PRECISE_GC
#  define ALLOW_NON_BASE 0
#  define CHECK_BASE 0
# else
#  ifdef wx_xt
#   define ALLOW_NON_BASE 0
#   define CHECK_BASE 0
#  else
#   ifdef WIN32
#    define ALLOW_NON_BASE 0
#    define CHECK_BASE 1
#    define CRASH_ON_NONBASE 1
#   else
#    define ALLOW_NON_BASE 1
#    define CHECK_BASE 0
#   endif
#  endif
# endif

# if CHECK_BASE || ALLOW_NON_BASE
  if (GC_base(this) != (void *)this) {
#  if ALLOW_NON_BASE
    return;
#  else
#   ifdef CRASH_ON_NONBASE
    *(long *)0x0 = 1;
#   else
    printf("Clean-up object is not the base object\n");
    abort();
#   endif
#  endif
  }
# endif

  GC_register_finalizer_ignore_self(gcOBJ_TO_PTR(this), 
                                CAST_GCP GC_cleanup, NULL, 
                                CAST_GCPP &old_fn, &old_data);

# if CHECK_BASE
  if (old_fn) {
#  ifdef CRASH_ON_NONBASE
       *(long *)0x0 = 1;
#  else
    printf("Object already has a clean-up\n");
    abort();
#  endif
  }
# endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

void gc::operator delete ( void obj) [inline, inherited]
void gc::operator delete ( void obj) [inline, inherited]

Definition at line 287 of file gc_cpp.h.

                                           {
    GC_FREE( obj );}

Here is the caller graph for this function:

void gc::operator delete ( void ,
void  
) [inline, inherited]

Definition at line 291 of file gc_cpp.h.

{}
void gc::operator delete[] ( void obj) [inline, inherited]

Definition at line 305 of file gc_cpp.h.

                                             {
    gc::operator delete( obj );}

Here is the call graph for this function:

void gc::operator delete[] ( void ,
void  
) [inline, inherited]

Definition at line 309 of file gc_cpp.h.

{}
void* gc::operator new ( size_t  size) [inline, inherited]
void* gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]
void * gc::operator new ( size_t  size) [inline, inherited]

Definition at line 273 of file gc_cpp.h.

                                           {
    return GC_MALLOC( size );}

Here is the caller graph for this function:

void * gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 276 of file gc_cpp.h.

                                                            {
    if (gcp == UseGC) 
        return GC_MALLOC( size );
    else if (gcp == PointerFreeGC)
       return GC_MALLOC_ATOMIC( size );
    else
        return GC_MALLOC_UNCOLLECTABLE( size );}
void * gc::operator new ( size_t  size,
void p 
) [inline, inherited]

Definition at line 284 of file gc_cpp.h.

                                                    {
    return p;}
void * gc::operator new[] ( size_t  size) [inline, inherited]

Definition at line 296 of file gc_cpp.h.

                                             {
    return gc::operator new( size );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 299 of file gc_cpp.h.

                                                              {
    return gc::operator new( size, gcp );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
void p 
) [inline, inherited]

Definition at line 302 of file gc_cpp.h.

                                                      {
    return p;}

Definition at line 68 of file Layout.cc.

{
    Bool changes = FALSE;

    if (!wxLC_MEM(width, done))
       changes |= wxLC_MEM(width, SatisfyConstraint(this, child));
    if (!wxLC_MEM(height, done))
       changes |= wxLC_MEM(height, SatisfyConstraint(this, child));
    if (!wxLC_MEM(left, done))
       changes |= wxLC_MEM(left, SatisfyConstraint(this, child));
    if (!wxLC_MEM(top, done))
       changes |= wxLC_MEM(top, SatisfyConstraint(this, child));
    if (!wxLC_MEM(right, done))
       changes |= wxLC_MEM(right, SatisfyConstraint(this, child));
    if (!wxLC_MEM(bottom, done))
       changes |= wxLC_MEM(bottom, SatisfyConstraint(this, child));
    if (!wxLC_MEM(centreX, done))
       changes |= wxLC_MEM(centreX, SatisfyConstraint(this, child));
    if (!wxLC_MEM(centreY, done))
       changes |= wxLC_MEM(centreY, SatisfyConstraint(this, child));

    return changes;
}

Here is the caller graph for this function:

Definition at line 92 of file Layout.cc.

{
    wxLC_MEM(left, done)    = FALSE;
    wxLC_MEM(top, done)     = FALSE;
    wxLC_MEM(right, done)   = FALSE;
    wxLC_MEM(bottom, done)  = FALSE;
    wxLC_MEM(centreX, done) = FALSE;
    wxLC_MEM(centreY, done) = FALSE;
    wxLC_MEM(width, done)   = FALSE;
    wxLC_MEM(height, done)  = FALSE;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 146 of file wxGC.h.

WXTYPE wxObject::__type [inherited]

Definition at line 77 of file Object.h.


The documentation for this class was generated from the following files: