File: gf_item_offset.h

package info (click to toggle)
guifications 2.16-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie, wheezy
  • size: 3,368 kB
  • ctags: 1,094
  • sloc: ansic: 9,991; sh: 8,958; xml: 1,153; makefile: 185
file content (45 lines) | stat: -rw-r--r-- 1,581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * Guifications - The end all, be all, toaster popup plugin
 * Copyright (C) 2003-2005 Gary Kramlich
 *
 * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
 */
#ifndef GF_ITEM_OFFSET_H
#define GF_ITEM_OFFSET_H

#include <xmlnode.h>

#include "gf_item.h"

typedef struct _GfItemOffset GfItemOffset;

G_BEGIN_DECLS

GfItemOffset *gf_item_offset_new(GfItem *item);
GfItemOffset *gf_item_offset_new_from_xmlnode(GfItem *item, xmlnode *node);
GfItemOffset *gf_item_offset_copy(GfItemOffset *offset);
void gf_item_offset_destroy(GfItemOffset *offset);

void gf_item_offset_set_value(GfItemOffset *offset, gint value);
gint gf_item_offset_get_value(GfItemOffset *offset);

void gf_item_offset_set_is_percentage(GfItemOffset *offset, gboolean is_offset);
gboolean gf_item_offset_get_is_percentage(GfItemOffset *offset);

GfItem *gf_item_offset_get_item(GfItemOffset *offset);

G_END_DECLS

#endif /* GF_ITEM_OFFSET_H */