Skip to main content

IGUIStyleMethods

Trait IGUIStyleMethods 

Source
pub trait IGUIStyleMethods: IGUIStyle {
Show 53 methods // Provided methods fn get_raw_name(self) -> Il2CppString { ... } fn set_raw_name(self, value: impl Into<Il2CppString>) { ... } fn set_font(self, value: impl Into<Font>) { ... } fn get_image_position(self) -> ImagePosition { ... } fn set_alignment(self, value: impl Into<TextAnchor>) { ... } fn get_word_wrap(self) -> bool { ... } fn set_clipping(self, value: impl Into<TextClipping>) { ... } fn set_content_offset(self, value: impl Into<Vector2>) { ... } fn get_fixed_width(self) -> f32 { ... } fn get_fixed_height(self) -> f32 { ... } fn set_fixed_height(self, value: impl Into<f32>) { ... } fn get_stretch_width(self) -> bool { ... } fn set_stretch_width(self, value: impl Into<bool>) { ... } fn get_stretch_height(self) -> bool { ... } fn set_stretch_height(self, value: impl Into<bool>) { ... } fn get_font_size(self) -> i32 { ... } fn set_font_size(self, value: impl Into<i32>) { ... } fn set_font_style(self, value: impl Into<FontStyle>) { ... } fn get_style_state_ptr(self, idx: impl Into<i32>) -> IntPtr { ... } fn assign_style_state( self, idx: impl Into<i32>, src_style_state: impl Into<IntPtr>, ) { ... } fn get_rect_offset_ptr(self, idx: impl Into<i32>) -> IntPtr { ... } fn internal_draw( self, screen_rect: impl Into<Rect>, content: impl Into<GUIContent>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, ) { ... } fn internal_draw2( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, on: impl Into<bool>, ) { ... } fn internal_calc_size(self, content: impl Into<GUIContent>) -> Vector2 { ... } fn internal_calc_size_with_constraints( self, content: impl Into<GUIContent>, max_size: impl Into<Vector2>, ) -> Vector2 { ... } fn internal_calc_height( self, content: impl Into<GUIContent>, width: impl Into<f32>, ) -> f32 { ... } fn internal_calc_min_max_width( self, content: impl Into<GUIContent>, ) -> Vector2 { ... } fn ctor(self) { ... } fn ctor_2(self, other: impl Into<GUIStyle>) { ... } fn finalize(self) { ... } fn get_name(self) -> Il2CppString { ... } fn set_name(self, value: impl Into<Il2CppString>) { ... } fn get_normal(self) -> GUIStyleState { ... } fn set_normal(self, value: impl Into<GUIStyleState>) { ... } fn get_margin(self) -> RectOffset { ... } fn get_padding(self) -> RectOffset { ... } fn draw( self, position: impl Into<Rect>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, ) { ... } fn draw_2( self, position: impl Into<Rect>, content: impl Into<GUIContent>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, ) { ... } fn draw_3( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, ) { ... } fn draw_4( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, on: impl Into<bool>, hover: impl Into<bool>, ) { ... } fn draw_5( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, ) { ... } fn calc_size(self, content: impl Into<GUIContent>) -> Vector2 { ... } fn calc_size_with_constraints( self, content: impl Into<GUIContent>, constraints: impl Into<Vector2>, ) -> Vector2 { ... } fn calc_height( self, content: impl Into<GUIContent>, width: impl Into<f32>, ) -> f32 { ... } fn get_is_height_dependant_on_width(self) -> bool { ... } fn calc_min_max_width(self, content: impl Into<GUIContent>) -> (f32, f32) { ... } fn to_string(self) -> Il2CppString { ... } fn set_content_offset_injected(self) -> Vector2 { ... } fn internal_draw_injected( self, content: impl Into<GUIContent>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, ) -> Rect { ... } fn internal_draw2_injected( self, content: impl Into<GUIContent>, control_id: impl Into<i32>, on: impl Into<bool>, ) -> Rect { ... } fn internal_calc_size_injected( self, content: impl Into<GUIContent>, ) -> Vector2 { ... } fn internal_calc_size_with_constraints_injected( self, content: impl Into<GUIContent>, ) -> (Vector2, Vector2) { ... } fn internal_calc_min_max_width_injected( self, content: impl Into<GUIContent>, ) -> Vector2 { ... }
}

