///
/// Returns the foreground role.
///
/// The foreground role defines the color from the widget's [palette](palette)
/// that
/// is used to draw the foreground.
///
/// If no explicit foreground role is set, the function returns a role
/// that contrasts with the background role.
///
/// **See also:** [`set_foreground_role()`]
/// [`background_role()`]
Returns the foreground role.
The foreground role defines the color from the widget's [palette](palette)
that
is used to draw the foreground.

If no explicit foreground role is set, the function returns a role
that contrasts with the background role.


Returns the foreground role . The foreground role defines the color from the widget ' s [ palette ] ( palette ) that is used to draw the foreground . If no explicit foreground role is set the function returns a role that contrasts with the background role .
pub fn foreground_role(&self) -> ColorRole {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).foreground_role)(obj_data);
            let ret_val = ColorRole::from_bits_truncate(ret_val);
            ret_val
        }
    }
pub fn foreground_role ( & self ) -> ColorRole { let ( obj_data , funcs ) = self . get_widget_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . foreground_role ) ( obj_data ) ; let ret_val = ColorRole :: from_bits_truncate ( ret_val ) ; ret_val } }
Returns the foreground role.
Returns the foreground role .
&self