NetSurf
Macros | Functions | Variables
throbber.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utils/log.h"
#include "beos/throbber.h"
#include "beos/bitmap.h"
#include "beos/fetch_rsrc.h"
#include <File.h>
#include <Resources.h>
#include <TranslationUtils.h>
Include dependency graph for throbber.cpp:

Go to the source code of this file.

Macros

#define __STDBOOL_H__   1
 

Functions

bool nsbeos_throbber_initialise_from_png (const int frames,...)
 Creates the throbber using a PNG for each frame. More...
 
void nsbeos_throbber_finalise (void)
 

Variables

struct nsbeos_throbbernsbeos_throbber = NULL
 

Macro Definition Documentation

◆ __STDBOOL_H__

#define __STDBOOL_H__   1

Definition at line 19 of file throbber.cpp.

Function Documentation

◆ nsbeos_throbber_finalise()

void nsbeos_throbber_finalise ( void  )

Definition at line 113 of file throbber.cpp.

References nsbeos_throbber::framedata, and nsbeos_throbber::nframes.

◆ nsbeos_throbber_initialise_from_png()

bool nsbeos_throbber_initialise_from_png ( const int  frames,
  ... 
)

Creates the throbber using a PNG for each frame.

The number of frames must be at least two. The first frame is the inactive frame, others are the active frames.

Parameters
framesThe number of frames. Must be at least two.
...Filenames of PNGs containing frames.
Returns
true on success.

< structure we generate

< true if a frame failed

Definition at line 45 of file throbber.cpp.

References nsbeos_throbber::framedata, get_app_resources(), nsbeos_throbber::nframes, and NSLOG.

Referenced by gui_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nsbeos_throbber

Definition at line 34 of file throbber.cpp.