Provided Methods§

Source

fn get_raw_name(self) -> Il2CppString

get_rawName() overload

Source

fn set_raw_name(self, value: impl Into<Il2CppString>)

set_rawName(::unity::Il2CppString) overload

Source

fn set_font(self, value: impl Into<Font>)

set_font(crate::unity_engine::font::Font) overload

Source

fn get_image_position(self) -> ImagePosition

get_imagePosition() overload

Source

fn set_alignment(self, value: impl Into<TextAnchor>)

set_alignment(crate::unity_engine::textanchor::TextAnchor) overload

Source

fn get_word_wrap(self) -> bool

get_wordWrap() overload

Source

fn set_clipping(self, value: impl Into<TextClipping>)

set_clipping(crate::unity_engine::textclipping::TextClipping) overload

Source

fn set_content_offset(self, value: impl Into<Vector2>)

set_contentOffset(crate::unity_engine::vector2::Vector2) overload

Source

fn get_fixed_width(self) -> f32

get_fixedWidth() overload

Source

fn get_fixed_height(self) -> f32

get_fixedHeight() overload

Source

fn set_fixed_height(self, value: impl Into<f32>)

set_fixedHeight(f32) overload

Source

fn get_stretch_width(self) -> bool

get_stretchWidth() overload

Source

fn set_stretch_width(self, value: impl Into<bool>)

set_stretchWidth(bool) overload

Source

fn get_stretch_height(self) -> bool

get_stretchHeight() overload

Source

fn set_stretch_height(self, value: impl Into<bool>)

set_stretchHeight(bool) overload

Source

fn get_font_size(self) -> i32

get_fontSize() overload

Source

fn set_font_size(self, value: impl Into<i32>)

set_fontSize(i32) overload

Source

fn set_font_style(self, value: impl Into<FontStyle>)

set_fontStyle(crate::unity_engine::fontstyle::FontStyle) overload

Source

fn get_style_state_ptr(self, idx: impl Into<i32>) -> IntPtr

GetStyleStatePtr(i32) overload

Source

fn assign_style_state( self, idx: impl Into<i32>, src_style_state: impl Into<IntPtr>, )

AssignStyleState(i32, ::unity::IntPtr) overload

Source

fn get_rect_offset_ptr(self, idx: impl Into<i32>) -> IntPtr

GetRectOffsetPtr(i32) overload

Source

fn internal_draw( self, screen_rect: impl Into<Rect>, content: impl Into<GUIContent>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, )

Internal_Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, bool, bool, bool, bool) overload

Source

fn internal_draw2( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, on: impl Into<bool>, )

Internal_Draw2(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool) overload

Source

fn internal_calc_size(self, content: impl Into<GUIContent>) -> Vector2

Internal_CalcSize(crate::unity_engine::guicontent::GUIContent) overload

Source

fn internal_calc_size_with_constraints( self, content: impl Into<GUIContent>, max_size: impl Into<Vector2>, ) -> Vector2

Internal_CalcSizeWithConstraints(crate::unity_engine::guicontent::GUIContent, crate::unity_engine::vector2::Vector2) overload

Source

fn internal_calc_height( self, content: impl Into<GUIContent>, width: impl Into<f32>, ) -> f32

Internal_CalcHeight(crate::unity_engine::guicontent::GUIContent, f32) overload

Source

fn internal_calc_min_max_width(self, content: impl Into<GUIContent>) -> Vector2

Internal_CalcMinMaxWidth(crate::unity_engine::guicontent::GUIContent) overload

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, other: impl Into<GUIStyle>)

.ctor(crate::unity_engine::guistyle::GUIStyle) overload

