Struct gtk_sys::GtkStyleClass

source ·
#[repr(C)]
pub struct GtkStyleClass {
Show 39 fields pub parent_class: GObjectClass, pub realize: Option<unsafe extern "C" fn(_: *mut GtkStyle)>, pub unrealize: Option<unsafe extern "C" fn(_: *mut GtkStyle)>, pub copy: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut GtkStyle)>, pub clone: Option<unsafe extern "C" fn(_: *mut GtkStyle) -> *mut GtkStyle>, pub init_from_rc: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut GtkRcStyle)>, pub set_background: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut GdkWindow, _: GtkStateType)>, pub render_icon: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *const GtkIconSource, _: GtkTextDirection, _: GtkStateType, _: GtkIconSize, _: *mut GtkWidget, _: *const c_char) -> *mut GdkPixbuf>, pub draw_hline: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int)>, pub draw_vline: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int)>, pub draw_shadow: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_arrow: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: GtkArrowType, _: gboolean, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_diamond: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_box: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_flat_box: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_check: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_option: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_tab: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_shadow_gap: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkPositionType, _: c_int, _: c_int)>, pub draw_box_gap: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkPositionType, _: c_int, _: c_int)>, pub draw_extension: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkPositionType)>, pub draw_focus: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_slider: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkOrientation)>, pub draw_handle: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkOrientation)>, pub draw_expander: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: GtkExpanderStyle)>, pub draw_layout: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: gboolean, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: *mut PangoLayout)>, pub draw_resize_grip: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: GdkWindowEdge, _: c_int, _: c_int, _: c_int, _: c_int)>, pub draw_spinner: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_uint, _: c_int, _: c_int, _: c_int, _: c_int)>, pub _gtk_reserved1: Option<unsafe extern "C" fn()>, pub _gtk_reserved2: Option<unsafe extern "C" fn()>, pub _gtk_reserved3: Option<unsafe extern "C" fn()>, pub _gtk_reserved4: Option<unsafe extern "C" fn()>, pub _gtk_reserved5: Option<unsafe extern "C" fn()>, pub _gtk_reserved6: Option<unsafe extern "C" fn()>, pub _gtk_reserved7: Option<unsafe extern "C" fn()>, pub _gtk_reserved8: Option<unsafe extern "C" fn()>, pub _gtk_reserved9: Option<unsafe extern "C" fn()>, pub _gtk_reserved10: Option<unsafe extern "C" fn()>, pub _gtk_reserved11: Option<unsafe extern "C" fn()>,
}

Fields§

§parent_class: GObjectClass§realize: Option<unsafe extern "C" fn(_: *mut GtkStyle)>§unrealize: Option<unsafe extern "C" fn(_: *mut GtkStyle)>§copy: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut GtkStyle)>§clone: Option<unsafe extern "C" fn(_: *mut GtkStyle) -> *mut GtkStyle>§init_from_rc: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut GtkRcStyle)>§set_background: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut GdkWindow, _: GtkStateType)>§render_icon: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *const GtkIconSource, _: GtkTextDirection, _: GtkStateType, _: GtkIconSize, _: *mut GtkWidget, _: *const c_char) -> *mut GdkPixbuf>§draw_hline: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int)>§draw_vline: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int)>§draw_shadow: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_arrow: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: GtkArrowType, _: gboolean, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_diamond: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_box: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_flat_box: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_check: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_option: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_tab: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_shadow_gap: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkPositionType, _: c_int, _: c_int)>§draw_box_gap: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkPositionType, _: c_int, _: c_int)>§draw_extension: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkPositionType)>§draw_focus: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_slider: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkOrientation)>§draw_handle: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: GtkShadowType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: c_int, _: c_int, _: GtkOrientation)>§draw_expander: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: GtkExpanderStyle)>§draw_layout: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: gboolean, _: *mut GtkWidget, _: *const c_char, _: c_int, _: c_int, _: *mut PangoLayout)>§draw_resize_grip: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: GdkWindowEdge, _: c_int, _: c_int, _: c_int, _: c_int)>§draw_spinner: Option<unsafe extern "C" fn(_: *mut GtkStyle, _: *mut cairo_t, _: GtkStateType, _: *mut GtkWidget, _: *const c_char, _: c_uint, _: c_int, _: c_int, _: c_int, _: c_int)>§_gtk_reserved1: Option<unsafe extern "C" fn()>§_gtk_reserved2: Option<unsafe extern "C" fn()>§_gtk_reserved3: Option<unsafe extern "C" fn()>§_gtk_reserved4: Option<unsafe extern "C" fn()>§_gtk_reserved5: Option<unsafe extern "C" fn()>§_gtk_reserved6: Option<unsafe extern "C" fn()>§_gtk_reserved7: Option<unsafe extern "C" fn()>§_gtk_reserved8: Option<unsafe extern "C" fn()>§_gtk_reserved9: Option<unsafe extern "C" fn()>§_gtk_reserved10: Option<unsafe extern "C" fn()>§_gtk_reserved11: Option<unsafe extern "C" fn()>

Trait Implementations§

source§

impl Clone for GtkStyleClass

source§

fn clone(&self) -> GtkStyleClass

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GtkStyleClass

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for GtkStyleClass

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.