Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
17953233
Commit
17953233
authored
Feb 14, 2006
by
Lance Dillon
Browse files
Options
Downloads
Patches
Plain Diff
Added set_from_iconset(), set_from_image(), and set_from_pixmap().
Rev: src/post_modules/GTK2/source/gtkimage.pre:1.6
parent
fce13a51
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/post_modules/GTK2/source/gtkimage.pre
+44
-0
44 additions, 0 deletions
src/post_modules/GTK2/source/gtkimage.pre
with
44 additions
and
0 deletions
src/post_modules/GTK2/source/gtkimage.pre
+
44
−
0
View file @
17953233
...
@@ -211,9 +211,53 @@ void set_from_file(string filename);
...
@@ -211,9 +211,53 @@ void set_from_file(string filename);
#define GTK_GDKPIXBUF(X) GDK_PIXBUF(X)
#define GTK_GDKPIXBUF(X) GDK_PIXBUF(X)
%}
%}
void set_from_icon_set(GTK2.IconSet icon_set, int size)
//! Set this image from an icon set.
{
pgtk_verify_inited();
{
struct object *o1;
INT_TYPE size;
GtkIconSet *is;
get_all_args("set_from_icon_set",args,"%o%i",&o1,&size);
is=(GtkIconSet *)get_gobject(o1);
if (!is)
SIMPLE_ARG_ERROR("set_from_icon_set",args,"Invalid GTK2.IconSet");
gtk_image_set_from_icon_set(GTK_IMAGE(THIS->obj),is,size);
}
RETURN_THIS();
}
void set_from_image(GDK2.Image gdk_image, ?GDK2.Bitmap mask)
//! Set this image from a GDK2.Image plus optional mask.
{
pgtk_verify_inited();
{
struct object *o1,*o2=NULL;
get_all_args("set_from_image",args,"%o.%o",&o1,&o2);
gtk_image_set_from_image(GTK_IMAGE(THIS->obj),(GdkImage *)get_gobject(o1),
o2?(GdkBitmap *)get_gobject(o2):NULL);
}
RETURN_THIS();
}
void set_from_pixbuf(GDK2.Pixbuf pixbuf);
void set_from_pixbuf(GDK2.Pixbuf pixbuf);
//! Set image from a pixbuf
//! Set image from a pixbuf
void set_from_pixmap(GDK2.Pixmap pixmap, ?GDK2.Bitmap mask)
//! Set this image from a GDK2.Pixmap plus optional mask.
{
pgtk_verify_inited();
{
struct object *o1,*o2=NULL;
get_all_args("set_from_pixmap",args,"%o.%o",&o1,&o2);
gtk_image_set_from_pixmap(GTK_IMAGE(THIS->obj),(GdkPixmap *)get_gobject(o1),
o2?(GdkBitmap *)get_gobject(o2):NULL);
}
RETURN_THIS();
}
void set_from_stock(string stock_id, int size);
void set_from_stock(string stock_id, int size);
//! Sets from a stock icon. Sample icon names are GTK2.STOCK_OPEN,
//! Sets from a stock icon. Sample icon names are GTK2.STOCK_OPEN,
//! GTK2.STOCK_EXIT. Sample stock sizes are GTK2.ICON_SIZE_MENU,
//! GTK2.STOCK_EXIT. Sample stock sizes are GTK2.ICON_SIZE_MENU,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment