• allegro5.a5_display
  • allegro5.a5_file
  • allegro5.a5_font
  • allegro5.a5_image
  • allegro5.a5_joystick
  • allegro5.a5_main
  • allegro5.a5_misc
  • allegro5.a5_opengl
  • allegro5.a5_shader
  • allegro5.a5_sound
  • allegro5.a5_thread
  • allegro5.a5_triangles
  • animation
  • array
  • atlas
  • buffer
  • color
  • common
  • csg.csg_aabb
  • csg.csg
  • csg.csg_octree
  • csg.csg_shapes
  • csg.csg_test
  • data
  • display
  • exception
  • file
  • font
  • glsl
  • grid
  • hash
  • image
  • image_op
  • index
  • ini
  • isometric
  • joystick
  • keyboard
  • land
  • layer
  • list
  • log
  • main
  • map
  • mem
  • mouse
  • net
  • noise
  • openglutil
  • perlin
  • pixelmask
  • plasma
  • pool
  • protobuf
  • queue
  • random
  • runner
  • shader
  • sound
  • sprite
  • thread
  • tilegrid
  • triangles
  • util2d
  • util3d
  • util
  • view
  • voronoi
  • widget.base
  • widget.board
  • widget.book
  • widget.box
  • widget.button
  • widget.checkbox
  • widget.container
  • widget.edit
  • widget.gul
  • widget.hbox
  • widget.layout
  • widget
  • widget.menu
  • widget.mover
  • widget.panel
  • widget.scrollbar
  • widget.scrolling
  • widget.sizer
  • widget.slider
  • widget.spin
  • widget.text
  • widget.theme
  • widget.vbox
  • widget.widget_list
  • yaml.external
  • yaml.internal
  • yaml
  • yaml.xml

land.widget.button

LandWidgetButton

A button.

land_widget_button_draw

Parameters: LandWidget * base

land_widget_button_size

Parameters: LandWidget * base, float dx, float dy

land_widget_button_mouse_tick

Parameters: LandWidget * base

land_widget_button_initialize

Parameters: LandWidget * base, LandWidget * parent, char const * text, LandImage * image, bool destroy, void(* clicked)(LandWidget * self), int x, int y, int w, int h

land_widget_button_new

Parameters: LandWidget * parent, char const * text, void(* clicked)(LandWidget * self), int x, int y, int w, int h

Returns: LandWidget*

land_widget_button_new_with_image

Parameters: LandWidget * parent, char const * text, LandImage * image, bool destroy, void(* clicked)(LandWidget * self), int x, int y, int w, int h

Returns: LandWidget*

land_widget_button_image_scale

Parameters: LandWidget * base, float xs, float ys

land_widget_button_set_image

Parameters: LandWidget * base, LandImage * image, bool destroy

land_widget_button_new_with_animation

Parameters: LandWidget * parent, char const * text, LandAnimation * animation, void(* clicked)(LandWidget * self), int x, int y, int w, int h

Returns: LandWidget*

land_widget_text_initialize

Parameters: LandWidget * self, LandWidget * parent, char const * text, int multiline, int x, int y, int w, int h

Returns: LandWidget*

land_widget_text_new

Parameters: LandWidget * parent, char const * text, int multiline, int x, int y, int w, int h

Returns: LandWidget*

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)

land_widget_button_replace_text

Parameters: LandWidget * base, char const * text

Same as set_text but does not trigger any layout updates.

land_widget_button_set_text

Parameters: LandWidget * base, char const * text

land_widget_button_get_text

Parameters: LandWidget * base

Returns: str

land_widget_button_layout_text

Parameters: LandWidget * base

land_widget_button_append

Parameters: LandWidget * base, char const * text

land_widget_button_append_row

Parameters: LandWidget * base, char const * text

land_widget_button_line_count

Parameters: LandWidget * base

Returns: int

land_widget_button_multiline

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.

land_widget_button_align

Parameters: LandWidget * self, int x, int y

0 = left/top 1 = right/bottom 2 = center

land_widget_button_shift

Parameters: LandWidget * self, int x, int y

land_widget_button_interface_initialize

no parameters

land_widget_button_destroy

Parameters: LandWidget * base

land_widget_button_set_minimum_text

Parameters: LandWidget * base, char const * text

land_widget_button_set_dynamic_text_callback

Parameters: LandWidget * self, void(* cb)(LandWidget *)

land_widget_button_set_color

Parameters: LandWidget * base, LandColor c

land_widget_button_set_line_color

Parameters: LandWidget * base, int i, str color


Generated: Thu 27 Feb 2020 10:49:37 PM EST