Beispiel #1
0
		public static void AddTo(Eto.Generator g)
		{
			// Drawing
			g.Add<IBitmap>(() => new TestBitmapHandler());
			g.Add<IFont>(() => new TestFontHandler()); 
			g.Add<IGraphics>(() => new TestGraphicsHandler()); 
			g.Add<IMatrixHandler>(() => new TestMatrixHandler());

			g.Add<IGridView>(() => new TestGridViewHandler());
		}
Beispiel #2
0
		public static void AddTo(Eto.Platform p)
		{
			// Drawing
			p.Add<Bitmap.IHandler>(() => new BitmapHandler());
			p.Add<FontFamily.IHandler>(() => new FontFamilyHandler());
			p.Add<Font.IHandler>(() => new FontHandler());
			p.Add<Fonts.IHandler>(() => new FontsHandler());
			p.Add<Graphics.IHandler>(() => new GraphicsHandler());
			p.Add<GraphicsPath.IHandler>(() => new GraphicsPathHandler());
			p.Add<Icon.IHandler>(() => new IconHandler());
			p.Add<IndexedBitmap.IHandler>(() => new IndexedBitmapHandler());
			p.Add<Matrix.IHandler>(() => new MatrixHandler());
			p.Add<Pen.IHandler>(() => new PenHandler());
			p.Add<SolidBrush.IHandler>(() => new SolidBrushHandler());
			p.Add<TextureBrush.IHandler>(() => new TextureBrushHandler());
			p.Add<LinearGradientBrush.IHandler>(() => new LinearGradientBrushHandler());

			// Forms.Cells
			p.Add<CheckBoxCell.IHandler>(() => new CheckBoxCellHandler());
			p.Add<ComboBoxCell.IHandler>(() => new ComboBoxCellHandler());
			p.Add<ImageTextCell.IHandler>(() => new ImageTextCellHandler());
			p.Add<ImageViewCell.IHandler>(() => new ImageViewCellHandler());
			p.Add<TextBoxCell.IHandler>(() => new TextBoxCellHandler());
			p.Add<DrawableCell.IHandler>(() => new DrawableCellHandler());

			// Forms.Controls
			p.Add<Button.IHandler>(() => new ButtonHandler());
			p.Add<Calendar.IHandler>(() => new CalendarHandler());
			p.Add<CheckBox.IHandler>(() => new CheckBoxHandler());
			p.Add<DropDown.IHandler>(() => new DropDownHandler());
			p.Add<ComboBox.IHandler>(() => new ComboBoxHandler());
			p.Add<ColorPicker.IHandler>(() => new ColorPickerHandler());
			p.Add<DateTimePicker.IHandler>(() => new DateTimePickerHandler());
			p.Add<Drawable.IHandler>(() => new DrawableHandler());
			p.Add<GridColumn.IHandler>(() => new GridColumnHandler());
			p.Add<GridView.IHandler>(() => new GridViewHandler());
			p.Add<GroupBox.IHandler>(() => new GroupBoxHandler());
			p.Add<ImageView.IHandler>(() => new ImageViewHandler());
			p.Add<Label.IHandler>(() => new LabelHandler());
			p.Add<LinkButton.IHandler>(() => new LinkButtonHandler());
			p.Add<ListBox.IHandler>(() => new ListBoxHandler());
			p.Add<NumericUpDown.IHandler>(() => new NumericUpDownHandler());
			p.Add<Panel.IHandler>(() => new PanelHandler());
			p.Add<PasswordBox.IHandler>(() => new PasswordBoxHandler());
			p.Add<ProgressBar.IHandler>(() => new ProgressBarHandler());
			p.Add<RadioButton.IHandler>(() => new RadioButtonHandler());
			p.Add<Scrollable.IHandler>(() => new ScrollableHandler());
			p.Add<SearchBox.IHandler>(() => new SearchBoxHandler());
			p.Add<Slider.IHandler>(() => new SliderHandler());
			#if GTK3
			p.Add<Spinner.IHandler>(() => new SpinnerHandler());
			#else
			p.Add<Spinner.IHandler>(() => new ThemedSpinnerHandler());
			#endif
			p.Add<Splitter.IHandler>(() => new SplitterHandler());
			p.Add<TabControl.IHandler>(() => new TabControlHandler());
			p.Add<TabPage.IHandler>(() => new TabPageHandler());
			p.Add<TextArea.IHandler>(() => new TextAreaHandler());
			p.Add<TextBox.IHandler>(() => new TextBoxHandler());
			p.Add<TreeGridView.IHandler>(() => new TreeGridViewHandler());
			p.Add<TreeView.IHandler>(() => new TreeViewHandler());
			p.Add<WebView.IHandler>(() => new WebViewHandler());
			p.Add<Screen.IScreensHandler>(() => new ScreensHandler());
			
			// Forms.Menu
			p.Add<CheckMenuItem.IHandler>(() => new CheckMenuItemHandler());
			p.Add<ContextMenu.IHandler>(() => new ContextMenuHandler());
			p.Add<ButtonMenuItem.IHandler>(() => new ButtonMenuItemHandler());
			p.Add<MenuBar.IHandler>(() => new MenuBarHandler());
			p.Add<RadioMenuItem.IHandler>(() => new RadioMenuItemHandler());
			p.Add<SeparatorMenuItem.IHandler>(() => new SeparatorMenuItemHandler());
			
			// Forms.Printing
			p.Add<PrintDialog.IHandler>(() => new PrintDialogHandler());
			p.Add<PrintDocument.IHandler>(() => new PrintDocumentHandler());
			p.Add<PrintSettings.IHandler>(() => new PrintSettingsHandler());
			
			// Forms.ToolBar
			p.Add<CheckToolItem.IHandler>(() => new CheckToolItemHandler());
			p.Add<RadioToolItem.IHandler>(() => new RadioToolItemHandler());
			p.Add<SeparatorToolItem.IHandler>(() => new SeparatorToolItemHandler());
			p.Add<ButtonToolItem.IHandler>(() => new ButtonToolItemHandler());
			p.Add<ToolBar.IHandler>(() => new ToolBarHandler());

			// Forms
			p.Add<Application.IHandler>(() => new ApplicationHandler());
			p.Add<Clipboard.IHandler>(() => new ClipboardHandler());
			p.Add<ColorDialog.IHandler>(() => new ColorDialogHandler());
			p.Add<Cursor.IHandler>(() => new CursorHandler());
			p.Add<Dialog.IHandler>(() => new DialogHandler());
			p.Add<FontDialog.IHandler>(() => new FontDialogHandler());
			p.Add<Form.IHandler>(() => new FormHandler());
			p.Add<MessageBox.IHandler>(() => new MessageBoxHandler());
			p.Add<OpenFileDialog.IHandler>(() => new OpenFileDialogHandler());
			p.Add<PixelLayout.IHandler>(() => new PixelLayoutHandler());
			p.Add<SaveFileDialog.IHandler>(() => new SaveFileDialogHandler());
			p.Add<SelectFolderDialog.IHandler>(() => new SelectFolderDialogHandler());
			p.Add<TableLayout.IHandler>(() => new TableLayoutHandler());
			p.Add<UITimer.IHandler>(() => new UITimerHandler());
			p.Add<Mouse.IHandler>(() => new MouseHandler());

			// IO
			p.Add<SystemIcons.IHandler>(() => new SystemIconsHandler());

			// General
			p.Add<EtoEnvironment.IHandler>(() => new EtoEnvironmentHandler());
		}
