API Reference > OdDg Classes > OdDgUserIO Class > OdDgUserIO Methods > OdDgUserIO::getColor Method
OdDgUserIO::getColor Method
Syntax
C++
virtual OdDgCmColor getColor(const OdString& prompt, int options = OdEd::kInpDefault, const OdDgCmColor* pDefaultValue = 0, const OdString& keywords = OdString::kEmpty, OdEdColorTracker* pTracker = 0) = 0;
Parameters 
Description 
const OdString& prompt 
[in] Message displayed to prompt the user.  
int options = OdEd::kInpDefault 
[in] Combination of OdEd::GetPointOptions enum values.  
const OdDgCmColor* pDefaultValue = 0 
[in] Pointer to a default value to return if an empty string is received as input.  
const OdString& keywords = OdString::kEmpty 
[in] Keyword string.  
OdEdColorTracker* pTracker = 0 
[in] Pointer to a User IO tracker. 

Returns user input of a color. 

 

This function uses the underlying OdEdBaseIO functions putString and getString for low level output and input. 

If prompt is an empty string, a default prompt string is used.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.