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

LandWidgetScrolling

This has 4 fixed children: # The contents window, a container. # A vertical scrollbar to the right. # A horizontal scrollbar at the bottom. # The corner area between the scrollbars.

land_widget_scrolling_get_container

Parameters: LandWidget * base

Returns: LandWidget*

land_widget_scrolling_get_vertical

Parameters: LandWidget * base

Returns: LandWidget*

land_widget_scrolling_get_horizontal

Parameters: LandWidget * base

Returns: LandWidget*

land_widget_scrolling_get_empty

Parameters: LandWidget * base

Returns: LandWidget*

land_widget_scrolling_move

Parameters: LandWidget * widget, float dx, float dy

land_widget_scrolling_autohide

Parameters: LandWidget * widget, int hori, int vert, int empty

Set hori/vert to 1 if the horizontal/vertical scrollbar should be auto hidden. Set empty to 1 if the empty should be auto hidden, and set empty to 2 if the empty should be hidden as soon as one bar is hidden.

land_widget_scrolling_need_vertical_bar

Parameters: LandWidget * widget

Returns: bool

land_widget_scrolling_update

Parameters: LandWidget * widget

land_widget_scrolling_size

Parameters: LandWidget * widget, float dx, float dy

land_widget_scrolling_get_scroll_position

Parameters: LandWidget * base, float * x, float * y

land_widget_scrolling_get_scrollable_area

Parameters: LandWidget * base, float * x, float * y

Determines the size of the entire scrollable area.

land_widget_scrolling_get_scroll_extents

Parameters: LandWidget * base, float * x, float * y

Determines the amount, in pixels, the contents could be scrolled.

land_widget_scrolling_get_view

Parameters: LandWidget * base, float * l, float * t, float * r, float * b

Determine pixel coordinates of the viewable area.

land_widget_scrolling_scrollto

Parameters: LandWidget * base, float x, float y

land_widget_scrolling_scroll

Parameters: LandWidget * base, float dx, float dy

land_widget_scrolling_scroll_to_bottom

Parameters: LandWidget * base

land_widget_scrolling_limit

Parameters: LandWidget * base

land_widget_scrolling_mouse_tick

Parameters: LandWidget * base

land_widget_scrolling_tick

Parameters: LandWidget * super

land_widget_scrolling_add

Parameters: LandWidget * widget, LandWidget * add

Add a widget to the scrolling widget. The child widget can be bigger than the parent, and scrollbars will appear to allow scrolling around.

land_widget_scrolling_get_child

Parameters: LandWidget * base

Returns: LandWidget*

Return the child window of the scrolling window. Usually, a scrolling window has exactly one child window, which is controlled by the scrollbars. That window is returned.

land_widget_scrolling_remove_child

Parameters: LandWidget * base

Detach the window managed inside the scrolled window. If there are no other references to it, it will be destroyed.

land_widget_scrolling_initialize

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

land_widget_scrolling_wheel

Parameters: LandWidget * widget, int wheel

0: no wheel scrolling 1: wheel scrolling [default] 2: unlimited scrolling

land_widget_scrolling_new

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

Returns: LandWidget*

Creates a new Scrolling widget. You can add a child widget to it, and it will automatically display scrollbars and translate mouse coordinates.

By default, the widget will expand in all directions.

land_widget_scrolling_layout_changed

Parameters: LandWidget * widget

land_widget_scrolling_layout_changing

Parameters: LandWidget * widget

land_widget_scrolling_interface_initialize

no parameters

land_widget_scrolling_set_fixed_width

Parameters: LandWidget * widget, bool yes

If this is set there will not be a horizontal scrollbar, instead the width of the child will always be to fit the width exactly.


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