Struct ListCtrlIsOwned

Source
pub struct ListCtrlIsOwned<const OWNED: bool>(/* private fields */);
Expand description

A list control presents lists in a number of formats: list view, report view, icon view and small icon view.

Implementations§

Source§

impl<const OWNED: bool> ListCtrlIsOwned<OWNED>

Source

pub fn new_2step() -> ListCtrlIsOwned<OWNED>

Source

pub fn new<W: WindowMethods, P: PointMethods, S: SizeMethods, V: ValidatorMethods>( parent: Option<&W>, id: c_int, pos: &P, size: &S, style: c_long, validator: &V, name: &str, ) -> ListCtrlIsOwned<OWNED>

Constructor, creating and showing a list control.

See C++ wxListCtrl::wxListCtrl()’s documentation.

Source

pub fn none() -> Option<&'static Self>

Trait Implementations§

Source§

impl<const OWNED: bool> Clone for ListCtrlIsOwned<OWNED>

Source§

fn clone(&self) -> Self

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<const OWNED: bool> ControlMethods for ListCtrlIsOwned<OWNED>

Source§

fn create_validator<W: WindowMethods, P: PointMethods, S: SizeMethods, V: ValidatorMethods>( &self, parent: Option<&W>, id: c_int, pos: &P, size: &S, style: c_long, validator: &V, name: &str, ) -> bool

Creates the list control.

See C++ wxListCtrl::Create()’s documentation.

Source§

fn command<C: CommandEventMethods>(&self, event: &C)

Simulates the effect of the user issuing a command to the item. Read more
Source§

fn get_label_text(&self) -> String

Returns the control’s label without mnemonics. Read more
Source§

fn get_size_from_text_size_int(&self, xlen: c_int, ylen: c_int) -> Size

Determine the size needed by the control to leave the given area for its text. Read more
Source§

fn get_size_from_text_size_size<S: SizeMethods>(&self, tsize: &S) -> Size

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn get_size_from_text(&self, text: &str) -> Size

Determine the minimum size needed by the control to display the given text. Read more
Source§

fn set_label_text(&self, text: &str)

Sets the control’s label to exactly the given string. Read more
Source§

fn set_label_markup(&self, markup: &str) -> bool

Sets the controls label to a string using markup. Read more
Source§

fn get_label_text_str(label: &str) -> String

Returns the given label string without mnemonics (“&” characters). Read more
Source§

fn remove_mnemonics(str: &str) -> String

Returns the given str string without mnemonics (“&” characters). Read more
Source§

fn escape_mnemonics(text: &str) -> String

Escapes the special mnemonics characters (“&”) in the given string. Read more
Source§

fn ellipsize<D: DCMethods>( label: &str, dc: &D, mode: c_int, max_width: c_int, flags: c_int, ) -> String

Replaces parts of the label string with ellipsis, if needed, so that it fits into maxWidth pixels if possible. Read more
Source§

impl<const OWNED: bool> DynamicCast for ListCtrlIsOwned<OWNED>

Source§

impl<const OWNED: bool> EvtHandlerMethods for ListCtrlIsOwned<OWNED>

Source§

fn queue_event<E>(&self, event: Option<&E>)
where E: EventMethods,

Queue event for a later processing. Read more
Source§

fn add_pending_event<E>(&self, event: &E)
where E: EventMethods,

Post an event to be processed later. Read more
Source§

fn process_event<E>(&self, event: &E) -> bool
where E: EventMethods,

Processes an event, searching event tables and calling zero or more suitable event handler function(s). Read more
Source§

fn process_event_locally<E>(&self, event: &E) -> bool
where E: EventMethods,

Try to process the event in this handler and all those chained to it. Read more
Source§

fn safely_process_event<E>(&self, event: &E) -> bool
where E: EventMethods,

Processes an event by calling ProcessEvent() and handles any exceptions that occur in the process. Read more
Source§

fn process_pending_events(&self)

Processes the pending events previously queued using QueueEvent() or AddPendingEvent(); you must call this function only if you are sure there are pending events for this handler, otherwise a wxCHECK will fail. Read more
Source§

fn delete_pending_events(&self)

Deletes all events queued on this event handler using QueueEvent() or AddPendingEvent(). Read more
Source§

fn get_client_object(&self) -> Option<ClientDataIsOwned<false>>

Returns a pointer to the user-supplied client data object. Read more
Source§

fn set_client_object<C>(&self, data: Option<&C>)

Set the client data object. Read more
Source§

fn get_evt_handler_enabled(&self) -> bool

Returns true if the event handler is enabled, false otherwise. Read more
Source§

fn get_next_handler(&self) -> WeakRef<EvtHandlerIsOwned<true>>

Returns the pointer to the next handler in the chain. Read more
Source§

fn get_previous_handler(&self) -> WeakRef<EvtHandlerIsOwned<true>>

Returns the pointer to the previous handler in the chain. Read more
Source§

fn set_evt_handler_enabled(&self, enabled: bool)

Enables or disables the event handler. Read more
Source§

fn set_next_handler<E>(&self, handler: Option<&E>)

Sets the pointer to the next handler. Read more
Source§

fn set_previous_handler<E>(&self, handler: Option<&E>)

Sets the pointer to the previous handler. Read more
Unlinks this event handler from the chain it’s part of (if any); then links the “previous” event handler to the “next” one (so that the chain won’t be interrupted). Read more
Source§

fn is_unlinked(&self) -> bool

Returns true if the next and the previous handler pointers of this event handler instance are NULL. Read more
Source§

fn add_filter(filter: *mut c_void)

Add an event filter whose FilterEvent() method will be called for each and every event processed by wxWidgets. Read more
Source§

fn remove_filter(filter: *mut c_void)

Remove a filter previously installed with AddFilter(). Read more
Source§

impl<const OWNED: bool> From<ListCtrlIsOwned<OWNED>> for ControlIsOwned<OWNED>

Source§

