wxMaxima
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CharButton Class Reference

#include <CharButton.h>

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

Classes

struct  Definition
 A definition of this button, used to construct it. More...
 

Public Member Functions

 CharButton (wxWindow *parent, wxWindow *worksheet, Configuration *config, const Definition &def, bool forceShow=false)
 

Protected Member Functions

void ForwardToParent (wxMouseEvent &event)
 
void CharButtonPressed (wxCommandEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void OnIdle (wxIdleEvent &event)
 
void MouseOverPanel (wxMouseEvent &event)
 
void MouseOverText (wxMouseEvent &event)
 
void MouseLeftPanel (wxMouseEvent &event)
 
void MouseLeftText (wxMouseEvent &event)
 
void MouseOverTextIs (bool mouseOver=true)
 
void MouseOverPanelIs (bool mouseOver=true)
 
bool FontDisplaysChar (const wxFont &font= *wxNORMAL_FONT)
 True if drawing the char this button displays alters at least one pixel.
 
bool CharVisiblyDifferent (wxChar otherChar, const wxFont &font= *wxNORMAL_FONT)
 True if drawing the char this button displays differs visibly from otherChar.
 

Protected Attributes

Configurationm_configuration
 
wchar_t m_char
 
wxString m_description
 

Detailed Description

This class generates a pane containing the last commands that were issued.

Constructor & Destructor Documentation

◆ CharButton()

CharButton::CharButton ( wxWindow *  parent,
wxWindow *  worksheet,
Configuration config,
const Definition def,
bool  forceShow = false 
)

A flat, compact button for the greek and the symbols pane

Parameters
parentThe parent panel/window
worksheetThe worksheet this button sends char events to
defThe definition of the button

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