Add an RGBA getter for ConsoleColors

This commit is contained in:
Jason Brown 2016-12-10 03:58:45 +00:00 committed by Gregory Hainaut
parent 248ad0ddde
commit 44e671bb0a
2 changed files with 7 additions and 0 deletions

View File

@ -231,6 +231,11 @@ void ConsoleLogFrame::ColorArray::SetFont( const wxFont& font )
// m_table[i].SetFont( font );
}
u32 ConsoleLogFrame::ColorArray::GetRGBA( const ConsoleColors color )
{
return m_table[color].GetTextColour().GetRGBA();
}
enum MenuIDs_t
{
MenuId_FontSize_Small = 0x10,

View File

@ -108,6 +108,7 @@ protected:
void SetFont( const wxFont& font );
void SetFont( int fontsize );
u32 GetRGBA( const ConsoleColors color );
const wxTextAttr& operator[]( ConsoleColors coloridx ) const
{
@ -184,6 +185,7 @@ public:
// Retrieves the current configuration options settings for this box.
// (settings change if the user moves the window or changes the font size)
const ConLogConfig& GetConfig() const { return m_conf; }
u32 GetRGBA( const ConsoleColors color ) { return m_ColorTable.GetRGBA( color ); }
bool Write( ConsoleColors color, const wxString& text );
bool Newline();