41 lines
1.4 KiB
C
41 lines
1.4 KiB
C
#ifndef FLOW_GRID_H
|
|
#define FLOW_GRID_H
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define FLOW_TYPE_GRID (flow_grid_get_type())
|
|
#define FLOW_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), FLOW_TYPE_GRID, FlowGrid))
|
|
#define FLOW_IS_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), FLOW_TYPE_GRID))
|
|
|
|
typedef struct _FlowGrid FlowGrid;
|
|
typedef struct _FlowGridClass FlowGridClass;
|
|
|
|
struct _FlowGridClass {
|
|
GtkWidgetClass parent_class;
|
|
};
|
|
|
|
typedef enum {
|
|
FLOW_GRID_JUSTIFY_START,
|
|
FLOW_GRID_JUSTIFY_CENTER,
|
|
FLOW_GRID_JUSTIFY_END,
|
|
} FlowGridJustify;
|
|
|
|
GType flow_grid_get_type (void);
|
|
GtkWidget *flow_grid_new (int minimum_size,
|
|
int column_spacing,
|
|
int row_spacing);
|
|
|
|
void flow_grid_set_minimum_size (FlowGrid *self, int size);
|
|
int flow_grid_get_minimum_size (FlowGrid *self);
|
|
void flow_grid_set_column_spacing (FlowGrid *self, int spacing);
|
|
int flow_grid_get_column_spacing (FlowGrid *self);
|
|
void flow_grid_set_row_spacing (FlowGrid *self, int spacing);
|
|
int flow_grid_get_row_spacing (FlowGrid *self);
|
|
void flow_grid_set_justify (FlowGrid *self, FlowGridJustify justify);
|
|
FlowGridJustify flow_grid_get_justify (FlowGrid *self);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* FLOW_GRID_H */
|