1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
#############################################################################
## Name: ext/grid/XS/GridCellAttr.xs
## Purpose: XS for Wx::GridCellAttr
## Author: Mattia Barbon
## Modified by:
## Created: 05/12/2001
## RCS-ID: $Id: GridCellAttr.xs 2402 2008-05-19 21:43:32Z mbarbon $
## Copyright: (c) 2001-2002, 2004, 2006-2008 Mattia Barbon
## Licence: This program is free software; you can redistribute it and/or
## modify it under the same terms as Perl itself
#############################################################################
MODULE=Wx PACKAGE=Wx::GridCellAttr
wxGridCellAttr*
wxGridCellAttr::new()
static void
wxGridCellAttr::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
wxGridCellAttr::DESTROY()
CODE:
wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ),
SvRV( ST(0) ), ST(0) );
if( THIS )
THIS->DecRef();
void
wxGridCellAttr::IncRef()
void
wxGridCellAttr::DecRef()
void
wxGridCellAttr::SetTextColour( colour )
wxColour colour
void
wxGridCellAttr::SetBackgroundColour( colour )
wxColour colour
void
wxGridCellAttr::SetFont( font )
wxFont* font
CODE:
THIS->SetFont( *font );
void
wxGridCellAttr::SetAlignment( hAlign, vAlign )
int hAlign
int vAlign
void
wxGridCellAttr::SetReadOnly( isReadOnly = true )
bool isReadOnly
bool
wxGridCellAttr::HasTextColour()
bool
wxGridCellAttr::HasBackgroundColour()
bool
wxGridCellAttr::HasFont()
bool
wxGridCellAttr::HasAlignment()
bool
wxGridCellAttr::HasRenderer()
bool
wxGridCellAttr::HasEditor()
wxColour*
wxGridCellAttr::GetTextColour()
CODE:
RETVAL = new wxColour( THIS->GetTextColour() );
OUTPUT:
RETVAL
wxColour*
wxGridCellAttr::GetBackgroundColour()
CODE:
RETVAL = new wxColour( THIS->GetBackgroundColour() );
OUTPUT:
RETVAL
wxGridCellEditor*
wxGridCellAttr::GetEditor( grid, row, col )
wxGrid* grid
int row
int col
CODE:
RETVAL = THIS->GetEditor( grid, row, col );
OUTPUT:
RETVAL
wxGridCellRenderer*
wxGridCellAttr::GetRenderer( grid, row, col )
wxGrid* grid
int row
int col
CODE:
RETVAL = THIS->GetRenderer( grid, row, col );
OUTPUT:
RETVAL
wxFont*
wxGridCellAttr::GetFont()
CODE:
RETVAL = new wxFont( THIS->GetFont() );
OUTPUT:
RETVAL
void
wxGridCellAttr::GetAlignment()
PREINIT:
int x, y;
PPCODE:
THIS->GetAlignment( &x, &y );
EXTEND( SP, 2 );
PUSHs( sv_2mortal( newSViv( x ) ) );
PUSHs( sv_2mortal( newSViv( y ) ) );
bool
wxGridCellAttr::IsReadOnly()
void
wxGridCellAttr::SetDefAttr( defAttr )
wxGridCellAttr* defAttr
void
wxGridCellAttr::SetEditor( editor )
wxGridCellEditor* editor
CODE:
editor->IncRef();
THIS->SetEditor( editor );
void
wxGridCellAttr::SetRenderer( renderer )
wxGridCellRenderer* renderer
CODE:
renderer->IncRef();
THIS->SetRenderer( renderer );
bool
wxGridCellAttr::GetOverflow()
void
wxGridCellAttr::SetOverflow( allow = true )
bool allow
|