pike.git / src / post_modules / GTK2 / source / gtkbutton.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkbutton.pre:4:      //! A container that can only contain one child, and accepts events.   //! draws a bevelbox around itself.   //! IMG: GTK2.Button("A button")   //! IMG: GTK2.Button("A button\nwith multiple lines\nof text")   //! IMG: GTK2.Button()->add(GTK2.Image(GTK2.GdkImage(0)->set(Image.Image(100,40)->test())))      //! Properties:   //! int focus-on-click   //! GTK2.Widget image + require gtk210; + //! int image-position + endrequire;   //! string label   //! int relief   //! int use-stock   //! int use-underline   require gtk24;   //! float xalign   //! float yalign   endrequire;   //! <p>   //! Style properties:   //! int child-displacement-x   //! int child-displacement-y   //! GTK2.Border default-border   //! GTK2.Border default-outside-border   require gtk26;   //! int displace-focus   endrequire; -  + //! int image-spacing + require gtk210; + //! int inner-border + endrequire;      signal activate;   signal pressed;   //! Called when the button is pressed   signal released;   //! Called when the button is released   signal clicked;   //! Called when the button is pressed, and then released   signal enter;   //! Called when the mouse enters the button   signal leave;   //! Called when the mouse leaves the button    - void create(string|mapping|void label_or_props) + void create(string|mapping(string:mixed)|void label_or_props)   //! If a string is supplied, a W(Label) is created and added to the button.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    if (Pike_sp[-args].type==PIKE_T_STRING) {    struct pike_string *t;    GtkWidget *gb;    GtkStockItem item;    int i=0;
pike.git/src/post_modules/GTK2/source/gtkbutton.pre:147:    f_aggregate_mapping(4);    }   }   endrequire;      require gtk26;   void set_image(GTK2.Widget widget);   //! Set the image of the button to the given widget. Note that it depends on   //! the gtk-button-images setting whether the image will be displayed or not.    - GTK2.Widget get_image(); + +GTK2.Widget get_image();   //! Gets the widget that is currently set as the image of the button.   endrequire; -  +  + require gtk210; + void set_image_position(int position); + //! Sets the position of the image relative to the text inside the button. +  + int get_image_position(); + //! Gets the position of the image relative to the text inside the button. + endrequire;