• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • DOM
  • CSS2BorderSpacing
Public Member Functions | List of all members
DOM::CSS2BorderSpacing Class Reference

#include <css_extensions.h>

Inheritance diagram for DOM::CSS2BorderSpacing:
DOM::CSSValue

Public Member Functions

 CSS2BorderSpacing ()
 CSS2BorderSpacing (const CSS2BorderSpacing &other)
 CSS2BorderSpacing (CSS2BorderSpacingImpl *impl)
 ~CSS2BorderSpacing ()
float getHorizontalSpacing (const float horizontalType)
float getVerticalSpacing (const float verticalType)
unsigned short horizontalType () const
CSS2BorderSpacing & operator= (const CSS2BorderSpacing &other)
void setHorizontalSpacing (const unsigned short horizontalType, const float value)
void setInherit ()
void setVerticalSpacing (const unsigned short verticalType, const float value)
unsigned short verticalType () const
Public Member Functions inherited from DOM::CSSValue
 CSSValue ()
 CSSValue (const CSSValue &other)
 CSSValue (CSSValueImpl *impl)
 ~CSSValue ()
DOM::DOMString cssText () const
unsigned short cssValueType () const
CSSValueImpl * handle () const
bool isCSSPrimitiveValue () const
bool isCSSValueList () const
bool isNull () const
CSSValue & operator= (const CSSValue &other)
void setCssText (const DOM::DOMString &)

Additional Inherited Members

Public Types inherited from DOM::CSSValue
enum  UnitTypes {
  CSS_INHERIT = 0 , CSS_PRIMITIVE_VALUE = 1 , CSS_VALUE_LIST = 2 , CSS_CUSTOM = 3 ,
  CSS_INITIAL = 4 , CSS_SVG_VALUE = 1001
}
Protected Attributes inherited from DOM::CSSValue
CSSValueImpl * impl

Detailed Description

The CSS2BorderSpacing interface represents the border-spacing CSS Level 2 property.

Definition at line 317 of file css_extensions.h.

Constructor & Destructor Documentation

◆ CSS2BorderSpacing() [1/3]

CSS2BorderSpacing::CSS2BorderSpacing ( )

Definition at line 168 of file css_extensions.cpp.

◆ CSS2BorderSpacing() [2/3]

CSS2BorderSpacing::CSS2BorderSpacing ( const CSS2BorderSpacing & other)

Definition at line 172 of file css_extensions.cpp.

◆ CSS2BorderSpacing() [3/3]

CSS2BorderSpacing::CSS2BorderSpacing ( CSS2BorderSpacingImpl * impl)

Definition at line 176 of file css_extensions.cpp.

◆ ~CSS2BorderSpacing()

CSS2BorderSpacing::~CSS2BorderSpacing ( )

Definition at line 186 of file css_extensions.cpp.

Member Function Documentation

◆ getHorizontalSpacing()

float CSS2BorderSpacing::getHorizontalSpacing ( const float horizontalType)

This method is used to get the float value in a specified unit if the horizontalSpacing represents a length.

If the float doesn't contain a float value or can't be converted into the specified unit, a DOMException is raised.

Parameters
horizontalTypeThe specified unit.
Returns
The float value.
Exceptions
DOMExceptionINVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted.

Definition at line 202 of file css_extensions.cpp.

◆ getVerticalSpacing()

float CSS2BorderSpacing::getVerticalSpacing ( const float verticalType)

This method is used to get the float value in a specified unit if the verticalSpacing represents a length.

If the float doesn't contain a float value or can't be converted into the specified unit, a DOMException is raised. The value is 0 if only the horizontal value has been specified.

Parameters
verticalTypeThe specified unit.
Returns
The float value.
Exceptions
DOMExceptionINVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted.

Definition at line 208 of file css_extensions.cpp.

◆ horizontalType()

unsigned short CSS2BorderSpacing::horizontalType ( ) const

The A code defining the type of the value as defined in CSSValue .

It would be one of CSS_EMS , CSS_EXS , CSS_PX , CSS_CM , CSS_MM , CSS_IN , CSS_PT , CSS_PC or CSS_INHERIT .

Definition at line 190 of file css_extensions.cpp.

◆ operator=()

CSS2BorderSpacing & CSS2BorderSpacing::operator= ( const CSS2BorderSpacing & other)

Definition at line 180 of file css_extensions.cpp.

◆ setHorizontalSpacing()

void CSS2BorderSpacing::setHorizontalSpacing ( const unsigned short horizontalType,
const float value )

This method is used to set the horizontal spacing with a specified unit.

If the vertical value is a length, it sets the vertical spacing to 0 .

Parameters
horizontalTypeThe specified unit.
valueThe new value.
Returns
Exceptions
DOMExceptionINVALID_ACCESS_ERR: Raises if the specified unit is not a length.

NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly.

Definition at line 214 of file css_extensions.cpp.

◆ setInherit()

void CSS2BorderSpacing::setInherit ( )

Set this property as inherit.

horizontalType and verticalType will be inherited.

Returns

Definition at line 226 of file css_extensions.cpp.

◆ setVerticalSpacing()

void CSS2BorderSpacing::setVerticalSpacing ( const unsigned short verticalType,
const float value )

This method is used to set the vertical spacing with a specified unit.

If the horizontal value is not a length, it sets the vertical spacing to 0 .

Parameters
verticalTypeThe specified unit.
valueThe new value.
Returns
Exceptions
DOMExceptionINVALID_ACCESS_ERR: Raises if the specified unit is not a length or a percentage.

NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly.

Definition at line 220 of file css_extensions.cpp.

◆ verticalType()

unsigned short CSS2BorderSpacing::verticalType ( ) const

The A code defining the type of the value as defined in CSSValue .

It would be one of CSS_EMS , CSS_EXS , CSS_PX , CSS_CM , CSS_MM , CSS_IN , CSS_PT , CSS_PC or CSS_INHERIT .

Definition at line 196 of file css_extensions.cpp.


The documentation for this class was generated from the following files:
  • css_extensions.h
  • css_extensions.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal