From a181c06152a3c935fdf63659322020fb7625b577 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 16 Feb 2012 11:04:18 +0100 Subject: [wx] Generated types for all wx classes --- lib/wx/src/gen/wxGrid.erl | 772 ++++++++++++++++++++++++++++++---------------- 1 file changed, 498 insertions(+), 274 deletions(-) (limited to 'lib/wx/src/gen/wxGrid.erl') diff --git a/lib/wx/src/gen/wxGrid.erl b/lib/wx/src/gen/wxGrid.erl index 531fed05c1..ab4ec3a44a 100644 --- a/lib/wx/src/gen/wxGrid.erl +++ b/lib/wx/src/gen/wxGrid.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2011. All Rights Reserved. +%% Copyright Ericsson AB 2008-2012. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -125,6 +125,7 @@ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2, validate/1,warpPointer/3]). +-export_type([wxGrid/0]). %% @hidden parent_class(wxScrolledWindow) -> true; parent_class(wxPanel) -> true; @@ -132,27 +133,29 @@ parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxGrid() +-type wxGrid() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxGrid(). new() -> wxe_util:construct(?wxGrid_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxGrid() %% @equiv new(Parent,Id, []) +-spec new(Parent, Id) -> wxGrid() when + Parent::wxWindow:wxWindow(), Id::integer(). + new(Parent,Id) when is_record(Parent, wx_ref),is_integer(Id) -> new(Parent,Id, []). -%% @spec (Parent::wxWindow:wxWindow(),X::integer(),X::integer()|term()) -> wxGrid() %% @doc See external documentation. -%%
Alternatives: -%%

-%% new(Parent::wxWindow:wxWindow(), X::integer(), Y::integer()) -> new(Parent,X,Y, [])

-%%

-%% new(Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxGrid() -%%
Option = {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} -%%

+-spec new(Parent, X, Y) -> wxGrid() when + Parent::wxWindow:wxWindow(), X::integer(), Y::integer(); + (Parent, Id, [Option]) -> wxGrid() when + Parent::wxWindow:wxWindow(), Id::integer(), + Option :: {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. new(Parent,X,Y) when is_record(Parent, wx_ref),is_integer(X),is_integer(Y) -> @@ -168,9 +171,12 @@ new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options) wxe_util:construct(?wxGrid_new_3, <>). -%% @spec (Parent::wxWindow:wxWindow(), X::integer(), Y::integer(), [Option]) -> wxGrid() -%% Option = {w, integer()} | {h, integer()} | {style, integer()} %% @doc See external documentation. +-spec new(Parent, X, Y, [Option]) -> wxGrid() when + Parent::wxWindow:wxWindow(), X::integer(), Y::integer(), + Option :: {w, integer()} + | {h, integer()} + | {style, integer()}. new(#wx_ref{type=ParentT,ref=ParentRef},X,Y, Options) when is_integer(X),is_integer(Y),is_list(Options) -> ?CLASS(ParentT,wxWindow), @@ -182,15 +188,19 @@ new(#wx_ref{type=ParentT,ref=ParentRef},X,Y, Options) wxe_util:construct(?wxGrid_new_4, <>). -%% @spec (This::wxGrid()) -> bool() %% @equiv appendCols(This, []) +-spec appendCols(This) -> boolean() when + This::wxGrid(). + appendCols(This) when is_record(This, wx_ref) -> appendCols(This, []). -%% @spec (This::wxGrid(), [Option]) -> bool() -%% Option = {numCols, integer()} | {updateLabels, bool()} %% @doc See external documentation. +-spec appendCols(This, [Option]) -> boolean() when + This::wxGrid(), + Option :: {numCols, integer()} + | {updateLabels, boolean()}. appendCols(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -201,15 +211,19 @@ appendCols(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxGrid_AppendCols, <>). -%% @spec (This::wxGrid()) -> bool() %% @equiv appendRows(This, []) +-spec appendRows(This) -> boolean() when + This::wxGrid(). + appendRows(This) when is_record(This, wx_ref) -> appendRows(This, []). -%% @spec (This::wxGrid(), [Option]) -> bool() -%% Option = {numRows, integer()} | {updateLabels, bool()} %% @doc See external documentation. +-spec appendRows(This, [Option]) -> boolean() when + This::wxGrid(), + Option :: {numRows, integer()} + | {updateLabels, boolean()}. appendRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -220,22 +234,26 @@ appendRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxGrid_AppendRows, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec autoSize(This) -> ok when + This::wxGrid(). autoSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_AutoSize, <>). -%% @spec (This::wxGrid(), Col::integer()) -> ok %% @equiv autoSizeColumn(This,Col, []) +-spec autoSizeColumn(This, Col) -> ok when + This::wxGrid(), Col::integer(). + autoSizeColumn(This,Col) when is_record(This, wx_ref),is_integer(Col) -> autoSizeColumn(This,Col, []). -%% @spec (This::wxGrid(), Col::integer(), [Option]) -> ok -%% Option = {setAsMin, bool()} %% @doc See external documentation. +-spec autoSizeColumn(This, Col, [Option]) -> ok when + This::wxGrid(), Col::integer(), + Option :: {setAsMin, boolean()}. autoSizeColumn(#wx_ref{type=ThisT,ref=ThisRef},Col, Options) when is_integer(Col),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -245,15 +263,18 @@ autoSizeColumn(#wx_ref{type=ThisT,ref=ThisRef},Col, Options) wxe_util:cast(?wxGrid_AutoSizeColumn, <>). -%% @spec (This::wxGrid()) -> ok %% @equiv autoSizeColumns(This, []) +-spec autoSizeColumns(This) -> ok when + This::wxGrid(). + autoSizeColumns(This) when is_record(This, wx_ref) -> autoSizeColumns(This, []). -%% @spec (This::wxGrid(), [Option]) -> ok -%% Option = {setAsMin, bool()} %% @doc See external documentation. +-spec autoSizeColumns(This, [Option]) -> ok when + This::wxGrid(), + Option :: {setAsMin, boolean()}. autoSizeColumns(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -263,15 +284,18 @@ autoSizeColumns(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGrid_AutoSizeColumns, <>). -%% @spec (This::wxGrid(), Row::integer()) -> ok %% @equiv autoSizeRow(This,Row, []) +-spec autoSizeRow(This, Row) -> ok when + This::wxGrid(), Row::integer(). + autoSizeRow(This,Row) when is_record(This, wx_ref),is_integer(Row) -> autoSizeRow(This,Row, []). -%% @spec (This::wxGrid(), Row::integer(), [Option]) -> ok -%% Option = {setAsMin, bool()} %% @doc See external documentation. +-spec autoSizeRow(This, Row, [Option]) -> ok when + This::wxGrid(), Row::integer(), + Option :: {setAsMin, boolean()}. autoSizeRow(#wx_ref{type=ThisT,ref=ThisRef},Row, Options) when is_integer(Row),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -281,15 +305,18 @@ autoSizeRow(#wx_ref{type=ThisT,ref=ThisRef},Row, Options) wxe_util:cast(?wxGrid_AutoSizeRow, <>). -%% @spec (This::wxGrid()) -> ok %% @equiv autoSizeRows(This, []) +-spec autoSizeRows(This) -> ok when + This::wxGrid(). + autoSizeRows(This) when is_record(This, wx_ref) -> autoSizeRows(This, []). -%% @spec (This::wxGrid(), [Option]) -> ok -%% Option = {setAsMin, bool()} %% @doc See external documentation. +-spec autoSizeRows(This, [Option]) -> ok when + This::wxGrid(), + Option :: {setAsMin, boolean()}. autoSizeRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -299,90 +326,102 @@ autoSizeRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGrid_AutoSizeRows, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec beginBatch(This) -> ok when + This::wxGrid(). beginBatch(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_BeginBatch, <>). -%% @spec (This::wxGrid(), TopLeft::{R::integer(), C::integer()}, BottomRight::{R::integer(), C::integer()}) -> {X::integer(), Y::integer(), W::integer(), H::integer()} %% @doc See external documentation. +-spec blockToDeviceRect(This, TopLeft, BottomRight) -> {X::integer(), Y::integer(), W::integer(), H::integer()} when + This::wxGrid(), TopLeft::{R::integer(), C::integer()}, BottomRight::{R::integer(), C::integer()}. blockToDeviceRect(#wx_ref{type=ThisT,ref=ThisRef},{TopLeftR,TopLeftC},{BottomRightR,BottomRightC}) when is_integer(TopLeftR),is_integer(TopLeftC),is_integer(BottomRightR),is_integer(BottomRightC) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_BlockToDeviceRect, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec canDragColSize(This) -> boolean() when + This::wxGrid(). canDragColSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_CanDragColSize, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec canDragRowSize(This) -> boolean() when + This::wxGrid(). canDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_CanDragRowSize, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec canDragGridSize(This) -> boolean() when + This::wxGrid(). canDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_CanDragGridSize, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec canEnableCellControl(This) -> boolean() when + This::wxGrid(). canEnableCellControl(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_CanEnableCellControl, <>). -%% @spec (This::wxGrid(), Coords::{R::integer(), C::integer()}) -> {X::integer(), Y::integer(), W::integer(), H::integer()} %% @doc See external documentation. +-spec cellToRect(This, Coords) -> {X::integer(), Y::integer(), W::integer(), H::integer()} when + This::wxGrid(), Coords::{R::integer(), C::integer()}. cellToRect(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC}) when is_integer(CoordsR),is_integer(CoordsC) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_CellToRect_1, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> {X::integer(), Y::integer(), W::integer(), H::integer()} %% @doc See external documentation. +-spec cellToRect(This, Row, Col) -> {X::integer(), Y::integer(), W::integer(), H::integer()} when + This::wxGrid(), Row::integer(), Col::integer(). cellToRect(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_CellToRect_2, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec clearGrid(This) -> ok when + This::wxGrid(). clearGrid(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_ClearGrid, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec clearSelection(This) -> ok when + This::wxGrid(). clearSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_ClearSelection, <>). -%% @spec (This::wxGrid(), NumRows::integer(), NumCols::integer()) -> bool() %% @equiv createGrid(This,NumRows,NumCols, []) +-spec createGrid(This, NumRows, NumCols) -> boolean() when + This::wxGrid(), NumRows::integer(), NumCols::integer(). + createGrid(This,NumRows,NumCols) when is_record(This, wx_ref),is_integer(NumRows),is_integer(NumCols) -> createGrid(This,NumRows,NumCols, []). -%% @spec (This::wxGrid(), NumRows::integer(), NumCols::integer(), [Option]) -> bool() -%% Option = {selmode, WxGridSelectionModes} -%% WxGridSelectionModes = integer() %% @doc See external documentation. -%%
WxGridSelectionModes is one of ?wxGrid_wxGridSelectCells | ?wxGrid_wxGridSelectRows | ?wxGrid_wxGridSelectColumns +%%
Selmode = ?wxGrid_wxGridSelectCells | ?wxGrid_wxGridSelectRows | ?wxGrid_wxGridSelectColumns +-spec createGrid(This, NumRows, NumCols, [Option]) -> boolean() when + This::wxGrid(), NumRows::integer(), NumCols::integer(), + Option :: {selmode, wx:wx_enum()}. createGrid(#wx_ref{type=ThisT,ref=ThisRef},NumRows,NumCols, Options) when is_integer(NumRows),is_integer(NumCols),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -392,15 +431,20 @@ createGrid(#wx_ref{type=ThisT,ref=ThisRef},NumRows,NumCols, Options) wxe_util:call(?wxGrid_CreateGrid, <>). -%% @spec (This::wxGrid()) -> bool() %% @equiv deleteCols(This, []) +-spec deleteCols(This) -> boolean() when + This::wxGrid(). + deleteCols(This) when is_record(This, wx_ref) -> deleteCols(This, []). -%% @spec (This::wxGrid(), [Option]) -> bool() -%% Option = {pos, integer()} | {numCols, integer()} | {updateLabels, bool()} %% @doc See external documentation. +-spec deleteCols(This, [Option]) -> boolean() when + This::wxGrid(), + Option :: {pos, integer()} + | {numCols, integer()} + | {updateLabels, boolean()}. deleteCols(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -412,15 +456,20 @@ deleteCols(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxGrid_DeleteCols, <>). -%% @spec (This::wxGrid()) -> bool() %% @equiv deleteRows(This, []) +-spec deleteRows(This) -> boolean() when + This::wxGrid(). + deleteRows(This) when is_record(This, wx_ref) -> deleteRows(This, []). -%% @spec (This::wxGrid(), [Option]) -> bool() -%% Option = {pos, integer()} | {numRows, integer()} | {updateLabels, bool()} %% @doc See external documentation. +-spec deleteRows(This, [Option]) -> boolean() when + This::wxGrid(), + Option :: {pos, integer()} + | {numRows, integer()} + | {updateLabels, boolean()}. deleteRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -432,43 +481,50 @@ deleteRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxGrid_DeleteRows, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec disableCellEditControl(This) -> ok when + This::wxGrid(). disableCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_DisableCellEditControl, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec disableDragColSize(This) -> ok when + This::wxGrid(). disableDragColSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_DisableDragColSize, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec disableDragGridSize(This) -> ok when + This::wxGrid(). disableDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_DisableDragGridSize, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec disableDragRowSize(This) -> ok when + This::wxGrid(). disableDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_DisableDragRowSize, <>). -%% @spec (This::wxGrid()) -> ok %% @equiv enableCellEditControl(This, []) +-spec enableCellEditControl(This) -> ok when + This::wxGrid(). + enableCellEditControl(This) when is_record(This, wx_ref) -> enableCellEditControl(This, []). -%% @spec (This::wxGrid(), [Option]) -> ok -%% Option = {enable, bool()} %% @doc See external documentation. +-spec enableCellEditControl(This, [Option]) -> ok when + This::wxGrid(), + Option :: {enable, boolean()}. enableCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -478,15 +534,18 @@ enableCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGrid_EnableCellEditControl, <>). -%% @spec (This::wxGrid()) -> ok %% @equiv enableDragColSize(This, []) +-spec enableDragColSize(This) -> ok when + This::wxGrid(). + enableDragColSize(This) when is_record(This, wx_ref) -> enableDragColSize(This, []). -%% @spec (This::wxGrid(), [Option]) -> ok -%% Option = {enable, bool()} %% @doc See external documentation. +-spec enableDragColSize(This, [Option]) -> ok when + This::wxGrid(), + Option :: {enable, boolean()}. enableDragColSize(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -496,15 +555,18 @@ enableDragColSize(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGrid_EnableDragColSize, <>). -%% @spec (This::wxGrid()) -> ok %% @equiv enableDragGridSize(This, []) +-spec enableDragGridSize(This) -> ok when + This::wxGrid(). + enableDragGridSize(This) when is_record(This, wx_ref) -> enableDragGridSize(This, []). -%% @spec (This::wxGrid(), [Option]) -> ok -%% Option = {enable, bool()} %% @doc See external documentation. +-spec enableDragGridSize(This, [Option]) -> ok when + This::wxGrid(), + Option :: {enable, boolean()}. enableDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -514,15 +576,18 @@ enableDragGridSize(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGrid_EnableDragGridSize, <>). -%% @spec (This::wxGrid()) -> ok %% @equiv enableDragRowSize(This, []) +-spec enableDragRowSize(This) -> ok when + This::wxGrid(). + enableDragRowSize(This) when is_record(This, wx_ref) -> enableDragRowSize(This, []). -%% @spec (This::wxGrid(), [Option]) -> ok -%% Option = {enable, bool()} %% @doc See external documentation. +-spec enableDragRowSize(This, [Option]) -> ok when + This::wxGrid(), + Option :: {enable, boolean()}. enableDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -532,23 +597,27 @@ enableDragRowSize(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGrid_EnableDragRowSize, <>). -%% @spec (This::wxGrid(), Edit::bool()) -> ok %% @doc See external documentation. +-spec enableEditing(This, Edit) -> ok when + This::wxGrid(), Edit::boolean(). enableEditing(#wx_ref{type=ThisT,ref=ThisRef},Edit) when is_boolean(Edit) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_EnableEditing, <>). -%% @spec (This::wxGrid()) -> ok %% @equiv enableGridLines(This, []) +-spec enableGridLines(This) -> ok when + This::wxGrid(). + enableGridLines(This) when is_record(This, wx_ref) -> enableGridLines(This, []). -%% @spec (This::wxGrid(), [Option]) -> ok -%% Option = {enable, bool()} %% @doc See external documentation. +-spec enableGridLines(This, [Option]) -> ok when + This::wxGrid(), + Option :: {enable, boolean()}. enableGridLines(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -558,194 +627,220 @@ enableGridLines(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGrid_EnableGridLines, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec endBatch(This) -> ok when + This::wxGrid(). endBatch(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_EndBatch, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec fit(This) -> ok when + This::wxGrid(). fit(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_Fit, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec forceRefresh(This) -> ok when + This::wxGrid(). forceRefresh(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_ForceRefresh, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getBatchCount(This) -> integer() when + This::wxGrid(). getBatchCount(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetBatchCount, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> {Horiz::integer(), Vert::integer()} %% @doc See external documentation. +-spec getCellAlignment(This, Row, Col) -> {Horiz::integer(), Vert::integer()} when + This::wxGrid(), Row::integer(), Col::integer(). getCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellAlignment, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wx:colour() %% @doc See external documentation. +-spec getCellBackgroundColour(This, Row, Col) -> wx:wx_colour() when + This::wxGrid(), Row::integer(), Col::integer(). getCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellBackgroundColour, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor() %% @doc See external documentation. +-spec getCellEditor(This, Row, Col) -> wxGridCellEditor:wxGridCellEditor() when + This::wxGrid(), Row::integer(), Col::integer(). getCellEditor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellEditor, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxFont:wxFont() %% @doc See external documentation. +-spec getCellFont(This, Row, Col) -> wxFont:wxFont() when + This::wxGrid(), Row::integer(), Col::integer(). getCellFont(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellFont, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer() %% @doc See external documentation. +-spec getCellRenderer(This, Row, Col) -> wxGridCellRenderer:wxGridCellRenderer() when + This::wxGrid(), Row::integer(), Col::integer(). getCellRenderer(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellRenderer, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wx:colour() %% @doc See external documentation. +-spec getCellTextColour(This, Row, Col) -> wx:wx_colour() when + This::wxGrid(), Row::integer(), Col::integer(). getCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellTextColour, <>). -%% @spec (This::wxGrid(), Coords::{R::integer(), C::integer()}) -> string() %% @doc See external documentation. +-spec getCellValue(This, Coords) -> string() when + This::wxGrid(), Coords::{R::integer(), C::integer()}. getCellValue(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC}) when is_integer(CoordsR),is_integer(CoordsC) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellValue_1, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> string() %% @doc See external documentation. +-spec getCellValue(This, Row, Col) -> string() when + This::wxGrid(), Row::integer(), Col::integer(). getCellValue(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetCellValue_2, <>). -%% @spec (This::wxGrid()) -> {Horiz::integer(), Vert::integer()} %% @doc See external documentation. +-spec getColLabelAlignment(This) -> {Horiz::integer(), Vert::integer()} when + This::wxGrid(). getColLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetColLabelAlignment, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getColLabelSize(This) -> integer() when + This::wxGrid(). getColLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetColLabelSize, <>). -%% @spec (This::wxGrid(), Col::integer()) -> string() %% @doc See external documentation. +-spec getColLabelValue(This, Col) -> string() when + This::wxGrid(), Col::integer(). getColLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Col) when is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetColLabelValue, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getColMinimalAcceptableWidth(This) -> integer() when + This::wxGrid(). getColMinimalAcceptableWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetColMinimalAcceptableWidth, <>). -%% @spec (This::wxGrid()) -> {Horiz::integer(), Vert::integer()} %% @doc See external documentation. +-spec getDefaultCellAlignment(This) -> {Horiz::integer(), Vert::integer()} when + This::wxGrid(). getDefaultCellAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultCellAlignment, <>). -%% @spec (This::wxGrid()) -> wx:colour() %% @doc See external documentation. +-spec getDefaultCellBackgroundColour(This) -> wx:wx_colour() when + This::wxGrid(). getDefaultCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultCellBackgroundColour, <>). -%% @spec (This::wxGrid()) -> wxFont:wxFont() %% @doc See external documentation. +-spec getDefaultCellFont(This) -> wxFont:wxFont() when + This::wxGrid(). getDefaultCellFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultCellFont, <>). -%% @spec (This::wxGrid()) -> wx:colour() %% @doc See external documentation. +-spec getDefaultCellTextColour(This) -> wx:wx_colour() when + This::wxGrid(). getDefaultCellTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultCellTextColour, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getDefaultColLabelSize(This) -> integer() when + This::wxGrid(). getDefaultColLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultColLabelSize, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getDefaultColSize(This) -> integer() when + This::wxGrid(). getDefaultColSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultColSize, <>). -%% @spec (This::wxGrid()) -> wxGridCellEditor:wxGridCellEditor() %% @doc See external documentation. +-spec getDefaultEditor(This) -> wxGridCellEditor:wxGridCellEditor() when + This::wxGrid(). getDefaultEditor(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultEditor, <>). -%% @spec (This::wxGrid(), C::{R::integer(), C::integer()}) -> wxGridCellEditor:wxGridCellEditor() %% @doc See external documentation. +-spec getDefaultEditorForCell(This, C) -> wxGridCellEditor:wxGridCellEditor() when + This::wxGrid(), C::{R::integer(), C::integer()}. getDefaultEditorForCell(#wx_ref{type=ThisT,ref=ThisRef},{CR,CC}) when is_integer(CR),is_integer(CC) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultEditorForCell_1, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor() %% @doc See external documentation. +-spec getDefaultEditorForCell(This, Row, Col) -> wxGridCellEditor:wxGridCellEditor() when + This::wxGrid(), Row::integer(), Col::integer(). getDefaultEditorForCell(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultEditorForCell_2, <>). -%% @spec (This::wxGrid(), TypeName::string()) -> wxGridCellEditor:wxGridCellEditor() %% @doc See external documentation. +-spec getDefaultEditorForType(This, TypeName) -> wxGridCellEditor:wxGridCellEditor() when + This::wxGrid(), TypeName::string(). getDefaultEditorForType(#wx_ref{type=ThisT,ref=ThisRef},TypeName) when is_list(TypeName) -> ?CLASS(ThisT,wxGrid), @@ -753,23 +848,26 @@ getDefaultEditorForType(#wx_ref{type=ThisT,ref=ThisRef},TypeName) wxe_util:call(?wxGrid_GetDefaultEditorForType, <>). -%% @spec (This::wxGrid()) -> wxGridCellRenderer:wxGridCellRenderer() %% @doc See external documentation. +-spec getDefaultRenderer(This) -> wxGridCellRenderer:wxGridCellRenderer() when + This::wxGrid(). getDefaultRenderer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultRenderer, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer() %% @doc See external documentation. +-spec getDefaultRendererForCell(This, Row, Col) -> wxGridCellRenderer:wxGridCellRenderer() when + This::wxGrid(), Row::integer(), Col::integer(). getDefaultRendererForCell(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultRendererForCell, <>). -%% @spec (This::wxGrid(), TypeName::string()) -> wxGridCellRenderer:wxGridCellRenderer() %% @doc See external documentation. +-spec getDefaultRendererForType(This, TypeName) -> wxGridCellRenderer:wxGridCellRenderer() when + This::wxGrid(), TypeName::string(). getDefaultRendererForType(#wx_ref{type=ThisT,ref=ThisRef},TypeName) when is_list(TypeName) -> ?CLASS(ThisT,wxGrid), @@ -777,242 +875,279 @@ getDefaultRendererForType(#wx_ref{type=ThisT,ref=ThisRef},TypeName) wxe_util:call(?wxGrid_GetDefaultRendererForType, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getDefaultRowLabelSize(This) -> integer() when + This::wxGrid(). getDefaultRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultRowLabelSize, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getDefaultRowSize(This) -> integer() when + This::wxGrid(). getDefaultRowSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetDefaultRowSize, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getGridCursorCol(This) -> integer() when + This::wxGrid(). getGridCursorCol(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetGridCursorCol, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getGridCursorRow(This) -> integer() when + This::wxGrid(). getGridCursorRow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetGridCursorRow, <>). -%% @spec (This::wxGrid()) -> wx:colour() %% @doc See external documentation. +-spec getGridLineColour(This) -> wx:wx_colour() when + This::wxGrid(). getGridLineColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetGridLineColour, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec gridLinesEnabled(This) -> boolean() when + This::wxGrid(). gridLinesEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GridLinesEnabled, <>). -%% @spec (This::wxGrid()) -> wx:colour() %% @doc See external documentation. +-spec getLabelBackgroundColour(This) -> wx:wx_colour() when + This::wxGrid(). getLabelBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetLabelBackgroundColour, <>). -%% @spec (This::wxGrid()) -> wxFont:wxFont() %% @doc See external documentation. +-spec getLabelFont(This) -> wxFont:wxFont() when + This::wxGrid(). getLabelFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetLabelFont, <>). -%% @spec (This::wxGrid()) -> wx:colour() %% @doc See external documentation. +-spec getLabelTextColour(This) -> wx:wx_colour() when + This::wxGrid(). getLabelTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetLabelTextColour, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getNumberCols(This) -> integer() when + This::wxGrid(). getNumberCols(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetNumberCols, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getNumberRows(This) -> integer() when + This::wxGrid(). getNumberRows(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetNumberRows, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> wxGridCellAttr:wxGridCellAttr() %% @doc See external documentation. +-spec getOrCreateCellAttr(This, Row, Col) -> wxGridCellAttr:wxGridCellAttr() when + This::wxGrid(), Row::integer(), Col::integer(). getOrCreateCellAttr(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetOrCreateCellAttr, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getRowMinimalAcceptableHeight(This) -> integer() when + This::wxGrid(). getRowMinimalAcceptableHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetRowMinimalAcceptableHeight, <>). -%% @spec (This::wxGrid()) -> {Horiz::integer(), Vert::integer()} %% @doc See external documentation. +-spec getRowLabelAlignment(This) -> {Horiz::integer(), Vert::integer()} when + This::wxGrid(). getRowLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetRowLabelAlignment, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getRowLabelSize(This) -> integer() when + This::wxGrid(). getRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetRowLabelSize, <>). -%% @spec (This::wxGrid(), Row::integer()) -> string() %% @doc See external documentation. +-spec getRowLabelValue(This, Row) -> string() when + This::wxGrid(), Row::integer(). getRowLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Row) when is_integer(Row) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetRowLabelValue, <>). -%% @spec (This::wxGrid(), Row::integer()) -> integer() %% @doc See external documentation. +-spec getRowSize(This, Row) -> integer() when + This::wxGrid(), Row::integer(). getRowSize(#wx_ref{type=ThisT,ref=ThisRef},Row) when is_integer(Row) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetRowSize, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getScrollLineX(This) -> integer() when + This::wxGrid(). getScrollLineX(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetScrollLineX, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getScrollLineY(This) -> integer() when + This::wxGrid(). getScrollLineY(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetScrollLineY, <>). -%% @spec (This::wxGrid()) -> [{R::integer(), C::integer()}] %% @doc See external documentation. +-spec getSelectedCells(This) -> [{R::integer(), C::integer()}] when + This::wxGrid(). getSelectedCells(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetSelectedCells, <>). -%% @spec (This::wxGrid()) -> [integer()] %% @doc See external documentation. +-spec getSelectedCols(This) -> [integer()] when + This::wxGrid(). getSelectedCols(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetSelectedCols, <>). -%% @spec (This::wxGrid()) -> [integer()] %% @doc See external documentation. +-spec getSelectedRows(This) -> [integer()] when + This::wxGrid(). getSelectedRows(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetSelectedRows, <>). -%% @spec (This::wxGrid()) -> wx:colour() %% @doc See external documentation. +-spec getSelectionBackground(This) -> wx:wx_colour() when + This::wxGrid(). getSelectionBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetSelectionBackground, <>). -%% @spec (This::wxGrid()) -> [{R::integer(), C::integer()}] %% @doc See external documentation. +-spec getSelectionBlockTopLeft(This) -> [{R::integer(), C::integer()}] when + This::wxGrid(). getSelectionBlockTopLeft(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetSelectionBlockTopLeft, <>). -%% @spec (This::wxGrid()) -> [{R::integer(), C::integer()}] %% @doc See external documentation. +-spec getSelectionBlockBottomRight(This) -> [{R::integer(), C::integer()}] when + This::wxGrid(). getSelectionBlockBottomRight(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetSelectionBlockBottomRight, <>). -%% @spec (This::wxGrid()) -> wx:colour() %% @doc See external documentation. +-spec getSelectionForeground(This) -> wx:wx_colour() when + This::wxGrid(). getSelectionForeground(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetSelectionForeground, <>). -%% @spec (This::wxGrid()) -> integer() %% @doc See external documentation. +-spec getViewWidth(This) -> integer() when + This::wxGrid(). getViewWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetViewWidth, <>). -%% @spec (This::wxGrid()) -> wxWindow:wxWindow() %% @doc See external documentation. +-spec getGridWindow(This) -> wxWindow:wxWindow() when + This::wxGrid(). getGridWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetGridWindow, <>). -%% @spec (This::wxGrid()) -> wxWindow:wxWindow() %% @doc See external documentation. +-spec getGridRowLabelWindow(This) -> wxWindow:wxWindow() when + This::wxGrid(). getGridRowLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetGridRowLabelWindow, <>). -%% @spec (This::wxGrid()) -> wxWindow:wxWindow() %% @doc See external documentation. +-spec getGridColLabelWindow(This) -> wxWindow:wxWindow() when + This::wxGrid(). getGridColLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetGridColLabelWindow, <>). -%% @spec (This::wxGrid()) -> wxWindow:wxWindow() %% @doc See external documentation. +-spec getGridCornerLabelWindow(This) -> wxWindow:wxWindow() when + This::wxGrid(). getGridCornerLabelWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_GetGridCornerLabelWindow, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec hideCellEditControl(This) -> ok when + This::wxGrid(). hideCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_HideCellEditControl, <>). -%% @spec (This::wxGrid()) -> bool() %% @equiv insertCols(This, []) +-spec insertCols(This) -> boolean() when + This::wxGrid(). + insertCols(This) when is_record(This, wx_ref) -> insertCols(This, []). -%% @spec (This::wxGrid(), [Option]) -> bool() -%% Option = {pos, integer()} | {numCols, integer()} | {updateLabels, bool()} %% @doc See external documentation. +-spec insertCols(This, [Option]) -> boolean() when + This::wxGrid(), + Option :: {pos, integer()} + | {numCols, integer()} + | {updateLabels, boolean()}. insertCols(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1024,15 +1159,20 @@ insertCols(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxGrid_InsertCols, <>). -%% @spec (This::wxGrid()) -> bool() %% @equiv insertRows(This, []) +-spec insertRows(This) -> boolean() when + This::wxGrid(). + insertRows(This) when is_record(This, wx_ref) -> insertRows(This, []). -%% @spec (This::wxGrid(), [Option]) -> bool() -%% Option = {pos, integer()} | {numRows, integer()} | {updateLabels, bool()} %% @doc See external documentation. +-spec insertRows(This, [Option]) -> boolean() when + This::wxGrid(), + Option :: {pos, integer()} + | {numRows, integer()} + | {updateLabels, boolean()}. insertRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1044,73 +1184,79 @@ insertRows(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxGrid_InsertRows, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec isCellEditControlEnabled(This) -> boolean() when + This::wxGrid(). isCellEditControlEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_IsCellEditControlEnabled, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec isCurrentCellReadOnly(This) -> boolean() when + This::wxGrid(). isCurrentCellReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_IsCurrentCellReadOnly, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec isEditable(This) -> boolean() when + This::wxGrid(). isEditable(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_IsEditable, <>). -%% @spec (This::wxGrid(), Coords::{R::integer(), C::integer()}) -> bool() %% @doc See external documentation. +-spec isInSelection(This, Coords) -> boolean() when + This::wxGrid(), Coords::{R::integer(), C::integer()}. isInSelection(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC}) when is_integer(CoordsR),is_integer(CoordsC) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_IsInSelection_1, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> bool() %% @doc See external documentation. +-spec isInSelection(This, Row, Col) -> boolean() when + This::wxGrid(), Row::integer(), Col::integer(). isInSelection(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_IsInSelection_2, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> bool() %% @doc See external documentation. +-spec isReadOnly(This, Row, Col) -> boolean() when + This::wxGrid(), Row::integer(), Col::integer(). isReadOnly(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_IsReadOnly, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec isSelection(This) -> boolean() when + This::wxGrid(). isSelection(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_IsSelection, <>). -%% @spec (This::wxGrid(), Coords::{R::integer(), C::integer()}) -> bool() %% @equiv isVisible(This,Coords, []) +-spec isVisible(This, Coords) -> boolean() when + This::wxGrid(), Coords::{R::integer(), C::integer()}. + isVisible(This,Coords={CoordsR,CoordsC}) when is_record(This, wx_ref),is_integer(CoordsR),is_integer(CoordsC) -> isVisible(This,Coords, []). -%% @spec (This::wxGrid(),X::integer()|term(),X::integer()|term()) -> bool() %% @doc See external documentation. -%%
Alternatives: -%%

-%% isVisible(This::wxGrid(), Row::integer(), Col::integer()) -> isVisible(This,Row,Col, [])

-%%

-%% isVisible(This::wxGrid(), Coords::{R::integer(), C::integer()}, [Option]) -> bool() -%%
Option = {wholeCellVisible, bool()} -%%

+-spec isVisible(This, Row, Col) -> boolean() when + This::wxGrid(), Row::integer(), Col::integer(); + (This, Coords, [Option]) -> boolean() when + This::wxGrid(), Coords::{R::integer(), C::integer()}, + Option :: {wholeCellVisible, boolean()}. isVisible(This,Row,Col) when is_record(This, wx_ref),is_integer(Row),is_integer(Col) -> @@ -1124,9 +1270,10 @@ isVisible(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC}, Options) wxe_util:call(?wxGrid_IsVisible_2, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer(), [Option]) -> bool() -%% Option = {wholeCellVisible, bool()} %% @doc See external documentation. +-spec isVisible(This, Row, Col, [Option]) -> boolean() when + This::wxGrid(), Row::integer(), Col::integer(), + Option :: {wholeCellVisible, boolean()}. isVisible(#wx_ref{type=ThisT,ref=ThisRef},Row,Col, Options) when is_integer(Row),is_integer(Col),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1136,102 +1283,115 @@ isVisible(#wx_ref{type=ThisT,ref=ThisRef},Row,Col, Options) wxe_util:call(?wxGrid_IsVisible_3, <>). -%% @spec (This::wxGrid(), Coords::{R::integer(), C::integer()}) -> ok %% @doc See external documentation. +-spec makeCellVisible(This, Coords) -> ok when + This::wxGrid(), Coords::{R::integer(), C::integer()}. makeCellVisible(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC}) when is_integer(CoordsR),is_integer(CoordsC) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_MakeCellVisible_1, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok %% @doc See external documentation. +-spec makeCellVisible(This, Row, Col) -> ok when + This::wxGrid(), Row::integer(), Col::integer(). makeCellVisible(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_MakeCellVisible_2, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorDown(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorDown(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorDown, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorLeft(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorLeft(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorLeft, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorRight(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorRight(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorRight, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorUp(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorUp(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorUp, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorDownBlock(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorDownBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorDownBlock, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorLeftBlock(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorLeftBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorLeftBlock, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorRightBlock(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorRightBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorRightBlock, <>). -%% @spec (This::wxGrid(), ExpandSelection::bool()) -> bool() %% @doc See external documentation. +-spec moveCursorUpBlock(This, ExpandSelection) -> boolean() when + This::wxGrid(), ExpandSelection::boolean(). moveCursorUpBlock(#wx_ref{type=ThisT,ref=ThisRef},ExpandSelection) when is_boolean(ExpandSelection) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MoveCursorUpBlock, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec movePageDown(This) -> boolean() when + This::wxGrid(). movePageDown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MovePageDown, <>). -%% @spec (This::wxGrid()) -> bool() %% @doc See external documentation. +-spec movePageUp(This) -> boolean() when + This::wxGrid(). movePageUp(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_MovePageUp, <>). -%% @spec (This::wxGrid(), TypeName::string(), Renderer::wxGridCellRenderer:wxGridCellRenderer(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok %% @doc See external documentation. +-spec registerDataType(This, TypeName, Renderer, Editor) -> ok when + This::wxGrid(), TypeName::string(), Renderer::wxGridCellRenderer:wxGridCellRenderer(), Editor::wxGridCellEditor:wxGridCellEditor(). registerDataType(#wx_ref{type=ThisT,ref=ThisRef},TypeName,#wx_ref{type=RendererT,ref=RendererRef},#wx_ref{type=EditorT,ref=EditorRef}) when is_list(TypeName) -> ?CLASS(ThisT,wxGrid), @@ -1241,29 +1401,34 @@ registerDataType(#wx_ref{type=ThisT,ref=ThisRef},TypeName,#wx_ref{type=RendererT wxe_util:cast(?wxGrid_RegisterDataType, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec saveEditControlValue(This) -> ok when + This::wxGrid(). saveEditControlValue(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SaveEditControlValue, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec selectAll(This) -> ok when + This::wxGrid(). selectAll(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SelectAll, <>). -%% @spec (This::wxGrid(), TopLeft::{R::integer(), C::integer()}, BottomRight::{R::integer(), C::integer()}) -> ok %% @equiv selectBlock(This,TopLeft,BottomRight, []) +-spec selectBlock(This, TopLeft, BottomRight) -> ok when + This::wxGrid(), TopLeft::{R::integer(), C::integer()}, BottomRight::{R::integer(), C::integer()}. + selectBlock(This,TopLeft={TopLeftR,TopLeftC},BottomRight={BottomRightR,BottomRightC}) when is_record(This, wx_ref),is_integer(TopLeftR),is_integer(TopLeftC),is_integer(BottomRightR),is_integer(BottomRightC) -> selectBlock(This,TopLeft,BottomRight, []). -%% @spec (This::wxGrid(), TopLeft::{R::integer(), C::integer()}, BottomRight::{R::integer(), C::integer()}, [Option]) -> ok -%% Option = {addToSelected, bool()} %% @doc See external documentation. +-spec selectBlock(This, TopLeft, BottomRight, [Option]) -> ok when + This::wxGrid(), TopLeft::{R::integer(), C::integer()}, BottomRight::{R::integer(), C::integer()}, + Option :: {addToSelected, boolean()}. selectBlock(#wx_ref{type=ThisT,ref=ThisRef},{TopLeftR,TopLeftC},{BottomRightR,BottomRightC}, Options) when is_integer(TopLeftR),is_integer(TopLeftC),is_integer(BottomRightR),is_integer(BottomRightC),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1273,15 +1438,18 @@ selectBlock(#wx_ref{type=ThisT,ref=ThisRef},{TopLeftR,TopLeftC},{BottomRightR,Bo wxe_util:cast(?wxGrid_SelectBlock_3, <>). -%% @spec (This::wxGrid(), TopRow::integer(), LeftCol::integer(), BottomRow::integer(), RightCol::integer()) -> ok %% @equiv selectBlock(This,TopRow,LeftCol,BottomRow,RightCol, []) +-spec selectBlock(This, TopRow, LeftCol, BottomRow, RightCol) -> ok when + This::wxGrid(), TopRow::integer(), LeftCol::integer(), BottomRow::integer(), RightCol::integer(). + selectBlock(This,TopRow,LeftCol,BottomRow,RightCol) when is_record(This, wx_ref),is_integer(TopRow),is_integer(LeftCol),is_integer(BottomRow),is_integer(RightCol) -> selectBlock(This,TopRow,LeftCol,BottomRow,RightCol, []). -%% @spec (This::wxGrid(), TopRow::integer(), LeftCol::integer(), BottomRow::integer(), RightCol::integer(), [Option]) -> ok -%% Option = {addToSelected, bool()} %% @doc See external documentation. +-spec selectBlock(This, TopRow, LeftCol, BottomRow, RightCol, [Option]) -> ok when + This::wxGrid(), TopRow::integer(), LeftCol::integer(), BottomRow::integer(), RightCol::integer(), + Option :: {addToSelected, boolean()}. selectBlock(#wx_ref{type=ThisT,ref=ThisRef},TopRow,LeftCol,BottomRow,RightCol, Options) when is_integer(TopRow),is_integer(LeftCol),is_integer(BottomRow),is_integer(RightCol),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1291,15 +1459,18 @@ selectBlock(#wx_ref{type=ThisT,ref=ThisRef},TopRow,LeftCol,BottomRow,RightCol, O wxe_util:cast(?wxGrid_SelectBlock_5, <>). -%% @spec (This::wxGrid(), Col::integer()) -> ok %% @equiv selectCol(This,Col, []) +-spec selectCol(This, Col) -> ok when + This::wxGrid(), Col::integer(). + selectCol(This,Col) when is_record(This, wx_ref),is_integer(Col) -> selectCol(This,Col, []). -%% @spec (This::wxGrid(), Col::integer(), [Option]) -> ok -%% Option = {addToSelected, bool()} %% @doc See external documentation. +-spec selectCol(This, Col, [Option]) -> ok when + This::wxGrid(), Col::integer(), + Option :: {addToSelected, boolean()}. selectCol(#wx_ref{type=ThisT,ref=ThisRef},Col, Options) when is_integer(Col),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1309,15 +1480,18 @@ selectCol(#wx_ref{type=ThisT,ref=ThisRef},Col, Options) wxe_util:cast(?wxGrid_SelectCol, <>). -%% @spec (This::wxGrid(), Row::integer()) -> ok %% @equiv selectRow(This,Row, []) +-spec selectRow(This, Row) -> ok when + This::wxGrid(), Row::integer(). + selectRow(This,Row) when is_record(This, wx_ref),is_integer(Row) -> selectRow(This,Row, []). -%% @spec (This::wxGrid(), Row::integer(), [Option]) -> ok -%% Option = {addToSelected, bool()} %% @doc See external documentation. +-spec selectRow(This, Row, [Option]) -> ok when + This::wxGrid(), Row::integer(), + Option :: {addToSelected, boolean()}. selectRow(#wx_ref{type=ThisT,ref=ThisRef},Row, Options) when is_integer(Row),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1327,47 +1501,47 @@ selectRow(#wx_ref{type=ThisT,ref=ThisRef},Row, Options) wxe_util:cast(?wxGrid_SelectRow, <>). -%% @spec (This::wxGrid(), Align::integer()) -> ok %% @doc See external documentation. +-spec setCellAlignment(This, Align) -> ok when + This::wxGrid(), Align::integer(). setCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Align) when is_integer(Align) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetCellAlignment_1, <>). -%% @spec (This::wxGrid(), Align::integer(), Row::integer(), Col::integer()) -> ok %% @doc See external documentation. +-spec setCellAlignment(This, Align, Row, Col) -> ok when + This::wxGrid(), Align::integer(), Row::integer(), Col::integer(). setCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Align,Row,Col) when is_integer(Align),is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetCellAlignment_3, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Horiz::integer(), Vert::integer()) -> ok %% @doc See external documentation. +-spec setCellAlignment(This, Row, Col, Horiz, Vert) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), Horiz::integer(), Vert::integer(). setCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,Horiz,Vert) when is_integer(Row),is_integer(Col),is_integer(Horiz),is_integer(Vert) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetCellAlignment_4, <>). -%% @spec (This::wxGrid(), Col::wx:colour()) -> ok %% @doc See external documentation. +-spec setCellBackgroundColour(This, Col) -> ok when + This::wxGrid(), Col::wx:wx_colour(). setCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Col) when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetCellBackgroundColour_1, <>). -%% @spec (This::wxGrid(),X::integer()|term(),X::integer(),X::term()|integer()) -> ok %% @doc See external documentation. -%%
Alternatives: -%%

-%% setCellBackgroundColour(This::wxGrid(), Row::integer(), Col::integer(), Val::wx:colour()) -> ok -%%

-%%

-%% setCellBackgroundColour(This::wxGrid(), Colour::wx:colour(), Row::integer(), Col::integer()) -> ok -%%

+-spec setCellBackgroundColour(This, Row, Col, Val) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), Val::wx:wx_colour(); + (This, Colour, Row, Col) -> ok when + This::wxGrid(), Colour::wx:wx_colour(), Row::integer(), Col::integer(). setCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,Val) when is_integer(Row),is_integer(Col),tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 -> ?CLASS(ThisT,wxGrid), @@ -1379,8 +1553,9 @@ setCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour,Row,Col) wxe_util:cast(?wxGrid_SetCellBackgroundColour_3_1, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok %% @doc See external documentation. +-spec setCellEditor(This, Row, Col, Editor) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), Editor::wxGridCellEditor:wxGridCellEditor(). setCellEditor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=EditorT,ref=EditorRef}) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), @@ -1388,8 +1563,9 @@ setCellEditor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=EditorT,ref=E wxe_util:cast(?wxGrid_SetCellEditor, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Val::wxFont:wxFont()) -> ok %% @doc See external documentation. +-spec setCellFont(This, Row, Col, Val) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), Val::wxFont:wxFont(). setCellFont(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=ValT,ref=ValRef}) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), @@ -1397,8 +1573,9 @@ setCellFont(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=ValT,ref=ValRef wxe_util:cast(?wxGrid_SetCellFont, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok %% @doc See external documentation. +-spec setCellRenderer(This, Row, Col, Renderer) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), Renderer::wxGridCellRenderer:wxGridCellRenderer(). setCellRenderer(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=RendererT,ref=RendererRef}) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), @@ -1406,23 +1583,20 @@ setCellRenderer(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=RendererT,r wxe_util:cast(?wxGrid_SetCellRenderer, <>). -%% @spec (This::wxGrid(), Col::wx:colour()) -> ok %% @doc See external documentation. +-spec setCellTextColour(This, Col) -> ok when + This::wxGrid(), Col::wx:wx_colour(). setCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Col) when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetCellTextColour_1, <>). -%% @spec (This::wxGrid(),X::integer()|term(),X::integer(),X::term()|integer()) -> ok %% @doc See external documentation. -%%
Alternatives: -%%

