"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gtk/gtkdatabox_ruler.h" between
gtkdatabox-0.9.3.1.tar.gz and gtkdatabox-1.0.0.tar.gz

About: GtkDatabox is a Gtk+-widget for live display of large amounts of fluctuating numerical data.

gtkdatabox_ruler.h  (gtkdatabox-0.9.3.1):gtkdatabox_ruler.h  (gtkdatabox-1.0.0)
skipping to change at line 17 skipping to change at line 17
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version. * version 2 of the License, or (at your option) any later version.
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the * License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02111-1307, USA. * Boston, MA 02110-1301 USA.
*/ */
/* /*
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog * file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with * files for a list of changes. These files are distributed with
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
/* /*
* Modified by Roland Bock 2007 - 2008. * Modified by Roland Bock 2007 - 2008.
*/ */
#ifndef __GTK_DATABOX_RULER_H__
#define __GTK_DATABOX_RULER_H__
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <gtkdatabox_scale.h>
/** /**
* SECTION:gtkdatabox_ruler * SECTION:gtkdatabox_ruler
* @short_description: An improved version of the #GtkRuler. * @short_description: An improved version of the #GtkRuler.
* @include: gtkdatabox_ruler.h * @include: gtkdatabox_ruler.h
* @see_also: #GtkDatabox * @see_also: #GtkDatabox
* *
* #GtkDataboxRuler is a widget for the GTK+ library similar to GtkRuler. * #GtkDataboxRuler is a widget for the GTK+ library similar to GtkRuler.
* *
* It is improved in several ways: * It is improved in several ways:
* *
skipping to change at line 61 skipping to change at line 68
* as a vertical column of horizontal characters). This increases read ability. * as a vertical column of horizontal characters). This increases read ability.
* </para> * </para>
* </listitem> * </listitem>
* <listitem> * <listitem>
* <para> * <para>
* It works for very small and very large value ranges. * It works for very small and very large value ranges.
* </para> * </para>
* </listitem> * </listitem>
* </itemizedlist> * </itemizedlist>
**/ **/
#ifndef __GTK_DATABOX_RULER_H__
#define __GTK_DATABOX_RULER_H__
#ifdef _MSC_VER
#define log2(x) (log(x)/log(2))
#endif
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <gtkdatabox_scale.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define GTK_DATABOX_TYPE_RULER (gtk_databox_ruler_get_type ()) #define GTK_DATABOX_TYPE_RULER (gtk_databox_ruler_get_type ())
#define GTK_DATABOX_RULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GT K_DATABOX_TYPE_RULER, GtkDataboxRuler)) #define GTK_DATABOX_RULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GT K_DATABOX_TYPE_RULER, GtkDataboxRuler))
#define GTK_DATABOX_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK _DATABOX_TYPE_RULER, GtkDataboxRulerClass)) #define GTK_DATABOX_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK _DATABOX_TYPE_RULER, GtkDataboxRulerClass))
#define GTK_DATABOX_IS_RULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GT K_DATABOX_TYPE_RULER)) #define GTK_DATABOX_IS_RULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GT K_DATABOX_TYPE_RULER))
#define GTK_DATABOX_IS_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK _DATABOX_TYPE_RULER)) #define GTK_DATABOX_IS_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK _DATABOX_TYPE_RULER))
#define GTK_DATABOX_RULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK _DATABOX_TYPE_RULER, GtkDataboxRulerClass)) #define GTK_DATABOX_RULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK _DATABOX_TYPE_RULER, GtkDataboxRulerClass))
/** /**
* GtkDataboxRuler: * GtkDataboxRuler:
* *
* An improved version (see above) of GtkRuler which supports linear and logarit hmic scales. * An improved version (see above) of GtkRuler which supports linear and logarit hmic scales.
* *
**/ **/
typedef struct _GtkDataboxRuler GtkDataboxRuler; typedef struct _GtkDataboxRuler GtkDataboxRuler;
typedef struct _GtkDataboxRulerClass GtkDataboxRulerClass;
/**
* GTK_DATABOX_RULER_MAX_MAX_LENGTH
*
* The maximum upper limit of label length in characters
*/
#define GTK_DATABOX_RULER_MAX_MAX_LENGTH 63
/** /**
* GtkDataboxRulerPrivate * GtkDataboxRulerPrivate
* *
* A private data structure used by the #GtkDataboxRuler. It shields all interna l things * A private data structure used by the #GtkDataboxRuler. It shields all interna l things
* from developers who are just using the object. * from developers who are just using the object.
* *
**/ **/
typedef struct _GtkDataboxRulerPrivate GtkDataboxRulerPrivate; typedef struct _GtkDataboxRulerPrivate GtkDataboxRulerPrivate;
/**
* GtkDataboxRulerClass
*
* The object class of #GtkDataboxRuler.
*
**/
typedef struct _GtkDataboxRulerClass GtkDataboxRulerClass;
struct _GtkDataboxRulerClass
{
GtkWidgetClass parent_class;
};
struct _GtkDataboxRuler struct _GtkDataboxRuler
{ {
GtkWidget widget; GtkWidget widget;
GtkDataboxRulerPrivate *priv; GtkDataboxRulerPrivate *priv;
}; };
struct _GtkDataboxRulerClass /**
{ * GTK_DATABOX_RULER_MAX_MAX_LENGTH
GtkWidgetClass parent_class; *
}; * The maximum upper limit of label length in characters
*/
#define GTK_DATABOX_RULER_MAX_MAX_LENGTH 63
GType gtk_databox_ruler_get_type (void) G_GNUC_CONST;
GType
gtk_databox_ruler_get_type (void)
G_GNUC_CONST;
GtkWidget *gtk_databox_ruler_new (GtkOrientation orientation); GtkWidget *gtk_databox_ruler_new (GtkOrientation orientation);
void gtk_databox_ruler_set_range (GtkDataboxRuler * ruler, void gtk_databox_ruler_set_range (GtkDataboxRuler * ruler,
gdouble lower, gdouble lower,
gdouble upper, gdouble position); gdouble upper, gdouble position);
void gtk_databox_ruler_set_max_length (GtkDataboxRuler * ruler, void gtk_databox_ruler_set_max_length (GtkDataboxRuler * ruler,
guint max_length); guint max_length);
void gtk_databox_ruler_set_scale_type (GtkDataboxRuler * ruler, void gtk_databox_ruler_set_scale_type (GtkDataboxRuler * ruler,
guint scale_type); guint scale_type);
skipping to change at line 172 skipping to change at line 176
gchar* gtk_databox_ruler_get_linear_label_format(GtkDataboxRuler * ruler); gchar* gtk_databox_ruler_get_linear_label_format(GtkDataboxRuler * ruler);
gchar* gtk_databox_ruler_get_log_label_format(GtkDataboxRuler * ruler); gchar* gtk_databox_ruler_get_log_label_format(GtkDataboxRuler * ruler);
void gtk_databox_ruler_set_manual_ticks(GtkDataboxRuler * ruler, gfloat* man ual_ticks); void gtk_databox_ruler_set_manual_ticks(GtkDataboxRuler * ruler, gfloat* man ual_ticks);
gfloat* gtk_databox_ruler_get_manual_ticks(GtkDataboxRuler * ruler); gfloat* gtk_databox_ruler_get_manual_ticks(GtkDataboxRuler * ruler);
void gtk_databox_ruler_set_manual_tick_cnt(GtkDataboxRuler * ruler, guint ma nual_tick_cnt); void gtk_databox_ruler_set_manual_tick_cnt(GtkDataboxRuler * ruler, guint ma nual_tick_cnt);
guint gtk_databox_ruler_get_manual_tick_cnt(GtkDataboxRuler * ruler); guint gtk_databox_ruler_get_manual_tick_cnt(GtkDataboxRuler * ruler);
void gtk_databox_ruler_set_manual_tick_labels(GtkDataboxRuler * ruler, gchar *labels[]); void gtk_databox_ruler_set_manual_tick_labels(GtkDataboxRuler *ruler, gchar **manual_tick_labels);
gchar ** gtk_databox_ruler_get_manual_tick_labels(GtkDataboxRuler * ruler); gchar ** gtk_databox_ruler_get_manual_tick_labels(GtkDataboxRuler * ruler);
void gtk_databox_ruler_set_box_shadow(GtkDataboxRuler * ruler, GtkShadowType which_shadow); void gtk_databox_ruler_set_box_shadow(GtkDataboxRuler * ruler, GtkShadowType which_shadow);
GtkShadowType gtk_databox_ruler_get_box_shadow(GtkDataboxRuler * ruler); GtkShadowType gtk_databox_ruler_get_box_shadow(GtkDataboxRuler * ruler);
G_END_DECLS G_END_DECLS
#endif /* __GTK_DATABOX_RULER_H__ */ #endif /* __GTK_DATABOX_RULER_H__ */
 End of changes. 9 change blocks. 
29 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)