The ITextTexture graph node interface. More...
#include "murl_graph_i_text_texture.h"
Public Member Functions | |
virtual INode * | GetNodeInterface ()=0 |
Get the mutable Graph::INode interface. More... | |
virtual const INode * | GetNodeInterface () const =0 |
Get the constant Graph::INode interface. More... | |
virtual ITexture * | GetTextureInterface ()=0 |
Get the mutable Graph::ITexture interface. More... | |
virtual const ITexture * | GetTextureInterface () const =0 |
Get the constant Graph::ITexture interface. More... | |
virtual Bool | SetTextPosition (Real posX, Real posY)=0 |
Set the text position within the texture. More... | |
virtual Bool | SetTextPositionX (Real posX)=0 |
Set the horizontal text position within the texture. More... | |
virtual Bool | SetTextPositionY (Real posY)=0 |
Set the vertical text position within the texture. More... | |
virtual Real | GetTextPositionX () const =0 |
Get the horizontal text position within the texture. More... | |
virtual Real | GetTextPositionY () const =0 |
Get the vertical text position within the texture. More... | |
virtual Bool | SetTextSize (Real sizeX, Real sizeY)=0 |
Set the output text rectangle's size. More... | |
virtual Bool | SetTextSizeX (Real sizeX)=0 |
Set the output text rectangle's horizontal size. More... | |
virtual Bool | SetTextSizeY (Real sizeY)=0 |
Set the output text rectangle's vertical size. More... | |
virtual Real | GetTextSizeX () const =0 |
Get the output text rectangle's horizontal size. More... | |
virtual Real | GetTextSizeY () const =0 |
Get the output text rectangle's vertical size. More... | |
Public Member Functions inherited from Murl::Graph::IText | |
virtual IFontResourceTarget * | GetFontResourceTarget ()=0 |
Get a mutable Graph::IFontResourceTarget container. More... | |
virtual const IFontResourceTarget * | GetFontResourceTarget () const =0 |
Get a constant Graph::IFontResourceTarget container. More... | |
virtual ITextStyleNodeTarget * | GetTextStyleNodeTarget ()=0 |
Get the optional mutable Graph::ITextStyleNodeTarget container. More... | |
virtual const ITextStyleNodeTarget * | GetTextStyleNodeTarget () const =0 |
Get the optional constant Graph::ITextStyleNodeTarget container. More... | |
virtual Bool | SetSystemFontName (const String &fontName)=0 |
Set the ID of the system font used to render the text. More... | |
virtual const String & | GetSystemFontName () const =0 |
Get the ID of the system font used to render the text. More... | |
virtual Bool | SetFontType (IEnums::FontType fontType)=0 |
Set the type of font used for rendering. More... | |
virtual IEnums::FontType | GetFontType () const =0 |
Get the type of font used for rendering. More... | |
virtual Bool | SetFontSize (Real fontSize)=0 |
Set the font size. More... | |
virtual Real | GetFontSize () const =0 |
Get the font size. More... | |
virtual Bool | SetTextColor (const Color &textColor)=0 |
Set the foreground (text) color used for rendering the text. More... | |
virtual const Color & | GetTextColor () const =0 |
Get the text color. More... | |
virtual Bool | SetBackgroundColor (const Color &backgroundColor)=0 |
Set the background color used for rendering. More... | |
virtual const Color & | GetBackgroundColor () const =0 |
Get the background color. More... | |
virtual ITextNodeTarget * | GetParentTextNodeTarget ()=0 |
Get the optional mutable Graph::ITextNodeTarget parent container. More... | |
virtual const ITextNodeTarget * | GetParentTextNodeTarget () const =0 |
Get the optional constant Graph::ITextNodeTarget parent container. More... | |
virtual ITextureNodeTarget * | GetOutputTextureNodeTarget ()=0 |
Get the optional mutable output Graph::ITextureNodeTarget container. More... | |
virtual const ITextureNodeTarget * | GetOutputTextureNodeTarget () const =0 |
Get the optional constant output Graph::ITextureNodeTarget container. More... | |
virtual ITextResourceTarget * | GetTextResourceTarget ()=0 |
Get a mutable Graph::ITextResourceTarget container. More... | |
virtual const ITextResourceTarget * | GetTextResourceTarget () const =0 |
Get a constant Graph::ITextResourceTarget container. More... | |
virtual Bool | SetText (const String &text)=0 |
Set the text to be displayed. More... | |
virtual const String & | GetText () const =0 |
Get the displayed text. More... | |
virtual Bool | SetTextHintEnabled (IEnums::TextHint hint, Bool enabled)=0 |
Enable/disable a given text hint. More... | |
virtual Bool | IsTextHintEnabled (IEnums::TextHint hint) const =0 |
Check if a given trigger condition is enabled. More... | |
virtual Bool | SetSpacing (Real spacing)=0 |
Set the character spacing value. More... | |
virtual Real | GetSpacing () const =0 |
Get the character spacing value. More... | |
virtual Bool | SetLeading (Real leading)=0 |
Set the leading value. More... | |
virtual Real | GetLeading () const =0 |
Get the leading value. More... | |
virtual Bool | SetEmbolding (Real strength)=0 |
Set the embolding strength value. More... | |
virtual Real | GetEmbolding () const =0 |
Get the embolding strength value. More... | |
virtual Bool | SetBlur (Real strength)=0 |
Set the blur strength value. More... | |
virtual Real | GetBlur () const =0 |
Get the blur strength value. More... | |
virtual Bool | SetSpaceWidthFactor (Real factor)=0 |
Set the space width factor. More... | |
virtual Real | GetSpaceWidthFactor () const =0 |
Get the space width factor. More... | |
virtual Bool | SetDigitWidthFactor (Real factor)=0 |
Set the digit width factor. More... | |
virtual Real | GetDigitWidthFactor () const =0 |
Get the digit width factor. More... | |
virtual Bool | SetSameDigitWidthEnabled (Bool enabled)=0 |
Enable/disable unified digit width. More... | |
virtual Bool | IsSameDigitWidthEnabled () const =0 |
Check if unified digit width is enabled. More... | |
virtual Bool | SetWordWrappingEnabled (Bool enabled)=0 |
Enable/disable word wrapping. More... | |
virtual Bool | IsWordWrappingEnabled () const =0 |
Check if word wrapping is enabled. More... | |
virtual Bool | SetTextAlignmentX (IEnums::TextAlignmentX alignment)=0 |
Set the horizontal text alignment. More... | |
virtual IEnums::TextAlignmentX | GetTextAlignmentX () const =0 |
Get the horizontal text alignment. More... | |
virtual Bool | SetTextAlignmentY (IEnums::TextAlignmentY alignment)=0 |
Set the vertical text alignment. More... | |
virtual IEnums::TextAlignmentY | GetTextAlignmentY () const =0 |
Get the vertical text alignment. More... | |
virtual Bool | QueryTextSize (const String &text, Real &sizeX, Real &sizeY) const =0 |
Query the dimensions of a given UTF8 text. More... | |
Detailed Description
The ITextTexture graph node interface.
This interface represents a texture used as a target for rendering text using a predefined system font, referenced by its identifier.
Use the Graph::IText base interface to access common text properties, such as spacing or leading, or the actual text to be shown.
Member Function Documentation
◆ GetNodeInterface() [1/2]
|
pure virtual |
Get the mutable Graph::INode interface.
This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.
- Returns
- The mutable Graph::INode interface, or null if not available
◆ GetNodeInterface() [2/2]
|
pure virtual |
Get the constant Graph::INode interface.
This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
- Returns
- The constant Graph::INode interface, or null if not available
◆ GetTextureInterface() [1/2]
|
pure virtual |
Get the mutable Graph::ITexture interface.
This method returns a mutable pointer to the node's Graph::ITexture interface, to be able to query or modify the node's texture properties.
- Returns
- The mutable Graph::ITexture interface, or null if not available
◆ GetTextureInterface() [2/2]
|
pure virtual |
Get the constant Graph::ITexture interface.
This method returns a constant pointer to the node's Graph::ITexture interface, to be able to query the node's texture properties.
- Returns
- The constant Graph::ITexture interface, or null if not available
◆ SetTextPosition()
Set the text position within the texture.
- Parameters
-
posX The horizontal text position. posY The vertical text position.
- Returns
- true if successful.
◆ SetTextPositionX()
Set the horizontal text position within the texture.
- Parameters
-
posX The horizontal text position.
- Returns
- true if successful.
◆ SetTextPositionY()
Set the vertical text position within the texture.
- Parameters
-
posY The vertical text position.
- Returns
- true if successful.
◆ GetTextPositionX()
|
pure virtual |
Get the horizontal text position within the texture.
- Returns
- The horizontal text position.
◆ GetTextPositionY()
|
pure virtual |
Get the vertical text position within the texture.
- Returns
- The vertical text position.
◆ SetTextSize()
Set the output text rectangle's size.
- Parameters
-
sizeX The horizontal text size. sizeY The vertical text size.
- Returns
- true if successful.
◆ SetTextSizeX()
Set the output text rectangle's horizontal size.
- Parameters
-
sizeX The horizontal text size.
- Returns
- true if successful.
◆ SetTextSizeY()
Set the output text rectangle's vertical size.
- Parameters
-
sizeY The vertical text size.
- Returns
- true if successful.
◆ GetTextSizeX()
|
pure virtual |
Get the output text rectangle's horizontal size.
- Returns
- The horizontal text size.
◆ GetTextSizeY()
|
pure virtual |
Get the output text rectangle's vertical size.
- Returns
- The vertical text size.
The documentation for this interface was generated from the following file:
- murl_graph_i_text_texture.h