A button.
Parameters: LandWidget * base
Parameters: LandWidget * base, float dx, float dy
Parameters: LandWidget * base, LandWidget * parent, char const * text, LandImage * image, bool destroy, void(* clicked)(LandWidget * self), int x, int y, int w, int h
Parameters: LandWidget * parent, char const * text, void(* clicked)(LandWidget * self), int x, int y, int w, int h
Returns: LandWidget*
Parameters: LandWidget * parent, char const * text, LandImage * image, bool destroy, void(* clicked)(LandWidget * self), int x, int y, int w, int h
Parameters: LandWidget * base, float xs, float ys
Parameters: LandWidget * base, LandImage * image, bool destroy
Parameters: LandWidget * parent, char const * text, LandAnimation * animation, void(* clicked)(LandWidget * self), int x, int y, int w, int h
Parameters: LandWidget * self, LandWidget * parent, char const * text, int multiline, int x, int y, int w, int h
Parameters: LandWidget * parent, char const * text, int multiline, int x, int y, int w, int h
For normal text the minimum size is the rectangle to fit it into a single line. (multiline == 0)
For multi-line text it is the rectangle to contain all lines of text. (multiline == 1) For multi-line text with word-wrap the initial width is taken for word-wrapping and then the rectangle to fit the word-wrapped text is used. This can be less than w if the longest line is less, or more than w if wordwrapping needs more width (i.e. the longest word is longer than w). (multiline == 2)
Parameters: LandWidget * base, char const * text
Same as set_text but does not trigger any layout updates.
Returns: str
Returns: int
Parameters: LandWidget * self, int style
If style is 0, the text of this widget is a single line. No newline characters are allowed. If style is 1, the text can have multiple lines. If style is 2, the text can have multiple lines, and long lines are word wrapped.
Parameters: LandWidget * self, int x, int y
0 = left/top 1 = right/bottom 2 = center
no parameters
Parameters: LandWidget * self, void(* cb)(LandWidget *)
Parameters: LandWidget * base, LandColor c
Parameters: LandWidget * base, int i, str color