Lines Matching refs:str
36 bool wxColourBase::FromString(const wxChar *str)
38 if ( str == NULL || str[0] == wxT('\0'))
41 if ( wxStrncmp(str, wxT("RGB"), 3) == 0 ||
42 wxStrncmp(str, wxT("rgb"), 3) == 0 )
48 if (wxSscanf(&str[3], wxT("(%d, %d, %d)"), &red, &green, &blue) != 3)
55 else if ( str[0] == wxT('#') && wxStrlen(str) == 7 )
59 if (wxSscanf(&str[1], wxT("%lx"), &tmp) != 1)
69 // *this = wxTheColourDatabase->Find(str)
72 wxColour clr = wxTheColourDatabase->Find(str);
82 wxLogDebug(wxT("wxColour::Set - couldn't set to colour string '%s'"), str);