wgt(3)
β¨ NAME β¨
wgt β the standard widget module, and yes bestie it's literally called that π
(this is the wgt page from the library functions manual, section 3, in case you were wondering where you wandered into)
π STANDARD WIDGET MODULE π
okay so the Standard Widget module is a whole set of comprehensive objects, and the entire point of them is that you use them as widgets for a particular applications. that's the vibe. it's giving "toolbox but make it cute".
πΈ The conditional class πΈ
the Conditional class is a widget class that hands you a mechanism for conditional expression evaluation. here's how it works: a conditional object, if it's active, gets valuated by evaluating the operator plus the associated left and right operands. and you can also define a conditional by name and info, which is so convenient of it π«Ά
const cond (afnix:wgt:Conditional "test" "test example")
and then you define the actual conditional with the set method, which accepts one or two operands. one or two. she's flexible like that β¨
cond:set "==" "x" 2
π STANDARD WIDGET REFERENCE π
π Conditional π
the Conditional class is a widget class that represents a selectable condition. a condition is defined by a string operator and one or two literal arguments. and if the condition is active, it can be valuated by an expressable interface. that's the whole deal, no cap.
Predicate
conditional-p
Inheritance
NameableSerial
Constructors
Conditional (none)β The Uri constructor creates an empty uri object. (not me reading this three times π that is genuinely, character for character, what it says. we report, we do not editorialize.)Conditional (String)β TheConditionalconstructor creates a conditional object by name.Conditional (String String)β TheConditionalconstructor creates a conditional object by name and information. two strings, double the lore π«
Methods
set-name -> none (String)β sets the conditional name.set-info -> none (String)β sets the conditional information.get-info -> String (none)β gets the conditional information back out.set-active -> none (Boolean)β sets the conditional active flag. this is the on/off switch of the whole operation, main character energy fr.get-active -> Boolean (none)β gets the conditional active flag.set -> none (String Literal | String Literal Literal)β sets the conditional expression. first form: the operator is set with a unique lhs. second form: the operator is set with a lhs and a rhs. pick your fighter πget-operator -> String (none)β gets the conditional operator.get-lhs -> Literal (none)β gets the conditional lhs.get-rhs -> Literal (none)β gets the conditional rhs.
π reminder bestie:settakes eitherString LiteralorString Literal Literal. one operand or two, never zero, never three. the vibes are strict but fair.
okay that's the whole page!! this was the wgt(3) module from AFNIX Module β the AFNIX crew, dated right there in the footer β mwah, thanks for reading, slay, periodt πππ¦
π¦ where this page comes from
- debian trixie: afnix 3.8.0-1.1 Β· AFNIX
- ubuntu noble: afnix 3.8.0-1 Β· AFNIX
- ubuntu resolute: afnix 3.8.0-1.1ubuntu1 Β· AFNIX
- ubuntu stonking: afnix 3.8.0-1.1ubuntu1 Β· AFNIX
- Copyright (c) 1999-2023 Amaury Darsch
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms