[−][src]Struct native_windows_gui::Frame
A frame is a rectangle containing children controls. Frame is implemented as a custom control.
Requires the frame feature.
Builder parameters:
parent: Required. The frame parent container.size: The frame size.position: The frame position.enabled: If the frame children can be used by the user.flags: A combination of the FrameFlags values.OnMouseWheel: Generic mouse wheel event
Control events:
MousePress(_): Generic mouse press events on the buttonOnMouseMove: Generic mouse mouse event
Fields
handle: ControlHandleImplementations
impl Frame[src]
pub fn builder() -> FrameBuilder[src]
pub fn focus(&self) -> bool[src]
Returns true if the control currently has the keyboard focus
pub fn set_focus(&self)[src]
Sets the keyboard focus on the button.
pub fn enabled(&self) -> bool[src]
Returns true if the control user can interact with the control, return false otherwise
pub fn set_enabled(&self, v: bool)[src]
Enable or disable the control
pub fn visible(&self) -> bool[src]
Returns true if the control is visible to the user. Will return true even if the control is outside of the parent client view (ex: at the position (10000, 10000))
pub fn set_visible(&self, v: bool)[src]
Show or hide the control to the user
pub fn size(&self) -> (u32, u32)[src]
Returns the size of the button in the parent window
pub fn set_size(&self, x: u32, y: u32)[src]
Sets the size of the button in the parent window
pub fn position(&self) -> (i32, i32)[src]
Returns the position of the button in the parent window
pub fn set_position(&self, x: i32, y: i32)[src]
Sets the position of the button in the parent window
pub fn class_name(&self) -> &'static str[src]
Winapi class name used during control creation
pub fn flags(&self) -> u32[src]
Winapi base flags used during window creation
pub fn forced_flags(&self) -> u32[src]
Winapi flags required by the control
Trait Implementations
impl Default for Frame[src]
impl Drop for Frame[src]
impl Eq for Frame[src]
impl<'_> From<&'_ Frame> for ControlHandle[src]
impl PartialEq<ControlHandle> for Frame[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialEq<Frame> for Frame[src]
impl PartialEq<Frame> for ControlHandle[src]
impl StructuralEq for Frame[src]
impl StructuralPartialEq for Frame[src]
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl !Send for Frame
impl !Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,