• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kig

BogusImp Class Reference

#include <bogus_imp.h>

Inheritance diagram for BogusImp:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is the base class for the so-called BogusImp's.

These ObjectImp's are not really ObjectImp's, in that they don't represent objects. They exist because ObjectImp's also serve another purpose, namely containing data. They can all be loaded and saved, and the only difference between these objects and normal objects are that these serve *only* to be loaded and saved. This approach adds a lot of flexibility to the Kig system, and has certainly proven itself very valuable.

Definition at line 37 of file bogus_imp.h.


Public Member Functions

Coordinate attachPoint () const
void draw (KigPainter &p) const
bool contains (const Coordinate &p, int width, const KigWidget &w) const
bool inRect (const Rect &r, int width, const KigWidget &w) const
Rect surroundingRect () const
ObjectImp * transform (const Transformation &) const

Static Public Member Functions

static const ObjectImpType * stype ()

Member Function Documentation

const ObjectImpType * BogusImp::stype (  )  [static]

Returns the ObjectImpType representing the BogusImp type.

Reimplemented from ObjectImp.

Reimplemented in InvalidImp, DoubleImp, IntImp, StringImp, HierarchyImp, TransformationImp, and TestResultImp.

Definition at line 286 of file bogus_imp.cc.

Coordinate BogusImp::attachPoint (  )  const [virtual]

Returns a reference point where to attach labels; when this returns an invalidCoord then the attachment is either not done at all, or done in a specific way (like for curves, or for points) The treatment of points could also take advantage of this attachment mechanism.

If this method returns a valid Coordinate, then this is interpreted as a pivot point for the label, which can still be moved relative to that point, but follows the object when the object changes. In practice a new RelativePointType is created (position of the string), this type in turn depends on the object (to get its attachPoint) and two DoubleImp that are interpreted as relative displacement (x and y)

Implements ObjectImp.

Definition at line 25 of file bogus_imp.cc.

void BogusImp::draw ( KigPainter &  p  )  const [virtual]

Implements ObjectImp.

Definition at line 30 of file bogus_imp.cc.

bool BogusImp::contains ( const Coordinate &  p,
int  width,
const KigWidget &  w 
) const [virtual]

Implements ObjectImp.

Definition at line 34 of file bogus_imp.cc.

bool BogusImp::inRect ( const Rect &  r,
int  width,
const KigWidget &  w 
) const [virtual]

Implements ObjectImp.

Definition at line 39 of file bogus_imp.cc.

Rect BogusImp::surroundingRect (  )  const [virtual]

Implements ObjectImp.

Definition at line 385 of file bogus_imp.cc.

ObjectImp * BogusImp::transform ( const Transformation &  t  )  const [virtual]

Return this ObjectImp, transformed by the transformation t.

Implements ObjectImp.

Definition at line 74 of file bogus_imp.cc.


The documentation for this class was generated from the following files:
  • bogus_imp.h
  • bogus_imp.cc

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal