wxMaxima
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes
CharButton Class Reference

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

#include <CharButton.h>

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

Data Structures

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)
 A flat, compact button for the greek and the symbols pane.
 
wxWindow * GetTextObject () const
 
void ActivateButton ()
 Emit this button's symbol to the worksheet – the button's action, shared by the mouse handler and the accessibility "Press" default action.
 
void UpdateMinSize ()
 Sets the min size the button needs to show its symbol.
 

Protected Member Functions

void CharButtonPressed (wxMouseEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void OnIdleEvent (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)
 

Protected Attributes

wchar_t m_char
 
Configuration * m_configuration
 
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

Member Function Documentation

◆ UpdateMinSize()

void CharButton::UpdateMinSize ( )

Sets the min size the button needs to show its symbol.

Called from the constructor, so the size is known before the button ever receives a size event, and again on every size event, in case the font or the scale factor has changed since.


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