Struct sixtyfps_rendering_backend_default::native_widgets::NativeButton [−][src]
#[repr(C)]pub struct NativeButton { pub x: Property<f32>, pub y: Property<f32>, pub width: Property<f32>, pub height: Property<f32>, pub text: Property<SharedString>, pub enabled: Property<bool>, pub pressed: Property<bool>, pub clicked: Callback<(), ()>, pub cached_rendering_data: CachedRenderingData, }
Fields
x: Property<f32>
y: Property<f32>
width: Property<f32>
height: Property<f32>
text: Property<SharedString>
enabled: Property<bool>
pressed: Property<bool>
clicked: Callback<(), ()>
cached_rendering_data: CachedRenderingData
Implementations
impl NativeButton
[src]
impl NativeButton
[src]pub const FIELD_OFFSETS: NativeButtonFieldsOffsets
[src]
Return a struct containing the offset of for the fields of this struct
impl NativeButton
[src]
impl NativeButton
[src]pub fn x(self: Pin<&NativeButton>) -> f32
[src]
pub fn y(self: Pin<&NativeButton>) -> f32
[src]
pub fn width(self: Pin<&NativeButton>) -> f32
[src]
pub fn height(self: Pin<&NativeButton>) -> f32
[src]
pub fn text(self: Pin<&NativeButton>) -> SharedString
[src]
pub fn enabled(self: Pin<&NativeButton>) -> bool
[src]
pub fn pressed(self: Pin<&NativeButton>) -> bool
[src]
Trait Implementations
impl BuiltinItem for NativeButton
[src]
impl BuiltinItem for NativeButton
[src]pub fn name() -> &'static str
[src]
pub fn properties<Value>(
) -> Vec<(&'static str, &'static (dyn PropertyInfo<NativeButton, Value> + 'static)), Global> where
Value: ValueType,
[src]
) -> Vec<(&'static str, &'static (dyn PropertyInfo<NativeButton, Value> + 'static)), Global> where
Value: ValueType,
pub fn fields<Value>(
) -> Vec<(&'static str, &'static (dyn FieldInfo<NativeButton, Value> + 'static)), Global> where
Value: ValueType,
[src]
) -> Vec<(&'static str, &'static (dyn FieldInfo<NativeButton, Value> + 'static)), Global> where
Value: ValueType,
pub fn callbacks<Value>(
) -> Vec<(&'static str, &'static (dyn CallbackInfo<NativeButton, Value> + 'static)), Global> where
Value: ValueType,
[src]
) -> Vec<(&'static str, &'static (dyn CallbackInfo<NativeButton, Value> + 'static)), Global> where
Value: ValueType,
impl Default for NativeButton
[src]
impl Default for NativeButton
[src]pub fn default() -> NativeButton
[src]
impl HasStaticVTable<ItemVTable> for NativeButton
[src]
impl HasStaticVTable<ItemVTable> for NativeButton
[src]pub fn static_vtable() -> &'static ItemVTable
[src]
impl Item for NativeButton
[src]
impl Item for NativeButton
[src]pub fn init(self: Pin<&NativeButton>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&NativeButton>) -> Rect<f32, UnknownUnit>
[src]
pub fn layouting_info(
self: Pin<&NativeButton>,
_window: &ComponentWindow
) -> LayoutInfo
[src]
self: Pin<&NativeButton>,
_window: &ComponentWindow
) -> LayoutInfo
pub fn implicit_size(
self: Pin<&NativeButton>,
_window: &ComponentWindow
) -> Size2D<f32, UnknownUnit>
[src]
self: Pin<&NativeButton>,
_window: &ComponentWindow
) -> Size2D<f32, UnknownUnit>
pub fn input_event_filter_before_children(
self: Pin<&NativeButton>,
MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
[src]
self: Pin<&NativeButton>,
MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
pub fn input_event(
self: Pin<&NativeButton>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&NativeButton>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&NativeButton>,
&KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&NativeButton>,
&KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(
self: Pin<&NativeButton>,
&FocusEvent,
_window: &ComponentWindow
)
[src]
self: Pin<&NativeButton>,
&FocusEvent,
_window: &ComponentWindow
)
pub fn render(self: Pin<&NativeButton>, backend: &mut &mut dyn ItemRenderer)
[src]
impl ItemConsts for NativeButton
[src]
impl ItemConsts for NativeButton
[src]pub const cached_rendering_data_offset: FieldOffset<NativeButton, CachedRenderingData, NotPinned>
[src]
impl<'__dummy_lifetime> Unpin for NativeButton where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
[src]
impl<'__dummy_lifetime> Unpin for NativeButton where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
[src]Auto Trait Implementations
impl !RefUnwindSafe for NativeButton
impl !RefUnwindSafe for NativeButton
impl !Send for NativeButton
impl !Send for NativeButton
impl !Sync for NativeButton
impl !Sync for NativeButton
impl !UnwindSafe for NativeButton
impl !UnwindSafe for NativeButton