Beispiel #3
0
		public static new void AddTo(Eto.Platform p)
		{
			// Drawing
			p.Add<Bitmap.IHandler>(() => new BitmapHandler());
			p.Add<FontFamily.IHandler>(() => new FontFamilyHandler());
			p.Add<Font.IHandler>(() => new FontHandler());
			p.Add<Fonts.IHandler>(() => new FontsHandler());
			p.Add<Graphics.IHandler>(() => new GraphicsHandler());
			p.Add<GraphicsPath.IHandler>(() => new GraphicsPathHandler());
			p.Add<Icon.IHandler>(() => new IconHandler());
			p.Add<IndexedBitmap.IHandler>(() => new IndexedBitmapHandler());
			p.Add<Matrix.IHandler>(() => new MatrixHandler());
			p.Add<Pen.IHandler>(() => new PenHandler());
			p.Add<SolidBrush.IHandler>(() => new SolidBrushHandler());
			p.Add<TextureBrush.IHandler>(() => new TextureBrushHandler());
			p.Add<LinearGradientBrush.IHandler>(() => new LinearGradientBrushHandler());
			p.Add<RadialGradientBrush.IHandler>(() => new RadialGradientBrushHandler());

			// Forms.Cells
			p.Add<Drawable.IHandler>(() => new DrawableHandler());

			// Forms.Printing
			p.Add<PrintDocument.IHandler>(() => new PrintDocumentHandler());
		}
