Minsky
minsky::FontDisplay Class Reference

#include <fontDisplay.h>

Inheritance diagram for minsky::FontDisplay:
Inheritance graph
Collaboration diagram for minsky::FontDisplay:
Collaboration graph

Public Member Functions

void requestRedraw ()
 
 FontDisplay ()=default
 
 FontDisplay (const FontDisplay &)=default
 
FontDisplayoperator= (const FontDisplay &)
 
- Public Member Functions inherited from minsky::RenderNativeWindow
const RenderFrameArgsframeArgs () const
 
 ~RenderNativeWindow () override
 
virtual void init ()
 perform any initialisation of any subclasses of this More...
 
void renderFrame (const RenderFrameArgs &args)
 
void destroyFrame ()
 
void draw ()
 
void requestRedraw ()
 
void macOSXRedraw ()
 
RenderNativeWindowoperator= (const RenderNativeWindow &x)
 
 RenderNativeWindow ()=default
 
 RenderNativeWindow (const RenderNativeWindow &)=default
 
virtual bool hasScrollBars () const
 return whether this window has scrollbars (needed for MacOSX). More...
 
- Public Member Functions inherited from minsky::EventInterface
virtual void mouseDown (float x, float y)
 
virtual void controlMouseDown (float x, float y)
 
virtual void mouseUp (float x, float y)
 
virtual void mouseMove (float x, float y)
 
virtual void zoom (double x, double y, double z)
 
virtual void moveTo (float x, float y)
 move this so that (x,y) is centred More...
 
virtual std::vector< float > position () const
 current centre coordinates More...
 
virtual double zoomFactor () const
 
virtual bool keyPress (const KeyPressArgs &)
 handle key press over current itemFocus, More...
 
virtual bool getItemAt (float x, float y)
 item or wire obtained by get*At() calls More...
 
virtual bool getWireAt (float x, float y)
 item or wire obtained by get*At() calls More...
 

Private Member Functions

bool redraw (int, int, int width, int height) override
 
 CLASSDESC_ACCESS (FontDisplay)
 

Additional Inherited Members

- Static Public Member Functions inherited from minsky::RenderNativeWindow
static double scaleFactor ()
 
- Public Attributes inherited from minsky::EventInterface
ItemPtr item
 item or wire obtained by get*At() calls More...
 
WirePtr wire
 item or wire obtained by get*At() calls More...
 
- Static Public Attributes inherited from minsky::RenderNativeWindow
static ecolab::cairo::Colour backgroundColour {0.8,0.8,0.8,1}
 

Detailed Description

Definition at line 29 of file fontDisplay.h.

Constructor & Destructor Documentation

◆ FontDisplay() [1/2]

minsky::FontDisplay::FontDisplay ( )
default

◆ FontDisplay() [2/2]

minsky::FontDisplay::FontDisplay ( const FontDisplay )
default

Member Function Documentation

◆ CLASSDESC_ACCESS()

minsky::FontDisplay::CLASSDESC_ACCESS ( FontDisplay  )
private

◆ operator=()

FontDisplay& minsky::FontDisplay::operator= ( const FontDisplay )
inline

Definition at line 44 of file fontDisplay.h.

44 {return *this;}

◆ redraw()

bool minsky::FontDisplay::redraw ( int  ,
int  ,
int  width,
int  height 
)
inlineoverrideprivate

Definition at line 31 of file fontDisplay.h.

31  {
32  cairo_move_to(surface->cairo(),0,0);
33  ecolab::Pango pango(surface->cairo());
34  pango.setFontSize(10);
35  pango.setText("←→↑↓—▼αΣ∫√⊗≤");
36  pango.show();
37  return true;
38  }

◆ requestRedraw()

void minsky::FontDisplay::requestRedraw ( )
inline

Definition at line 41 of file fontDisplay.h.

41 {if (surface.get()) surface->requestRedraw();}

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