Source

fn finalize(self)

Finalize() overload

Source

fn get_name(self) -> Il2CppString

get_name() overload

Source

fn set_name(self, value: impl Into<Il2CppString>)

set_name(::unity::Il2CppString) overload

Source

fn get_normal(self) -> GUIStyleState

get_normal() overload

Source

fn set_normal(self, value: impl Into<GUIStyleState>)

set_normal(crate::unity_engine::guistylestate::GUIStyleState) overload

Source

fn get_margin(self) -> RectOffset

get_margin() overload

Source

fn get_padding(self) -> RectOffset

get_padding() overload

Source

fn draw( self, position: impl Into<Rect>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, )

Draw(crate::unity_engine::rect::Rect, bool, bool, bool, bool) overload

Source

fn draw_2( self, position: impl Into<Rect>, content: impl Into<GUIContent>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, )

Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, bool, bool, bool, bool) overload

Source

fn draw_3( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, )

Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32) overload

Source

fn draw_4( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, on: impl Into<bool>, hover: impl Into<bool>, )

Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool, bool) overload

Source

fn draw_5( self, position: impl Into<Rect>, content: impl Into<GUIContent>, control_id: impl Into<i32>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, )

Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool, bool, bool, bool) overload

Source

fn calc_size(self, content: impl Into<GUIContent>) -> Vector2

CalcSize(crate::unity_engine::guicontent::GUIContent) overload

Source

fn calc_size_with_constraints( self, content: impl Into<GUIContent>, constraints: impl Into<Vector2>, ) -> Vector2

CalcSizeWithConstraints(crate::unity_engine::guicontent::GUIContent, crate::unity_engine::vector2::Vector2) overload

Source

fn calc_height( self, content: impl Into<GUIContent>, width: impl Into<f32>, ) -> f32

CalcHeight(crate::unity_engine::guicontent::GUIContent, f32) overload

Source

fn get_is_height_dependant_on_width(self) -> bool

get_isHeightDependantOnWidth() overload

Source

fn calc_min_max_width(self, content: impl Into<GUIContent>) -> (f32, f32)

CalcMinMaxWidth(crate::unity_engine::guicontent::GUIContent, *mutf32, *mutf32) overload

Source

fn to_string(self) -> Il2CppString

ToString() overload

Source

fn set_content_offset_injected(self) -> Vector2

set_contentOffset_Injected(*mutcrate::unity_engine::vector2::Vector2) overload

Source

fn internal_draw_injected( self, content: impl Into<GUIContent>, is_hover: impl Into<bool>, is_active: impl Into<bool>, on: impl Into<bool>, has_keyboard_focus: impl Into<bool>, ) -> Rect

Internal_Draw_Injected(*mutcrate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, bool, bool, bool, bool) overload

Source

fn internal_draw2_injected( self, content: impl Into<GUIContent>, control_id: impl Into<i32>, on: impl Into<bool>, ) -> Rect

Internal_Draw2_Injected(*mutcrate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool) overload

Source

fn internal_calc_size_injected(self, content: impl Into<GUIContent>) -> Vector2

Internal_CalcSize_Injected(crate::unity_engine::guicontent::GUIContent, *mutcrate::unity_engine::vector2::Vector2) overload

Source

fn internal_calc_size_with_constraints_injected( self, content: impl Into<GUIContent>, ) -> (Vector2, Vector2)

Internal_CalcSizeWithConstraints_Injected(crate::unity_engine::guicontent::GUIContent, *mutcrate::unity_engine::vector2::Vector2, *mutcrate::unity_engine::vector2::Vector2) overload

Source

fn internal_calc_min_max_width_injected( self, content: impl Into<GUIContent>, ) -> Vector2

Internal_CalcMinMaxWidth_Injected(crate::unity_engine::guicontent::GUIContent, *mutcrate::unity_engine::vector2::Vector2) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IGUIStyle> IGUIStyleMethods for __T

Available on crate feature unity_engine-guistyle only.