Beispiel #4
0
		public static void AddTo(Eto.Generator g)
		{
			// Drawing
			g.Add<IBitmap>(() => new BitmapHandler());
			g.Add<IFontFamily>(() => new FontFamilyHandler());
			g.Add<IFont>(() => new FontHandler());
			g.Add<IFonts>(() => new FontsHandler());
			g.Add<IGraphics>(() => new GraphicsHandler());
			g.Add<IGraphicsPathHandler>(() => new GraphicsPathHandler());
			g.Add<IIcon>(() => new IconHandler());
			g.Add<IIndexedBitmap>(() => new IndexedBitmapHandler());
			g.Add<IMatrixHandler>(() => new MatrixHandler());
			g.Add<IPen>(() => new PenHandler());
			g.Add<ISolidBrush>(() => new SolidBrushHandler());
			g.Add<ITextureBrush>(() => new TextureBrushHandler());
			g.Add<ILinearGradientBrush>(() => new LinearGradientBrushHandler());

			// Forms.Cells
			g.Add<ICheckBoxCell>(() => new CheckBoxCellHandler());
			g.Add<IComboBoxCell>(() => new ComboBoxCellHandler());
			g.Add<IImageTextCell>(() => new ImageTextCellHandler());
			g.Add<IImageViewCell>(() => new ImageViewCellHandler());
			g.Add<ITextBoxCell>(() => new TextBoxCellHandler());
			
			// Forms.Controls
			g.Add<IButton>(() => new ButtonHandler());
			g.Add<ICheckBox>(() => new CheckBoxHandler());
			g.Add<IComboBox>(() => new ComboBoxHandler());
			g.Add<IDateTimePicker>(() => new DateTimePickerHandler());
			g.Add<IDrawable>(() => new DrawableHandler());
			g.Add<IGridColumn>(() => new GridColumnHandler());
			g.Add<IGridView>(() => new GridViewHandler());
			g.Add<IGroupBox>(() => new GroupBoxHandler());
			g.Add<IImageView>(() => new ImageViewHandler());
			g.Add<ILabel>(() => new LabelHandler());
			g.Add<IListBox>(() => new ListBoxHandler());
			g.Add<INumericUpDown>(() => new NumericUpDownHandler());
			g.Add<IPanel>(() => new PanelHandler());
			g.Add<IPasswordBox>(() => new PasswordBoxHandler());
			g.Add<IProgressBar>(() => new ProgressBarHandler());
			g.Add<IRadioButton>(() => new RadioButtonHandler());
			g.Add<ISearchBox>(() => new SearchBoxHandler());
			g.Add<IScrollable>(() => new ScrollableHandler());
			g.Add<ISlider>(() => new SliderHandler());
			g.Add<ISpinner>(() => new ThemedSpinnerHandler());
			g.Add<ISplitter>(() => new SplitterHandler());
			g.Add<ITabControl>(() => new TabControlHandler());
			g.Add<ITabPage>(() => new TabPageHandler());
			g.Add<ITextArea>(() => new TextAreaHandler());
			g.Add<ITextBox>(() => new TextBoxHandler());
			g.Add<ITreeGridView>(() => new TreeGridViewHandler());
			g.Add<ITreeView>(() => new TreeViewHandler());
			//g.Add<IWebView> (() => new WebViewHandler ());
			g.Add<IScreens>(() => new ScreensHandler());
			
			// Forms.Menu
			g.Add<ICheckMenuItem>(() => new CheckMenuItemHandler());
			g.Add<IContextMenu>(() => new ContextMenuHandler());
			g.Add<IButtonMenuItem>(() => new ButtonMenuItemHandler());
			g.Add<IMenuBar>(() => new MenuBarHandler());
			g.Add<IRadioMenuItem>(() => new RadioMenuItemHandler());
			g.Add<ISeparatorMenuItem>(() => new SeparatorMenuItemHandler());
			
			// Forms.Printing
			g.Add<IPrintDialog>(() => new PrintDialogHandler());
			g.Add<IPrintDocument>(() => new PrintDocumentHandler());
			g.Add<IPrintSettings>(() => new PrintSettingsHandler());
			
			// Forms.ToolBar
			g.Add<ICheckToolItem>(() => new CheckToolItemHandler());
			g.Add<ISeparatorToolItem>(() => new SeparatorToolItemHandler());
			g.Add<IButtonToolItem>(() => new ButtonToolItemHandler());
			g.Add<IToolBar>(() => new ToolBarHandler());
			
			// Forms
			g.Add<IApplication>(() => new ApplicationHandler());
			g.Add<IClipboard>(() => new ClipboardHandler());
			g.Add<IColorDialog>(() => new ColorDialogHandler());
			g.Add<ICursor>(() => new CursorHandler());
			g.Add<IDialog>(() => new DialogHandler());
			g.Add<IFontDialog>(() => new FontDialogHandler());
			g.Add<IForm>(() => new FormHandler());
			g.Add<IMessageBox>(() => new MessageBoxHandler());
			g.Add<IOpenFileDialog>(() => new OpenFileDialogHandler());
			g.Add<IPixelLayout>(() => new PixelLayoutHandler());
			g.Add<ISaveFileDialog>(() => new SaveFileDialogHandler());
			g.Add<ISelectFolderDialog>(() => new SelectFolderDialogHandler());
			g.Add<ITableLayout>(() => new TableLayoutHandler());
			g.Add<IUITimer>(() => new UITimerHandler());
			g.Add<IMouse>(() => new MouseHandler());
			
			// IO
			g.Add<ISystemIcons>(() => new SystemIconsHandler());
			
			// General
			g.Add<IEtoEnvironment>(() => new EtoEnvironmentHandler());
		}
