soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SNamedFont Class Reference

Manages named fonts. More...

#include <SNamedValue.h>

Inheritance diagram for SNamedFont:
SNamedValue< SStringW, SStringParser >

Public Member Functions

BOOL Get (const SStringW &strValue, SStringW &ret) const
 Retrieves a font value by name, automatically converting named fonts.
 
SStringW Get (int idx) const
 Retrieves a font value by index.
 
- Public Member Functions inherited from SNamedValue< SStringW, SStringParser >
virtual BOOL Init (SXmlNode xmlNode)
 Initializes the named values from an XML node.
 
SStringW String2Value (const SStringW &strName) const
 Converts a string name to its corresponding value.
 
BOOL FindValue (const SStringW &strName, SStringW &value) const
 Finds the value associated with a given name.
 
SStringW GetAt (const int idx) const
 Retrieves the value at a specific index.
 
size_t Merge (const SNamedValue &src)
 Merges the named values from another SNamedValue object.
 
UINT GetCount () const
 Retrieves the number of named values.
 

Additional Inherited Members

- Public Types inherited from SNamedValue< SStringW, SStringParser >
typedef TNAMEDVALUE< SStringWNAMEDVALUE
 
- Static Protected Member Functions inherited from SNamedValue< SStringW, SStringParser >
static int Compare (const void *p1, const void *p2)
 Comparison function for sorting and searching.
 
- Protected Attributes inherited from SNamedValue< SStringW, SStringParser >
SArray< NAMEDVALUEm_lstNamedValue
 

Detailed Description

Manages named fonts.

Definition at line 308 of file SNamedValue.h.

Member Function Documentation

◆ Get() [1/2]

BOOL SNamedFont::Get ( const SStringW & strValue,
SStringW & ret ) const

Retrieves a font value by name, automatically converting named fonts.

Parameters
strValueName of the font.
retVariable to store the retrieved font value.
Returns
TRUE if the font is found, FALSE otherwise.

Definition at line 56 of file SNamedValue.cpp.

◆ Get() [2/2]

SStringW SNamedFont::Get ( int idx) const
inline

Retrieves a font value by index.

Parameters
idxIndex of the font.
Returns
Font value at the specified index.

Definition at line 323 of file SNamedValue.h.


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