#[repr(C)]pub struct XPWidgetCreate_t {
pub left: c_int,
pub top: c_int,
pub right: c_int,
pub bottom: c_int,
pub visible: c_int,
pub descriptor: *const c_char,
pub isRoot: c_int,
pub containerIndex: c_int,
pub widgetClass: XPWidgetClass,
}Expand description
XPWidgetCreate_t
This structure contains all of the parameters needed to create a widget. It is used with XPUCreateWidgets to create widgets in bulk from an array. All parameters correspond to those of XPCreateWidget except for the container index.
If the container index is equal to the index of a widget in the array, the widget in the array passed to XPUCreateWidgets is used as the parent of this widget. Note that if you pass an index greater than your own position in the array, the parent you are requesting will not exist yet.
If the container index is NO_PARENT, the parent widget is specified as NULL. If the container index is PARAM_PARENT, the widget passed into XPUCreateWidgets is used.
Fields§
§left: c_int§top: c_int§right: c_int§bottom: c_int§visible: c_int§descriptor: *const c_char§isRoot: c_intWhether this widget is a root widget
containerIndex: c_intThe index of the widget to be contained within, or a constant
widgetClass: XPWidgetClassTrait Implementations§
Source§impl Clone for XPWidgetCreate_t
impl Clone for XPWidgetCreate_t
Source§fn clone(&self) -> XPWidgetCreate_t
fn clone(&self) -> XPWidgetCreate_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more