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

KHTML

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

#include <css_extensions.h>

Inheritance diagram for DOM::CSS2Azimuth:
Inheritance graph
[legend]

Public Member Functions

 CSS2Azimuth ()
 
 CSS2Azimuth (const CSS2Azimuth &other)
 
 CSS2Azimuth (CSS2AzimuthImpl *impl)
 
 ~CSS2Azimuth ()
 
unsigned short azimuthType () const
 
bool behind () const
 
float getAngleValue (const unsigned short unitType)
 
DOM::DOMString identifier () const
 
CSS2Azimuth & operator= (const CSS2Azimuth &other)
 
void setAngleValue (const unsigned short unitType, const float floatValue)
 
void setIdentifier (const DOM::DOMString &identifier, const bool behind)
 
- 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 CSS2Azimuth interface represents the azimuth CSS Level 2 property.

Definition at line 41 of file css_extensions.h.

Constructor & Destructor Documentation

CSS2Azimuth::CSS2Azimuth ( )

Definition at line 30 of file css_extensions.cpp.

CSS2Azimuth::CSS2Azimuth ( const CSS2Azimuth &  other)

Definition at line 34 of file css_extensions.cpp.

CSS2Azimuth::CSS2Azimuth ( CSS2AzimuthImpl *  impl)

Definition at line 38 of file css_extensions.cpp.

CSS2Azimuth::~CSS2Azimuth ( )

Definition at line 48 of file css_extensions.cpp.

Member Function Documentation

unsigned short CSS2Azimuth::azimuthType ( ) const

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

It would be one of CSS_DEG , CSS_RAD , CSS_GRAD or CSS_IDENT .

Definition at line 52 of file css_extensions.cpp.

bool CSS2Azimuth::behind ( ) const

behind indicates whether the behind identifier has been set.

Definition at line 64 of file css_extensions.cpp.

float CSS2Azimuth::getAngleValue ( const unsigned short  unitType)

Used to retrieved the float value of the azimuth property.

Parameters
unitTypeThe unit type can be only an angle unit type ( CSS_DEG , CSS_RAD or CSS_GRAD ).
Returns
The float value.
Exceptions
DOMExceptionINVALID_ACCESS_ERR: Raised if the unit type is invalid.

Definition at line 76 of file css_extensions.cpp.

DOMString CSS2Azimuth::identifier ( ) const

If azimuthType is CSS_IDENT , identifier contains one of left-side, far-left, left, center-left, center, center-right, right, far-right, right-side, leftwards, rightwards.

The empty string if none is set.

Definition at line 58 of file css_extensions.cpp.

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

Definition at line 42 of file css_extensions.cpp.

void CSS2Azimuth::setAngleValue ( const unsigned short  unitType,
const float  floatValue 
)

A method to set the angle value with a specified unit.

This method will unset any previously set identifiers values.

Parameters
unitTypeThe unitType could only be one of CSS_DEG , CSS_RAD or CSS_GRAD ).
floatValueThe new float value of the angle.
Returns
Exceptions
DOMExceptionINVALID_ACCESS_ERR: Raised if the unit type is invalid.

NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.

Definition at line 70 of file css_extensions.cpp.

void CSS2Azimuth::setIdentifier ( const DOM::DOMString &  identifier,
const bool  behind 
)

Setting the identifier for the azimuth property will unset any previously set angle value.

The value of azimuthType is set to CSS_IDENT

Parameters
identifierThe new identifier. If the identifier is "leftwards" or "rightward", the behind attribute is ignored.
behindThe new value for behind.
Returns
Exceptions
DOMExceptionSYNTAX_ERR: Raised if the specified identifier has a syntax error and is unparsable.

NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.

Definition at line 82 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:23 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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