MCPcopy Create free account

hub / github.com/KISS-UI/kiss-ui / functions

Functions125 in github.com/KISS-UI/kiss-ui

↓ 28 callersMethodptr
(self)
src/widget.rs:349
↓ 20 callersMethodas_cstr
(self)
src/container.rs:20
↓ 9 callersMethodset_str_attribute
(self, name: &'static str, val: V)
src/widget.rs:252
↓ 7 callersMethodset_bool_attribute
(self, name: &'static str, val: bool)
src/widget.rs:323
↓ 7 callersMethodset_const_str_attribute
(self, name: &'static str, val: &'static str)
src/widget.rs:273
↓ 6 callersMethodset_int_attribute
(self, name: &'static str, val: i32)
src/widget.rs:296
↓ 5 callersMethodas_ref
(&self)
src/utils/move_cell.rs:32
↓ 5 callersMethodset_title
Set the title of this dialog, which will appear in the title bar of the native window.
src/dialog.rs:49
↓ 5 callersFunctionshow_gui
The entry point for KISS-UI. The closure argument should initialize and call `.show()`. ##Blocks Until all KISS-UI dialogs are closed. ##Warning No
src/lib.rs:182
↓ 5 callersMethodwith
Create a new `MoveCell` with the given value.
src/utils/move_cell.rs:19
↓ 4 callersMethodset_float_attribute
(self, name: &'static str, val: f32)
src/widget.rs:315
↓ 3 callersMethodborrow
(&self)
src/widget.rs:183
↓ 3 callersMethodget_str_attribute
(&self, name: &'static str)
src/widget.rs:279
↓ 3 callersFunctionmessage_popup
Popup a message dialog and block until it is closed, by either the OK button or the exit button.
src/dialog.rs:82
↓ 3 callersFunctionraw_handle_vec
(widgets: B)
src/container.rs:71
↓ 2 callersMethodadd_value
Add `amt` to the current value and update it. `amt` may be negative.
src/progress.rs:82
↓ 2 callersMethodas_mut
(&self)
src/utils/move_cell.rs:28
↓ 2 callersMethodclone
(&self)
src/widget.rs:215
↓ 2 callersMethodget_float_attribute
(self, name: &'static str)
src/widget.rs:319
↓ 2 callersMethodget_int2_attribute
(self, name: &'static str)
src/widget.rs:304
↓ 2 callersMethodget_name
Get the name of this widget, if the widget supports having a name and one is set.
src/widget.rs:92
↓ 2 callersMethodinc_refcount
(&self)
src/widget.rs:176
↓ 1 callersFunctionbool_yes_no
(_bool: bool)
src/attrs.rs:60
↓ 1 callersMethodbutton2
Set the text of the second button
src/dialog.rs:117
↓ 1 callersMethodbutton3
(mut self, button3: B3)
src/dialog.rs:122
↓ 1 callersFunctioncolor
Play with this function and let us know what you come up with!
examples/show_image.rs:31
↓ 1 callersMethodget_attr_handle
(self, name: &'static str)
src/widget.rs:332
↓ 1 callersMethodget_child
Get a child of this dialog named by `name`. Returns `None` if the child was not found.
src/dialog.rs:64
↓ 1 callersMethodget_dialog
Get the containing dialog of this widget. Returns `None` if this widget is not attached to a dialog.
src/widget.rs:120
↓ 1 callersMethodget_text
Get the text of this label.
src/text.rs:39
↓ 1 callersMethodget_value
Get the current value.
src/progress.rs:77
↓ 1 callersMethodpopup
Popup the dialog and block until the user takes an action. Returns: which button was pressed, or **0** if the dialog was closed.
src/dialog.rs:130
↓ 1 callersMethodput
Place a value into this `MoveCell`, returning the previous value, if present.
src/utils/move_cell.rs:37
↓ 1 callersMethodset_attr_handle
(self, name: &'static str, handle: W)
src/widget.rs:328
↓ 1 callersMethodset_dashed
Set if the progress bar should render solid (`false`) or dashed (`true`). This may not have a visual effect on certain platforms.
src/progress.rs:38
↓ 1 callersMethodset_interval
Set the timer interval in milliseconds.
src/timer.rs:28
↓ 1 callersMethodset_name
Set the name of the widget so it can be found within its parent. Does nothing if the widget does not support having a name. ##Panics If any `WidgetS
src/widget.rs:86
↓ 1 callersMethodset_on_interval
Set a callback to be invoked when the timer interval elapses. The callback will be invoked on every interval until `.stop()` is called.
src/timer.rs:35
↓ 1 callersMethodset_size_pixels
Set the size of this dialog in pixels.
src/dialog.rs:55
↓ 1 callersMethodshow
Show this widget if it was previously hidden. Does nothing if the widget is already shown, or if the operation does not apply.
src/widget.rs:29
↓ 1 callersFunctionshow_message_dialog
(btn: Button)
examples/button_test.rs:48
↓ 1 callersMethodstart
Start the timer. The callback will be invoked when the next interval elapses.
src/timer.rs:41
↓ 1 callersMethodstop
Stop the timer. The callback will not be invoked until the timer is restarted.
src/timer.rs:47
↓ 1 callersMethodstore
Store this widget under `name`, returning the previous widget stored, if any. It may later be retrieved from any valid KISS-UI context by calling `Ba
src/widget.rs:140
↓ 1 callersMethodtake
Take the value out of this `MoveCell`, leaving nothing in its place.
src/utils/move_cell.rs:42
↓ 1 callersMethodto_base
(self)
src/widget.rs:144
Methodadd_child_at
Add a child to the `Absolute` at the given coordinates, relative to the top-left corner of the container.
src/container.rs:89
Methodas_cstr
(&self)
src/utils/cstr.rs:6
Methodassert_str_not_borrowed
(widget: IUPPtr, str_: &'static str)
src/lib.rs:105
Methodclassname
(&self)
src/widget.rs:248
Methodclear
()
src/lib.rs:148
Methodclone_inner
Take the value out of this `MoveCell`, leaving a clone in its place.
src/utils/move_cell.rs:47
Methodclose
(&mut self)
src/callback.rs:26
Functionclose_dialog
(_: Button)
examples/button_test.rs:72
Methoddefault
()
src/utils/move_cell.rs:60
Methodderef
(&'b self)
src/widget.rs:209
Methoddestroy
(self)
src/widget.rs:150
Methoddowncast
(base: BaseWidget)
src/base.rs:51
Methoddrop
(&mut self)
src/widget.rs:226
Methodempty
Create a new dialog with no children. ##Panics If called outside a valid KISS-UI context.
src/dialog.rs:39
Methodfmt
(&self, fmt: &mut Formatter)
src/widget.rs:189
Methodfrom
(_: ())
src/callback.rs:43
Methodfrom
Create a new `MoveCell<T>` around the given `Option<T>`.
src/utils/move_cell.rs:24
Methodfrom_ptr
(_ptr: *mut iup_sys::Ihandle)
src/widget.rs:345
Methodfrom_ptr_opt
(ptr: IUPPtr)
src/widget.rs:238
Methodget_image
Get a copy of the image set on this widget, if any.
src/image.rs:94
Methodget_int_attribute
(self, name: &'static str)
src/widget.rs:300
Methodget_parent
Get the parent of this widget. Returns `None` if this widget has no parent.
src/widget.rs:110
Methodget_position
Get the position of this widget relative to the top-left corner of its parent. Returns (0, 0) if the widget is not renderable, not attached to a pare
src/widget.rs:76
Methodget_sibling
Get the next child in the parent after this widget, based on the order in which they were added. Returns `None` if this widget is an only child or is
src/widget.rs:100
Methodget_size_pixels
Get the rendered size of this widget, in pixels. Returns `(0, 0)` if this widget has no rendered size.
src/widget.rs:131
Methodhas_value
Check if this `MoveCell` contains a value or not.
src/utils/move_cell.rs:54
Methodhash
(&self, hasher: &mut H)
src/widget.rs:201
Methodhide
Hide this widget if it was previously visible. Does nothing if the widget is already hidden, or if the operation does not apply.
src/widget.rs:37
Methodload
Attempt to load a widget named by `name` from internal storage. If successful, the `BaseWidget` can then be downcast to the original widget type. Re
src/base.rs:21
Methodload_widget
(name: &N)
src/lib.rs:142
Functionmain
()
examples/show_image.rs:9
Functionmain
()
examples/window_test.rs:8
Functionmain
()
examples/textbox_test.rs:11
Functionmain
()
examples/button_test.rs:10
Functionmain
()
examples/progress_test.rs:11
Methodnew
(ptr: *mut iup_sys::Ihandle, name: &'static str, str_data: &'a str)
src/widget.rs:167
Methodnew
()
src/container.rs:83
Methodnew
Create a new `Button` with no label.
src/button.rs:12
Methodnew
Create a label with some text.
src/text.rs:13
Methodnew
Create a new dialog with a single child. To create a dialog containing multiple widgets, use a struct from the `container` module. ##Note This does
src/dialog.rs:26
Methodnew
Create a new progress bar.
src/progress.rs:17
Methodnew
Create a new timer with a default interval. TODO: Document default interval.
src/timer.rs:20
Methodnew
Create a new `MoveCell` with no contained value.
src/utils/move_cell.rs:14
Methodnew_empty
Create a blank label. The text can be set later.
src/text.rs:22
Methodnew_rgb
Create a new RGB image buffer from a slice of 3-byte tuples, copying the data into a new allocation. See `transmute_buffer_rgb()` in this module. ##
src/image.rs:35
Methodnew_rgba
Create a new RGBA image buffer from a slice of 4-byte tuples, copying the data into a new allocation. See `transmute_buffer_rgba` in this module. ##
src/image.rs:50
Methodon_callback
Because of the `impl From<()> for CallbackStatus`, closures that return `()` can be accepted by this impl.
src/callback.rs:55
Methodset_callback
(self, name: &'static str, callback: ::iup_sys::Icallback)
src/widget.rs:339
Methodset_child_pos
Set the position of a child of an `Absolute` relative to its top-left corner.
src/container.rs:119
Methodset_elem_spacing_pixels
(self, spacing: u32)
src/container.rs:149
Methodset_enabled
Set the widget's enabled state. When a widget is disabled, it does not react to user interaction or invoke any callbacks. Does nothing if the widget
src/widget.rs:59
Methodset_halign
(self, halign: HAlign)
src/container.rs:170
Methodset_image
Set the image this widget is to render and return `self` for method chaining.
src/image.rs:88
Methodset_indefinite
Set this progress bar as indefinite or not. In the indefinite state, the progress bar will not show its true value; instead it will render a looping
src/progress.rs:30
next →1–100 of 125, ranked by callers