Module m_widgets
Documentation for the modules-m_widgets module in /std/modules/m_widgets.c.
Functions
- nomask int i_simplify()
Returns TRUE if the current user (not the object receiving the message!) has simplify turned on.
- nomask int i_emoji()
Returns TRUE if the current user (not the object receiving the message!) has emojis turned on.
-
int uses_unicode()
Returns true if the user is using a unicode theme.
-
int default_user_width()
Returns the user screen width -2 chars.
-
string on_off_widget(int on)
[On ] (green) or [Off] (red) depending on int on. “On ” or “Off” for simplified view.
- varargs string simple_divider(int width)
Prints a simple divider either using unicode or not, depending on user settings.
-
string green_bar(int value, int max, int width)
A bar that is green with white dots when spent
-
string critical_bar(int value, int max, int width)
A bar that change colour the lower it gets
-
string critical_bar_2stacked(int value, int shield, int max, int width)
A bar that change colour the lower it gets
-
string reverse_critical_bar(int value, int max, int width)
A bar that change colour the lower it gets
-
string slider_red_green(int value, int max, int width)
A slider which is red below the middle and green above, and marks the value with a X. 0 is the middle and max is minus on red axis and + on green axis.
-
string slider_colours_sum(int value, mapping colours, int width)
A slider with multiple colours and cumulative ranges and a marker. The colours mapping should be on the format:
([20:”040”,50:”041”,100:”042”])
where each number is bigger and strings are ANSI colours.
File generated by Lima 1.1a4 reStructured Text daemon.