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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktoolbar.pre:10:   //! displayed with icons, labels, or both.      //! <p>   //! Examples:   //! IMG: lambda(){object t=GTK2.Toolbar( /*GTK2.ORIENTATION_HORIZONTAL, GTK2.TOOLBAR_TEXT*/ );t->append_item( "Button 1", "Tooltip 1", "", GTK2.Frame(), lambda(){},0);t->append_space();t->append_item( "Button 2", "Tooltip 2", "", GTK2.Frame(), lambda(){},0);t->append_item( "Button 3", "Tooltip 3", "", GTK2.Frame(), lambda(){},0);t->append_space();t->append_item( "Button 4", "Tooltip 4", "", GTK2.Frame(), lambda(){},0);t->append_item( "Button 5", "Tooltip 5", "", GTK2.Frame(), lambda(){},0);return t;}()   //! IMG: lambda(){object t=GTK2.Toolbar( /*GTK2.ORIENTATION_VERTICAL, GTK2.TOOLBAR_TEXT*/ );t->append_item( "Button 1", "Tooltip 1", "", GTK2.Frame(), lambda(){},0);t->append_space();t->append_item( "Button 2", "Tooltip 2", "", GTK2.Frame(), lambda(){},0);t->append_item( "Button 3", "Tooltip 3", "", GTK2.Frame(), lambda(){},0);t->append_space();t->append_item( "Button 4", "Tooltip 4", "", GTK2.Frame(), lambda(){},0);t->append_item( "Button 5", "Tooltip 5", "", GTK2.Frame(), lambda(){},0);return t;}()   //! IMG: lambda(){object i=GTK2.GdkImage()->set(Image.Image(20,20)->test());object t=GTK2.Toolbar( /*GTK2.ORIENTATION_HORIZONTAL, GTK2.TOOLBAR_BOTH*/ );t->append_item( "Button 1", "Tooltip 1", "", GTK2.Image(i), lambda(){},0);t->append_space();t->append_item( "Button 2", "Tooltip 2", "", GTK2.Image(i), lambda(){},0);t->append_item( "Button 3", "Tooltip 3", "", GTK2.Image(i), lambda(){},0);t->append_space();t->append_item( "Button 4", "Tooltip 4", "", GTK2.Image(i), lambda(){},0);t->append_item( "Button 5", "Tooltip 5", "", GTK2.Image(i), lambda(){},0);return t;}()   //! </p>      //! Properties: + require gtk210; + //! int icon-size + //! int icon-size-set + endrequire;   //! int orientation   //! int show-arrow   //! int toolbar-style -  + require gtk28; + //! int tooltips + endrequire;   //! <p>   //! Child properties:   //! int expand   //! int homogeneous   //! <p>   //! Style properties:   //! int button-relief   //! int internal-padding   //! int shadow-type   //! int space-size
pike.git/src/post_modules/GTK2/source/gtktoolbar.pre:57:   //! Insert a W(ToolItem) into the toolbar at position pos. If pos is 0   //! the item is prepended to the start of the toolbar. If pos is negative,   //! the item is appended to the end of the toolbar.      int get_item_index(GTK2.ToolItem item);   //! Returns the position of item on the toolbar, starting from 0.      int get_n_items();   //! Returns the number of items on the toolbar.    - GTK2.ToolItem get_nth_item(int n); + +GTK2.ToolItem get_nth_item(int n);   //! Returns the n's item on the toolbar, or empty if the toolbar does not   //! contain an n'th item.      int get_drop_index(int x, int y);   //! Returns the position corresponding to the indicated point on the toolbar.   //! This is useful when dragging items to the toolbar: this function returns   //! the position a new item should be inserted.   //! <p>   //! x and y are in toolbar coordinates.