.TH "DOM::CSS2BackgroundPosition" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::CSS2BackgroundPosition \- The \fC\fBCSS2BackgroundPosition\fP\fP interface represents the \fCbackground-position \fP CSS Level 2 property.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <css_extensions.h>\fP
.PP
Inherits \fBDOM::CSSValue\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBCSS2BackgroundPosition\fP (const \fBCSS2BackgroundPosition\fP &other)"
.br
.ti -1c
.RI "\fBCSS2BackgroundPosition\fP (CSS2BackgroundPositionImpl *impl)"
.br
.ti -1c
.RI "\fBCSS2BackgroundPosition\fP & \fBoperator=\fP (const \fBCSS2BackgroundPosition\fP &other)"
.br
.ti -1c
.RI "unsigned short \fBhorizontalType\fP () const "
.br
.ti -1c
.RI "unsigned short \fBverticalType\fP () const "
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBhorizontalIdentifier\fP () const "
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBverticalIdentifier\fP () const "
.br
.ti -1c
.RI "float \fBgetHorizontalPosition\fP (const float horizontalType)"
.br
.ti -1c
.RI "float \fBgetVerticalPosition\fP (const float verticalType)"
.br
.ti -1c
.RI "void \fBsetHorizontalPosition\fP (const unsigned short horizontalType, const float value)"
.br
.ti -1c
.RI "void \fBsetVerticalPosition\fP (const unsigned short verticalType, const float value)"
.br
.ti -1c
.RI "void \fBsetPositionIdentifier\fP (const \fBDOM::DOMString\fP &horizontalIdentifier, const \fBDOM::DOMString\fP &verticalIdentifier)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC\fBCSS2BackgroundPosition\fP\fP interface represents the \fCbackground-position \fP CSS Level 2 property. 
.PP
Definition at line 145 of file css_extensions.h.
.SH "Member Function Documentation"
.PP 
.SS "unsigned short CSS2BackgroundPosition::horizontalType () const"
.PP
A code defining the type of the horizontal value. 
.PP
It would be one \fCCSS_PERCENTAGE\fP , \fCCSS_EMS\fP , \fCCSS_EXS\fP , \fCCSS_PX\fP , \fCCSS_CM\fP , \fCCSS_MM\fP , \fCCSS_IN\fP , \fCCSS_PT\fP , \fCCSS_PC\fP , \fCCSS_IDENT\fP , \fCCSS_INHERIT\fP . If one of horizontal or vertical is \fCCSS_IDENT\fP or \fCCSS_INHERIT\fP , it's guaranteed that the other is the same. 
.PP
Definition at line 112 of file css_extensions.cpp.
.SS "unsigned short CSS2BackgroundPosition::verticalType () const"
.PP
A code defining the type of the horizontal value. 
.PP
The code can be one of the following units : \fCCSS_PERCENTAGE\fP , \fCCSS_EMS\fP , \fCCSS_EXS\fP , \fCCSS_PX\fP , \fCCSS_CM\fP , \fCCSS_MM\fP , \fCCSS_IN\fP , \fCCSS_PT\fP , \fCCSS_PC\fP , \fCCSS_IDENT\fP , \fCCSS_INHERIT\fP . If one of horizontal or vertical is \fCCSS_IDENT\fP or \fCCSS_INHERIT\fP , it's guaranteed that the other is the same. 
.PP
Definition at line 118 of file css_extensions.cpp.
.SS "\fBDOMString\fP CSS2BackgroundPosition::horizontalIdentifier () const"
.PP
If \fChorizontalType\fP is \fCCSS_IDENT\fP or \fCCSS_INHERIT\fP , this attribute contains the string representation of the ident, otherwise it contains an empty string. 
.PP
Definition at line 124 of file css_extensions.cpp.
.PP
Referenced by setPositionIdentifier().
.SS "\fBDOMString\fP CSS2BackgroundPosition::verticalIdentifier () const"
.PP
If \fCverticalType\fP is \fCCSS_IDENT\fP or \fCCSS_INHERIT\fP , this attribute contains the string representation of the ident, otherwise it contains an empty string. 
.PP
The value is \fC'center'\fP if only the horizontalIdentifier has been set. The value is \fC'inherit'\fP if the horizontalIdentifier is \fC'inherit'\fP . 
.PP
Definition at line 130 of file css_extensions.cpp.
.PP
Referenced by setPositionIdentifier().
.SS "float CSS2BackgroundPosition::getHorizontalPosition (const float horizontalType)"
.PP
This method is used to get the float value in a specified unit if the \fChorizontalPosition\fP represents a length or a percentage. 
.PP
If the float doesn't contain a float value or can't be converted into the specified unit, a \fC\fBDOMException\fP\fP is raised.
.PP
\fBParameters:\fP
.RS 4
\fIhorizontalType\fP The specified unit.
.RE
.PP
\fBReturns:\fP
.RS 4
The float value.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted. 
.RE
.PP

.PP
Definition at line 136 of file css_extensions.cpp.
.SS "float CSS2BackgroundPosition::getVerticalPosition (const float verticalType)"
.PP
This method is used to get the float value in a specified unit if the \fCverticalPosition\fP represents a length or a percentage. 
.PP
If the float doesn't contain a float value or can't be converted into the specified unit, a \fC\fBDOMException\fP\fP is raised. The value is \fC50%\fP if only the horizontal value has been specified.
.PP
\fBParameters:\fP
.RS 4
\fIverticalType\fP The specified unit.
.RE
.PP
\fBReturns:\fP
.RS 4
The float value.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted. 
.RE
.PP

.PP
Definition at line 142 of file css_extensions.cpp.
.SS "void CSS2BackgroundPosition::setHorizontalPosition (const unsigned short horizontalType, const float value)"
.PP
This method is used to set the horizontal position with a specified unit. 
.PP
If the vertical value is not a percentage or a length, it sets the vertical position to \fC50%\fP .
.PP
\fBParameters:\fP
.RS 4
\fIhorizontalType\fP The specified unit (a length or a percentage).
.br
\fIvalue\fP The new value.
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the specified unit is not a length or a percentage.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. 
.PP
Definition at line 148 of file css_extensions.cpp.
.SS "void CSS2BackgroundPosition::setVerticalPosition (const unsigned short verticalType, const float value)"
.PP
This method is used to set the vertical position with a specified unit. 
.PP
If the horizontal value is not a percentage or a length, it sets the vertical position to \fC50%\fP .
.PP
\fBParameters:\fP
.RS 4
\fIverticalType\fP The specified unit (a length or a percentage).
.br
\fIvalue\fP The new value.
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the specified unit is not a length or a percentage.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. 
.PP
Definition at line 154 of file css_extensions.cpp.
.SS "void CSS2BackgroundPosition::setPositionIdentifier (const \fBDOM::DOMString\fP & horizontalIdentifier, const \fBDOM::DOMString\fP & verticalIdentifier)"
.PP
Sets the identifiers. 
.PP
If the second identifier is the empty string, the vertical identifier is set to his default value ( \fC'center'\fP ). If the first identfier is \fC'inherit\fP , the second identifier is ignored and is set to \fC'inherit'\fP .
.PP
\fBParameters:\fP
.RS 4
\fIhorizontalIdentifier\fP The new horizontal identifier.
.br
\fIverticalIdentifier\fP The new vertical identifier.
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP SYNTAX_ERR: Raises if the identifiers have a syntax error and is unparsable.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. 
.PP
Definition at line 160 of file css_extensions.cpp.
.PP
References horizontalIdentifier(), and verticalIdentifier().

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