-%% setCellTextColour(This::wxGrid(), Row::integer(), Col::integer(), Val::wx:colour()) -> ok -%%

-%%

-%% setCellTextColour(This::wxGrid(), Val::wx:colour(), Row::integer(), Col::integer()) -> ok -%%

+-spec setCellTextColour(This, Row, Col, Val) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), Val::wx:wx_colour(); + (This, Val, Row, Col) -> ok when + This::wxGrid(), Val::wx:wx_colour(), Row::integer(), Col::integer(). setCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,Val) when is_integer(Row),is_integer(Col),tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 -> ?CLASS(ThisT,wxGrid), @@ -1434,8 +1608,9 @@ setCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Val,Row,Col) wxe_util:cast(?wxGrid_SetCellTextColour_3_1, <>). -%% @spec (This::wxGrid(), Coords::{R::integer(), C::integer()}, S::string()) -> ok %% @doc See external documentation. +-spec setCellValue(This, Coords, S) -> ok when + This::wxGrid(), Coords::{R::integer(), C::integer()}, S::string(). setCellValue(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC},S) when is_integer(CoordsR),is_integer(CoordsC),is_list(S) -> ?CLASS(ThisT,wxGrid), @@ -1443,15 +1618,11 @@ setCellValue(#wx_ref{type=ThisT,ref=ThisRef},{CoordsR,CoordsC},S) wxe_util:cast(?wxGrid_SetCellValue_2, <>). -%% @spec (This::wxGrid(),X::integer()|string(),X::integer(),X::string()|integer()) -> ok %% @doc See external documentation. -%%
Alternatives: -%%

-%% setCellValue(This::wxGrid(), Row::integer(), Col::integer(), S::string()) -> ok -%%

-%%

-%% setCellValue(This::wxGrid(), Val::string(), Row::integer(), Col::integer()) -> ok -%%

+-spec setCellValue(This, Row, Col, S) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), S::string(); + (This, Val, Row, Col) -> ok when + This::wxGrid(), Val::string(), Row::integer(), Col::integer(). setCellValue(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,S) when is_integer(Row),is_integer(Col),is_list(S) -> ?CLASS(ThisT,wxGrid), @@ -1465,8 +1636,9 @@ setCellValue(#wx_ref{type=ThisT,ref=ThisRef},Val,Row,Col) wxe_util:cast(?wxGrid_SetCellValue_3_1, <>). -%% @spec (This::wxGrid(), Col::integer(), Attr::wxGridCellAttr:wxGridCellAttr()) -> ok %% @doc See external documentation. +-spec setColAttr(This, Col, Attr) -> ok when + This::wxGrid(), Col::integer(), Attr::wxGridCellAttr:wxGridCellAttr(). setColAttr(#wx_ref{type=ThisT,ref=ThisRef},Col,#wx_ref{type=AttrT,ref=AttrRef}) when is_integer(Col) -> ?CLASS(ThisT,wxGrid), @@ -1474,31 +1646,37 @@ setColAttr(#wx_ref{type=ThisT,ref=ThisRef},Col,#wx_ref{type=AttrT,ref=AttrRef}) wxe_util:cast(?wxGrid_SetColAttr, <>). -%% @spec (This::wxGrid(), Col::integer()) -> ok %% @doc See external documentation. +-spec setColFormatBool(This, Col) -> ok when + This::wxGrid(), Col::integer(). setColFormatBool(#wx_ref{type=ThisT,ref=ThisRef},Col) when is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetColFormatBool, <>). -%% @spec (This::wxGrid(), Col::integer()) -> ok %% @doc See external documentation. +-spec setColFormatNumber(This, Col) -> ok when + This::wxGrid(), Col::integer(). setColFormatNumber(#wx_ref{type=ThisT,ref=ThisRef},Col) when is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetColFormatNumber, <>). -%% @spec (This::wxGrid(), Col::integer()) -> ok %% @equiv setColFormatFloat(This,Col, []) +-spec setColFormatFloat(This, Col) -> ok when + This::wxGrid(), Col::integer(). + setColFormatFloat(This,Col) when is_record(This, wx_ref),is_integer(Col) -> setColFormatFloat(This,Col, []). -%% @spec (This::wxGrid(), Col::integer(), [Option]) -> ok -%% Option = {width, integer()} | {precision, integer()} %% @doc See external documentation. +-spec setColFormatFloat(This, Col, [Option]) -> ok when + This::wxGrid(), Col::integer(), + Option :: {width, integer()} + | {precision, integer()}. setColFormatFloat(#wx_ref{type=ThisT,ref=ThisRef},Col, Options) when is_integer(Col),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1509,8 +1687,9 @@ setColFormatFloat(#wx_ref{type=ThisT,ref=ThisRef},Col, Options) wxe_util:cast(?wxGrid_SetColFormatFloat, <>). -%% @spec (This::wxGrid(), Col::integer(), TypeName::string()) -> ok %% @doc See external documentation. +-spec setColFormatCustom(This, Col, TypeName) -> ok when + This::wxGrid(), Col::integer(), TypeName::string(). setColFormatCustom(#wx_ref{type=ThisT,ref=ThisRef},Col,TypeName) when is_integer(Col),is_list(TypeName) -> ?CLASS(ThisT,wxGrid), @@ -1518,24 +1697,27 @@ setColFormatCustom(#wx_ref{type=ThisT,ref=ThisRef},Col,TypeName) wxe_util:cast(?wxGrid_SetColFormatCustom, <>). -%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok %% @doc See external documentation. +-spec setColLabelAlignment(This, Horiz, Vert) -> ok when + This::wxGrid(), Horiz::integer(), Vert::integer(). setColLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert) when is_integer(Horiz),is_integer(Vert) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetColLabelAlignment, <>). -%% @spec (This::wxGrid(), Height::integer()) -> ok %% @doc See external documentation. +-spec setColLabelSize(This, Height) -> ok when + This::wxGrid(), Height::integer(). setColLabelSize(#wx_ref{type=ThisT,ref=ThisRef},Height) when is_integer(Height) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetColLabelSize, <>). -%% @spec (This::wxGrid(), Col::integer(), Val::string()) -> ok %% @doc See external documentation. +-spec setColLabelValue(This, Col, Val) -> ok when + This::wxGrid(), Col::integer(), Val::string(). setColLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Col,Val) when is_integer(Col),is_list(Val) -> ?CLASS(ThisT,wxGrid), @@ -1543,87 +1725,99 @@ setColLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Col,Val) wxe_util:cast(?wxGrid_SetColLabelValue, <>). -%% @spec (This::wxGrid(), Col::integer(), Width::integer()) -> ok %% @doc See external documentation. +-spec setColMinimalWidth(This, Col, Width) -> ok when + This::wxGrid(), Col::integer(), Width::integer(). setColMinimalWidth(#wx_ref{type=ThisT,ref=ThisRef},Col,Width) when is_integer(Col),is_integer(Width) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetColMinimalWidth, <>). -%% @spec (This::wxGrid(), Width::integer()) -> ok %% @doc See external documentation. +-spec setColMinimalAcceptableWidth(This, Width) -> ok when + This::wxGrid(), Width::integer(). setColMinimalAcceptableWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) when is_integer(Width) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetColMinimalAcceptableWidth, <>). -%% @spec (This::wxGrid(), Col::integer(), Width::integer()) -> ok %% @doc See external documentation. +-spec setColSize(This, Col, Width) -> ok when + This::wxGrid(), Col::integer(), Width::integer(). setColSize(#wx_ref{type=ThisT,ref=ThisRef},Col,Width) when is_integer(Col),is_integer(Width) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetColSize, <>). -%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok %% @doc See external documentation. +-spec setDefaultCellAlignment(This, Horiz, Vert) -> ok when + This::wxGrid(), Horiz::integer(), Vert::integer(). setDefaultCellAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert) when is_integer(Horiz),is_integer(Vert) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetDefaultCellAlignment, <>). -%% @spec (This::wxGrid(), Val::wx:colour()) -> ok %% @doc See external documentation. +-spec setDefaultCellBackgroundColour(This, Val) -> ok when + This::wxGrid(), Val::wx:wx_colour(). setDefaultCellBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Val) when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetDefaultCellBackgroundColour, <>). -%% @spec (This::wxGrid(), Val::wxFont:wxFont()) -> ok %% @doc See external documentation. +-spec setDefaultCellFont(This, Val) -> ok when + This::wxGrid(), Val::wxFont:wxFont(). setDefaultCellFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ValT,ref=ValRef}) -> ?CLASS(ThisT,wxGrid), ?CLASS(ValT,wxFont), wxe_util:cast(?wxGrid_SetDefaultCellFont, <>). -%% @spec (This::wxGrid(), Val::wx:colour()) -> ok %% @doc See external documentation. +-spec setDefaultCellTextColour(This, Val) -> ok when + This::wxGrid(), Val::wx:wx_colour(). setDefaultCellTextColour(#wx_ref{type=ThisT,ref=ThisRef},Val) when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetDefaultCellTextColour, <>). -%% @spec (This::wxGrid(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok %% @doc See external documentation. +-spec setDefaultEditor(This, Editor) -> ok when + This::wxGrid(), Editor::wxGridCellEditor:wxGridCellEditor(). setDefaultEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EditorT,ref=EditorRef}) -> ?CLASS(ThisT,wxGrid), ?CLASS(EditorT,wxGridCellEditor), wxe_util:cast(?wxGrid_SetDefaultEditor, <>). -%% @spec (This::wxGrid(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok %% @doc See external documentation. +-spec setDefaultRenderer(This, Renderer) -> ok when + This::wxGrid(), Renderer::wxGridCellRenderer:wxGridCellRenderer(). setDefaultRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RendererT,ref=RendererRef}) -> ?CLASS(ThisT,wxGrid), ?CLASS(RendererT,wxGridCellRenderer), wxe_util:cast(?wxGrid_SetDefaultRenderer, <>). -%% @spec (This::wxGrid(), Width::integer()) -> ok %% @equiv setDefaultColSize(This,Width, []) +-spec setDefaultColSize(This, Width) -> ok when + This::wxGrid(), Width::integer(). + setDefaultColSize(This,Width) when is_record(This, wx_ref),is_integer(Width) -> setDefaultColSize(This,Width, []). -%% @spec (This::wxGrid(), Width::integer(), [Option]) -> ok -%% Option = {resizeExistingCols, bool()} %% @doc See external documentation. +-spec setDefaultColSize(This, Width, [Option]) -> ok when + This::wxGrid(), Width::integer(), + Option :: {resizeExistingCols, boolean()}. setDefaultColSize(#wx_ref{type=ThisT,ref=ThisRef},Width, Options) when is_integer(Width),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1633,15 +1827,18 @@ setDefaultColSize(#wx_ref{type=ThisT,ref=ThisRef},Width, Options) wxe_util:cast(?wxGrid_SetDefaultColSize, <>). -%% @spec (This::wxGrid(), Height::integer()) -> ok %% @equiv setDefaultRowSize(This,Height, []) +-spec setDefaultRowSize(This, Height) -> ok when + This::wxGrid(), Height::integer(). + setDefaultRowSize(This,Height) when is_record(This, wx_ref),is_integer(Height) -> setDefaultRowSize(This,Height, []). -%% @spec (This::wxGrid(), Height::integer(), [Option]) -> ok -%% Option = {resizeExistingRows, bool()} %% @doc See external documentation. +-spec setDefaultRowSize(This, Height, [Option]) -> ok when + This::wxGrid(), Height::integer(), + Option :: {resizeExistingRows, boolean()}. setDefaultRowSize(#wx_ref{type=ThisT,ref=ThisRef},Height, Options) when is_integer(Height),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1651,63 +1848,72 @@ setDefaultRowSize(#wx_ref{type=ThisT,ref=ThisRef},Height, Options) wxe_util:cast(?wxGrid_SetDefaultRowSize, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok %% @doc See external documentation. +-spec setGridCursor(This, Row, Col) -> ok when + This::wxGrid(), Row::integer(), Col::integer(). setGridCursor(#wx_ref{type=ThisT,ref=ThisRef},Row,Col) when is_integer(Row),is_integer(Col) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetGridCursor, <>). -%% @spec (This::wxGrid(), Val::wx:colour()) -> ok %% @doc See external documentation. +-spec setGridLineColour(This, Val) -> ok when + This::wxGrid(), Val::wx:wx_colour(). setGridLineColour(#wx_ref{type=ThisT,ref=ThisRef},Val) when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetGridLineColour, <>). -%% @spec (This::wxGrid(), Val::wx:colour()) -> ok %% @doc See external documentation. +-spec setLabelBackgroundColour(This, Val) -> ok when + This::wxGrid(), Val::wx:wx_colour(). setLabelBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Val) when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetLabelBackgroundColour, <>). -%% @spec (This::wxGrid(), Val::wxFont:wxFont()) -> ok %% @doc See external documentation. +-spec setLabelFont(This, Val) -> ok when + This::wxGrid(), Val::wxFont:wxFont(). setLabelFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ValT,ref=ValRef}) -> ?CLASS(ThisT,wxGrid), ?CLASS(ValT,wxFont), wxe_util:cast(?wxGrid_SetLabelFont, <>). -%% @spec (This::wxGrid(), Val::wx:colour()) -> ok %% @doc See external documentation. +-spec setLabelTextColour(This, Val) -> ok when + This::wxGrid(), Val::wx:wx_colour(). setLabelTextColour(#wx_ref{type=ThisT,ref=ThisRef},Val) when tuple_size(Val) =:= 3; tuple_size(Val) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetLabelTextColour, <>). -%% @spec (This::wxGrid(), ExtraWidth::integer(), ExtraHeight::integer()) -> ok %% @doc See external documentation. +-spec setMargins(This, ExtraWidth, ExtraHeight) -> ok when + This::wxGrid(), ExtraWidth::integer(), ExtraHeight::integer(). setMargins(#wx_ref{type=ThisT,ref=ThisRef},ExtraWidth,ExtraHeight) when is_integer(ExtraWidth),is_integer(ExtraHeight) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetMargins, <>). -%% @spec (This::wxGrid(), Row::integer(), Col::integer()) -> ok %% @equiv setReadOnly(This,Row,Col, []) +-spec setReadOnly(This, Row, Col) -> ok when + This::wxGrid(), Row::integer(), Col::integer(). + setReadOnly(This,Row,Col) when is_record(This, wx_ref),is_integer(Row),is_integer(Col) -> setReadOnly(This,Row,Col, []). -%% @spec (This::wxGrid(), Row::integer(), Col::integer(), [Option]) -> ok -%% Option = {isReadOnly, bool()} %% @doc See external documentation. +-spec setReadOnly(This, Row, Col, [Option]) -> ok when + This::wxGrid(), Row::integer(), Col::integer(), + Option :: {isReadOnly, boolean()}. setReadOnly(#wx_ref{type=ThisT,ref=ThisRef},Row,Col, Options) when is_integer(Row),is_integer(Col),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1717,8 +1923,9 @@ setReadOnly(#wx_ref{type=ThisT,ref=ThisRef},Row,Col, Options) wxe_util:cast(?wxGrid_SetReadOnly, <>). -%% @spec (This::wxGrid(), Row::integer(), Attr::wxGridCellAttr:wxGridCellAttr()) -> ok %% @doc See external documentation. +-spec setRowAttr(This, Row, Attr) -> ok when + This::wxGrid(), Row::integer(), Attr::wxGridCellAttr:wxGridCellAttr(). setRowAttr(#wx_ref{type=ThisT,ref=ThisRef},Row,#wx_ref{type=AttrT,ref=AttrRef}) when is_integer(Row) -> ?CLASS(ThisT,wxGrid), @@ -1726,24 +1933,27 @@ setRowAttr(#wx_ref{type=ThisT,ref=ThisRef},Row,#wx_ref{type=AttrT,ref=AttrRef}) wxe_util:cast(?wxGrid_SetRowAttr, <>). -%% @spec (This::wxGrid(), Horiz::integer(), Vert::integer()) -> ok %% @doc See external documentation. +-spec setRowLabelAlignment(This, Horiz, Vert) -> ok when + This::wxGrid(), Horiz::integer(), Vert::integer(). setRowLabelAlignment(#wx_ref{type=ThisT,ref=ThisRef},Horiz,Vert) when is_integer(Horiz),is_integer(Vert) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetRowLabelAlignment, <>). -%% @spec (This::wxGrid(), Width::integer()) -> ok %% @doc See external documentation. +-spec setRowLabelSize(This, Width) -> ok when + This::wxGrid(), Width::integer(). setRowLabelSize(#wx_ref{type=ThisT,ref=ThisRef},Width) when is_integer(Width) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetRowLabelSize, <>). -%% @spec (This::wxGrid(), Row::integer(), Val::string()) -> ok %% @doc See external documentation. +-spec setRowLabelValue(This, Row, Val) -> ok when + This::wxGrid(), Row::integer(), Val::string(). setRowLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Row,Val) when is_integer(Row),is_list(Val) -> ?CLASS(ThisT,wxGrid), @@ -1751,88 +1961,99 @@ setRowLabelValue(#wx_ref{type=ThisT,ref=ThisRef},Row,Val) wxe_util:cast(?wxGrid_SetRowLabelValue, <>). -%% @spec (This::wxGrid(), Row::integer(), Width::integer()) -> ok %% @doc See external documentation. +-spec setRowMinimalHeight(This, Row, Width) -> ok when + This::wxGrid(), Row::integer(), Width::integer(). setRowMinimalHeight(#wx_ref{type=ThisT,ref=ThisRef},Row,Width) when is_integer(Row),is_integer(Width) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetRowMinimalHeight, <>). -%% @spec (This::wxGrid(), Width::integer()) -> ok %% @doc See external documentation. +-spec setRowMinimalAcceptableHeight(This, Width) -> ok when + This::wxGrid(), Width::integer(). setRowMinimalAcceptableHeight(#wx_ref{type=ThisT,ref=ThisRef},Width) when is_integer(Width) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetRowMinimalAcceptableHeight, <>). -%% @spec (This::wxGrid(), Row::integer(), Height::integer()) -> ok %% @doc See external documentation. +-spec setRowSize(This, Row, Height) -> ok when + This::wxGrid(), Row::integer(), Height::integer(). setRowSize(#wx_ref{type=ThisT,ref=ThisRef},Row,Height) when is_integer(Row),is_integer(Height) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetRowSize, <>). -%% @spec (This::wxGrid(), X::integer()) -> ok %% @doc See external documentation. +-spec setScrollLineX(This, X) -> ok when + This::wxGrid(), X::integer(). setScrollLineX(#wx_ref{type=ThisT,ref=ThisRef},X) when is_integer(X) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetScrollLineX, <>). -%% @spec (This::wxGrid(), Y::integer()) -> ok %% @doc See external documentation. +-spec setScrollLineY(This, Y) -> ok when + This::wxGrid(), Y::integer(). setScrollLineY(#wx_ref{type=ThisT,ref=ThisRef},Y) when is_integer(Y) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetScrollLineY, <>). -%% @spec (This::wxGrid(), C::wx:colour()) -> ok %% @doc See external documentation. +-spec setSelectionBackground(This, C) -> ok when + This::wxGrid(), C::wx:wx_colour(). setSelectionBackground(#wx_ref{type=ThisT,ref=ThisRef},C) when tuple_size(C) =:= 3; tuple_size(C) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetSelectionBackground, <>). -%% @spec (This::wxGrid(), C::wx:colour()) -> ok %% @doc See external documentation. +-spec setSelectionForeground(This, C) -> ok when + This::wxGrid(), C::wx:wx_colour(). setSelectionForeground(#wx_ref{type=ThisT,ref=ThisRef},C) when tuple_size(C) =:= 3; tuple_size(C) =:= 4 -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetSelectionForeground, <>). -%% @spec (This::wxGrid(), Selmode::WxGridSelectionModes) -> ok -%% WxGridSelectionModes = integer() %% @doc See external documentation. -%%
WxGridSelectionModes is one of ?wxGrid_wxGridSelectCells | ?wxGrid_wxGridSelectRows | ?wxGrid_wxGridSelectColumns +%%
Selmode = ?wxGrid_wxGridSelectCells | ?wxGrid_wxGridSelectRows | ?wxGrid_wxGridSelectColumns +-spec setSelectionMode(This, Selmode) -> ok when + This::wxGrid(), Selmode::wx:wx_enum(). setSelectionMode(#wx_ref{type=ThisT,ref=ThisRef},Selmode) when is_integer(Selmode) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_SetSelectionMode, <>). -%% @spec (This::wxGrid()) -> ok %% @doc See external documentation. +-spec showCellEditControl(This) -> ok when + This::wxGrid(). showCellEditControl(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGrid), wxe_util:cast(?wxGrid_ShowCellEditControl, <>). -%% @spec (This::wxGrid(), X::integer()) -> integer() %% @equiv xToCol(This,X, []) +-spec xToCol(This, X) -> integer() when + This::wxGrid(), X::integer(). + xToCol(This,X) when is_record(This, wx_ref),is_integer(X) -> xToCol(This,X, []). -%% @spec (This::wxGrid(), X::integer(), [Option]) -> integer() -%% Option = {clipToMinMax, bool()} %% @doc See external documentation. +-spec xToCol(This, X, [Option]) -> integer() when + This::wxGrid(), X::integer(), + Option :: {clipToMinMax, boolean()}. xToCol(#wx_ref{type=ThisT,ref=ThisRef},X, Options) when is_integer(X),is_list(Options) -> ?CLASS(ThisT,wxGrid), @@ -1842,32 +2063,35 @@ xToCol(#wx_ref{type=ThisT,ref=ThisRef},X, Options) wxe_util:call(?wxGrid_XToCol, <>). -%% @spec (This::wxGrid(), X::integer()) -> integer() %% @doc See external documentation. +-spec xToEdgeOfCol(This, X) -> integer() when + This::wxGrid(), X::integer(). xToEdgeOfCol(#wx_ref{type=ThisT,ref=ThisRef},X) when is_integer(X) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_XToEdgeOfCol, <>). -%% @spec (This::wxGrid(), Y::integer()) -> integer() %% @doc See external documentation. +-spec yToEdgeOfRow(This, Y) -> integer() when + This::wxGrid(), Y::integer(). yToEdgeOfRow(#wx_ref{type=ThisT,ref=ThisRef},Y) when is_integer(Y) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_YToEdgeOfRow, <>). -%% @spec (This::wxGrid(), Y::integer()) -> integer() %% @doc See external documentation. +-spec yToRow(This, Y) -> integer() when + This::wxGrid(), Y::integer(). yToRow(#wx_ref{type=ThisT,ref=ThisRef},Y) when is_integer(Y) -> ?CLASS(ThisT,wxGrid), wxe_util:call(?wxGrid_YToRow, <>). -%% @spec (This::wxGrid()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxGrid) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxGrid), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3