Struct fltk::table::TableRow

source ·
pub struct TableRow { /* private fields */ }
Expand description

Creates a table row

Implementations

Returns whether a row was selected

Selects a row

Errors

Errors on failure to select row

Selects all rows

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Begins a group, used for widgets implementing the group trait
Ends a group, used for widgets implementing the group trait
Clear a group from all widgets
Return the number of children in a group
Return child widget by index
Find a widget within a group and return its index
Add a widget to a group
Insert a widget to a group at a certain index
Remove a widget from a group, but does not delete it
Remove a child widget by its index
The resizable widget defines both the resizing frame and the resizing behavior of the group and its children.
Make the group itself resizable, should be called before the widget is shown
Adds a widget to the group and makes it the resizable widget
Clips children outside the group boundaries
Get whether clip_children is set
Draw a child widget, the call should be in a WidgetBase::draw method
Update a child widget, the call should be in a WidgetBase::draw method
Draw the outside label, the call should be in a WidgetBase::draw method
Draw children, the call should be in a WidgetBase::draw method
Resets the internal array of widget sizes and positions
Get the bounds of all children widgets (left, upper, right, bottom)
Converts a widget implementing GroupExt into a Group widget Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Clears the table
Sets the table frame
Gets the table frame
Sets the number of rows
Gets the number of rows
Sets the number of columns
Gets the number of columns
The range of row and column numbers for all visible and partially visible cells in the table. Returns (row_top, col_left, row_bot, col_right) Read more
The range of row and column numbers for all visible and partially visible cells in the table. Returns (row_top, col_left, row_bot, col_right) Read more
Returns whether the resize is interactive
Returns whether a row is resizable
Sets a row to be resizable
Returns whether a column is resizable
Sets a column to be resizable
Returns the current column minimum resize value.
Sets the current column minimum resize value.
Returns the current row minimum resize value.
Sets the current row minimum resize value.
Returns if row headers are enabled or not
Sets whether a row headers are enabled or not
Returns if column headers are enabled or not
Sets whether a column headers are enabled or not
Sets the column header height
Gets the column header height
Sets the row header width
Gets the row header width
Sets the row header color
Gets the row header color
Sets the column header color
Gets the row header color
Sets the row’s height
Gets the row’s height
Sets the column’s width
Gets the column’s width
Sets all rows height
Sets all column’s width
Sets the row’s position
Sets the column’s position
Gets the row’s position
Gets the column’s position
Sets the top row
Gets the top row
Returns whether a cell is selected
Gets the selection. Returns (row_top, col_left, row_bot, col_right). Returns -1 if no selection. Read more
Tries to get the selection. Returns an Option((row_top, col_left, row_bot, col_right)) Read more
Sets the selection
Unset selection
Moves the cursor with shift select Read more
Moves the cursor Read more
Returns the scrollbar size
Sets the scrollbar size
Sets whether tab key cell navigation is enabled
Returns whether tab key cell navigation is enabled
Override draw_cell. callback args: &mut self, TableContext, Row: i32, Column: i32, X: i32, Y: i32, Width: i32 and Height: i32. takes the widget as a closure argument Read more
Get the callback column, should be called from within a callback
Get the callback row, should be called from within a callback
Get the callback context, should be called from within a callback
Returns the table’s vertical scrollbar
Returns the table’s horizontal scrollbar
Find a cell’s coords and size by row and column
Get the cursor to row/col
Creates a new widget, takes an x, y coordinates, as well as a width and height, plus a title Read more
Constructs a widget with the size of its parent
Deletes widgets and their children.
transforms a widget pointer to a Widget, for internal use Read more
Get a widget from base widget Read more
Set a custom handler, where events are managed manually, akin to Fl_Widget::handle(int). Handled or ignored events should return true, unhandled events should return false. takes the widget as a closure argument Read more
Set a custom draw method. takes the widget as a closure argument. macOS requires that WidgetBase::draw actually calls drawing functions Read more
Perform a callback on resize. Avoid resizing the parent or the same widget to avoid infinite recursion Read more
Makes the widget derived Read more

Initialize center of another widget

Initialize center of another widget

Initialize to a position x, y
Initialize to size width, height
Initialize with a label
Initialize with alignment
Initialize with type
Initialize at bottom of another widget
Initialize above of another widget
Initialize right of another widget
Initialize left of another widget
Initialize center of another widget
Initialize center of parent
Initialize to the size of another widget
Initialize to the size of the parent
Set to position x, y
Set to dimensions width and height
Sets the widget’s label. labels support special symbols preceded by an @ sign. and for the associated formatting. Read more
Redraws a widget, necessary for resizing and changing positions
Shows the widget
Hides the widget
Returns the x coordinate of the widget
Returns the y coordinate of the widget
Returns the width of the widget
Returns the height of the widget
Returns the width of the widget
Returns the height of the widget
Returns the label of the widget
Measures the label’s width and height
transforms a widget to a base Fl_Widget, for internal use Read more
Activates the widget
Deactivates the widget
Redraws the label of the widget
Resizes and/or moves the widget, takes x, y, width and height
Does a simple resize ignoring class-specific resize functionality
Returns the tooltip text
Sets the tooltip text
Returns the widget color
Sets the widget’s color
Returns the widget label’s color
Sets the widget label’s color
Returns the widget label’s font
Sets the widget label’s font
Returns the widget label’s size
Sets the widget label’s size
Returns the widget label’s type
Sets the widget label’s type
Returns the widget’s frame type
Sets the widget’s frame type
Returns whether the widget was changed
Mark the widget as changed
Clears the changed status of the widget
Returns the alignment of the widget
Sets the alignment of the widget
Sets the default callback trigger for a widget, equivalent to when()
Return the callback trigger, equivalent to when()
Returns the parent of the widget
Gets the selection color of the widget
Sets the selection color of the widget
Runs the already registered callback
Returns the direct window holding the widget
Returns the topmost window holding the widget
Checks whether a widget is capable of taking events
Make the widget take focus Read more
Set the widget to have visible focus
Clear visible focus
Set the visible focus using a flag
Return whether the widget has visible focus
Return whether the widget has focus
Check if a widget was deleted
Return whether the widget was damaged
Signal the widget as damaged and it should be redrawn in the next event loop cycle
Return the damage mask
Signal the type of damage a widget received
Clear the damaged flag
Return the widget as a window if it’s a window
Return the widget as a group widget if it’s a group widget
Checks whether the self widget is inside another widget
Returns the widget type when applicable
Sets the widget type
Sets the image of the widget
Sets the image of the widget scaled to the widget’s size
Gets the image associated with the widget
Sets the deactivated image of the widget
Sets the deactivated image of the widget scaled to the widget’s size
Gets the deactivated image associated with the widget
Sets the callback when the widget is triggered (clicks for example) takes the widget as a closure argument Read more
Emits a message on callback using a sender
Upcast a WidgetExt to a Widget Read more
Returns whether a widget is visible
Returns whether a widget or any of its parents are visible (recursively)
Return whether two widgets object point to the same widget
Returns whether a widget is active
Returns whether a widget or any of its parents are active (recursively)
Handle a specific event
Check whether a widget is derived

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.