Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

pbarcellrenderer.c File Reference


Detailed Description

GTK+ cell renderer.

Author:
Russell Francis
Date:
2004
Note:
gtkcellrenderer.c
Copyright (C) 2002 Naba Kumar <kh_naba@users.sourceforge.net> heavily modified by Joergen Scheibengruber <mfcn@gmx.de> and yet more modifications by Russell Francis <rf358197@ohiou.edu>

Originally found in gnome-system-monitor and imported Jan 2004. It may be useful to check for updates in the upstream version every now and then.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#include "gtk/gui.h"
#include "pbarcellrenderer.h"
#include "lib/glib-missing.h"
#include "lib/override.h"

Data Structures

struct  _GtkCellRendererProgressPriv

Enumerations

enum  { PROP_0, PROP_VALUE }

Functions

 RCSID ("$Id:pbarcellrenderer.c, v 1.11 2005/09/11 13:27:26 daichik Exp $")
void gtk_cell_renderer_progress_init (GtkCellRendererProgress *)
 Initialize the progress bar private data.

void gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *)
 Initialize the progress bar class data.

void gtk_cell_renderer_progress_finalize (GObject *)
 gtk_cell_renderer_progress_finalize

void gtk_cell_renderer_progress_get_property (GObject *, guint, GValue *, GParamSpec *)
 This retreives the value of a property which the object widget has.

void gtk_cell_renderer_progress_set_property (GObject *, guint, const GValue *, GParamSpec *)
 gtk_cell_renderer_progress_set_property

void gtk_cell_renderer_progress_get_size (GtkCellRenderer *, GtkWidget *, GdkRectangle *, gint *, gint *, gint *, gint *)
 gtk_cell_renderer_progress_get_size

void gtk_cell_renderer_progress_render (GtkCellRenderer *, GdkWindow *, GtkWidget *, GdkRectangle *, GdkRectangle *, GdkRectangle *, GtkCellRendererState)
 gtk_cell_renderer_progress_render

GtkType gtk_cell_renderer_progress_get_type (void)
 Register the new type 'gtk_cell_renderer_progress' with the GTK type system and return the unique integer id associated with this type.

GtkCellRenderer * gtk_cell_renderer_progress_new (void)
 gtk_cell_renderer_progress_new


Variables

gpointer parent_class


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
PROP_0  Placeholder, empty property.
PROP_VALUE  The position of the progress bar [0:100].


Function Documentation

void gtk_cell_renderer_progress_class_init GtkCellRendererProgressClass class  )  [static]
 

Initialize the progress bar class data.

Parameters:
class The GtkCellRendererProgressClass - internal
Returns:
nothing

void gtk_cell_renderer_progress_finalize GObject *  object  )  [static]
 

gtk_cell_renderer_progress_finalize

Finalize the object.

Parameters:
object The object which we will finalize.
Returns:
nothing

void gtk_cell_renderer_progress_get_property GObject *  object,
guint  param_id,
GValue *  value,
GParamSpec *  pspec
[static]
 

This retreives the value of a property which the object widget has.

Parameters:
object The object to get a property of.
param_id The id of the property we wish to get.
value Where we should store the value of the property.
pspec The Param Specification of the property.
Returns:
nothing

void gtk_cell_renderer_progress_get_size GtkCellRenderer *  unused_cell,
GtkWidget *  unused_widget,
GdkRectangle *  unused_cell_area,
gint *  unused_x_offset,
gint *  unused_y_offset,
gint *  width,
gint *  height
[static]
 

gtk_cell_renderer_progress_get_size

Get the size of the cell here.

Parameters:
unused_cell The GtkCellRenderer we are getting the size of.
unused_widget 
unused_cell_area The cell area that we have.
unused_x_offset The xoffset for the packed widget.
unused_y_offset The yoffset for the packed widget.
width The minimum width of the widget.
height The minimum height of the widget.
Returns:
nothing

GtkType gtk_cell_renderer_progress_get_type void   ) 
 

Register the new type 'gtk_cell_renderer_progress' with the GTK type system and return the unique integer id associated with this type.

Returns:
A unique GtkType id

void gtk_cell_renderer_progress_init GtkCellRendererProgress cellprogress  )  [static]
 

Initialize the progress bar private data.

Parameters:
cellprogress The GtkCellRendererProgress to init.
Returns:
nothing

GtkCellRenderer* gtk_cell_renderer_progress_new void   ) 
 

gtk_cell_renderer_progress_new

Create a new cell renderer progress bar ready to stuff in a treeview.

Returns:
a GtkCellRenderer * for your use.

void gtk_cell_renderer_progress_render GtkCellRenderer *  cell,
GdkWindow *  window,
GtkWidget *  widget,
GdkRectangle *  unused_background_area,
GdkRectangle *  cell_area,
GdkRectangle *  unused_expose_area,
GtkCellRendererState  unused_flags
[static]
 

gtk_cell_renderer_progress_render

Physically draw the progress bar in our assigned space.

Parameters:
cell The cell renderer we wish to draw.
window The GdkWindow we will draw in.
widget The widget that we derive style attr. from.
unused_background_area The background rectangle.
cell_area The rectange for the cell.
unused_expose_area The area which received an expose event.
unused_flags flags...
Returns:
nothing

void gtk_cell_renderer_progress_set_property GObject *  object,
guint  param_id,
const GValue *  value,
GParamSpec *  pspec
[static]
 

gtk_cell_renderer_progress_set_property

Set a property of the given gtk_cell_renderer_progress widget.

Parameters:
object The object to set a property on.
param_id The parameter id we wish to change.
value The value we should assign to the property.
pspec The GParamSpec for this property.
Returns:
nothing

RCSID "$Id:pbarcellrenderer.  c,
v 1.11 2005/09/11 13:27:26 daichik Exp $" 
 


Variable Documentation

gpointer parent_class [static]
 


Generated on Sun Feb 12 10:50:06 2006 for Gtk-Gnutella by doxygen 1.3.6