Window widget. More...
#include <window.hpp>
Classes | |
struct | callback |
struct | event_handler |
Base event handler. | |
struct | g_event_handler |
Gtk event handler. | |
struct | gtk_graphic_context |
struct | gtk_list_view |
struct | gtk_tree_view |
struct | gtk_tree_view_base |
struct | line_coordinates |
struct | q_event_handler |
Qt event handler. | |
struct | qt_graphic_context |
class | qt_notebook |
struct | qt_notebook_page |
struct | qt_tree_view |
struct | template_callback |
struct | tree_view_column |
Public Types | |
enum | widget_type { layout = 0, button = 1, edit_box = 2, text_box = 3, combo_box = 4, main_window = 5, label = 6, menu_bar = 7, menu_item = 8, menu = 9, sub_menu = 10, notebook = 11, notebook_page = 12, check_box = 13, toolbar = 14, toolitem = 15, action = 16, check_menu_item = 17, tool_button = 18, action_group = 19, radio_menu_item = 20, tree = 21, statusbar = 22, scrollwindow = 23, chooser_button = 24, file_chooser = 25, paned_window = 26, color_button = 27, list = 28, frame = 29, image = 30, table = 31, html_view = 32, progressbar = 33 } |
typedef std::vector< std::string > | rows |
typedef std::vector< std::string > | widget_children |
The Widget's children. | |
Public Member Functions | |
void | replace_all_occurrences (std::string &, const std::string &, const std::string &) const throw () |
Main Window | |
void | set_position (const std::string &s) throw () |
Sets the position of the main window. | |
void | resize (size_t w, size_t h) throw () |
Resizes the main window. | |
void | set_style (const std::string &s) throw () |
Sets the window's GUI style. | |
void | set_modal (bool m) throw () |
Sets the window's modality. | |
Layout | |
void | add_horizontal_layout (const std::string &s) throw () |
Adds a new horizontal box with given path. | |
void | add_vertical_layout (const std::string &s) throw () |
Adds a new vertical box. | |
Paneds and Frame. | |
void | add_horizontal_paned (const std::string &s) throw () |
Adds a new horizontal paned. | |
void | add_vertical_paned (const std::string &s) throw () |
Adds a new vertical paned. | |
void | set_paned_position (const std::string &s, int i) throw () |
Sets the position of the dividers between panes for paned widget. | |
void | add_frame (const std::string &s) throw () |
Adds a frame. | |
Read-only widgets | |
void | add_label (const std::string &s) throw () |
Adds a new label. | |
void | add_image (const std::string &s, const std::string &p="") throw () |
Adds a new image. | |
void | add_html_view (const std::string &s) throw () |
Adds a new html view. | |
template<typename T > | |
void | add_action (const std::string &s, T f) throw () |
Adds a new action. | |
Editable widgets | |
void | add_edit_box (const std::string &s) throw () |
Adds a new edit box. | |
int | get_edit_box_cursor_position (const std::string &s) throw () |
Gets edit box cursor position. | |
void | set_edit_box_cursor_position (const std::string &s, int i) throw () |
Sets edit box cursor position. | |
void | set_language (const std::string &s, const std::string &p) throw () |
Sets the source language of text box. | |
void | set_accelerator (const std::string &s, const std::string &p) throw () |
Sets accelerator to menu item. | |
void | add_text_box (const std::string &s) throw () |
Adds a new text box. | |
void | move_cursor (const std::string &s) throw () |
Move cursor of text box. | |
void | add_scroll_window (const std::string &s) throw () |
Adds a new scroll window. | |
void | set_syntax (const std::string &s, const std::string &l) throw () |
Sets syntax for text box. | |
void | set_background_color (const std::string &s, const std::string &c) throw () |
Sets the background color of the widget. | |
Snapshot | |
void | create_snapshot (const std::string &n) const throw () |
Switches | |
void | add_check_box (const std::string &s) throw () |
Adds a new check box. | |
void | add_toggle_button (const std::string &s) throw () |
Adds a new toggle button. | |
Removable actions with widgets. | |
void | remove_widget (const std::string &s) throw () |
Removes the widget. | |
Choice widgets | |
void | add_radio_button_group (const std::string &s) throw () |
Adds a new radio button group. | |
void | add_combo_box (const std::string &s) throw () |
Adds a new combo box. | |
void | add_combo_box_item (const std::string &s, const std::string &t) throw () |
Adds a new combo box item to combo box. | |
Collection Widgets | |
void | add_grid (const std::string &s) throw () |
Adds a new grid. | |
void | add_table (const std::string &s, size_t r, size_t c) throw () |
Adds a new table. | |
void | add_item (const std::string &s, const std::string &t) throw () |
Adds new t item to widget corresponding to s. | |
Events | |
Widgets raise certain events. To handle an event, one should use register and action with the method add_action and use the method add_handler. | |
void | add_handler (const std::string &s, const std::string &e, const std::string &a) throw () |
Adds an event handler to the widget. | |
void | remove_all_handlers (const std::string &s) throw () |
Remove all n handlers from s widget. | |
Text of widgets | |
void | set_text (const std::string &s, const std::string &t) throw () |
Set widget text. | |
Value of widgets | |
void | set_value (const std::string &s, const std::string &t) throw () |
Sets text value of the widget. Text values can be set to the following widgets:
| |
void | set_value (const std::string &s, const char *t) throw () |
Sets text value of the widget. | |
void | set_value (const std::string &s, int v) throw () |
Sets integer value of the widget. Integer values can be set to the following widgets:
| |
void | set_value (const std::string &s, bool t) throw () |
Sets the boolean value to check box widget. | |
Color of text widgets | |
void | set_color (const std::string &s, const std::string &t) throw () |
Sets text color. | |
Style of text widgets | |
void | set_font_style (const std::string &s, const std::string &t) throw () |
Sets text style. | |
Focus of widgets | |
void | set_focus (const std::string &s) throw () |
bool | is_focusable (const std::string &s) const throw () |
Text of line edit and label widgets | |
void | set_markup (const std::string &s, const std::string &t) throw () |
Set label markup. | |
void | append_text (const std::string &s, const std::string &t) throw () |
Appends text to widget text. | |
std::string | get_text (const std::string &s) const throw () |
Get widget text. | |
void | collect_children (const std::string &s, widget_children &c) const throw () |
Get widget children. | |
std::string | get_tooltip_text (const std::string &s) const throw () |
Get widget tooltip text. | |
void | set_html_content (const std::string &s, const std::string &h) throw () |
Sets html content of html view. | |
Context | |
void | set_context (const std::string &s) throw () |
Sets current context. | |
bool | is_exist_item_with_name (const std::string &s) const throw () |
Checks existing of item(widget, canvas or canvas item) with this name. | |
std::string | get_context () const throw () |
Returns the current context. | |
Widgets | |
void | add_button (const std::string &s) throw () |
Adds a new button. | |
void | add_icon (const std::string &s, const std::string &n) throw () |
Adds a new icon. | |
void | add_color_button (const std::string &s) throw () |
Adds a new color button. | |
std::string | get_color (const std::string &s) const throw () |
Returns the color of the color button in rgb form. | |
Action | |
void | set_action_caption (const std::string &s, const std::string &n) throw () |
Set action caption. | |
void | set_action_accelerator (const std::string &s, const std::string &n) throw () |
Set accelerator for action. | |
Selection | |
std::string | get_selected_item_text (const std::string &s) const throw () |
Gets the text of the selected item of widget of type tree view. | |
size_t | get_selected_item_index (const std::string &s) throw () |
Gets the index of the selected item of widget of type tree view. | |
rows | get_selected_rows (const std::string &s) const throw () |
Gets the paths of the selected rows of tree view. | |
std::string | get_selected_item_column (const std::string &s) const throw () |
Gets the column path of the selected item. | |
void | select_row (const std::string &s) const throw () |
Sets the current keyboard focus to be at row, and selects it. | |
void | deselect_row (const std::string &s) throw () |
Deselect the row. | |
Tree and List view | |
void | add_tree (const std::string &s) throw () |
Adds a new tree. | |
void | add_list (const std::string &s) throw () |
Adds a new list view. | |
void | add_column (const std::string &s) throw () |
Adds a new tree column. | |
void | add_row (const std::string &s) throw () |
Adds a new row to tree. | |
void | set_title (const std::string &s, const std::string &t) throw () |
Sets a title to the column. | |
void | add_check_field (const std::string &s) throw () |
Adds a column with check buttons. | |
void | add_label_field (const std::string &s) throw () |
Adds a label column to the tree. | |
void | add_icon_field (const std::string &s) throw () |
Adds an icon column to the tree. | |
bool | is_checked (const std::string &s) const throw () |
Gets whether the corresponding widget is checked or not. | |
std::string | get_expanded_row (const std::string &s) const throw () |
Gets the path of the expanded row of tree view. | |
std::string | get_collapsed_row (const std::string &s) const throw () |
Gets the path of the collapsed row of tree view. | |
rows | get_tree_row_children (const std::string &s) const throw () |
Gets the paths of the tree view row children. | |
void | expand_row (const std::string &s) const throw () |
Opens the row so its children are visible. | |
void | clear_rows (const std::string &s) throw () |
Clears all rows from the tree or list widget. | |
void | set_selection_mode (const std::string &s, const std::string &m) throw () |
Sets the selection mode of the tree view. | |
std::string | get_selection_mode (const std::string &s) const throw () |
Gets the selection mode of the tree view. | |
size_t | get_item_id (const std::string &s) throw () |
Gets item id. | |
Selection mode manipulation | |
void | set_multiselection_mode (const std::string &s) throw () |
Set selection mode to multi selection mode of tree view widget. | |
void | set_singleselection_mode (const std::string &s) throw () |
Set selection mode to single selection mode of tree view widget. | |
bool | is_selection_mode_single (const std::string &s) throw () |
Indicates whether is single mode the selection mode. | |
Menu | |
void | add_menu_bar (const std::string &s) throw () |
Adds a new menu bar to the main. | |
void | add_menu (const std::string &s) throw () |
Adds a new menu to the main. | |
void | add_context_menu (const std::string &s) throw () |
Adds a new context menu to the widget. | |
void | run_context_menu (const std::string &s) throw () |
Runs the context menu. | |
void | add_menu_item (const std::string &s) throw () |
Adds a new menu item on the menu. | |
void | add_toggle_menu_item (const std::string &s) throw () |
Adds a new toggle menu item on the menu. | |
StatusBar | |
void | add_statusbar (const std::string &s) throw () |
Adds a new statusbar. | |
Toolbar | |
void | add_toolbar (const std::string &s) throw () |
Adds a new toolbar. | |
void | add_toolbar_item (const std::string &s) throw () |
Adds a new tool bar item on the tool bar. | |
void | add_toggle_toolbar_item (const std::string &s) throw () |
Adds a new toggle tool bar item on the tool bar. | |
Separator | |
void | add_separator (const std::string &s) throw () |
Adds separator to menu. | |
Properties | |
void | set_enable (const std::string &s) throw () |
Enables the widget corresponding to s. | |
void | set_disable (const std::string &s) throw () |
Disables the widget corresponding to s. | |
bool | is_enable (const std::string &s) const throw () |
Get whether the widget corresponding to s is sensitive. | |
void | hide (const std::string &s) throw () |
Hides the widget corresponding to s. | |
void | set_editable (const std::string &s) throw () |
Makes the widget corresponding to s editable. | |
void | set_read_only (const std::string &s) throw () |
Makes the widget corresponding to s read only. | |
void | show (const std::string &s) throw () |
Shows the widget corresponding to s. | |
bool | is_visible (const std::string &s) const throw () |
Get whether the widget corresponding to s is visible. | |
bool | is_editable (const std::string &s) const throw () |
Get whether the widget corresponding to s is editable. | |
Notebook | |
void | add_notebook (const std::string &s) throw () |
Adds a new notebook. | |
void | add_notebook_page (const std::string &s) throw () |
Adds a new notebook page on the notebook. | |
void | set_current_page (const std::string &s) throw () |
Sets the notebook's current page to s. | |
int | get_current_page (const std::string &s) const throw () |
Gets the notebook's current page. | |
void | set_tooltip_text (const std::string &s, const std::string &t) throw () |
Sets widget tooltip text. | |
Progress bar | |
void | add_progress_bar (const std::string &s) throw () |
Adds a new progress bar. | |
int | get_value (const std::string &s) const throw () |
Gets the value of the progress bar. | |
Radio Menu | |
void | add_radio_menu (const std::string &s) throw () |
Adds a new radio menu . | |
void | add_radio_menu_item (const std::string &s) throw () |
Adds a new radio menu item to radio menu . | |
Graphic context | |
Graphic context is used to draw items on canvas widget. To draw an item one should add his graphic context, specify its properties and select it by the method set_graphic_context. After a call of that method all items added to the canvas will be drawn with the specified graphic context. | |
void | add_graphic_context (const std::string &s) throw () |
Adds a new graphic context. | |
void | set_line_color (const std::string &s, const std::string &c) throw () |
Sets a line color. | |
void | set_fill_color (const std::string &s, const std::string &c) throw () |
Sets a fill color. | |
void | set_font (const std::string &s, const std::string &f) throw () |
Sets a font. | |
void | set_font_size (const std::string &s, double d) throw () |
Sets a size. | |
void | set_italic (const std::string &s, bool b) throw () |
Sets a italic. | |
void | set_bold (const std::string &s, bool b) throw () |
Sets a bold. | |
void | set_fill_transparency (const std::string &s, int a) throw () |
Sets a fill transparency. | |
void | set_line_transparency (const std::string &s, int a) throw () |
Sets a line transparency. | |
void | set_line_width (const std::string &s, int w) throw () |
Sets line width of graphic context. | |
void | set_graphic_context (const std::string &s) throw () |
Sets the current graphic context. | |
void | set_graphic_context (const std::string &s, const std::string &c) throw () |
Sets the graphic context to item. | |
User data | |
void | set_user_data (const std::string &s, void *d) throw () |
Sets a user data. | |
void * | get_user_data (const std::string &s) const throw () |
Gets a user data. | |
Items | |
void | add_line (const std::string &s, double x1, double y1, double x2, double y2) throw () |
Adds a new line. | |
void | add_rectangle (const std::string &s, double x1, double y1, double x2, double y2) throw () |
Adds a new rectangle. | |
void | add_text (const std::string &s, double x1, double y1, const std::string &c) throw () |
Adds a new text. | |
void | add_ellipse (const std::string &s, double x1, double y1, double x2, double y2) throw () |
Adds a new ellipse. | |
void | remove_item (const std::string &s) throw () |
Remove the item. | |
Group | |
void | add_group (const std::string &s) throw () |
Adds a new group. | |
Coordinate manipulating | |
double | get_x1_coordinate (const std::string &s) const throw () |
Gets a x1 coordinate of the item. | |
double | get_x2_coordinate (const std::string &s) const throw () |
Gets a x2 coordinate of the item. | |
double | get_y1_coordinate (const std::string &s) const throw () |
Gets a y1 coordinate of the item. | |
double | get_y2_coordinate (const std::string &s) const throw () |
Gets a y2 coordinate of the item. | |
uint32_t | get_width (const std::string &s) const throw () |
Gets a width of the item. | |
uint32_t | get_height (const std::string &s) const throw () |
Gets a height of the item. | |
void | set_x1_coordinate (const std::string &s, double c) throw () |
Sets a x1 coordinate of the item. | |
void | set_x2_coordinate (const std::string &s, double c) throw () |
Sets a x2 coordinate of the item. | |
void | set_y1_coordinate (const std::string &s, double c) throw () |
Sets a y1 coordinate of the item. | |
void | set_y2_coordinate (const std::string &s, double c) throw () |
Sets a y2 coordinate of the item. | |
Move | |
void | move_item_by (const std::string &s, double x, double y) throw () |
Moves the item by x points horizontally, and y point vertically. | |
void | rotate (const std::string &s, double a) throw () |
Rotates item on canvas. | |
void | zoom (const std::string &s, double a, double b) throw () |
Zoom item on canvas. | |
std::string | get_item_at (const std::string &s, double x, double y) const throw () |
Gets the path of the topmost item that is under the specified position. | |
Zoom | |
void | zoom_canvas (const std::string &s, double f) throw () |
Zoom canvas by the zoom factor. | |
void | reset_canvas_zoom_factor (const std::string &s) throw () |
Resets the canvas zoom factor. | |
FileChooserDialog | |
void | add_file_chooser_dialog (const std::string &s) throw () |
Creates file chooser dialog. | |
void | add_file_chooser_button (const std::string &s, const std::string &p) throw () |
Adds a new file chooser button. | |
void | run_file_chooser_dialog (const std::string &s) throw () |
Runs the file chooser dialog. | |
void | set_name_filter (const std::string &s, const std::string &t) throw () |
Sets the name filter onto a file chooser dialog. | |
void | set_file_chooser_mode (const std::string &s, const std::string &t) throw () |
Sets the file chooser dialog mode. | |
std::string | get_filename (const std::string &s) const throw () |
Returns the selected file name. | |
void | raise_to_top (const std::string &s) throw () |
Raises an item to the top of its parent's stack. | |
void | lower_to_bottom (const std::string &s) throw () |
Lowers an item to the bottom of its parent's stack. | |
Special member functions | |
~window () throw () | |
Destructor. | |
window (const std::string &n) throw () | |
Only available constructor. | |
Friends | |
class | application |
class | qt_graphics_view |
class | item |
class | qt_widget |
class | qt_event_handler |
class | gtk_key_event |
Canvas | |
| |
enum | mode { antialiased = 0, simple = 1 } |
void | add_canvas (const std::string &s, mode m) throw () |
Adds a new canvas. | |
Key state | |
| |
bool | is_control_pressed () const throw () |
Return true if control key is pressed. | |
bool | is_shift_pressed () const throw () |
Return true if shift key is pressed. | |
std::string | get_event_emitter () const throw () |
Returns the path of the canvas item which emitted the event. | |
widget_type | get_widget_type (const std::string &s) throw () |
std::string | get_substring (const std::string &, const std::string &="/") const throw () |
std::string | get_name () const throw () |
void | run () throw () |
Runs the dialog window. | |
Layout properties | |
| |
void | set_spacing (const std::string &s, int t) throw () |
Sets placement between children of box. | |
void | add_spacer (const std::string &s) throw () |
Add spacer to the layout. | |
void | set_size_policy (const std::string &s, const std::string &t) throw () |
Sets layout size policy. | |
std::string | get_size_policy (const std::string &s) const throw () |
Gets layout size policy. | |
User defined events | |
Users can specify the user defined event(used add_event), register listener for this event(used add_listener) and emit corresponding event (used emit_event). The events can be registered and emitted from different threads. Also event handling mechanism provides thread safe execution of the callback registered in event's listener. // Event registration add_event("name"); ... // Listener registration add_listener("name", &work); ... // Event emitting emit_event("name");
| |
void | add_event (const std::string &n) throw () |
Creates an event with given name. | |
template<typename T > | |
void | add_listener (const std::string &n, T f) throw () |
Registers a new listener to respective event. | |
void | emit_event (const std::string &n) throw () |
Emit respective event. | |
Key events | |
| |
std::string | get_pressed_key () const throw () |
Returns the last pressed key on the widget. | |
std::string | get_released_key () const throw () |
Returns the last released key on the widget. | |
Mouse coordinates | |
| |
double | get_mouse_x_coordinate () const throw () |
Gets a x coordinate of the mouse. | |
double | get_mouse_y_coordinate () const throw () |
Gets a y coordinate of the mouse. | |
void | get_group_items (const std::string &s, std::vector< std::string > &v) throw () |
Group Items. | |
void | toggle_selection (const std::string &s) throw () |
selects an item if it's not selected and deselects otherwise | |
void | select_item (const std::string &s) throw () |
Selects an item. | |
bool | is_item_selected (const std::string &s) throw () |
Returns true if item is selected, and false otherwise. | |
bool | is_item_exist (const std::string &s) throw () |
Returns true if item exists, and false otherwise. | |
void | select_all () throw () |
Selects all the canvas items . | |
void | deselect_item (const std::string &s) throw () |
Deselects an item. | |
void | deselect_all () throw () |
Deselects all the canvas items . |
Window widget.
Central concept of toolkit library. Provides methods for adding and manipulating all supported kinds of widgets and layouts.
Identification of widgets is similar to identification of files. Each widget has a name, which is unique in context of its parent. The path of a widget determines its location - hierarchy of parent widgets, separated with '/' character. The path "/" represents the root path.
To add a widget, one needs to specify its path. All path are given relative to the current context, which may be modified by set_context method. The current path is the root path by default.
E.g. the following code adds button "my_button" to a horizontal box "my_hbox", which is located in a vertical box "my_vbox"
{ add_vertical_layout("my_vbox"); add_horizontal_layout("my_vbox/my_hbox"); set_context("my_vbox/my_hbox"); add_button("my_button"); set_text("my_button", "My Button"); }
To create window, one should derive this class and use a bunch of methods to specify its content.
instigate::toolkit::window::window | ( | const std::string & | n | ) | throw () |
Only available constructor.
n | Name of window. |
void instigate::toolkit::window::add_action | ( | const std::string & | s, | |
T | f | |||
) | throw () [inline] |
Adds a new action.
s | The name of the action. | |
f | Callback function. |
void instigate::toolkit::window::add_button | ( | const std::string & | s | ) | throw () |
Adds a new button.
s | The path of the button. |
Events
void instigate::toolkit::window::add_canvas | ( | const std::string & | s, | |
mode | m | |||
) | throw () |
Adds a new canvas.
s | The path of the canvas. | |
m | Canvas mode. |
void instigate::toolkit::window::add_check_box | ( | const std::string & | s | ) | throw () |
Adds a new check box.
s | The path of the text box. |
Events
void instigate::toolkit::window::add_check_field | ( | const std::string & | s | ) | throw () |
Adds a column with check buttons.
s | The path of the tree column field. |
void instigate::toolkit::window::add_color_button | ( | const std::string & | s | ) | throw () |
Adds a new color button.
s | The path of the button. |
void instigate::toolkit::window::add_column | ( | const std::string & | s | ) | throw () |
Adds a new tree column.
s | The path of the tree column. |
void instigate::toolkit::window::add_combo_box | ( | const std::string & | s | ) | throw () |
Adds a new combo box.
s | The path of the widget. |
Events - changed
void instigate::toolkit::window::add_combo_box_item | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Adds a new combo box item to combo box.
s | The path of the widget. | |
t | The name of the widget. |
void instigate::toolkit::window::add_context_menu | ( | const std::string & | s | ) | throw () |
Adds a new context menu to the widget.
s | The path of the menu. |
void instigate::toolkit::window::add_edit_box | ( | const std::string & | s | ) | throw () |
Adds a new edit box.
s | The path of the edit box. |
Events
void instigate::toolkit::window::add_ellipse | ( | const std::string & | s, | |
double | x1, | |||
double | y1, | |||
double | x2, | |||
double | y2 | |||
) | throw () |
Adds a new ellipse.
s | The path of the ellipse. | |
x1 | The x coordinate of the first endpoint | |
y1 | The y coordinate of the first endpoint | |
x2 | The x coordinate of the second endpoint | |
y2 | The y coordinate of the second endpoint |
void instigate::toolkit::window::add_event | ( | const std::string & | n | ) | throw () |
Creates an event with given name.
n | Name of the event to be created. |
n
void instigate::toolkit::window::add_file_chooser_button | ( | const std::string & | s, | |
const std::string & | p | |||
) | throw () |
Adds a new file chooser button.
s | The path of the button. | |
p | The path of the dialog. |
void instigate::toolkit::window::add_file_chooser_dialog | ( | const std::string & | s | ) | throw () |
Creates file chooser dialog.
??? from here until ???END lines may have been inserted/deleted
s | The path of the dialog. |
void instigate::toolkit::window::add_frame | ( | const std::string & | s | ) | throw () |
Adds a frame.
s | The path of the frame. |
void instigate::toolkit::window::add_graphic_context | ( | const std::string & | s | ) | throw () |
Adds a new graphic context.
s | The path of the graphic context. |
void instigate::toolkit::window::add_grid | ( | const std::string & | s | ) | throw () |
Adds a new grid.
s | The path of the grid |
Events
void instigate::toolkit::window::add_group | ( | const std::string & | s | ) | throw () |
Adds a new group.
s | The path of the group. |
void instigate::toolkit::window::add_handler | ( | const std::string & | s, | |
const std::string & | e, | |||
const std::string & | a | |||
) | throw () |
Adds an event handler to the widget.
s | The path of the widget. | |
e | Event name. | |
a | The name of the handler action. |
void instigate::toolkit::window::add_horizontal_layout | ( | const std::string & | s | ) | throw () |
Adds a new horizontal box with given path.
s | The path of the layout. |
void instigate::toolkit::window::add_horizontal_paned | ( | const std::string & | s | ) | throw () |
Adds a new horizontal paned.
s | The path of the paned. |
void instigate::toolkit::window::add_html_view | ( | const std::string & | s | ) | throw () |
Adds a new html view.
s | The path of the html view widget |
void instigate::toolkit::window::add_icon | ( | const std::string & | s, | |
const std::string & | n | |||
) | throw () |
Adds a new icon.
s | The path of the icon. | |
n | File name of icon to use. |
void instigate::toolkit::window::add_icon_field | ( | const std::string & | s | ) | throw () |
Adds an icon column to the tree.
s | The path of the tree column field. |
void instigate::toolkit::window::add_image | ( | const std::string & | s, | |
const std::string & | p = "" | |||
) | throw () |
Adds a new image.
s | The path of the image widget | |
p | The path of the file containing image |
Events
void instigate::toolkit::window::add_label | ( | const std::string & | s | ) | throw () |
Adds a new label.
s | The path of the label. |
Events
void instigate::toolkit::window::add_label_field | ( | const std::string & | s | ) | throw () |
Adds a label column to the tree.
s | The path of the tree column field. |
void instigate::toolkit::window::add_line | ( | const std::string & | s, | |
double | x1, | |||
double | y1, | |||
double | x2, | |||
double | y2 | |||
) | throw () |
Adds a new line.
s | The path of the line. | |
x1 | The x coordinate of the first endpoint | |
y1 | The y coordinate of the first endpoint | |
x2 | The x coordinate of the second endpoint | |
y2 | The y coordinate of the second endpoint |
void instigate::toolkit::window::add_list | ( | const std::string & | s | ) | throw () |
Adds a new list view.
s | The path of the list view |
Events
void instigate::toolkit::window::add_listener | ( | const std::string & | n, | |
T | f | |||
) | throw () [inline] |
Registers a new listener to respective event.
n | The name of the event. | |
l | The listener object. |
If an event by name n
is emitted, only the listeners associated with that event will be notified.
void instigate::toolkit::window::add_menu | ( | const std::string & | s | ) | throw () |
Adds a new menu to the main.
s | The path of the menu. |
Events
void instigate::toolkit::window::add_menu_bar | ( | const std::string & | s | ) | throw () |
Adds a new menu bar to the main.
s | The path of the menu. |
void instigate::toolkit::window::add_menu_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::add_notebook | ( | const std::string & | s | ) | throw () |
Adds a new notebook.
s | The path of the notebook. |
void instigate::toolkit::window::add_notebook_page | ( | const std::string & | s | ) | throw () |
Adds a new notebook page on the notebook.
s | The path of the notebook page. |
void instigate::toolkit::window::add_progress_bar | ( | const std::string & | s | ) | throw () |
Adds a new progress bar.
This widget can be added on window, layout or status bar.
s | The path of the progress bar. |
void instigate::toolkit::window::add_radio_button_group | ( | const std::string & | s | ) | throw () |
Adds a new radio button group.
s | The path of the combo box. |
Events
void instigate::toolkit::window::add_radio_menu | ( | const std::string & | s | ) | throw () |
Adds a new radio menu .
s | The path of the radio menu. |
Events
void instigate::toolkit::window::add_radio_menu_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::add_rectangle | ( | const std::string & | s, | |
double | x1, | |||
double | y1, | |||
double | x2, | |||
double | y2 | |||
) | throw () |
Adds a new rectangle.
s | The path of the rectangle. | |
x1 | The x coordinate of the first endpoint | |
y1 | The y coordinate of the first endpoint | |
x2 | The x coordinate of the second endpoint | |
y2 | The y coordinate of the second endpoint |
void instigate::toolkit::window::add_row | ( | const std::string & | s | ) | throw () |
Adds a new row to tree.
s | The path of the tree row. |
void instigate::toolkit::window::add_scroll_window | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::add_separator | ( | const std::string & | s | ) | throw () |
Adds separator to menu.
s | The path of the menu. |
void instigate::toolkit::window::add_spacer | ( | const std::string & | s | ) | throw () |
Add spacer to the layout.
void instigate::toolkit::window::add_statusbar | ( | const std::string & | s | ) | throw () |
Adds a new statusbar.
s | The path of the statusbar. |
void instigate::toolkit::window::add_table | ( | const std::string & | s, | |
size_t | r, | |||
size_t | c | |||
) | throw () |
Adds a new table.
s | The path of the table | |
r | The count of rows | |
c | The count of columns |
Events
void instigate::toolkit::window::add_text | ( | const std::string & | s, | |
double | x1, | |||
double | y1, | |||
const std::string & | c | |||
) | throw () |
Adds a new text.
s | The path of the text. | |
x1 | The x coordinate of the first endpoint | |
y1 | The y coordinate of the first endpoint | |
c | The text |
void instigate::toolkit::window::add_text_box | ( | const std::string & | s | ) | throw () |
Adds a new text box.
s | The path of the text box. |
Events - insert at cursor.
void instigate::toolkit::window::add_toggle_button | ( | const std::string & | s | ) | throw () |
Adds a new toggle button.
s | The path of the button. |
Events
void instigate::toolkit::window::add_toggle_menu_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::add_toggle_toolbar_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::add_toolbar | ( | const std::string & | s | ) | throw () |
Adds a new toolbar.
s | The path of the toolbar. |
void instigate::toolkit::window::add_toolbar_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::add_tree | ( | const std::string & | s | ) | throw () |
Adds a new tree.
s | The path of the tree. |
void instigate::toolkit::window::add_vertical_layout | ( | const std::string & | s | ) | throw () |
Adds a new vertical box.
s | The path of the layout. |
void instigate::toolkit::window::add_vertical_paned | ( | const std::string & | s | ) | throw () |
Adds a new vertical paned.
s | The path of the paned. |
void instigate::toolkit::window::append_text | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Appends text to widget text.
s | Widget path. | |
t | Text to be set. |
void instigate::toolkit::window::clear_rows | ( | const std::string & | s | ) | throw () |
Clears all rows from the tree or list widget.
s | The path of the tree or list. |
void instigate::toolkit::window::collect_children | ( | const std::string & | s, | |
widget_children & | c | |||
) | const throw () |
Get widget children.
s | Widget path. | |
c | The vector that the children must be put in. |
void instigate::toolkit::window::create_snapshot | ( | const std::string & | n | ) | const throw () |
Creates the snapshot of the window and saves it in ".png" format.
n | - the path of the image file |
void instigate::toolkit::window::deselect_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::deselect_row | ( | const std::string & | s | ) | throw () |
Deselect the row.
s | The path of the row. |
void instigate::toolkit::window::emit_event | ( | const std::string & | n | ) | throw () |
void instigate::toolkit::window::expand_row | ( | const std::string & | s | ) | const throw () |
Opens the row so its children are visible.
s | The path of the tree view row. |
std::string instigate::toolkit::window::get_collapsed_row | ( | const std::string & | s | ) | const throw () |
Gets the path of the collapsed row of tree view.
s | The path of the tree view. |
std::string instigate::toolkit::window::get_color | ( | const std::string & | s | ) | const throw () |
Returns the color of the color button in rgb form.
s | The path of the button. |
int instigate::toolkit::window::get_current_page | ( | const std::string & | s | ) | const throw () |
Gets the notebook's current page.
s | The path of the notebook. |
int instigate::toolkit::window::get_edit_box_cursor_position | ( | const std::string & | s | ) | throw () |
Gets edit box cursor position.
s | The path of the edit box. |
std::string instigate::toolkit::window::get_event_emitter | ( | ) | const throw () |
std::string instigate::toolkit::window::get_expanded_row | ( | const std::string & | s | ) | const throw () |
Gets the path of the expanded row of tree view.
s | The path of the tree view. |
std::string instigate::toolkit::window::get_filename | ( | const std::string & | s | ) | const throw () |
Returns the selected file name.
s | The path of the dialog. |
void instigate::toolkit::window::get_group_items | ( | const std::string & | s, | |
std::vector< std::string > & | v | |||
) | throw () |
uint32_t instigate::toolkit::window::get_height | ( | const std::string & | s | ) | const throw () |
std::string instigate::toolkit::window::get_item_at | ( | const std::string & | s, | |
double | x, | |||
double | y | |||
) | const throw () |
Gets the path of the topmost item that is under the specified position.
s | The path of the canvas. | |
x | X position. | |
y | Y position. |
size_t instigate::toolkit::window::get_item_id | ( | const std::string & | s | ) | throw () |
std::string instigate::toolkit::window::get_selected_item_column | ( | const std::string & | s | ) | const throw () |
Gets the column path of the selected item.
s | The path of the tree view or list view. |
size_t instigate::toolkit::window::get_selected_item_index | ( | const std::string & | s | ) | throw () |
std::string instigate::toolkit::window::get_selected_item_text | ( | const std::string & | s | ) | const throw () |
rows instigate::toolkit::window::get_selected_rows | ( | const std::string & | s | ) | const throw () |
Gets the paths of the selected rows of tree view.
s | The path of the tree view. |
std::string instigate::toolkit::window::get_selection_mode | ( | const std::string & | s | ) | const throw () |
Gets the selection mode of the tree view.
s | The path of the tree view. |
std::string instigate::toolkit::window::get_size_policy | ( | const std::string & | s | ) | const throw () |
Gets layout size policy.
s | The path of the layout. |
std::string instigate::toolkit::window::get_text | ( | const std::string & | s | ) | const throw () |
Get widget text.
s | Widget path. |
std::string instigate::toolkit::window::get_tooltip_text | ( | const std::string & | s | ) | const throw () |
Get widget tooltip text.
s | Widget path. |
rows instigate::toolkit::window::get_tree_row_children | ( | const std::string & | s | ) | const throw () |
Gets the paths of the tree view row children.
s | The path of the tree view. |
void* instigate::toolkit::window::get_user_data | ( | const std::string & | s | ) | const throw () |
Gets a user data.
s | The path of the item. |
int instigate::toolkit::window::get_value | ( | const std::string & | s | ) | const throw () |
Gets the value of the progress bar.
s | The path of the progress bar. |
widget_type instigate::toolkit::window::get_widget_type | ( | const std::string & | s | ) | throw () |
Returns type of the specified widget.
s | - path of the widget which type should be returned |
uint32_t instigate::toolkit::window::get_width | ( | const std::string & | s | ) | const throw () |
double instigate::toolkit::window::get_x1_coordinate | ( | const std::string & | s | ) | const throw () |
double instigate::toolkit::window::get_x2_coordinate | ( | const std::string & | s | ) | const throw () |
double instigate::toolkit::window::get_y1_coordinate | ( | const std::string & | s | ) | const throw () |
double instigate::toolkit::window::get_y2_coordinate | ( | const std::string & | s | ) | const throw () |
void instigate::toolkit::window::hide | ( | const std::string & | s | ) | throw () |
Hides the widget corresponding to s.
s | The path of the widget |
bool instigate::toolkit::window::is_checked | ( | const std::string & | s | ) | const throw () |
Gets whether the corresponding widget is checked or not.
The specified widget should be one of the following:
s | The path of the widget. |
bool instigate::toolkit::window::is_exist_item_with_name | ( | const std::string & | s | ) | const throw () |
Checks existing of item(widget, canvas or canvas item) with this name.
s | The path of item(widget, canvas or canvas item). |
bool instigate::toolkit::window::is_item_exist | ( | const std::string & | s | ) | throw () |
bool instigate::toolkit::window::is_item_selected | ( | const std::string & | s | ) | throw () |
bool instigate::toolkit::window::is_selection_mode_single | ( | const std::string & | s | ) | throw () |
Indicates whether is single mode the selection mode.
s | The path of the widget. |
void instigate::toolkit::window::lower_to_bottom | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::move_cursor | ( | const std::string & | s | ) | throw () |
Move cursor of text box.
s | The path of the text box. |
void instigate::toolkit::window::move_item_by | ( | const std::string & | s, | |
double | x, | |||
double | y | |||
) | throw () |
void instigate::toolkit::window::raise_to_top | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::remove_all_handlers | ( | const std::string & | s | ) | throw () |
Remove all n handlers from s widget.
s | The path of the widget. |
void instigate::toolkit::window::remove_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::remove_widget | ( | const std::string & | s | ) | throw () |
Removes the widget.
s | The path of the widget. |
void instigate::toolkit::window::reset_canvas_zoom_factor | ( | const std::string & | s | ) | throw () |
Resets the canvas zoom factor.
s | The path of the canvas. |
void instigate::toolkit::window::resize | ( | size_t | w, | |
size_t | h | |||
) | throw () |
Resizes the main window.
w | The width to be set | |
h | The height to be set |
void instigate::toolkit::window::rotate | ( | const std::string & | s, | |
double | a | |||
) | throw () |
void instigate::toolkit::window::run_context_menu | ( | const std::string & | s | ) | throw () |
Runs the context menu.
s | The path of the menu. |
void instigate::toolkit::window::run_file_chooser_dialog | ( | const std::string & | s | ) | throw () |
Runs the file chooser dialog.
s | The path of the dialog. |
void instigate::toolkit::window::select_item | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::select_row | ( | const std::string & | s | ) | const throw () |
Sets the current keyboard focus to be at row, and selects it.
s | The path of the row. |
void instigate::toolkit::window::set_accelerator | ( | const std::string & | s, | |
const std::string & | p | |||
) | throw () |
void instigate::toolkit::window::set_action_accelerator | ( | const std::string & | s, | |
const std::string & | n | |||
) | throw () |
Set accelerator for action.
s | The action name. | |
n | Accelerator string. |
void instigate::toolkit::window::set_action_caption | ( | const std::string & | s, | |
const std::string & | n | |||
) | throw () |
Set action caption.
s | The action name. | |
n | Caption name. |
void instigate::toolkit::window::set_background_color | ( | const std::string & | s, | |
const std::string & | c | |||
) | throw () |
Sets the background color of the widget.
s | The path of the widget. | |
c | Color to be set. |
void instigate::toolkit::window::set_bold | ( | const std::string & | s, | |
bool | b | |||
) | throw () |
Sets a bold.
s | The path of the graphic context. | |
b | If b is true sets the font's style to bold, otherwise sets normal. |
void instigate::toolkit::window::set_color | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets text color.
For label, check box and notebook page widgets only.
s | Widget path. | |
t | Valid color name to be set. |
void instigate::toolkit::window::set_context | ( | const std::string & | s | ) | throw () |
Sets current context.
s | The path of the new context. |
void instigate::toolkit::window::set_current_page | ( | const std::string & | s | ) | throw () |
Sets the notebook's current page to s.
s | The path of the notebook page to be active. |
void instigate::toolkit::window::set_disable | ( | const std::string & | s | ) | throw () |
Disables the widget corresponding to s.
s | The path of the widget |
void instigate::toolkit::window::set_edit_box_cursor_position | ( | const std::string & | s, | |
int | i | |||
) | throw () |
Sets edit box cursor position.
s | The path of the edit box. | |
i | The position of edit box cursor |
void instigate::toolkit::window::set_editable | ( | const std::string & | s | ) | throw () |
Makes the widget corresponding to s editable.
s | The path of the widget. |
void instigate::toolkit::window::set_enable | ( | const std::string & | s | ) | throw () |
Enables the widget corresponding to s.
s | The path of the widget |
void instigate::toolkit::window::set_file_chooser_mode | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets the file chooser dialog mode.
s | The path of the dialog. | |
t | The mode. |
void instigate::toolkit::window::set_fill_color | ( | const std::string & | s, | |
const std::string & | c | |||
) | throw () |
Sets a fill color.
s | The path of the graphic context. | |
c | Color to be set. |
void instigate::toolkit::window::set_fill_transparency | ( | const std::string & | s, | |
int | a | |||
) | throw () |
Sets a fill transparency.
s | The path of the graphic context. | |
a | Alpha-channel, i.e. transparency.Integer alpha is specified in the range 0-255. |
void instigate::toolkit::window::set_font | ( | const std::string & | s, | |
const std::string & | f | |||
) | throw () |
Sets a font.
s | The path of the graphic context. | |
f | Font to be set. |
void instigate::toolkit::window::set_font_size | ( | const std::string & | s, | |
double | d | |||
) | throw () |
Sets a size.
s | The path of the graphic context. | |
d | Size to be set. |
void instigate::toolkit::window::set_font_style | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets text style.
For label, check box and notebook page widgets only. Currently only "bold" style is supported.
s | Widget path. | |
t | Valid style type to be set. |
void instigate::toolkit::window::set_graphic_context | ( | const std::string & | s, | |
const std::string & | c | |||
) | throw () |
void instigate::toolkit::window::set_graphic_context | ( | const std::string & | s | ) | throw () |
Sets the current graphic context.
s | The path of the graphic context. |
All items added after call of this function will be drawn with the specified graphic context.
void instigate::toolkit::window::set_html_content | ( | const std::string & | s, | |
const std::string & | h | |||
) | throw () |
Sets html content of html view.
param s Widget path
param h Html content
void instigate::toolkit::window::set_italic | ( | const std::string & | s, | |
bool | b | |||
) | throw () |
Sets a italic.
s | The path of the graphic context. | |
b | If b is true sets the font's style to italic, otherwise sets normal. |
void instigate::toolkit::window::set_language | ( | const std::string & | s, | |
const std::string & | p | |||
) | throw () |
Sets the source language of text box.
s | Path of the text box | |
p | Source language |
p
should be one of cpp, tcl, python, verilog, vhdl. void instigate::toolkit::window::set_line_color | ( | const std::string & | s, | |
const std::string & | c | |||
) | throw () |
Sets a line color.
s | The path of the graphic context. | |
c | Color to be set. |
void instigate::toolkit::window::set_line_transparency | ( | const std::string & | s, | |
int | a | |||
) | throw () |
Sets a line transparency.
s | The path of the graphic context. | |
a | Alpha-channel, i.e. transparency.Integer alpha is specified in the range 0-255. |
void instigate::toolkit::window::set_line_width | ( | const std::string & | s, | |
int | w | |||
) | throw () |
Sets line width of graphic context.
s | The path of the graphic context. | |
w | Width to be set. |
void instigate::toolkit::window::set_markup | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Set label markup.
s | The path of the label for which the markup should be set. | |
t | The markup to be set |
void instigate::toolkit::window::set_modal | ( | bool | m | ) | throw () |
Sets the window's modality.
The window is modal to a single window hierarchy and blocks input to its parent window, all grandparent windows, and all siblings of its parent and grandparent windows.
When the window is not modal, it does not block input to other windows.
m | The modality of window. |
void instigate::toolkit::window::set_multiselection_mode | ( | const std::string & | s | ) | throw () |
Set selection mode to multi selection mode of tree view widget.
s | The path of the widget. |
void instigate::toolkit::window::set_name_filter | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets the name filter onto a file chooser dialog.
s | The path of the dialog. | |
t | The filter text. |
void instigate::toolkit::window::set_paned_position | ( | const std::string & | s, | |
int | i | |||
) | throw () |
Sets the position of the dividers between panes for paned widget.
s | The path of the widget. | |
i | The pixel position. |
void instigate::toolkit::window::set_position | ( | const std::string & | s | ) | throw () |
Sets the position of the main window.
If the position is specified as "center" the window will be opened in the center of the desktop. If the position is specified as "mouse" will be opened with the mouse cursor as its center.
s | The position of the main window. |
void instigate::toolkit::window::set_read_only | ( | const std::string & | s | ) | throw () |
Makes the widget corresponding to s read only.
s | The path of the widget. |
void instigate::toolkit::window::set_selection_mode | ( | const std::string & | s, | |
const std::string & | m | |||
) | throw () |
Sets the selection mode of the tree view.
s | The path of the tree view. | |
m | Mode to be set. |
void instigate::toolkit::window::set_singleselection_mode | ( | const std::string & | s | ) | throw () |
Set selection mode to single selection mode of tree view widget.
s | The path of the widget. |
void instigate::toolkit::window::set_size_policy | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets layout size policy.
s | The path of the layout | |
t | The policy should be set. Possible values are shrink and expand. |
If t is shrink, then widget size is fixed in parent layout direction.
If t is expand, then widget size is expanding in parent layout direction.
void instigate::toolkit::window::set_spacing | ( | const std::string & | s, | |
int | t | |||
) | throw () |
Sets placement between children of box.
s | The path of the layout | |
t | The number of pixels to place between children |
void instigate::toolkit::window::set_style | ( | const std::string & | s | ) | throw () |
Sets the window's GUI style.
The possible values are "dialog", "splash_screen".
When the style of window is "dialog", it indicates that the window that should be decorated as a dialog (i.e., typically no maximize or minimize buttons in the title bar). If you want to use it as a modal dialog set_modal().
When the style of window is "splash_screen", it indicates that the window is a splash screen.
s | The style of window. |
void instigate::toolkit::window::set_syntax | ( | const std::string & | s, | |
const std::string & | l | |||
) | throw () |
Sets syntax for text box.
s | Path of the text box | |
l | language |
void instigate::toolkit::window::set_text | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Set widget text.
s | Widget path. | |
t | Text to be set. |
void instigate::toolkit::window::set_title | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets a title to the column.
s | The path of the tree column. | |
t | The title of the tree column. |
void instigate::toolkit::window::set_tooltip_text | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets widget tooltip text.
s | Widget path. | |
t | Text to be set. |
void instigate::toolkit::window::set_user_data | ( | const std::string & | s, | |
void * | d | |||
) | throw () |
Sets a user data.
s | The path of the item. | |
d | Data to be set. |
void instigate::toolkit::window::set_value | ( | const std::string & | s, | |
bool | t | |||
) | throw () |
Sets the boolean value to check box widget.
s | Widget path. | |
t | Boolean parameter defining whether s is checked or not. |
void instigate::toolkit::window::set_value | ( | const std::string & | s, | |
int | v | |||
) | throw () |
Sets integer value of the widget. Integer values can be set to the following widgets:
s | Widget path. | |
v | Value to be set. |
void instigate::toolkit::window::set_value | ( | const std::string & | s, | |
const char * | t | |||
) | throw () |
Sets text value of the widget.
The method cannot be overloaded with bool and string values, because string is implicitly converted to bool. To workaround this problem, following function is provided.
void instigate::toolkit::window::set_value | ( | const std::string & | s, | |
const std::string & | t | |||
) | throw () |
Sets text value of the widget. Text values can be set to the following widgets:
s | Widget path. | |
t | Value to be set. |
void instigate::toolkit::window::set_x1_coordinate | ( | const std::string & | s, | |
double | c | |||
) | throw () |
void instigate::toolkit::window::set_x2_coordinate | ( | const std::string & | s, | |
double | c | |||
) | throw () |
void instigate::toolkit::window::set_y1_coordinate | ( | const std::string & | s, | |
double | c | |||
) | throw () |
void instigate::toolkit::window::set_y2_coordinate | ( | const std::string & | s, | |
double | c | |||
) | throw () |
void instigate::toolkit::window::show | ( | const std::string & | s | ) | throw () |
Shows the widget corresponding to s.
s | The path of the widget. |
void instigate::toolkit::window::toggle_selection | ( | const std::string & | s | ) | throw () |
void instigate::toolkit::window::zoom | ( | const std::string & | s, | |
double | a, | |||
double | b | |||
) | throw () |
Zoom item on canvas.
Multiplies the sizes of item by given factors. After zooming the top-left coordinate of the item remains the same. Zooming out will take place in case if less than 1 coefficients are given.
s | The unique name of image | |
a | The coefficient of horizontal zooming | |
b | The coefficient of vertical zooming |
void instigate::toolkit::window::zoom_canvas | ( | const std::string & | s, | |
double | f | |||
) | throw () |
Zoom canvas by the zoom factor.
s | The path of the canvas. | |
f | Zoom factor. |