Beispiel #5
0
		public static new void AddTo(Eto.Generator g)
		{
			// Drawing
			g.Add<IBitmap>(() => new BitmapHandler());
			g.Add<IFontFamily>(() => new FontFamilyHandler());
			g.Add<IFont>(() => new FontHandler());
			g.Add<IFonts>(() => new FontsHandler());
			g.Add<IGraphics>(() => new GraphicsHandler());
			g.Add<IGraphicsPathHandler>(() => new GraphicsPathHandler());
			g.Add<IIcon>(() => new IconHandler());
			g.Add<IIndexedBitmap>(() => new IndexedBitmapHandler());
			g.Add<IMatrixHandler>(() => new MatrixHandler());
			g.Add<IPen>(() => new PenHandler());
			g.Add<ISolidBrush>(() => new SolidBrushHandler());
			g.Add<ITextureBrush>(() => new TextureBrushHandler());
			g.Add<ILinearGradientBrush>(() => new LinearGradientBrushHandler());

			// Forms.Cells
			g.Add<IDrawable>(() => new DrawableHandler());

			// Forms.Printing
			g.Add<IPrintDocument>(() => new PrintDocumentHandler());
		}
Beispiel #6
0
		public static void AddTo(Eto.Platform p)
		{
			p.Add<Application.IHandler>(() => new TestApplicationHandler());

			// Drawing
			p.Add<Bitmap.IHandler>(() => new TestBitmapHandler());
			p.Add<Font.IHandler>(() => new TestFontHandler()); 
			p.Add<Graphics.IHandler>(() => new TestGraphicsHandler()); 
			p.Add<Matrix.IHandler>(() => new TestMatrixHandler());

			// Cells
			p.Add<TextBoxCell.IHandler>(() => new TestTextBoxCellHandler());

			// Controls
			p.Add<GridView.IHandler>(() => new TestGridViewHandler());
			p.Add<GridColumn.IHandler>(() => new TestGridColumnHandler());
			p.Add<Label.IHandler>(() => new TestLabelHandler());
			p.Add<TextBox.IHandler>(() => new TestTextBoxHandler());
			p.Add<Calendar.IHandler>(() => new TestCalendarHandler());

			p.Add<TableLayout.IHandler>(() => new TestTableLayoutHandler());
			p.Add<Form.IHandler>(() => new TestFormHandler());
			p.Add<Panel.IHandler>(() => new TestPanelHandler());
			p.Add<Drawable.IHandler>(() => new TestDrawableHandler());
		}