Function ncursesw::form::field_fore
source · [−]pub fn field_fore(field: Option<FIELD>) -> Attributes
Expand description
Returns the foreground attribute. The default is normal::Attributes::Standout
.
Please note that the Attributes
value being returned has an internal screen
value of None
, if the field is attached to a form created using new_form_sp()
then normal::Attributes::set_screen()
should be called to set the correct
screen pointer, this is required to obtain the correct normal::ColorPair
.
If field
is None
then the default value is returned.