filters

Swinder::FormatBackground Class Reference

#include <format.h>

Public Types

enum  {
  SolidPattern , Dense1Pattern , Dense2Pattern , Dense3Pattern ,
  Dense4Pattern , Dense5Pattern , Dense6Pattern , Dense7Pattern ,
  HorPattern , VerPattern , CrossPattern , BDiagPattern ,
  FDiagPattern , DiagCrossPattern , EmptyPattern
}
 

Public Member Functions

 FormatBackground ()
 
 ~FormatBackground ()
 
 FormatBackground (const FormatBackground &)
 
FormatBackground & operator= (const FormatBackground &)
 
FormatBackground & assign (const FormatBackground &)
 
bool isNull () const
 
unsigned pattern () const
 
void setPattern (unsigned)
 
Color backgroundColor () const
 
void setBackgroundColor (const Color &)
 
Color foregroundColor () const
 
void setForegroundColor (const Color &)
 
bool operator== (const FormatBackground &f) const
 
bool operator!= (const FormatBackground &f) const
 

Detailed Description

Defines background information for cell.

Definition at line 401 of file kspread/excel/sidewinder/format.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 434 of file kspread/excel/sidewinder/format.h.

Constructor & Destructor Documentation

◆ FormatBackground() [1/2]

FormatBackground::FormatBackground ( )

Creates a default background information.

Definition at line 376 of file kspread/excel/sidewinder/format.cpp.

◆ ~FormatBackground()

FormatBackground::~FormatBackground ( )

Destroys the background information.

Definition at line 383 of file kspread/excel/sidewinder/format.cpp.

◆ FormatBackground() [2/2]

FormatBackground::FormatBackground ( const FormatBackground &  background)

Creates a copy of background information.

Definition at line 389 of file kspread/excel/sidewinder/format.cpp.

Member Function Documentation

◆ assign()

FormatBackground & FormatBackground::assign ( const FormatBackground &  background)

Assigns from another background information.

Definition at line 402 of file kspread/excel/sidewinder/format.cpp.

◆ backgroundColor()

Color FormatBackground::backgroundColor ( ) const

Returns the background color of the background area.

See also
setBackgroundColor

Definition at line 427 of file kspread/excel/sidewinder/format.cpp.

◆ foregroundColor()

Color FormatBackground::foregroundColor ( ) const

Returns the foreground color of the background area.

See also
setForegroundColor

Definition at line 438 of file kspread/excel/sidewinder/format.cpp.

◆ isNull()

bool FormatBackground::isNull ( ) const

Returns true if it is a default background information.

Definition at line 411 of file kspread/excel/sidewinder/format.cpp.

◆ operator!=()

bool FormatBackground::operator!= ( const FormatBackground &  f) const

Returns true if this background is not equal to f; otherwise returns false.

Definition at line 457 of file kspread/excel/sidewinder/format.cpp.

◆ operator=()

FormatBackground & FormatBackground::operator= ( const FormatBackground &  background)

Assigns from another background information.

Definition at line 396 of file kspread/excel/sidewinder/format.cpp.

◆ operator==()

bool FormatBackground::operator== ( const FormatBackground &  f) const

Returns true if this background is equal to f; otherwise returns false.

Definition at line 449 of file kspread/excel/sidewinder/format.cpp.

◆ pattern()

unsigned FormatBackground::pattern ( ) const

Returns pattern for this background.

See also
setPattern

Definition at line 416 of file kspread/excel/sidewinder/format.cpp.

◆ setBackgroundColor()

void FormatBackground::setBackgroundColor ( const Color &  color)

Set the background color.

See also
backgroundColor

Definition at line 432 of file kspread/excel/sidewinder/format.cpp.

◆ setForegroundColor()

void FormatBackground::setForegroundColor ( const Color &  color)

Sets the foreground color.

See also
foregroundColor

Definition at line 443 of file kspread/excel/sidewinder/format.cpp.

◆ setPattern()

void FormatBackground::setPattern ( unsigned  pattern)

Set the pattern for this background.

See also
pattern

Definition at line 421 of file kspread/excel/sidewinder/format.cpp.


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