# khtml Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# DOM::HTMLImageElement Class Reference

Embedded image. More...

`#include <html_image.h>`

Inheritance diagram for DOM::HTMLImageElement:

[legend]
Collaboration diagram for DOM::HTMLImageElement:

[legend]
List of all members.

## Public Member Functions

| HTMLImageElement (const HTMLImageElement &other)
| HTMLImageElement (const Node &other)
HTMLImageElement & | operator= (const HTMLImageElement &other)
HTMLImageElement & | operator= (const Node &other)
DOMString | name () const
void | setName (const DOMString &)
DOMString | align () const
void | setAlign (const DOMString &)
DOMString | alt () const
void | setAlt (const DOMString &)
DOMString | getBorder () const
void | setBorder (const DOMString &)
long | border () const KDE_DEPRECATED
void | setBorder (long) KDE_DEPRECATED
long | height () const
void | setHeight (long)
long | hspace () const
void | setHspace (long)
bool | isMap () const
void | setIsMap (bool)
DOMString | longDesc () const
void | setLongDesc (const DOMString &)
DOMString | src () const
void | setSrc (const DOMString &)
DOMString | useMap () const
void | setUseMap (const DOMString &)
long | vspace () const
void | setVspace (long)
long | width () const
void | setWidth (long)
long | x () const
long | y () const

## Protected Member Functions

| HTMLImageElement (HTMLImageElementImpl *impl)

## Detailed Description

Embedded image.

See the IMG element definition in HTML 4.0.

Definition at line 185 of file html_image.h.

## Member Function Documentation

DOMString HTMLImageElement::name | ( |  | ) | const

| The name of the element (for backwards compatibility). Definition at line 191 of file html_image.cpp.

void HTMLImageElement::setName | ( | const DOMString & |  | ) |

| see name Definition at line 197 of file html_image.cpp.

DOMString HTMLImageElement::align | ( |  | ) | const

| Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0. Definition at line 202 of file html_image.cpp.

void HTMLImageElement::setAlign | ( | const DOMString & |  | ) |

| see align Definition at line 208 of file html_image.cpp.

DOMString HTMLImageElement::alt | ( |  | ) | const

| Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0. Definition at line 213 of file html_image.cpp.

void HTMLImageElement::setAlt | ( | const DOMString & |  | ) |

| see alt Definition at line 219 of file html_image.cpp.

DOMString HTMLImageElement::getBorder | ( |  | ) | const

| Width of border around image. See the border attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0. Definition at line 236 of file html_image.cpp.

void HTMLImageElement::setBorder | ( | const DOMString & |  | ) |

| see border Definition at line 242 of file html_image.cpp.

long HTMLImageElement::border | ( |  | ) | const

Deprecated:

Definition at line 224 of file html_image.cpp.

References DOM::DOMString::toInt().

void HTMLImageElement::setBorder | ( | long |  | ) |

Deprecated:

Definition at line 231 of file html_image.cpp.

long HTMLImageElement::height | ( |  | ) | const

| Override height. See the height attribute definition in HTML 4.0. Definition at line 248 of file html_image.cpp.

void HTMLImageElement::setHeight | ( | long |  | ) |

| see height Definition at line 254 of file html_image.cpp.

long HTMLImageElement::hspace | ( |  | ) | const

| Horizontal space to the left and right of this image. See the hspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0. Definition at line 259 of file html_image.cpp. References DOM::DOMString::toInt().

void HTMLImageElement::setHspace | ( | long |  | ) |

| see hspace Definition at line 266 of file html_image.cpp.

bool HTMLImageElement::isMap | ( |  | ) | const

| Use server-side image map. See the ismap attribute definition in HTML 4.0. Definition at line 271 of file html_image.cpp. References DOM::DOMString::isNull().

void HTMLImageElement::setIsMap | ( | bool |  | ) |

| see isMap Definition at line 277 of file html_image.cpp.

DOMString HTMLImageElement::longDesc | ( |  | ) | const

| URI designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.0. Definition at line 288 of file html_image.cpp.

void HTMLImageElement::setLongDesc | ( | const DOMString & |  | ) |

| see longDesc Definition at line 294 of file html_image.cpp.

DOMString HTMLImageElement::src | ( |  | ) | const

| URI designating the source of this image. See the src attribute definition in HTML 4.0. Definition at line 299 of file html_image.cpp. References DOM::DOMString::isNull(), and DOM::DOMString::string().

void HTMLImageElement::setSrc | ( | const DOMString & |  | ) |

| see src Definition at line 306 of file html_image.cpp.

DOMString HTMLImageElement::useMap | ( |  | ) | const

| Use client-side image map. See the usemap attribute definition in HTML 4.0. Definition at line 311 of file html_image.cpp.

void HTMLImageElement::setUseMap | ( | const DOMString & |  | ) |

| see useMap Definition at line 317 of file html_image.cpp.

long HTMLImageElement::vspace | ( |  | ) | const

| Vertical space above and below this image. See the vspace attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0. Definition at line 322 of file html_image.cpp. References DOM::DOMString::toInt().

void HTMLImageElement::setVspace | ( | long |  | ) |

| see vspace Definition at line 329 of file html_image.cpp.

long HTMLImageElement::width | ( |  | ) | const

| Override width. See the width attribute definition in HTML 4.0. Definition at line 334 of file html_image.cpp.

void HTMLImageElement::setWidth | ( | long |  | ) |

| see width Definition at line 340 of file html_image.cpp.

long HTMLImageElement::x | ( |  | ) | const

| Nonstandard extension to DOM::ImgElement. Definition at line 345 of file html_image.cpp. References x(). Referenced by x().

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

- html_image.h
- html_image.cpp

This file is part of the documentation for khtml Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:34:17 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003