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§
Sourcefn get_raw_name(self) -> Il2CppString
fn get_raw_name(self) -> Il2CppString
get_rawName() overload
Sourcefn set_raw_name(self, value: impl Into<Il2CppString>)
fn set_raw_name(self, value: impl Into<Il2CppString>)
set_rawName(::unity::Il2CppString) overload
Sourcefn get_image_position(self) -> ImagePosition
fn get_image_position(self) -> ImagePosition
get_imagePosition() overload
Sourcefn set_alignment(self, value: impl Into<TextAnchor>)
fn set_alignment(self, value: impl Into<TextAnchor>)
set_alignment(crate::unity_engine::textanchor::TextAnchor) overload
Sourcefn get_word_wrap(self) -> bool
fn get_word_wrap(self) -> bool
get_wordWrap() overload
Sourcefn set_clipping(self, value: impl Into<TextClipping>)
fn set_clipping(self, value: impl Into<TextClipping>)
set_clipping(crate::unity_engine::textclipping::TextClipping) overload
Sourcefn set_content_offset(self, value: impl Into<Vector2>)
fn set_content_offset(self, value: impl Into<Vector2>)
set_contentOffset(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_fixed_width(self) -> f32
fn get_fixed_width(self) -> f32
get_fixedWidth() overload
Sourcefn get_fixed_height(self) -> f32
fn get_fixed_height(self) -> f32
get_fixedHeight() overload
Sourcefn set_fixed_height(self, value: impl Into<f32>)
fn set_fixed_height(self, value: impl Into<f32>)
set_fixedHeight(f32) overload
Sourcefn get_stretch_width(self) -> bool
fn get_stretch_width(self) -> bool
get_stretchWidth() overload
Sourcefn set_stretch_width(self, value: impl Into<bool>)
fn set_stretch_width(self, value: impl Into<bool>)
set_stretchWidth(bool) overload
Sourcefn get_stretch_height(self) -> bool
fn get_stretch_height(self) -> bool
get_stretchHeight() overload
Sourcefn set_stretch_height(self, value: impl Into<bool>)
fn set_stretch_height(self, value: impl Into<bool>)
set_stretchHeight(bool) overload
Sourcefn get_font_size(self) -> i32
fn get_font_size(self) -> i32
get_fontSize() overload
Sourcefn set_font_size(self, value: impl Into<i32>)
fn set_font_size(self, value: impl Into<i32>)
set_fontSize(i32) overload
Sourcefn set_font_style(self, value: impl Into<FontStyle>)
fn set_font_style(self, value: impl Into<FontStyle>)
set_fontStyle(crate::unity_engine::fontstyle::FontStyle) overload
Sourcefn get_style_state_ptr(self, idx: impl Into<i32>) -> IntPtr
fn get_style_state_ptr(self, idx: impl Into<i32>) -> IntPtr
GetStyleStatePtr(i32) overload
Sourcefn assign_style_state(
self,
idx: impl Into<i32>,
src_style_state: impl Into<IntPtr>,
)
fn assign_style_state( self, idx: impl Into<i32>, src_style_state: impl Into<IntPtr>, )
AssignStyleState(i32, ::unity::IntPtr) overload
Sourcefn get_rect_offset_ptr(self, idx: impl Into<i32>) -> IntPtr
fn get_rect_offset_ptr(self, idx: impl Into<i32>) -> IntPtr
GetRectOffsetPtr(i32) overload
Sourcefn 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_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
Sourcefn internal_draw2(
self,
position: impl Into<Rect>,
content: impl Into<GUIContent>,
control_id: impl Into<i32>,
on: impl Into<bool>,
)
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
Sourcefn internal_calc_size(self, content: impl Into<GUIContent>) -> Vector2
fn internal_calc_size(self, content: impl Into<GUIContent>) -> Vector2
Internal_CalcSize(crate::unity_engine::guicontent::GUIContent) overload
Sourcefn internal_calc_size_with_constraints(
self,
content: impl Into<GUIContent>,
max_size: impl Into<Vector2>,
) -> Vector2
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
Sourcefn internal_calc_height(
self,
content: impl Into<GUIContent>,
width: impl Into<f32>,
) -> f32
fn internal_calc_height( self, content: impl Into<GUIContent>, width: impl Into<f32>, ) -> f32
Internal_CalcHeight(crate::unity_engine::guicontent::GUIContent, f32) overload
Sourcefn internal_calc_min_max_width(self, content: impl Into<GUIContent>) -> Vector2
fn internal_calc_min_max_width(self, content: impl Into<GUIContent>) -> Vector2
Internal_CalcMinMaxWidth(crate::unity_engine::guicontent::GUIContent) overload
Sourcefn ctor_2(self, other: impl Into<GUIStyle>)
fn ctor_2(self, other: impl Into<GUIStyle>)
.ctor(crate::unity_engine::guistyle::GUIStyle) overload
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_name() overload
Sourcefn set_name(self, value: impl Into<Il2CppString>)
fn set_name(self, value: impl Into<Il2CppString>)
set_name(::unity::Il2CppString) overload
Sourcefn get_normal(self) -> GUIStyleState
fn get_normal(self) -> GUIStyleState
get_normal() overload
Sourcefn set_normal(self, value: impl Into<GUIStyleState>)
fn set_normal(self, value: impl Into<GUIStyleState>)
set_normal(crate::unity_engine::guistylestate::GUIStyleState) overload
Sourcefn get_margin(self) -> RectOffset
fn get_margin(self) -> RectOffset
get_margin() overload
Sourcefn get_padding(self) -> RectOffset
fn get_padding(self) -> RectOffset
get_padding() overload
Sourcefn 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( 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
Sourcefn 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_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
Sourcefn draw_3(
self,
position: impl Into<Rect>,
content: impl Into<GUIContent>,
control_id: impl Into<i32>,
)
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
Sourcefn 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_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
Sourcefn 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 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
Sourcefn calc_size(self, content: impl Into<GUIContent>) -> Vector2
fn calc_size(self, content: impl Into<GUIContent>) -> Vector2
CalcSize(crate::unity_engine::guicontent::GUIContent) overload
Sourcefn calc_size_with_constraints(
self,
content: impl Into<GUIContent>,
constraints: impl Into<Vector2>,
) -> Vector2
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
Sourcefn calc_height(
self,
content: impl Into<GUIContent>,
width: impl Into<f32>,
) -> f32
fn calc_height( self, content: impl Into<GUIContent>, width: impl Into<f32>, ) -> f32
CalcHeight(crate::unity_engine::guicontent::GUIContent, f32) overload
Sourcefn get_is_height_dependant_on_width(self) -> bool
fn get_is_height_dependant_on_width(self) -> bool
get_isHeightDependantOnWidth() overload
Sourcefn calc_min_max_width(self, content: impl Into<GUIContent>) -> (f32, f32)
fn calc_min_max_width(self, content: impl Into<GUIContent>) -> (f32, f32)
CalcMinMaxWidth(crate::unity_engine::guicontent::GUIContent, *mutf32, *mutf32) overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overload
Sourcefn set_content_offset_injected(self) -> Vector2
fn set_content_offset_injected(self) -> Vector2
set_contentOffset_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Sourcefn 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_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
Sourcefn internal_draw2_injected(
self,
content: impl Into<GUIContent>,
control_id: impl Into<i32>,
on: impl Into<bool>,
) -> Rect
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
Sourcefn internal_calc_size_injected(self, content: impl Into<GUIContent>) -> Vector2
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
Sourcefn internal_calc_size_with_constraints_injected(
self,
content: impl Into<GUIContent>,
) -> (Vector2, Vector2)
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
Sourcefn internal_calc_min_max_width_injected(
self,
content: impl Into<GUIContent>,
) -> Vector2
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§
impl<__T: IGUIStyle> IGUIStyleMethods for __T
unity_engine-guistyle only.