Skip to content

Commit

Permalink
rev 1: naming of members and GdkSeat in undo/redo system
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-niklaus committed Apr 8, 2024
1 parent 7f745ff commit 96404ae
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Proposed

## Context

`gromit` currently follows a "draw-and-forget" strategy, i.e. each
`gromit-mpx` currently follows a "draw-and-forget" strategy, i.e. each
drawing operation, once completed, is drawn on a `cairo_surface_t`
(`GromitData.backbuffer`).

Expand Down Expand Up @@ -37,13 +37,13 @@ object store simply is a `GList` of `GfxObject`. Each `GfxObject` has
the following fields:

typedef struct {
guint id; // unique id
GfxType type; // type of object, e.g. Stroke, or Text
gboolean dynamic; // content is dynamically updated
GromitDeviceData selected; // NULL, or which user selected the item
guint32 capabilities; // bit mask with capabilities (see below)
BoundingBox extent; // the objects rectangular extent
void (*exec)(GfxObject *, action, void *); // object-specific methods
guint id; // unique id
GfxType type; // type of object, e.g. Stroke, or Text
gboolean is_dynamic; // content is dynamically updated
GromitDeviceData *selected; // NULL, or which user selected the item
guint32 capabilities; // bit mask with capabilities (see below)
BoundingBox extent; // the objects rectangular extent
void (*exec)(GfxObject *, action, void *); // object-specific methods
} GfxObjectBase;

This basic set of fields is extended by object-specific fields, which
Expand Down

0 comments on commit 96404ae

Please sign in to comment.