Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KISS-UI/kiss-ui
/ functions
Functions
125 in github.com/KISS-UI/kiss-ui
⨍
Functions
125
◇
Types & classes
31
↓ 28 callers
Method
ptr
(self)
src/widget.rs:349
↓ 20 callers
Method
as_cstr
(self)
src/container.rs:20
↓ 9 callers
Method
set_str_attribute
(self, name: &'static str, val: V)
src/widget.rs:252
↓ 7 callers
Method
set_bool_attribute
(self, name: &'static str, val: bool)
src/widget.rs:323
↓ 7 callers
Method
set_const_str_attribute
(self, name: &'static str, val: &'static str)
src/widget.rs:273
↓ 6 callers
Method
set_int_attribute
(self, name: &'static str, val: i32)
src/widget.rs:296
↓ 5 callers
Method
as_ref
(&self)
src/utils/move_cell.rs:32
↓ 5 callers
Method
set_title
Set the title of this dialog, which will appear in the title bar of the native window.
src/dialog.rs:49
↓ 5 callers
Function
show_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 callers
Method
with
Create a new `MoveCell` with the given value.
src/utils/move_cell.rs:19
↓ 4 callers
Method
set_float_attribute
(self, name: &'static str, val: f32)
src/widget.rs:315
↓ 3 callers
Method
borrow
(&self)
src/widget.rs:183
↓ 3 callers
Method
get_str_attribute
(&self, name: &'static str)
src/widget.rs:279
↓ 3 callers
Function
message_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 callers
Function
raw_handle_vec
(widgets: B)
src/container.rs:71
↓ 2 callers
Method
add_value
Add `amt` to the current value and update it. `amt` may be negative.
src/progress.rs:82
↓ 2 callers
Method
as_mut
(&self)
src/utils/move_cell.rs:28
↓ 2 callers
Method
clone
(&self)
src/widget.rs:215
↓ 2 callers
Method
get_float_attribute
(self, name: &'static str)
src/widget.rs:319
↓ 2 callers
Method
get_int2_attribute
(self, name: &'static str)
src/widget.rs:304
↓ 2 callers
Method
get_name
Get the name of this widget, if the widget supports having a name and one is set.
src/widget.rs:92
↓ 2 callers
Method
inc_refcount
(&self)
src/widget.rs:176
↓ 1 callers
Function
bool_yes_no
(_bool: bool)
src/attrs.rs:60
↓ 1 callers
Method
button2
Set the text of the second button
src/dialog.rs:117
↓ 1 callers
Method
button3
(mut self, button3: B3)
src/dialog.rs:122
↓ 1 callers
Function
color
Play with this function and let us know what you come up with!
examples/show_image.rs:31
↓ 1 callers
Method
get_attr_handle
(self, name: &'static str)
src/widget.rs:332
↓ 1 callers
Method
get_child
Get a child of this dialog named by `name`. Returns `None` if the child was not found.
src/dialog.rs:64
↓ 1 callers
Method
get_dialog
Get the containing dialog of this widget. Returns `None` if this widget is not attached to a dialog.
src/widget.rs:120
↓ 1 callers
Method
get_text
Get the text of this label.
src/text.rs:39
↓ 1 callers
Method
get_value
Get the current value.
src/progress.rs:77
↓ 1 callers
Method
popup
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 callers
Method
put
Place a value into this `MoveCell`, returning the previous value, if present.
src/utils/move_cell.rs:37
↓ 1 callers
Method
set_attr_handle
(self, name: &'static str, handle: W)
src/widget.rs:328
↓ 1 callers
Method
set_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 callers
Method
set_interval
Set the timer interval in milliseconds.
src/timer.rs:28
↓ 1 callers
Method
set_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 callers
Method
set_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 callers
Method
set_size_pixels
Set the size of this dialog in pixels.
src/dialog.rs:55
↓ 1 callers
Method
show
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 callers
Function
show_message_dialog
(btn: Button)
examples/button_test.rs:48
↓ 1 callers
Method
start
Start the timer. The callback will be invoked when the next interval elapses.
src/timer.rs:41
↓ 1 callers
Method
stop
Stop the timer. The callback will not be invoked until the timer is restarted.
src/timer.rs:47
↓ 1 callers
Method
store
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 callers
Method
take
Take the value out of this `MoveCell`, leaving nothing in its place.
src/utils/move_cell.rs:42
↓ 1 callers
Method
to_base
(self)
src/widget.rs:144
Method
add_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
Method
as_cstr
(&self)
src/utils/cstr.rs:6
Method
assert_str_not_borrowed
(widget: IUPPtr, str_: &'static str)
src/lib.rs:105
Method
classname
(&self)
src/widget.rs:248
Method
clear
()
src/lib.rs:148
Method
clone_inner
Take the value out of this `MoveCell`, leaving a clone in its place.
src/utils/move_cell.rs:47
Method
close
(&mut self)
src/callback.rs:26
Function
close_dialog
(_: Button)
examples/button_test.rs:72
Method
default
()
src/utils/move_cell.rs:60
Method
deref
(&'b self)
src/widget.rs:209
Method
destroy
(self)
src/widget.rs:150
Method
downcast
(base: BaseWidget)
src/base.rs:51
Method
drop
(&mut self)
src/widget.rs:226
Method
empty
Create a new dialog with no children. ##Panics If called outside a valid KISS-UI context.
src/dialog.rs:39
Method
fmt
(&self, fmt: &mut Formatter)
src/widget.rs:189
Method
from
(_: ())
src/callback.rs:43
Method
from
Create a new `MoveCell<T>` around the given `Option<T>`.
src/utils/move_cell.rs:24
Method
from_ptr
(_ptr: *mut iup_sys::Ihandle)
src/widget.rs:345
Method
from_ptr_opt
(ptr: IUPPtr)
src/widget.rs:238
Method
get_image
Get a copy of the image set on this widget, if any.
src/image.rs:94
Method
get_int_attribute
(self, name: &'static str)
src/widget.rs:300
Method
get_parent
Get the parent of this widget. Returns `None` if this widget has no parent.
src/widget.rs:110
Method
get_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
Method
get_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
Method
get_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
Method
has_value
Check if this `MoveCell` contains a value or not.
src/utils/move_cell.rs:54
Method
hash
(&self, hasher: &mut H)
src/widget.rs:201
Method
hide
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
Method
load
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
Method
load_widget
(name: &N)
src/lib.rs:142
Function
main
()
examples/show_image.rs:9
Function
main
()
examples/window_test.rs:8
Function
main
()
examples/textbox_test.rs:11
Function
main
()
examples/button_test.rs:10
Function
main
()
examples/progress_test.rs:11
Method
new
(ptr: *mut iup_sys::Ihandle, name: &'static str, str_data: &'a str)
src/widget.rs:167
Method
new
()
src/container.rs:83
Method
new
Create a new `Button` with no label.
src/button.rs:12
Method
new
Create a label with some text.
src/text.rs:13
Method
new
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
Method
new
Create a new progress bar.
src/progress.rs:17
Method
new
Create a new timer with a default interval. TODO: Document default interval.
src/timer.rs:20
Method
new
Create a new `MoveCell` with no contained value.
src/utils/move_cell.rs:14
Method
new_empty
Create a blank label. The text can be set later.
src/text.rs:22
Method
new_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
Method
new_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
Method
on_callback
Because of the `impl From<()> for CallbackStatus`, closures that return `()` can be accepted by this impl.
src/callback.rs:55
Method
set_callback
(self, name: &'static str, callback: ::iup_sys::Icallback)
src/widget.rs:339
Method
set_child_pos
Set the position of a child of an `Absolute` relative to its top-left corner.
src/container.rs:119
Method
set_elem_spacing_pixels
(self, spacing: u32)
src/container.rs:149
Method
set_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
Method
set_halign
(self, halign: HAlign)
src/container.rs:170
Method
set_image
Set the image this widget is to render and return `self` for method chaining.
src/image.rs:88
Method
set_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