Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

mgResizeableBox Class Reference

#include <MathBox.h>

Inheritance diagram for mgResizeableBox:

mgResizeableMathBox mgResizeableTextBox List of all members.

Detailed Description

Base class for a resizeable box which can be contained inside a mgMathWnd.

VERY IMPORTANT:

Definition at line 670 of file MathBox.h.

Public Member Functions

 mgResizeableBox (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 Main constructor.
 mgResizeableBox ()
 Default constructor.
 mgResizeableBox (const mgResizeableBox &tocopy)
 Copy constructor.
virtual ~mgResizeableBox ()
 Destructor.
void DeepCopy (const mgResizeableBox &)
 Copies all the info contained in the given resizeable math box.
void SetMinBorder (int n)
 Sets the minimum number of pixels which compose the border of this resizeable box.
int GetBorder ()
 Returns the minimum border always present aroung the contained math box.
virtual wxString GetDebug ()
 Returns a string containing debug information.
virtual void OnSize (wxSizeEvent &)
virtual void OnSetFocus (wxFocusEvent &)
virtual void OnKillFocus (wxFocusEvent &)
virtual void OnSetCursor (wxSetCursorEvent &ev)
virtual void OnPaint (wxPaintEvent &ev)
virtual void OnMove (wxMoveEvent &ev)
virtual void OnChildKillFocus (wxCommandEvent &)
virtual void OnChildSetFocus (wxCommandEvent &)
virtual void OnChildResize (wxCommandEvent &)
'Abstract' functions
The quotes around the word 'abstract' mean that these functions are not declared as C++ pure virtual functions: they cannot be used if you are using the DECLARE_DYNAMIC_CLASS wxWidgets macro.

virtual wxWindow * GetChild ()

Protected Attributes

int m_nMinBorder
 The minimum border.


Constructor & Destructor Documentation

mgResizeableBox::mgResizeableBox wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize
 

Main constructor.

Builds and initialize this window.

Parameters:
parent The parent window

Definition at line 1481 of file MathBox.cpp.

mgResizeableBox::mgResizeableBox  )  [inline]
 

Default constructor.

This is required by wxWidgets DECLARE_DYNAMIC_CLASS macro, but you should always use the main constructor form.

Definition at line 690 of file MathBox.h.

mgResizeableBox::mgResizeableBox const mgResizeableBox tocopy  ) 
 

Copy constructor.

Deep copies the given mgMathBox into this object.

Parameters:
tocopy The box to copy

Definition at line 1502 of file MathBox.cpp.

References DeepCopy().


Member Function Documentation

int mgResizeableBox::GetBorder  ) 
 

Returns the minimum border always present aroung the contained math box.

That minimum border is where the 8 squares which can be dragged for resizing, are placed.

Definition at line 1517 of file MathBox.cpp.

References m_nMinBorder.

Referenced by SetMinBorder().

void mgResizeableBox::SetMinBorder int  n  ) 
 

Sets the minimum number of pixels which compose the border of this resizeable box.

If the user tries to make this window smaller than the minimum border + the contained math box's minimum size, this window will adjust the resize request to the smallest available size.

Definition at line 1526 of file MathBox.cpp.

References GetBorder(), and m_nMinBorder.


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

Documentation generated with Doxygen on Sun Feb 6 17:19:28 2005
Visit MathStudio home page for more info

[ Top ]