• 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.container

LandWidgetContainer

A container is a widget with children. It is not useful all by itself, but it the base class of some useful widgets, or can be used to derive your own special containers.

land_widget_container_destroy

Parameters: LandWidget * base

Destroy the container and all its children.

land_widget_container_mouse_enter

Parameters: LandWidget * super

land_widget_container_mouse_leave

Parameters: LandWidget * super

land_widget_container_keyboard_enter

Parameters: LandWidget * super

Give keyboard focus to the container, and to children who requested focus.

land_widget_container_get_keyboard_focus

Parameters: LandWidget * super

Returns: LandWidget*

land_widget_container_keyboard_leave

Parameters: LandWidget * super

land_widget_container_child_item

Parameters: LandWidget * super, LandWidget * child

Returns: LandListItem*

land_widget_container_to_top

Parameters: LandWidget * super, LandWidget * child

land_widget_container_draw

Parameters: LandWidget * base

land_widget_container_move

Parameters: LandWidget * super, float dx, float dy

Move all children of the container when the container itself is moved.

land_widget_container_size

Parameters: LandWidget * super, float dx, float dy

land_widget_container_get_descendant_at_pos

Parameters: LandWidget * super, int x, int y

Returns: LandWidget*

Returns a descendant under a specific (absolute) position, or else the widget itself.

land_widget_container_get_child_at_pos

Parameters: LandWidget * super, int x, int y

Returns: LandWidget*

Returns the direct child under a specific (absolute) position.

land_widget_container_mouse_tick

Parameters: LandWidget * super

land_widget_container_set_mouse_focus

Parameters: LandWidget * super, LandWidget * mouse

Only suceeds if the currently focused window agrees.

land_widget_container_keyboard_tick

Parameters: LandWidget * super

land_widget_container_tick

Parameters: LandWidget * super

land_widget_container_add

Parameters: LandWidget * super, LandWidget * add

land_widget_container_remove

Parameters: LandWidget * base, LandWidget * rem

land_widget_container_remove_all

Parameters: LandWidget * base

land_widget_container_update

Parameters: LandWidget * widget

The update method is called after the add method. We simply defer it to our children.

land_widget_container_child

Parameters: LandWidget * super

Returns: LandWidget*

Return the first child of the container or None.

land_widget_container_child_i

Parameters: LandWidget * super, int i

Returns: LandWidget*

Return the child i or else None.

land_widget_get_sibling

Parameters: LandWidget * widget, int d

Returns: LandWidget*

Return the previous (d=-1) or next (d=1) sibling. Returns None as previous/next sibling for the first/last widget.

Crashes if you pass a widget not in a container.

land_widget_container_is_empty

Parameters: LandWidget * super

Returns: int

land_widget_container_initialize

Parameters: LandWidget * super, LandWidget * parent, int x, int y, int w, int h

land_widget_container_new

Parameters: LandWidget * parent, int x, int y, int w, int h

Returns: LandWidget*

land_widget_container_interface_initialize

no parameters


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