Advanced Gtk+ Sequencer Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <ags/X/editor/ags_note_edit.h> #define AGS_NOTE_EDIT_MAX_CONTROLS struct AgsNoteEdit; struct AgsNoteEditClass; enum AgsNoteEditFlags; enum AgsNoteEditResetFlags;void ags_note_edit_draw_notation (AgsNoteEdit *note_edit
,);
cairo_t *crvoid ags_note_edit_draw_position (AgsNoteEdit *note_edit
,);
cairo_t *crvoid ags_note_edit_draw_scroll (AgsNoteEdit *note_edit
,,
cairo_t *cr);
gdouble positionvoid ags_note_edit_draw_segment (AgsNoteEdit *note_edit
,); AgsNoteEdit * ags_note_edit_new ();
cairo_t *crvoid ags_note_edit_reset_horizontally (AgsNoteEdit *note_edit
,);
guint flagsvoid ags_note_edit_reset_vertically (AgsNoteEdit *note_edit
,);
guint flagsvoid ags_note_edit_set_map_height (AgsNoteEdit *note_edit
,);
guint map_height
struct AgsNoteEdit { GtkTable table; guint flags; AgsRuler *ruler; GtkDrawingArea *drawing_area; struct _AgsNoteEditControl{ // values retrieved by mouse pressed and released callback AgsNote *note; guint x0_offset; guint y0_offset; guint x0; guint y0; guint x1_offset; guint y1_offset; guint x1; guint y1; }control; guint width; guint height; guint map_width; guint map_height; guint control_height; guint control_margin_y; guint control_width; guint y0; guint y1; guint nth_y; guint stop_y; struct _AgsNoteEditControlCurrent{ // values for drawing refering to current tic and zoom guint control_count; guint control_width; guint x0; guint x1; guint nth_x; }control_current; struct _AgsNoteEditControlUnit{ // values for drawing refering to smallest tic and current zoom guint control_count; guint control_width; guint x0; guint x1; guint nth_x; guint stop_x; }control_unit; guint selected_x; guint selected_y; GtkVScrollbar *vscrollbar; GtkHScrollbar *hscrollbar; };
typedef enum { AGS_NOTE_EDIT_RESETING_VERTICALLY = 1, AGS_NOTE_EDIT_RESETING_HORIZONTALLY = 1 << 1, AGS_NOTE_EDIT_POSITION_CURSOR = 1 << 2, AGS_NOTE_EDIT_ADDING_NOTE = 1 << 3, AGS_NOTE_EDIT_DELETING_NOTE = 1 << 4, AGS_NOTE_EDIT_SELECTING_NOTES = 1 << 5, } AgsNoteEditFlags;
typedef enum { AGS_NOTE_EDIT_RESET_VSCROLLBAR = 1, AGS_NOTE_EDIT_RESET_HSCROLLBAR = 1 << 1, AGS_NOTE_EDIT_RESET_WIDTH = 1 << 2, AGS_NOTE_EDIT_RESET_HEIGHT = 1 << 3, // reserved } AgsNoteEditResetFlags;
void ags_note_edit_draw_notation (AgsNoteEdit *note_edit
,);
cairo_t *cr
Draw the AgsNotation of selected AgsMachine on note_edit
.
|
the AgsNoteEdit |
|
the |
Since 0.4
void ags_note_edit_draw_position (AgsNoteEdit *note_edit
,);
cairo_t *cr
Draws the cursor.
|
the AgsNoteEdit |
|
the |
Since 0.4
void ags_note_edit_draw_scroll (AgsNoteEdit *note_edit
,,
cairo_t *cr);
gdouble position
Change visible x-position of note_edit
.
|
the AgsNoteEdit |
|
the |
|
the new position |
Since 0.4
void ags_note_edit_draw_segment (AgsNoteEdit *note_edit
,);
cairo_t *cr
Draws horizontal and vertical lines.
|
the AgsNoteEdit |
|
the |
Since 0.4
void ags_note_edit_reset_horizontally (AgsNoteEdit *note_edit
,);
guint flags
Reset note_edit
as configured horizontally.
|
the AgsNoteEdit |
|
the AgsNoteEditResetFlags |
Since 0.4
void ags_note_edit_reset_vertically (AgsNoteEdit *note_edit
,);
guint flags
Reset note_edit
as configured vertically.
|
the AgsNoteEdit |
|
the AgsNoteEditResetFlags |
Since 0.4
void ags_note_edit_set_map_height (AgsNoteEdit *note_edit
,);
guint map_height
Set the map height in pixel.
|
the AgsNoteEdit |
|
the new height |
Since 0.4