\section{khtml::Render\-Object Class Reference}
\label{classkhtml_1_1RenderObject}\index{khtml::RenderObject@{khtml::RenderObject}}
Base Class for all rendering tree objects.  


{\tt \#include $<$render\_\-object.h$>$}

Inheritance diagram for khtml::Render\-Object:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=82pt]{classkhtml_1_1RenderObject__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for khtml::Render\-Object:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=117pt]{classkhtml_1_1RenderObject__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Border\-Side} \{ {\bf BSTop}, 
{\bf BSBottom}, 
{\bf BSLeft}, 
{\bf BSRight}
 \}
\item 
enum {\bf Selection\-State} \{ \par
{\bf Selection\-None}, 
{\bf Selection\-Start}, 
{\bf Selection\-Inside}, 
{\bf Selection\-End}, 
\par
{\bf Selection\-Both}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Render\-Object} (DOM::Node\-Impl $\ast$node)\label{classkhtml_1_1RenderObject_a0}

\item 
{\bf Render\-Object} $\ast$ {\bf parent} () const \label{classkhtml_1_1RenderObject_a2}

\item 
{\bf Render\-Object} $\ast$ {\bf previous\-Sibling} () const \label{classkhtml_1_1RenderObject_a3}

\item 
{\bf Render\-Object} $\ast$ {\bf next\-Sibling} () const \label{classkhtml_1_1RenderObject_a4}

\item 
virtual {\bf Render\-Object} $\ast$ {\bf first\-Child} () const \label{classkhtml_1_1RenderObject_a5}

\item 
virtual {\bf Render\-Object} $\ast$ {\bf last\-Child} () const \label{classkhtml_1_1RenderObject_a6}

\item 
{\bf Render\-Object} $\ast$ {\bf object\-Below} () const \label{classkhtml_1_1RenderObject_a7}

\item 
{\bf Render\-Object} $\ast$ {\bf object\-Above} () const \label{classkhtml_1_1RenderObject_a8}

\item 
virtual void {\bf add\-Child} ({\bf Render\-Object} $\ast$new\-Child, {\bf Render\-Object} $\ast$before\-Child=0)\label{classkhtml_1_1RenderObject_a9}

\item 
void {\bf remove\-Child} ({\bf Render\-Object} $\ast$old\-Child)\label{classkhtml_1_1RenderObject_a10}

\item 
virtual {\bf Render\-Object} $\ast$ {\bf remove\-Child\-Node} ({\bf Render\-Object} $\ast$child)\label{classkhtml_1_1RenderObject_a11}

\item 
virtual void {\bf append\-Child\-Node} ({\bf Render\-Object} $\ast$child)\label{classkhtml_1_1RenderObject_a12}

\item 
virtual void {\bf insert\-Child\-Node} ({\bf Render\-Object} $\ast$child, {\bf Render\-Object} $\ast$before)\label{classkhtml_1_1RenderObject_a13}

\item 
virtual const  char $\ast$ {\bf render\-Name} () const \label{classkhtml_1_1RenderObject_a14}

\item 
{\bf QString} {\bf information} () const \label{classkhtml_1_1RenderObject_a15}

\item 
virtual void {\bf print\-Tree} (int indent=0) const \label{classkhtml_1_1RenderObject_a16}

\item 
virtual void {\bf dump} ({\bf QText\-Stream} $\ast$stream, {\bf QString} ind=\char`\"{}\char`\"{}) const \label{classkhtml_1_1RenderObject_a17}

\item 
virtual bool {\bf children\-Inline} () const \label{classkhtml_1_1RenderObject_a18}

\item 
virtual bool {\bf is\-Rendered} () const \label{classkhtml_1_1RenderObject_a19}

\item 
virtual bool {\bf is\-Flow} () const \label{classkhtml_1_1RenderObject_a20}

\item 
virtual bool {\bf is\-List\-Item} () const \label{classkhtml_1_1RenderObject_a21}

\item 
virtual bool {\bf is\-Root} () const \label{classkhtml_1_1RenderObject_a22}

\item 
virtual bool {\bf is\-BR} () const \label{classkhtml_1_1RenderObject_a23}

\item 
virtual bool {\bf is\-Html} () const \label{classkhtml_1_1RenderObject_a24}

\item 
virtual bool {\bf is\-Table\-Cell} () const \label{classkhtml_1_1RenderObject_a25}

\item 
virtual bool {\bf is\-Table\-Row} () const \label{classkhtml_1_1RenderObject_a26}

\item 
virtual bool {\bf is\-Table\-Section} () const \label{classkhtml_1_1RenderObject_a27}

\item 
virtual bool {\bf is\-Table\-Col} () const \label{classkhtml_1_1RenderObject_a28}

\item 
virtual bool {\bf is\-Table} () const \label{classkhtml_1_1RenderObject_a29}

\item 
virtual bool {\bf is\-Widget} () const \label{classkhtml_1_1RenderObject_a30}

\item 
virtual bool {\bf is\-Body} () const \label{classkhtml_1_1RenderObject_a31}

\item 
virtual bool {\bf is\-Form\-Element} () const \label{classkhtml_1_1RenderObject_a32}

\item 
virtual bool {\bf is\-Frame\-Set} () const \label{classkhtml_1_1RenderObject_a33}

\item 
virtual bool {\bf is\-Applet} () const \label{classkhtml_1_1RenderObject_a34}

\item 
bool {\bf is\-Anonymous\-Box} () const \label{classkhtml_1_1RenderObject_a35}

\item 
void {\bf set\-Is\-Anonymous\-Box} (bool b)\label{classkhtml_1_1RenderObject_a36}

\item 
bool {\bf is\-Floating} () const \label{classkhtml_1_1RenderObject_a37}

\item 
bool {\bf is\-Positioned} () const \label{classkhtml_1_1RenderObject_a38}

\item 
bool {\bf is\-Rel\-Positioned} () const \label{classkhtml_1_1RenderObject_a39}

\item 
bool {\bf is\-Text} () const \label{classkhtml_1_1RenderObject_a40}

\item 
bool {\bf is\-Inline} () const \label{classkhtml_1_1RenderObject_a41}

\item 
bool {\bf mouse\-Inside} () const \label{classkhtml_1_1RenderObject_a42}

\item 
bool {\bf is\-Replaced} () const \label{classkhtml_1_1RenderObject_a43}

\item 
bool {\bf has\-Special\-Objects} () const \label{classkhtml_1_1RenderObject_a44}

\item 
bool {\bf layouted} () const \label{classkhtml_1_1RenderObject_a45}

\item 
bool {\bf min\-Max\-Known} () const \label{classkhtml_1_1RenderObject_a46}

\item 
bool {\bf overhanging\-Contents} () const \label{classkhtml_1_1RenderObject_a47}

\item 
bool {\bf has\-First\-Line} () const \label{classkhtml_1_1RenderObject_a48}

\item 
bool {\bf is\-Selection\-Border} () const \label{classkhtml_1_1RenderObject_a49}

\item 
bool {\bf recalc\-Min\-Max} () const \label{classkhtml_1_1RenderObject_a50}

\item 
Render\-Root $\ast$ {\bf root} () const \label{classkhtml_1_1RenderObject_a51}

\item 
DOM::Node\-Impl $\ast$ {\bf element} () const \label{classkhtml_1_1RenderObject_a52}

\item 
{\bf Render\-Object} $\ast$ {\bf container} () const 
\begin{CompactList}\small\item\em returns the object containing this one. \item\end{CompactList}\item 
void {\bf set\-Overhanging\-Contents} (bool p=true)\label{classkhtml_1_1RenderObject_a54}

\item 
void {\bf set\-Layouted} ()\label{classkhtml_1_1RenderObject_a55}

\item 
void {\bf set\-Layouted} (bool b)\label{classkhtml_1_1RenderObject_a56}

\item 
void {\bf set\-Layouted\-Local} (bool b)\label{classkhtml_1_1RenderObject_a57}

\item 
void {\bf set\-Min\-Max\-Known} (bool b=true)\label{classkhtml_1_1RenderObject_a58}

\item 
void {\bf set\-Positioned} (bool b=true)\label{classkhtml_1_1RenderObject_a59}

\item 
void {\bf set\-Rel\-Positioned} (bool b=true)\label{classkhtml_1_1RenderObject_a60}

\item 
void {\bf set\-Floating} (bool b=true)\label{classkhtml_1_1RenderObject_a61}

\item 
void {\bf set\-Inline} (bool b=true)\label{classkhtml_1_1RenderObject_a62}

\item 
void {\bf set\-Mouse\-Inside} (bool b=true)\label{classkhtml_1_1RenderObject_a63}

\item 
void {\bf set\-Special\-Objects} (bool b=true)\label{classkhtml_1_1RenderObject_a64}

\item 
void {\bf set\-Render\-Text} ()\label{classkhtml_1_1RenderObject_a65}

\item 
void {\bf set\-Replaced} (bool b=true)\label{classkhtml_1_1RenderObject_a66}

\item 
void {\bf set\-Is\-Selection\-Border} (bool b=true)\label{classkhtml_1_1RenderObject_a67}

\item 
void {\bf schedule\-Relayout} ()\label{classkhtml_1_1RenderObject_a68}

\item 
virtual short {\bf line\-Height} (bool first\-Line) const \label{classkhtml_1_1RenderObject_a69}

\item 
virtual short {\bf vertical\-Position\-Hint} (bool first\-Line) const \label{classkhtml_1_1RenderObject_a70}

\item 
virtual short {\bf baseline\-Position} (bool first\-Line) const \label{classkhtml_1_1RenderObject_a71}

\item 
virtual void {\bf paint} ({\bf QPainter} $\ast$p, int x, int y, int w, int h, int tx, int ty)\label{classkhtml_1_1RenderObject_a72}

\item 
virtual void {\bf paint\-Object} ({\bf QPainter} $\ast$, int, int, int, int, int, int)\label{classkhtml_1_1RenderObject_a73}

\item 
void {\bf paint\-Border} ({\bf QPainter} $\ast$p, int \_\-tx, int \_\-ty, int w, int h, const  Render\-Style $\ast$style, bool begin=true, bool end=true)\label{classkhtml_1_1RenderObject_a74}

\item 
void {\bf paint\-Outline} ({\bf QPainter} $\ast$p, int \_\-tx, int \_\-ty, int w, int h, const  Render\-Style $\ast$style)\label{classkhtml_1_1RenderObject_a75}

\item 
virtual void {\bf calc\-Min\-Max\-Width} ()\label{classkhtml_1_1RenderObject_a76}

\item 
void {\bf recalc\-Min\-Max\-Widths} ()\label{classkhtml_1_1RenderObject_a77}

\item 
virtual void {\bf calc\-Width} ()\label{classkhtml_1_1RenderObject_a78}

\item 
virtual void {\bf layout} ()=0\label{classkhtml_1_1RenderObject_a79}

\item 
virtual void {\bf update\-From\-Element} ()\label{classkhtml_1_1RenderObject_a80}

\item 
virtual void {\bf close} ()\label{classkhtml_1_1RenderObject_a81}

\item 
virtual int {\bf available\-Height} () const \label{classkhtml_1_1RenderObject_a82}

\item 
virtual Find\-Selection\-Result {\bf check\-Selection\-Point} (int \_\-x, int \_\-y, int \_\-tx, int \_\-ty, DOM::Node\-Impl $\ast$\&, int \&offset)\label{classkhtml_1_1RenderObject_a83}

\item 
virtual bool {\bf node\-At\-Point} (Node\-Info \&info, int x, int y, int tx, int ty)\label{classkhtml_1_1RenderObject_a84}

\item 
virtual void {\bf set\-Style} (Render\-Style $\ast$style)\label{classkhtml_1_1RenderObject_a85}

\item 
{\bf Render\-Object} $\ast$ {\bf containing\-Block} () const \label{classkhtml_1_1RenderObject_a86}

\item 
virtual short {\bf containing\-Block\-Width} () const \label{classkhtml_1_1RenderObject_a87}

\item 
virtual int {\bf containing\-Block\-Height} () const \label{classkhtml_1_1RenderObject_a88}

\item 
virtual short {\bf content\-Width} () const \label{classkhtml_1_1RenderObject_a89}

\item 
virtual int {\bf content\-Height} () const \label{classkhtml_1_1RenderObject_a90}

\item 
virtual short {\bf intrinsic\-Width} () const \label{classkhtml_1_1RenderObject_a91}

\item 
virtual int {\bf intrinsic\-Height} () const \label{classkhtml_1_1RenderObject_a92}

\item 
virtual void {\bf set\-Pos} (int, int)\label{classkhtml_1_1RenderObject_a93}

\item 
virtual void {\bf set\-Width} (int)\label{classkhtml_1_1RenderObject_a94}

\item 
virtual void {\bf set\-Height} (int)\label{classkhtml_1_1RenderObject_a95}

\item 
virtual int {\bf x\-Pos} () const \label{classkhtml_1_1RenderObject_a96}

\item 
virtual int {\bf y\-Pos} () const \label{classkhtml_1_1RenderObject_a97}

\item 
virtual bool {\bf absolute\-Position} (int \&, int \&, bool fixed=false)\label{classkhtml_1_1RenderObject_a98}

\item 
virtual short {\bf width} () const \label{classkhtml_1_1RenderObject_a99}

\item 
virtual int {\bf height} () const \label{classkhtml_1_1RenderObject_a100}

\item 
virtual short {\bf margin\-Top} () const \label{classkhtml_1_1RenderObject_a101}

\item 
virtual short {\bf margin\-Bottom} () const \label{classkhtml_1_1RenderObject_a102}

\item 
virtual short {\bf margin\-Left} () const \label{classkhtml_1_1RenderObject_a103}

\item 
virtual short {\bf margin\-Right} () const \label{classkhtml_1_1RenderObject_a104}

\item 
int {\bf padding\-Top} () const \label{classkhtml_1_1RenderObject_a105}

\item 
int {\bf padding\-Bottom} () const \label{classkhtml_1_1RenderObject_a106}

\item 
int {\bf padding\-Left} () const \label{classkhtml_1_1RenderObject_a107}

\item 
int {\bf padding\-Right} () const \label{classkhtml_1_1RenderObject_a108}

\item 
int {\bf border\-Top} () const \label{classkhtml_1_1RenderObject_a109}

\item 
int {\bf border\-Bottom} () const \label{classkhtml_1_1RenderObject_a110}

\item 
int {\bf border\-Left} () const \label{classkhtml_1_1RenderObject_a111}

\item 
int {\bf border\-Right} () const \label{classkhtml_1_1RenderObject_a112}

\item 
virtual short {\bf min\-Width} () const \label{classkhtml_1_1RenderObject_a113}

\item 
virtual short {\bf max\-Width} () const \label{classkhtml_1_1RenderObject_a114}

\item 
Render\-Style $\ast$ {\bf style} () const \label{classkhtml_1_1RenderObject_a115}

\item 
Render\-Style $\ast$ {\bf style} (bool first\-Line) const \label{classkhtml_1_1RenderObject_a116}

\item 
void {\bf draw\-Border} ({\bf QPainter} $\ast$p, int x1, int y1, int x2, int y2, Border\-Side s, {\bf QColor} c, const  {\bf QColor} \&textcolor, EBorder\-Style style, int adjbw1, int adjbw2, bool invalidis\-Invert=false)\label{classkhtml_1_1RenderObject_a117}

\item 
virtual void {\bf repaint} ()\label{classkhtml_1_1RenderObject_a118}

\item 
virtual void {\bf repaint\-Rectangle} (int x, int y, int w, int h, bool f=false)\label{classkhtml_1_1RenderObject_a119}

\item 
virtual unsigned int {\bf length} () const \label{classkhtml_1_1RenderObject_a120}

\item 
virtual bool {\bf is\-Hidden} () const \label{classkhtml_1_1RenderObject_a121}

\item 
bool {\bf is\-Special} () const \label{classkhtml_1_1RenderObject_a122}

\item 
virtual bool {\bf contains\-Special} ()\label{classkhtml_1_1RenderObject_a123}

\item 
virtual bool {\bf has\-Overhanging\-Floats} ()\label{classkhtml_1_1RenderObject_a124}

\item 
virtual void {\bf position} (int, int, int, int, int, bool, bool, int)\label{classkhtml_1_1RenderObject_a125}

\item 
virtual Selection\-State {\bf selection\-State} () const \label{classkhtml_1_1RenderObject_a126}

\item 
virtual void {\bf set\-Selection\-State} (Selection\-State)\label{classkhtml_1_1RenderObject_a127}

\item 
virtual void {\bf cursor\-Pos} (int, int \&, int \&, int \&)\label{classkhtml_1_1RenderObject_a128}

\item 
virtual int {\bf lowest\-Position} () const \label{classkhtml_1_1RenderObject_a129}

\item 
virtual int {\bf rightmost\-Position} () const \label{classkhtml_1_1RenderObject_a130}

\item 
virtual void {\bf calc\-Vertical\-Margins} ()\label{classkhtml_1_1RenderObject_a131}

\item 
void {\bf remove\-From\-Special\-Objects} ()
\begin{CompactList}\small\item\em this method is unused \item\end{CompactList}\item 
virtual void {\bf detach} ()\label{classkhtml_1_1RenderObject_a133}

\item 
const  {\bf QFont} \& {\bf font} (bool first\-Line) const \label{classkhtml_1_1RenderObject_a134}

\item 
const  {\bf QFont\-Metrics} \& {\bf font\-Metrics} (bool first\-Line) const \label{classkhtml_1_1RenderObject_a135}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Render\-Object} $\ast$ {\bf create\-Object} (DOM::Node\-Impl $\ast$node, Render\-Style $\ast$style)\label{classkhtml_1_1RenderObject_e0}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf selection\-Start\-End} (int \&spos, int \&epos)\label{classkhtml_1_1RenderObject_b0}

