GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AG_ICON(3) FreeBSD Library Functions Manual AG_ICON(3)

AG_Iconagar icon widget

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

The AG_Icon widget is a simple icon suitable for drag-and-drop. It is commonly used with AG_Socket(3).

AG_Object(3) -> AG_Widget(3) -> AG_Icon.

AG_Icon *
(void *parent, Uint flags);


AG_Icon *
(AG_Surface *s);


AG_Icon *
(const char *filename);


void
(AG_Icon *icon, int left, int right, int top, int bottom);


void
(AG_Icon *icon, AG_Surface *s);


void
(AG_Icon *icon, AG_Surface *s);


void
(AG_Icon *icon, const char *format, ...);


void
(AG_Icon *icon, const char *label);


void
(AG_Icon *icon, int enable, const AG_Color *c);

The () function allocates, initializes, and attaches a new AG_Icon widget without any associated surface. There are currently no flags options defined.

The () variant also assigns a surface s, and AG_IconFromBMP() loads the surface from a bitmap file.

() sets the padding around the surface in pixels.

() changes the surface associated with an icon. The AG_IconSetSurfaceNODUP() variant does not create a copy of the surface.

() arranges for the specified text string to be displayed under the icon.

() enables or disables background color fill.

The AG_Icon widget does not generate any event.

See tests/sockets.c in the Agar source distribution.

AG_Intro(3), AG_Socket(3), AG_Surface(3), AG_Widget(3), AG_Window(3)

The AG_Icon widget first appeared in Agar 1.3.4.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.