fn from(o: ListCtrlIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> From<ListCtrlIsOwned<OWNED>> for EvtHandlerIsOwned<OWNED>

Source§

fn from(o: ListCtrlIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> From<ListCtrlIsOwned<OWNED>> for ObjectIsOwned<OWNED>

Source§

fn from(o: ListCtrlIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> From<ListCtrlIsOwned<OWNED>> for WindowIsOwned<OWNED>

Source§

fn from(o: ListCtrlIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> From<ListViewIsOwned<OWNED>> for ListCtrlIsOwned<OWNED>

Source§

fn from(o: ListViewIsOwned<OWNED>) -> Self

Converts to this type from the input type.
Source§

impl<const OWNED: bool> ListCtrlMethods for ListCtrlIsOwned<OWNED>

Source§

fn arrange(&self, flag: c_int) -> bool

Arranges the items in icon or small icon view. Read more
Source§

fn assign_image_list<I: ImageListMethods>( &self, image_list: Option<&I>, which: c_int, )

Sets the image list associated with the control and takes ownership of it. Read more
Source§

fn clear_all(&self)

Deletes all items and all columns. Read more
Source§

fn delete_all_columns(&self) -> bool

Delete all columns in the list control. Read more
Source§

fn delete_all_items(&self) -> bool

Deletes all items in the list control. Read more
Source§

fn delete_column(&self, col: c_int) -> bool

Deletes a column. Read more
Source§

fn delete_item(&self, item: c_long) -> bool

Deletes the specified item. Read more
Source§

fn edit_label<C: ClassInfoMethods>( &self, item: c_long, text_control_class: Option<&C>, ) -> WeakRef<TextCtrl>

Starts editing the label of the given item. Read more
Source§

fn enable_alternate_row_colours(&self, enable: bool)

Enable alternating row background colours (also called zebra striping). Read more
Source§

fn enable_bell_on_no_match(&self, on: bool)

Enable or disable a beep if there is no match for the currently entered text when searching for the item from keyboard. Read more
Source§

fn end_edit_label(&self, cancel: bool) -> bool

Finish editing the label. Read more
Source§

fn ensure_visible(&self, item: c_long) -> bool

Ensures this item is visible. Read more
Source§

fn find_item_str(&self, start: c_long, str: &str, partial: bool) -> c_long

Find an item whose label matches this string, starting from start or the beginning if start is -1. Read more
Source§

fn find_item_point<P: PointMethods>( &self, start: c_long, pt: &P, direction: c_int, ) -> c_long

Find an item nearest this position in the specified direction, starting from start or the beginning if start is -1. Read more
Source§

fn get_column<L: ListItemMethods>(&self, col: c_int, item: &L) -> bool

Gets information about this column. Read more
Source§

fn get_column_count(&self) -> c_int

Returns the number of columns. Read more
Source§

fn get_column_index_from_order(&self, pos: c_int) -> c_int

Gets the column index from its position in visual order. Read more
Source§

fn get_column_order(&self, col: c_int) -> c_int

Gets the column visual order position. Read more
Source§

fn get_column_width(&self, col: c_int) -> c_int

Gets the column width (report view only). Read more
Source§

fn get_columns_order(&self) -> ArrayInt

Returns the array containing the orders of all columns. Read more
Source§

fn get_count_per_page(&self) -> c_int

Gets the number of items that can fit vertically in the visible area of the list control (list or report view) or the total number of items in the list control (icon or small icon view). Read more
Source§

fn get_edit_control(&self) -> WeakRef<TextCtrl>

Returns the edit control being currently used to edit a label. Read more
Source§

fn get_image_list(&self, which: c_int) -> Option<ImageListIsOwned<false>>

Returns the specified image list. Read more
Source§

fn get_item<L: ListItemMethods>(&self, info: &L) -> bool

Gets information about the item. Read more
Source§

fn get_item_background_colour(&self, item: c_long) -> Colour

Returns the colour for this item. Read more
Source§

fn get_item_count(&self) -> c_int

Returns the number of items in the list control. Read more
Source§

fn get_item_font(&self, item: c_long) -> Font

Returns the item’s font. Read more
Source§

fn get_item_position<P: PointMethods>(&self, item: c_long, pos: &P) -> bool

Returns the position of the item, in icon or small icon view. Read more
Source§

fn get_item_rect<R: RectMethods>( &self, item: c_long, rect: &R, code: c_int, ) -> bool

Returns the rectangle representing the item’s size and position, in physical coordinates. Read more
Source§

fn get_item_spacing(&self) -> Size

Retrieves the spacing between icons in pixels: horizontal spacing is returned as x component of the wxSize object and the vertical spacing as its y component. Read more
Source§

fn get_item_state(&self, item: c_long, state_mask: c_long) -> c_int

Gets the item state. Read more
Source§

fn get_item_text(&self, item: c_long, col: c_int) -> String

Gets the item text for this item. Read more
Source§

fn get_item_text_colour(&self, item: c_long) -> Colour

Returns the colour for this item. Read more
Source§

fn get_next_item(&self, item: c_long, geometry: c_int, state: c_int) -> c_long

Searches for an item with the given geometry or state, starting from item but excluding the item itself. Read more
Source§

fn get_selected_item_count(&self) -> c_int

Returns the number of selected items in the list control. Read more
Source§

fn get_sub_item_rect<R: RectMethods>( &self, item: c_long, sub_item: c_long, rect: &R, code: c_int, ) -> bool

Returns the rectangle representing the size and position, in physical coordinates, of the given subitem, i.e. Read more
Source§

fn get_text_colour(&self) -> Colour

Gets the text colour of the list control. Read more
Source§

fn get_top_item(&self) -> c_long

Gets the index of the topmost visible item when in list or report view. Read more
Source§

fn get_view_rect(&self) -> Rect

Returns the rectangle taken by all items in the control. Read more
Source§

fn set_alternate_row_colour<C: ColourMethods>(&self, colour: &C)

Set the alternative row background colour to a specific colour. Read more
Source§

fn get_alternate_row_colour(&self) -> Colour

Get the alternative row background colour. Read more
Source§

fn hit_test<P: PointMethods>( &self, point: &P, flags: *mut c_void, ptr_sub_item: *mut c_void, ) -> c_long

Determines which item (if any) is at the specified point, giving details in flags. Read more
Source§

fn in_report_view(&self) -> bool

Returns true if the control is currently using wxLC_REPORT style. Read more
Source§

fn insert_column_listitem<L: ListItemMethods>( &self, col: c_long, info: &L, ) -> c_long

For report view mode (only), inserts a column. Read more
Source§

fn insert_column_str( &self, col: c_long, heading: &str, format: c_int, width: c_int, ) -> c_long

For report view mode (only), inserts a column. Read more
Source§

fn insert_item_listitem<L: ListItemMethods>(&self, info: &L) -> c_long

Inserts an item, returning the index of the new item if successful, -1 otherwise. Read more
Source§

fn insert_item_long_str(&self, index: c_long, label: &str) -> c_long

Insert a string item. Read more
Source§

fn insert_item_long_int(&self, index: c_long, image_index: c_int) -> c_long

Insert an image item. Read more
Source§

fn insert_item_long_str_int( &self, index: c_long, label: &str, image_index: c_int, ) -> c_long

Insert an image/string item. Read more
Source§

fn is_empty(&self) -> bool

Returns true if the control doesn’t currently contain any items. Read more
Source§

fn is_virtual(&self) -> bool

Returns true if the control is currently in virtual report view. Read more
Source§

fn refresh_item(&self, item: c_long)

Redraws the given item. Read more
Source§

fn refresh_items(&self, item_from: c_long, item_to: c_long)

Redraws the items between itemFrom and itemTo. Read more
Source§

fn scroll_list(&self, dx: c_int, dy: c_int) -> bool

Scrolls the list control. Read more
Source§

fn set_column<L: ListItemMethods>(&self, col: c_int, item: &L) -> bool

Sets information about this column. Read more
Source§

fn set_column_width(&self, col: c_int, width: c_int) -> bool

Sets the column width. Read more
Source§

fn set_columns_order<A: ArrayIntMethods>(&self, orders: &A) -> bool

Changes the order in which the columns are shown. Read more
Source§

fn set_header_attr(&self, attr: *const c_void) -> bool

Change the font and the colours used for the list control header. Read more
Source§

fn set_image_list<I: ImageListMethods>( &self, image_list: Option<&I>, which: c_int, )

Sets the image list associated with the control. Read more
Source§

fn set_normal_images(&self, images: *const c_void)

Sets the images to use when showing large, normal icons in this control. Read more
Source§

fn set_small_images(&self, images: *const c_void)

Sets the images to use when showing small icons in this control. Read more
Source§

fn is_visible(&self, item: c_long) -> bool

Check if the item is visible. Read more
Source§

fn set_item_listitem<L: ListItemMethods>(&self, info: &L) -> bool

Sets the data of an item. Read more
Source§

fn set_item_long( &self, index: c_long, column: c_int, label: &str, image_id: c_int, ) -> bool

Sets an item string field at a particular column. Read more
Source§

fn set_item_background_colour<C: ColourMethods>(&self, item: c_long, col: &C)

Sets the background colour for this item. Read more
Source§

fn set_item_column_image( &self, item: c_long, column: c_long, image: c_int, ) -> bool

Sets the image associated with the item. Read more
Source§

fn set_item_count(&self, count: c_long)

This method can only be used with virtual list controls. Read more
Source§

fn set_item_data(&self, item: c_long, data: c_long) -> bool

Associates application-defined data with this item. Read more
Source§

fn set_item_font<F: FontMethods>(&self, item: c_long, font: &F)

Sets the item’s font. Read more
Source§

fn set_item_image(&self, item: c_long, image: c_int, sel_image: c_int) -> bool

Sets the unselected and selected images associated with the item. Read more
Source§

fn set_item_position<P: PointMethods>(&self, item: c_long, pos: &P) -> bool

Sets the position of the item, in icon or small icon view. Read more
Source§

fn set_item_state( &self, item: c_long, state: c_long, state_mask: c_long, ) -> bool

Sets the item state. Read more
Source§

fn set_item_text(&self, item: c_long, text: &str)

Sets the item text for this item. Read more
Source§

fn set_item_text_colour<C: ColourMethods>(&self, item: c_long, col: &C)

Sets the colour for this item. Read more
Source§

fn set_single_style(&self, style: c_long, add: bool)

Adds or removes a single window style. Read more
Source§

fn set_text_colour<C: ColourMethods>(&self, col: &C)

Sets the text colour of the list control. Read more
Source§

fn has_check_boxes(&self) -> bool

Returns true if checkboxes are enabled for list items. Read more
Source§

fn enable_check_boxes(&self, enable: bool) -> bool

Enable or disable checkboxes for list items. Read more
Source§

fn is_item_checked(&self, item: c_long) -> bool

Return true if the checkbox for the given wxListItem is checked. Read more
Source§

fn check_item(&self, item: c_long, check: bool)

Check or uncheck a wxListItem in a control using checkboxes. Read more
Source§

fn extend_rules_and_alternate_colour(&self, extend: bool)

Extend rules and alternate rows background to the entire client area. Read more
Source§

fn show_sort_indicator(&self, col: c_int, ascending: bool)

Show the sort indicator of a specific column in a specific direction. Read more
Source§

fn remove_sort_indicator(&self)

Remove the sort indicator from the column being used as sort key. Read more
Source§

fn get_sort_indicator(&self) -> c_int

Returns the column that shows the sort indicator. Read more
Source§

fn get_updated_ascending_sort_indicator(&self, col: c_int) -> bool

Returns the new value to use for sort indicator after clicking a column. Read more
Source§

fn is_ascending_sort_indicator(&self) -> bool

Returns true if the sort indicator direction is ascending, false when the direction is descending. Read more
Source§

impl<const OWNED: bool> ObjectMethods for ListCtrlIsOwned<OWNED>

Source§

fn get_class_info(&self) -> Option<ClassInfoIsOwned<false>>

This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). Read more
Source§

fn get_ref_data(&self) -> Option<ObjectRefDataIsOwned<false>>

Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. Read more
Source§

fn is_kind_of<C>(&self, info: Option<&C>) -> bool

Determines whether this class is a subclass of (or the same class as) the given class. Read more
Source§

fn is_same_as<O>(&self, obj: &O) -> bool
where O: ObjectMethods,

Returns true if this object has the same data pointer as obj. Read more
Source§

fn ref_<O>(&self, clone: &O)
where O: ObjectMethods,

Makes this object refer to the data in clone. Read more
Source§

fn set_ref_data<O>(&self, data: Option<&O>)

Sets the wxObject::m_refData pointer. Read more
Source§

fn un_ref(&self)

Decrements the reference count in the associated data, and if it is zero, deletes the data. Read more
Source§

fn un_share(&self)

This is the same of AllocExclusive() but this method is public. Read more
Source§

impl<const OWNED: bool> WindowMethods for ListCtrlIsOwned<OWNED>

Source§

fn accepts_focus(&self) -> bool

This method may be overridden in the derived classes to return false to indicate that this control doesn’t accept input at all (i.e. behaves like e.g. wxStaticText) and so doesn’t need focus. Read more
Source§

fn accepts_focus_from_keyboard(&self) -> bool

This method may be overridden in the derived classes to return false to indicate that while this control can, in principle, have focus if the user clicks it with the mouse, it shouldn’t be included in the TAB traversal chain when using the keyboard. Read more
Source§

fn accepts_focus_recursively(&self) -> bool

Overridden to indicate whether this window or one of its children accepts focus. Read more
Source§

fn disable_focus_from_keyboard(&self)

Disable giving focus to this window using the keyboard navigation keys. Read more
Source§

fn is_focusable(&self) -> bool

Can this window itself have focus? Read more
Source§

fn can_accept_focus(&self) -> bool

Can this window have focus right now? Read more
Source§

fn can_accept_focus_from_keyboard(&self) -> bool

Can this window be assigned focus from keyboard right now? Read more
Source§

fn has_focus(&self) -> bool

Returns true if the window (or in case of composite controls, its main child window) has focus. Read more
Source§

fn set_can_focus(&self, can_focus: bool)

This method is only implemented by ports which have support for native TAB traversal (such as GTK+ 2.0). Read more
Source§

fn enable_visible_focus(&self, enable: bool)

Enables or disables visible indication of keyboard focus. Read more
Source§

fn set_focus(&self)

This sets the window to receive keyboard input. Read more
Source§

fn set_focus_from_kbd(&self)

This function is called by wxWidgets keyboard navigation code when the user gives the focus to this window from keyboard (e.g. using TAB key). Read more
Source§

fn add_child<W: WindowMethods>(&self, child: Option<&W>)

Adds a child window. Read more
Source§

fn destroy_children(&self) -> bool

Destroys all children of a window. Read more
Source§

fn find_window_long(&self, id: c_long) -> WeakRef<Window>

Find a child of this window, by id. Read more
Source§

fn find_window_str(&self, name: &str) -> WeakRef<Window>

Find a child of this window, by name. Read more
Source§

fn get_children(&self) -> WindowListIsOwned<false>

Returns a const reference to the list of the window’s children. Read more
Source§

fn remove_child<W: WindowMethods>(&self, child: Option<&W>)

Removes a child window. Read more
Source§

fn get_grand_parent(&self) -> WeakRef<Window>

Returns the grandparent of a window, or NULL if there isn’t one. Read more
Source§

fn get_next_sibling(&self) -> WeakRef<Window>

Returns the next window after this one among the parent’s children or NULL if this window is the last child. Read more
Source§

fn get_parent(&self) -> WeakRef<Window>

Returns the parent of the window, or NULL if there is no parent. Read more
Source§

fn get_prev_sibling(&self) -> WeakRef<Window>

Returns the previous window before this one among the parent’s children or NULL if this window is the first child. Read more
Source§

fn is_descendant<W: WindowMethods>(&self, win: Option<&W>) -> bool

Check if the specified window is a descendant of this one. Read more
Source§

fn reparent<W: WindowMethods>(&self, new_parent: Option<&W>) -> bool

Reparents the window, i.e. the window will be removed from its current parent window (e.g. Read more
Source§

fn always_show_scrollbars(&self, hflag: bool, vflag: bool)

Call this function to force one or both scrollbars to be always shown, even if the window is big enough to show its entire contents without scrolling. Read more
Source§

fn get_scroll_pos(&self, orientation: c_int) -> c_int

Returns the built-in scrollbar position. Read more
Source§

fn get_scroll_range(&self, orientation: c_int) -> c_int

Returns the built-in scrollbar range. Read more
Source§

fn get_scroll_thumb(&self, orientation: c_int) -> c_int

Returns the built-in scrollbar thumb size. Read more
Source§

fn can_scroll(&self, orient: c_int) -> bool

Returns true if this window can have a scroll bar in this orientation. Read more
Source§

fn has_scrollbar(&self, orient: c_int) -> bool

Returns true if this window currently has a scroll bar for this orientation. Read more
Source§

fn is_scrollbar_always_shown(&self, orient: c_int) -> bool

Return whether a scrollbar is always shown. Read more
Source§

fn scroll_lines(&self, lines: c_int) -> bool

Scrolls the window by the given number of lines down (if lines is positive) or up. Read more
Source§

fn scroll_pages(&self, pages: c_int) -> bool

Scrolls the window by the given number of pages down (if pages is positive) or up. Read more
Source§

fn scroll_window<R: RectMethods>(&self, dx: c_int, dy: c_int, rect: Option<&R>)

Physically scrolls the pixels in the window and move child windows accordingly. Read more
Source§

fn line_up(&self) -> bool

Same as ScrollLines (-1). Read more
Source§

fn line_down(&self) -> bool

Same as ScrollLines (1). Read more
Source§

fn page_up(&self) -> bool

Same as ScrollPages (-1). Read more
Source§

fn page_down(&self) -> bool

Same as ScrollPages (1). Read more
Source§

fn set_scroll_pos(&self, orientation: c_int, pos: c_int, refresh: bool)

Sets the position of one of the built-in scrollbars. Read more
Source§

fn set_scrollbar( &self, orientation: c_int, position: c_int, thumb_size: c_int, range: c_int, refresh: bool, )

Sets the scrollbar properties of a built-in scrollbar. Read more
Source§

fn begin_repositioning_children(&self) -> bool

Prepare for changing positions of multiple child windows. Read more
Source§

fn end_repositioning_children(&self)

Fix child window positions after setting all of them at once. Read more
Source§

fn cache_best_size<S: SizeMethods>(&self, size: &S)

Sets the cached best size value. Read more
Source§

fn client_to_window_size<S: SizeMethods>(&self, size: &S) -> Size

Converts client area size size to corresponding window size. Read more
Source§

fn window_to_client_size<S: SizeMethods>(&self, size: &S) -> Size

Converts window size size to corresponding client area size In other words, the returned value is what would GetClientSize() return if this window had given window size. Read more
Source§

fn fit(&self)

Sizes the window to fit its best size. Read more
Source§

fn fit_inside(&self)

Similar to Fit(), but sizes the interior (virtual) size of a window. Read more
Source§

fn from_dip_size<S: SizeMethods>(&self, sz: &S) -> Size

Convert DPI-independent pixel values to the value in pixels appropriate for the current toolkit. Read more
Source§

fn from_dip_point<P: PointMethods>(&self, pt: &P) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn from_dip_int(&self, d: c_int) -> c_int

Convert DPI-independent distance in pixels to the value in pixels appropriate for the current toolkit. Read more
Source§

fn to_dip_size<S: SizeMethods>(&self, sz: &S) -> Size

Convert pixel values of the current toolkit to DPI-independent pixel values. Read more
Source§

fn to_dip_point<P: PointMethods>(&self, pt: &P) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn to_dip_int(&self, d: c_int) -> c_int

Convert pixel values of the current toolkit to DPI-independent pixel values. Read more
Source§

fn from_phys_size<S: SizeMethods>(&self, sz: &S) -> Size

Convert from physical pixels to logical pixels. Read more
Source§

fn from_phys_point<P: PointMethods>(&self, pt: &P) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn from_phys_int(&self, d: c_int) -> c_int

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn to_phys_size<S: SizeMethods>(&self, sz: &S) -> Size

Convert from logical pixels to physical pixels. Read more
Source§

fn to_phys_point<P: PointMethods>(&self, pt: &P) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn to_phys_int(&self, d: c_int) -> c_int

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn get_best_size(&self) -> Size

This functions returns the best acceptable minimal size for the window. Read more
Source§

fn get_best_height(&self, width: c_int) -> c_int

Returns the best height needed by this window if it had the given width. Read more
Source§

fn get_best_width(&self, height: c_int) -> c_int

Returns the best width needed by this window if it had the given height. Read more
Source§

fn get_client_size_int(&self, width: *mut c_void, height: *mut c_void)

Returns the size of the window ‘client area’ in pixels. Read more
Source§

fn get_client_size(&self) -> Size

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn get_effective_min_size(&self) -> Size

Merges the window’s best size into the min size and returns the result. Read more
Source§

fn get_max_client_size(&self) -> Size

Returns the maximum size of window’s client area. Read more
Source§

fn get_max_size(&self) -> Size

Returns the maximum size of the window. Read more
Source§

fn get_min_client_size(&self) -> Size

Returns the minimum size of window’s client area, an indication to the sizer layout mechanism that this is the minimum required size of its client area. Read more
Source§

fn get_min_size(&self) -> Size

Returns the minimum size of the window, an indication to the sizer layout mechanism that this is the minimum required size. Read more
Source§

fn get_min_width(&self) -> c_int

Returns the horizontal component of window minimal size. Read more
Source§

fn get_min_height(&self) -> c_int

Returns the vertical component of window minimal size. Read more
Source§

fn get_max_width(&self) -> c_int

Returns the horizontal component of window maximal size. Read more
Source§

fn get_max_height(&self) -> c_int

Returns the vertical component of window maximal size. Read more
Source§

fn get_size_int(&self, width: *mut c_void, height: *mut c_void)

Returns the size of the entire window in pixels, including title bar, border, scrollbars, etc. Read more
Source§

fn get_size(&self) -> Size

See the GetSize(int*,int*) overload for more info. Read more
Source§

fn get_virtual_size(&self) -> Size

This gets the virtual size of the window in pixels. Read more
Source§

fn get_virtual_size_int(&self, width: *mut c_void, height: *mut c_void)

Like the other GetVirtualSize() overload but uses pointers instead. Read more
Source§

fn get_best_virtual_size(&self) -> Size

Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means) Read more
Source§

fn get_content_scale_factor(&self) -> c_double

Returns the factor mapping logical pixels of this window to physical pixels. Read more
Source§

fn get_dpi_scale_factor(&self) -> c_double

Returns the ratio of the DPI used by this window to the standard DPI. Read more
Source§

fn get_window_border_size(&self) -> Size

Returns the size of the left/right and top/bottom borders of this window in x and y components of the result respectively. Read more
Source§

fn inform_first_direction( &self, direction: c_int, size: c_int, available_other_dir: c_int, ) -> bool

wxSizer and friends use this to give a chance to a component to recalc its min size once one of the final size components is known. Read more
Source§

fn invalidate_best_size(&self)

Resets the cached best size value so it will be recalculated the next time it is needed. Read more
Source§

fn post_size_event(&self)

Posts a size event to the window. Read more
Source§

fn post_size_event_to_parent(&self)

Posts a size event to the parent of this window. Read more
Source§

fn send_size_event(&self, flags: c_int)

This function sends a dummy size event to the window allowing it to re-layout its children positions. Read more
Source§

fn send_size_event_to_parent(&self, flags: c_int)

Safe wrapper for GetParent()->SendSizeEvent(). Read more
Source§

fn set_client_size_int(&self, width: c_int, height: c_int)

This sets the size of the window client area in pixels. Read more
Source§

fn set_client_size_size<S: SizeMethods>(&self, size: &S)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn set_client_size_rect<R: RectMethods>(&self, rect: &R)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn set_containing_sizer<S: SizerMethods>(&self, sizer: Option<&S>)

Used by wxSizer internally to notify the window about being managed by the given sizer. Read more
Source§

fn set_initial_size<S: SizeMethods>(&self, size: &S)

A smart SetSize that will fill in default size components with the window’s best size values. Read more
Source§

fn set_max_client_size<S: SizeMethods>(&self, size: &S)

Sets the maximum client size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size of its client area. Read more
Source§

fn set_max_size<S: SizeMethods>(&self, size: &S)

Sets the maximum size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size. Read more
Source§

fn set_min_client_size<S: SizeMethods>(&self, size: &S)

Sets the minimum client size of the window, to indicate to the sizer layout mechanism that this is the minimum required size of window’s client area. Read more
Source§

fn set_min_size<S: SizeMethods>(&self, size: &S)

Sets the minimum size of the window, to indicate to the sizer layout mechanism that this is the minimum required size. Read more
Source§

fn set_size_int_int( &self, x: c_int, y: c_int, width: c_int, height: c_int, size_flags: c_int, )

Sets the size of the window in pixels. Read more
Source§

fn set_size_rect<R: RectMethods>(&self, rect: &R)

Sets the size of the window in pixels. Read more
Source§

fn set_size_size<S: SizeMethods>(&self, size: &S)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn set_size_int(&self, width: c_int, height: c_int)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn set_size_hints_size<S: SizeMethods, S2: SizeMethods, S3: SizeMethods>( &self, min_size: &S, max_size: &S2, inc_size: &S3, )

Use of this function for windows which are not toplevel windows (such as wxDialog or wxFrame) is discouraged. Read more
Source§

fn set_size_hints_int( &self, min_w: c_int, min_h: c_int, max_w: c_int, max_h: c_int, inc_w: c_int, inc_h: c_int, )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn set_virtual_size_int(&self, width: c_int, height: c_int)

Sets the virtual size of the window in pixels. Read more
Source§

fn set_virtual_size_size<S: SizeMethods>(&self, size: &S)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn from_dip_size_window<S: SizeMethods, W: WindowMethods>( sz: &S, w: Option<&W>, ) -> Size

Non window-specific DPI-independent pixels conversion functions. Read more
Source§

fn from_dip_point_window<P: PointMethods, W: WindowMethods>( pt: &P, w: Option<&W>, ) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn from_dip_int_window<W: WindowMethods>(d: c_int, w: Option<&W>) -> c_int

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn to_dip_size_window<S: SizeMethods, W: WindowMethods>( sz: &S, w: Option<&W>, ) -> Size

Non window-specific pixel to DPI-independent pixels conversion functions. Read more
Source§

fn to_dip_point_window<P: PointMethods, W: WindowMethods>( pt: &P, w: Option<&W>, ) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn to_dip_int_window<W: WindowMethods>(d: c_int, w: Option<&W>) -> c_int

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn from_phys_size_window<S: SizeMethods, W: WindowMethods>( sz: &S, w: Option<&W>, ) -> Size

Convert from physical pixels to logical pixels for any window. Read more
Source§

fn from_phys_point_window<P: PointMethods, W: WindowMethods>( pt: &P, w: Option<&W>, ) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn from_phys_int_window<W: WindowMethods>(d: c_int, w: Option<&W>) -> c_int

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn to_phys_size_window<S: SizeMethods, W: WindowMethods>( sz: &S, w: Option<&W>, ) -> Size

Convert from logical pixels to physical pixels for any window. Read more
Source§

fn to_phys_point_window<P: PointMethods, W: WindowMethods>( pt: &P, w: Option<&W>, ) -> Point

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn to_phys_int_window<W: WindowMethods>(d: c_int, w: Option<&W>) -> c_int

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn center(&self, dir: c_int)

A synonym for Centre(). Read more
Source§

fn center_on_parent(&self, dir: c_int)

A synonym for CentreOnParent(). Read more
Source§

fn centre(&self, direction: c_int)

Centres the window. Read more
Source§

fn centre_on_parent(&self, direction: c_int)

Centres the window on its parent. Read more
Source§

fn get_position_int(&self, x: *mut c_void, y: *mut c_void)

This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows. Read more
Source§

fn get_position(&self) -> Point

This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows. Read more
Source§

fn get_rect(&self) -> Rect

Returns the position and size of the window as a wxRect object. Read more
Source§

fn get_screen_position_int(&self, x: *mut c_void, y: *mut c_void)

Returns the window position in screen coordinates, whether the window is a child window or a top level one. Read more
Source§

fn get_screen_position(&self) -> Point

Returns the window position in screen coordinates, whether the window is a child window or a top level one. Read more
Source§

fn get_screen_rect(&self) -> Rect

Returns the position and size of the window on the screen as a wxRect object. Read more
Source§

fn get_client_area_origin(&self) -> Point

Get the origin of the client area of the window relative to the window top left corner (the client area may be shifted because of the borders, scrollbars, other decorations…) Read more
Source§

fn get_client_rect(&self) -> Rect

Get the client rectangle in window (i.e. client) coordinates. Read more
Source§

fn move_int(&self, x: c_int, y: c_int, flags: c_int)

Moves the window to the given position. Read more
Source§

fn move_point<P: PointMethods>(&self, pt: &P, flags: c_int)

Moves the window to the given position. Read more
Source§

fn set_position<P: PointMethods>(&self, pt: &P)

Moves the window to the specified position. Read more
Source§

fn client_to_screen_int(&self, x: *mut c_void, y: *mut c_void)

Converts to screen coordinates from coordinates relative to this window. Read more
Source§

fn client_to_screen_point<P: PointMethods>(&self, pt: &P) -> Point

Converts to screen coordinates from coordinates relative to this window. Read more
Source§

fn convert_dialog_to_pixels_point<P: PointMethods>(&self, pt: &P) -> Point

Converts a point or size from dialog units to pixels. Read more
Source§

fn convert_dialog_to_pixels_size<S: SizeMethods>(&self, sz: &S) -> Size

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn convert_pixels_to_dialog_point<P: PointMethods>(&self, pt: &P) -> Point

Converts a point or size from pixels to dialog units. Read more
Source§

fn convert_pixels_to_dialog_size<S: SizeMethods>(&self, sz: &S) -> Size

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn screen_to_client_int(&self, x: *mut c_void, y: *mut c_void)

Converts from screen to client window coordinates. Read more
Source§

fn screen_to_client_point<P: PointMethods>(&self, pt: &P) -> Point

Converts from screen to client window coordinates. Read more
Source§

fn clear_background(&self)

Clears the window by filling it with the current background colour. Read more
Source§

fn freeze(&self)

Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all. Read more
Source§

fn thaw(&self)

Re-enables window updating after a previous call to Freeze(). Read more
Source§

fn is_frozen(&self) -> bool

Returns true if the window is currently frozen by a call to Freeze(). Read more
Source§

fn get_background_colour(&self) -> Colour

Returns the background colour of the window. Read more
Source§

fn get_char_height(&self) -> c_int

Returns the character height for this window. Read more
Source§

fn get_char_width(&self) -> c_int

Returns the average character width for this window. Read more
Source§

fn get_dpi(&self) -> Size

Return the DPI of the display used by this window. Read more
Source§

fn get_font(&self) -> Font

Returns the font for this window. Read more
Source§

fn get_foreground_colour(&self) -> Colour

Returns the foreground colour of the window. Read more
Source§

fn get_text_extent_int<F: FontMethods>( &self, string: &str, w: *mut c_void, h: *mut c_void, descent: *mut c_void, external_leading: *mut c_void, font: Option<&F>, )

Gets the dimensions of the string as it would be drawn on the window with the currently selected font. Read more
Source§

fn get_text_extent(&self, string: &str) -> Size

Gets the dimensions of the string as it would be drawn on the window with the currently selected font. Read more
Source§

fn get_update_client_rect(&self) -> Rect

Get the update rectangle bounding box in client coords. Read more
Source§

fn has_transparent_background(&self) -> bool

Returns true if this window background is transparent (as, for example, for wxStaticText) and should show the parent window background. Read more
Source§

fn refresh<R: RectMethods>(&self, erase_background: bool, rect: Option<&R>)

Causes this window, and all of its children recursively, to be repainted. Read more
Source§

fn refresh_rect<R: RectMethods>(&self, rect: &R, erase_background: bool)

Redraws the contents of the given rectangle: only the area inside it will be repainted. Read more
Source§

fn update(&self)

Calling this method immediately repaints the invalidated area of the window and all of its children recursively (this normally only happens when the flow of control returns to the event loop). Read more
Source§

fn set_background_colour<C: ColourMethods>(&self, colour: &C) -> bool

Sets the background colour of the window. Read more
Source§

fn is_transparent_background_supported(&self, reason: *mut c_void) -> bool

Checks whether using transparent background might work. Read more
Source§

fn set_font<F: FontMethods>(&self, font: &F) -> bool

Sets the font for this window. Read more
Source§

fn set_foreground_colour<C: ColourMethods>(&self, colour: &C) -> bool

Sets the foreground colour of the window. Read more
Source§

fn set_own_background_colour<C: ColourMethods>(&self, colour: &C)

Sets the background colour of the window but prevents it from being inherited by the children of this window. Read more
Source§

fn inherits_background_colour(&self) -> bool

Return true if this window inherits the background colour from its parent. Read more
Source§

fn use_bg_col(&self) -> bool

Return true if a background colour has been set for this window. Read more
Source§

fn use_background_colour(&self) -> bool

Return true if a background colour has been set for this window. Read more
Source§

fn set_own_font<F: FontMethods>(&self, font: &F)

Sets the font of the window but prevents it from being inherited by the children of this window. Read more
Source§

fn set_own_foreground_colour<C: ColourMethods>(&self, colour: &C)

Sets the foreground colour of the window but prevents it from being inherited by the children of this window. Read more
Source§

fn use_foreground_colour(&self) -> bool

Return true if a foreground colour has been set for this window. Read more
Source§

fn inherits_foreground_colour(&self) -> bool

Return true if this window inherits the foreground colour from its parent. Read more
Source§

fn set_palette<P: PaletteMethods>(&self, pal: &P)

Source§

fn should_inherit_colours(&self) -> bool

Return true from here to allow the colours of this window to be changed by InheritAttributes(). Read more
Source§

fn set_theme_enabled(&self, enable: bool)

This function tells a window if it should use the system’s “theme” code to draw the windows’ background instead of its own background drawing code. Read more
Source§

fn get_theme_enabled(&self) -> bool

Returns true if the window uses the system theme for drawing its background. Read more
Source§

fn can_set_transparent(&self) -> bool

Returns true if the system supports transparent windows and calling SetTransparent() may succeed. Read more
Source§

fn set_transparent(&self, alpha: c_uchar) -> bool

Set the transparency of the window. Read more
Source§

fn get_event_handler(&self) -> WeakRef<EvtHandler>

Returns the event handler for this window. Read more
Source§

fn handle_as_navigation_key<K: KeyEventMethods>(&self, event: &K) -> bool

This function will generate the appropriate call to Navigate() if the key event is one normally used for keyboard navigation and return true in this case. Read more
Source§

fn handle_window_event<E: EventMethods>(&self, event: &E) -> bool

Shorthand for: Read more
Source§

fn process_window_event<E: EventMethods>(&self, event: &E) -> bool

Convenient wrapper for ProcessEvent(). Read more
Source§

fn process_window_event_locally<E: EventMethods>(&self, event: &E) -> bool

Wrapper for wxEvtHandler::ProcessEventLocally(). Read more
Source§

fn pop_event_handler(&self, delete_handler: bool) -> WeakRef<EvtHandler>

Removes and returns the top-most event handler on the event handler stack. Read more
Source§

fn push_event_handler<E: EvtHandlerMethods>(&self, handler: Option<&E>)

Pushes this event handler onto the event stack for the window. Read more
Source§

fn remove_event_handler<E: EvtHandlerMethods>( &self, handler: Option<&E>, ) -> bool

Find the given handler in the windows event handler stack and removes (but does not delete) it from the stack. Read more
Source§

fn set_event_handler<E: EvtHandlerMethods>(&self, handler: Option<&E>)

Sets the event handler for this window. Read more
Source§

fn get_extra_style(&self) -> c_long

Returns the extra style bits for the window. Read more
Source§

fn get_window_style_flag(&self) -> c_long

Gets the window style that was passed to the constructor or Create() method. Read more
Source§

fn get_window_style(&self) -> c_long

See GetWindowStyleFlag() for more info. Read more
Source§

fn has_extra_style(&self, ex_flag: c_int) -> bool

Returns true if the window has the given exFlag bit set in its extra styles. Read more
Source§

fn has_flag(&self, flag: c_int) -> bool

Returns true if the window has the given flag bit set. Read more
Source§

fn set_extra_style(&self, ex_style: c_long)

Sets the extra style bits for the window. Read more
Source§

fn set_window_style_flag(&self, style: c_long)

Sets the style of the window. Read more
Source§

fn set_window_style(&self, style: c_long)

See SetWindowStyleFlag() for more info. Read more
Source§

fn toggle_window_style(&self, flag: c_int) -> bool

Turns the given flag on if it’s currently turned off and vice versa. Read more
Source§

fn move_after_in_tab_order<W: WindowMethods>(&self, win: Option<&W>)

Moves this window in the tab navigation order after the specified win. Read more
Source§

fn move_before_in_tab_order<W: WindowMethods>(&self, win: Option<&W>)

Same as MoveAfterInTabOrder() except that it inserts this window just before win instead of putting it right after it. Read more
Source§

fn navigate(&self, flags: c_int) -> bool

Performs a keyboard navigation action starting from this window. Read more
Source§

fn navigate_in(&self, flags: c_int) -> bool

Performs a keyboard navigation action inside this window. Read more
Source§

fn lower(&self)

Lowers the window to the bottom of the window hierarchy (Z-order). Read more
Source§

fn raise(&self)

Raises the window to the top of the window hierarchy (Z-order). Read more
Source§

fn hide(&self) -> bool

Equivalent to calling wxWindow::Show(false). Read more
Source§

fn is_enabled(&self) -> bool

Returns true if the window is enabled, i.e. if it accepts user input, false otherwise. Read more
Source§

fn is_exposed_int(&self, x: c_int, y: c_int) -> bool

Returns true if the given point or rectangle area has been exposed since the last repaint. Read more
Source§

fn is_exposed_point<P: PointMethods>(&self, pt: &P) -> bool

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn is_exposed_int_int(&self, x: c_int, y: c_int, w: c_int, h: c_int) -> bool

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn is_exposed_rect<R: RectMethods>(&self, rect: &R) -> bool

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn is_shown(&self) -> bool

Returns true if the window is shown, false if it has been hidden. Read more
Source§

fn is_shown_on_screen(&self) -> bool

Returns true if the window is physically visible on the screen, i.e. it is shown and all its parents up to the toplevel window are shown as well. Read more
Source§

fn disable(&self) -> bool

Disables the window. Read more
Source§

fn enable(&self, enable: bool) -> bool

Enable or disable the window for user input. Read more
Source§

fn show(&self, show: bool) -> bool

Shows or hides the window. Read more
Source§

fn set_help_text(&self, help_text: &str)

Sets the help text to be used as context-sensitive help for this window. Read more
Source§

fn get_tool_tip(&self) -> Option<ToolTipIsOwned<false>>

Get the associated tooltip or NULL if none. Read more
Source§

fn get_tool_tip_text(&self) -> String

Get the text of the associated tooltip or empty string if none. Read more
Source§

fn set_tool_tip_str(&self, tip_string: &str)

Attach a tooltip to the window. Read more
Source§

fn set_tool_tip_tooltip<T: ToolTipMethods>(&self, tip: Option<&T>)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn unset_tool_tip(&self)

Unset any existing tooltip. Read more
Source§

fn get_popup_menu_selection_from_user_point<M: MenuMethods, P: PointMethods>( &self, menu: &M, pos: &P, ) -> c_int

This function shows a popup menu at the given position in this window and returns the selected id. Read more
Source§

fn get_popup_menu_selection_from_user_int<M: MenuMethods>( &self, menu: &M, x: c_int, y: c_int, ) -> c_int

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn popup_menu_point<M: MenuMethods, P: PointMethods>( &self, menu: Option<&M>, pos: &P, ) -> bool

Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. Read more
Source§

fn popup_menu_int<M: MenuMethods>( &self, menu: Option<&M>, x: c_int, y: c_int, ) -> bool

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Read more
Source§

fn get_validator(&self) -> WeakRef<Validator>

Validator functions. Read more
Source§

fn set_validator<V: ValidatorMethods>(&self, validator: &V)

Deletes the current validator (if any) and sets the window validator, having called wxValidator::Clone to create a new validator of this type. Read more
Source§

fn transfer_data_from_window(&self) -> bool

Transfers values from child controls to data areas specified by their validators. Read more
Source§

fn transfer_data_to_window(&self) -> bool

Transfers values to child controls from data areas specified by their validators. Read more
Source§

fn validate(&self) -> bool

Validates the current values of the child controls using their validators. Read more
Source§

fn get_id(&self) -> c_int

Returns the identifier of the window. Read more
Source§

fn get_label(&self) -> String

Generic way of getting a label from any window, for identification purposes. Read more
Source§

fn get_layout_direction(&self) -> c_int

Returns the layout direction for this window, Note that wxLayout_Default is returned if layout direction is not supported. Read more
Source§

fn adjust_for_layout_direction( &self, x: c_int, width: c_int, width_total: c_int, ) -> c_int

Mirror coordinates for RTL layout if this window uses it and if the mirroring is not done automatically like Win32. Read more
Source§

fn get_name(&self) -> String

Returns the window’s name. Read more
Source§

fn set_id(&self, winid: c_int)

Sets the identifier of the window. Read more
Source§

fn set_label(&self, label: &str)

Sets the window’s label. Read more
Source§

fn set_layout_direction(&self, dir: c_int)

Sets the layout direction for this window. Read more
Source§

fn set_name(&self, name: &str)

Sets the window’s name. Read more
Source§

fn get_accelerator_table(&self) -> Option<AcceleratorTableIsOwned<false>>

Gets the accelerator table for this window. Read more
Source§

fn set_accelerator_table<A: AcceleratorTableMethods>(&self, accel: &A)

Sets the accelerator table for this window. Read more
Source§

fn close(&self, force: bool) -> bool

This function simply generates a wxCloseEvent whose handler usually tries to close the window. Read more
Source§

fn destroy(&self) -> bool

Destroys the window safely. Read more
Source§

fn is_being_deleted(&self) -> bool

Returns true if this window is in process of being destroyed. Read more
Source§

fn get_drop_target(&self) -> Option<DropTargetIsOwned<false>>

Returns the associated drop target, which may be NULL. Read more
Source§

fn set_drop_target<D: DropTargetMethods>(&self, target: Option<&D>)

Associates a drop target with this window. Read more
Source§

fn drag_accept_files(&self, accept: bool)

Enables or disables eligibility for drop file events (OnDropFiles). Read more
Source§

fn get_containing_sizer(&self) -> Option<SizerIsOwned<false>>

Returns the sizer of which this window is a member, if any, otherwise NULL. Read more
Source§

fn get_sizer(&self) -> Option<SizerIsOwned<false>>

Returns the sizer associated with the window by a previous call to SetSizer(), or NULL. Read more
Source§

fn set_sizer<S: SizerMethods>(&self, sizer: Option<&S>, delete_old: bool)

Sets the window to have the given layout sizer. Read more
Source§

fn set_sizer_and_fit<S: SizerMethods>( &self, sizer: Option<&S>, delete_old: bool, )

Associate the sizer with the window and set the window size and minimal size accordingly. Read more
Source§

fn get_constraints(&self) -> *mut c_void

Returns a pointer to the window’s layout constraints, or NULL if there are none. Read more
Source§

fn set_constraints(&self, constraints: *mut c_void)

Sets the window to have the given layout constraints. Read more
Source§

fn layout(&self) -> bool

Lays out the children of this window using the associated sizer. Read more
Source§

fn set_auto_layout(&self, auto_layout: bool)

Determines whether the Layout() function will be called automatically when the window is resized. Read more
Source§

fn get_auto_layout(&self) -> bool

Returns true if Layout() is called automatically when the window is resized. Read more
Source§

fn capture_mouse(&self)

Directs all mouse input to this window. Read more
Source§

fn get_caret(&self) -> Option<CaretIsOwned<false>>

Returns the caret() associated with the window. Read more
Source§

fn has_capture(&self) -> bool

Returns true if this window has the current mouse capture. Read more
Source§

fn release_mouse(&self)

Releases mouse input captured with CaptureMouse(). Read more
Source§

fn set_caret<C: CaretMethods>(&self, caret: Option<&C>)

Sets the caret() associated with the window. Read more
Source§

fn set_cursor<C: CursorMethods>(&self, cursor: &C) -> bool

Sets the window’s cursor. Read more
Source§

fn warp_pointer(&self, x: c_int, y: c_int)

Moves the pointer to the given position on the window. Read more
Source§

fn enable_touch_events(&self, events_mask: c_int) -> bool

Request generation of touch events for this window. Read more
Source§

fn do_update_window_ui<U: UpdateUIEventMethods>(&self, event: &U)

Does the window-specific updating after processing the update event. Read more
Source§

fn has_multiple_pages(&self) -> bool

This method should be overridden to return true if this window has multiple pages. Read more
Source§

fn inherit_attributes(&self)

This function is (or should be, in case of custom controls) called during window creation to intelligently set up the window visual attributes, that is the font and the foreground and background colours. Read more
Source§

fn init_dialog(&self)

Sends an wxEVT_INIT_DIALOG event, whose handler usually transfers data to the dialog via validators. Read more
Source§

fn is_double_buffered(&self) -> bool

Returns true if the window contents is double-buffered by the system, i.e. if any drawing done on the window is really done on a temporary backing surface and transferred to the screen all at once later. Read more
Source§

fn set_double_buffered(&self, on: bool)

Turn on or off double buffering of the window if the system supports it. Read more
Source§

fn is_retained(&self) -> bool

Returns true if the window is retained, false otherwise. Read more
Source§

fn is_this_enabled(&self) -> bool

Returns true if this window is intrinsically enabled, false otherwise, i.e. if Enable() Enable(false) had been called. Read more
Source§

fn is_top_level(&self) -> bool

Returns true if the given window is a top-level one. Read more
Source§

fn on_internal_idle(&self)

This virtual function is normally only used internally, but sometimes an application may need it to implement functionality that should not be disabled by an application defining an OnIdle handler in a derived class. Read more
Source§

fn send_idle_events(&self, event: *mut c_void) -> bool

Send idle event to window and all subwindows. Read more
Source§

fn register_hot_key( &self, hotkey_id: c_int, modifiers: c_int, virtual_key_code: c_int, ) -> bool

Registers a system wide hotkey. Read more
Source§

fn unregister_hot_key(&self, hotkey_id: c_int) -> bool

Unregisters a system wide hotkey. Read more
Source§

fn update_window_ui(&self, flags: c_long)

This function sends one or more wxUpdateUIEvent to the window. Read more
Source§

fn find_focus() -> WeakRef<Window>

Finds the window or control which currently has the keyboard focus. Read more
Source§

fn find_window_by_id<W: WindowMethods>( id: c_long, parent: Option<&W>, ) -> WeakRef<Window>

Find the first window with the given id. Read more
Source§

fn find_window_by_label<W: WindowMethods>( label: &str, parent: Option<&W>, ) -> WeakRef<Window>

Find a window by its label. Read more
Source§

fn find_window_by_name<W: WindowMethods>( name: &str, parent: Option<&W>, ) -> WeakRef<Window>

Find a window by its name (as given in a window constructor or Create() function call). Read more
Source§

fn get_capture() -> WeakRef<Window>

Returns the currently captured window. Read more
Source§

fn new_control_id(count: c_int) -> c_int

Create a new ID or range of IDs that are not currently in use. Read more
Source§

fn unreserve_control_id(id: c_int, count: c_int)

Unreserve an ID or range of IDs that was reserved by NewControlId(). Read more
Source§

fn create<W: WindowMethods, P: PointMethods, S: SizeMethods>( &self, parent: Option<&W>, id: c_int, pos: &P, size: &S, style: c_long, name: &str, ) -> bool

Construct the actual window object after creating the C++ object. Read more
Source§

impl<const OWNED: bool> WxRustMethods for ListCtrlIsOwned<OWNED>

Source§

type Unowned = ListCtrlIsOwned<false>

Source§

unsafe fn as_ptr(&self) -> *mut c_void

Source§

unsafe fn from_ptr(ptr: *mut c_void) -> Self

Source§

unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned

Source§

unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)

Source§

unsafe fn option_from(ptr: *mut c_void) -> Option<Self::Unowned>
where Self: Sized,

Auto Trait Implementations§

§

impl<const OWNED: bool> Freeze for ListCtrlIsOwned<OWNED>

§

impl<const OWNED: bool> RefUnwindSafe for ListCtrlIsOwned<OWNED>

§

impl<const OWNED: bool> !Send for ListCtrlIsOwned<OWNED>

§

impl<const OWNED: bool> !Sync for ListCtrlIsOwned<OWNED>

§

impl<const OWNED: bool> Unpin for ListCtrlIsOwned<OWNED>

§

impl<const OWNED: bool> UnwindSafe for ListCtrlIsOwned<OWNED>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Bindable for T

Source§

fn bind<E, F>(&self, event_type: RustEvent, closure: F)
where E: EventMethods, F: Fn(&E) + 'static,

Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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> Trackable<T> for T

Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.