\item 
virtual void {\bf paint\-Box\-Decorations} ({\bf QPainter} $\ast$, int, int, int, int, int, int)\label{classkhtml_1_1RenderObject_b1}

\item 
virtual {\bf QRect} {\bf view\-Rect} () const \label{classkhtml_1_1RenderObject_b2}

\item 
void {\bf remove} ()\label{classkhtml_1_1RenderObject_b3}

\item 
void {\bf invalidate\-Vertical\-Positions} ()\label{classkhtml_1_1RenderObject_b4}

\item 
short {\bf get\-Vertical\-Position} (bool first\-Line) const \label{classkhtml_1_1RenderObject_b5}

\item 
virtual void {\bf remove\-Leftover\-Anonymous\-Boxes} ()\label{classkhtml_1_1RenderObject_b6}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Render\-List\-Item}\label{classkhtml_1_1RenderObject_n0}

\item 
class {\bf Render\-Container}\label{classkhtml_1_1RenderObject_n1}

\item 
class {\bf Render\-Root}\label{classkhtml_1_1RenderObject_n2}

\end{CompactItemize}


\subsection{Detailed Description}
Base Class for all rendering tree objects. 



Definition at line 73 of file render\_\-object.h.

\subsection{Member Function Documentation}
\index{khtml::RenderObject@{khtml::Render\-Object}!container@{container}}
\index{container@{container}!khtml::RenderObject@{khtml::Render\-Object}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Render\-Object} $\ast$ Render\-Object::container () const}\label{classkhtml_1_1RenderObject_a53}


returns the object containing this one. 

can be different from parent for positioned elements 

Definition at line 795 of file render\_\-object.cpp.\index{khtml::RenderObject@{khtml::Render\-Object}!removeFromSpecialObjects@{removeFromSpecialObjects}}
\index{removeFromSpecialObjects@{removeFromSpecialObjects}!khtml::RenderObject@{khtml::Render\-Object}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Render\-Object::remove\-From\-Special\-Objects ()}\label{classkhtml_1_1RenderObject_a132}


this method is unused 



Definition at line 818 of file render\_\-object.cpp.

References is\-Flow(), and parent().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
render\_\-object.h\item 
render\_\-object.cpp\end{CompactItemize}
