Qt 5.10 Book Examples
Public Slots | Public Member Functions | Protected Member Functions | List of all members
Turtle Class Reference

#include <Turtle.h>

Inheritance diagram for Turtle:

Public Slots

void forward (int n)
 
void back (int n)
 
void left (int nAngle)
 
void right (int nAngle)
 
void reset ()
 

Public Member Functions

 Turtle (QWidget *pwgt=0)
 

Protected Member Functions

void init ()
 
virtual void paintEvent (QPaintEvent *)
 

Detailed Description

Definition at line 16 of file Turtle.h.

Constructor & Destructor Documentation

◆ Turtle()

Turtle::Turtle ( QWidget *  pwgt = 0)
inline

Definition at line 23 of file Turtle.h.

Member Function Documentation

◆ back

void Turtle::back ( int  n)
inlineslot

Definition at line 53 of file Turtle.h.

◆ forward

void Turtle::forward ( int  n)
inlineslot

Definition at line 46 of file Turtle.h.

◆ init()

void Turtle::init ( )
inlineprotected

Definition at line 32 of file Turtle.h.

◆ left

void Turtle::left ( int  nAngle)
inlineslot

Definition at line 60 of file Turtle.h.

◆ paintEvent()

virtual void Turtle::paintEvent ( QPaintEvent *  )
inlineprotectedvirtual

Definition at line 39 of file Turtle.h.

◆ reset

void Turtle::reset ( )
inlineslot

Definition at line 70 of file Turtle.h.

◆ right

void Turtle::right ( int  nAngle)
inlineslot

Definition at line 65 of file Turtle.h.


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