Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
SVGBool Class Reference

#include <svg-bool.h>

Public Member Functions

 SVGBool (bool default_value)
 This boolean is not an SVG specification type, but it is something Inkscape uses for many of it's internal values.
 
 operator bool () const
 
bool read (gchar const *str)
 
void unset ()
 
void readOrUnset (gchar const *str)
 

Private Attributes

bool _is_set = false
 
bool _value = false
 
bool _default = false
 

Detailed Description

Definition at line 15 of file svg-bool.h.

Constructor & Destructor Documentation

◆ SVGBool()

SVGBool::SVGBool ( bool  default_value)

This boolean is not an SVG specification type, but it is something Inkscape uses for many of it's internal values.

Definition at line 21 of file svg-bool.cpp.

Member Function Documentation

◆ operator bool()

SVGBool::operator bool ( ) const
inline

Definition at line 19 of file svg-bool.h.

References _default, _is_set, and _value.

◆ read()

bool SVGBool::read ( gchar const *  str)

Definition at line 25 of file svg-bool.cpp.

References _is_set, and _value.

Referenced by readOrUnset(), and SPGrid::set().

◆ readOrUnset()

void SVGBool::readOrUnset ( gchar const *  str)

Definition at line 42 of file svg-bool.cpp.

References read(), and unset().

Referenced by SPNamedView::set(), and Inkscape::PageManager::subset().

◆ unset()

void SVGBool::unset ( )

Definition at line 38 of file svg-bool.cpp.

References _is_set.

Referenced by readOrUnset().

Member Data Documentation

◆ _default

bool SVGBool::_default = false
private

Definition at line 28 of file svg-bool.h.

Referenced by operator bool().

◆ _is_set

bool SVGBool::_is_set = false
private

Definition at line 26 of file svg-bool.h.

Referenced by operator bool(), read(), and unset().

◆ _value

bool SVGBool::_value = false
private

Definition at line 27 of file svg-bool.h.

Referenced by operator bool(), and read().


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