Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
AG_GRAPH(3)		     Library Functions Manual		     AG_GRAPH(3)

NAME
     AG_Scrollview -- agar scrollable view widget

SYNOPSIS
     #include <agar/core.h>
     #include <agar/gui.h>

DESCRIPTION
     The  AG_Scrollview widget is a simple container which allows its child wid-
     gets to exceed its own size.  It provides	the  user  with  AG_Scrollbar(3)
     controls to pan the view.

INHERITANCE HIERARCHY
     AG_Object(3)-> AG_Widget(3)-> AG_Scrollview.

INITIALIZATION
     AG_Scrollview * AG_ScrollviewNew(AG_Widget *parent, Uint flags)

     void AG_ScrollviewSizeHint(AG_Scrollview *sv, Uint width, Uint height)

     void AG_ScrollviewSetIncrement(AG_Scrollview *sv, int increment)

     The  AG_ScrollviewNew() function allocates, initializes, and attaches a new
     AG_Scrollview widget.  Acceptable flags include:

     AG_SCROLLVIEW_PAN_LEFT   Pannable with left mouse button.

     AG_SCROLLVIEW_PAN_RIGHT  Pannable with right mouse button.

     AG_SCROLLVIEW_NOPAN_X    Disable horizontal pan.

     AG_SCROLLVIEW_NOPAN_Y    Disable vertical pan.

     AG_SCROLLVIEW_NOPAN_XY   Same	as	 AG_SCROLLVIEW_NOPAN_X	     and
			      AG_SCROLLVIEW_NOPAN_Y.

     AG_SCROLLVIEW_BY_MOUSE   Panning  with  cursor  is permitted (may interfere
			      with child widgets).

     AG_SCROLLVIEW_FRAME      Decorative background and frame.

     AG_SCROLLVIEW_HFILL      Expand horizontally in parent container.

     AG_SCROLLVIEW_VFILL      Expand vertically in parent container.

     AG_SCROLLVIEW_EXPAND     Shorthand      for      AG_SCROLLVIEW_HFILL      |
			      AG_SCROLLVIEW_VFILL.

     The  AG_ScrollviewSizeHint()  function  requests an initial widget size for
     the AG_Scrollview in pixels.

     AG_ScrollviewSetIncrement() sets the increment for scrolling the  view,  in
     pixels.

EVENTS
     The AG_Scrollview widget does not generate any event.

STRUCTURE DATA
     For the AG_Scrollview object:

     int xOffs, yOffs	  Display offset in pixels (controlled by scrollbars).
     int xMin, yMin	  Upper left display boundary (read-only).
     int xMax, yMax	  Lower right display boundary (read-only).
     AG_Scrollbar *hbar   Pointer to horizontal scrollbar (or NULL).
     AG_Scrollbar *vbar   Pointer to vertical scrollbar (or NULL).

SEE ALSO
     AG_Intro(3), AG_Scrollbar(3), AG_Widget(3), AG_Window(3)

HISTORY
     The AG_Scrollview widget first appeared in Agar 1.3.3.

Agar 1.7			December 21, 2022		     AG_GRAPH(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=AG_Scrollview&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help