📄 ptrstrip.h
字号:
/*================================================================== * ptrstrip.h - Header file for pointer strip widget * * Smurf Sound Font Editor * Copyright (C) 1999-2001 Josh Green * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA or point your web browser to http://www.gnu.org. * * To contact the author of this program: * Email: Josh Green <jgreen@users.sourceforge.net> * Smurf homepage: http://smurf.sourceforge.net *==================================================================*/#ifndef __PTRSTRIP_H__#define __PTRSTRIP_H__#include <gdk/gdk.h>#include <gtk/gtkwidget.h>#define PTRSTRIP(obj) GTK_CHECK_CAST(obj, ptrstrip_get_type(), PtrStrip)#define PTRSTRIP_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, ptrstrip_get_type(), PtrStripClass)#define IS_PTRSTRIP(obj) GTK_CHECK_TYPE(obj, ptrstrip_get_type())typedef struct _PtrStrip PtrStrip;typedef struct _PtrStripClass PtrStripClass;typedef struct _GtkPSPtr GtkPSPtr;struct _GtkPSPtr{ gint xpos; /* position of pointer */};struct _PtrStrip{ GtkWidget widget; GList *pointers; /* linked list of pointers */ GList *selpointer; /* currently selected pointer or NULL */ GdkPixmap *pointer_pm; /* pointer pixmap */ GdkBitmap *pointer_mask; /* pointer bitmap transparency mask */};struct _PtrStripClass{ GtkWidgetClass parent_class; void (*pointer_change) (PtrStrip * ptrstrip, guint ptrndx); void (*pointer_select) (PtrStrip * ptrstrip, guint ptrndx); void (*pointer_unselect) (PtrStrip * ptrstrip, guint ptrndx);};guint ptrstrip_get_type (void);GtkWidget *ptrstrip_new (void);void ptrstrip_new_pointer (PtrStrip * ptrstrip, gint xpos);void ptrstrip_set_pointer (PtrStrip * ptrstrip, guint ptrndx, gint xpos);#endif /* __PTRSTRIP_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -