Beispiel #1
0
void wxFont::SetFamily(wxFontFamily family)
{
    Unshare();

    M_FONTDATA->m_family = family;
    M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
}
Beispiel #2
0
void wxFont::SetEncoding(wxFontEncoding encoding)
{
    Unshare();

    M_FONTDATA->m_encoding = encoding;
    M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
}
Beispiel #3
0
bool wxFont::SetFaceName(const wxString& faceName)
{
    Unshare();

    return M_FONTDATA->SetFaceName(faceName) &&
           wxFontBase::SetFaceName(faceName);
}
Beispiel #4
0
void wxFont::SetWeight(wxFontWeight weight)
{
    Unshare();

    M_FONTDATA->m_weight = weight;
    M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
}
Beispiel #5
0
void wxFont::SetStyle(wxFontStyle style)
{
    Unshare();

    M_FONTDATA->m_style = style;
    M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
}
Beispiel #6
0
void wxFont::SetPointSize(int pointSize)
{
    Unshare();

    M_FONTDATA->m_pointSize = pointSize;
    M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now
}
Beispiel #7
0
void wxPen::SetCap(
  int                               nCap
)
{
    Unshare();
    M_PENDATA->m_nCap = nCap;
    RealizeResource();
} // end of wxPen::SetCap
Beispiel #8
0
void wxPen::SetJoin(
  int                               nJoin
)
{
    Unshare();
    M_PENDATA->m_nJoin = nJoin;
    RealizeResource();
} // end of wxPen::SetJoin
Beispiel #9
0
void wxPen::SetStyle(
  int                               nStyle
)
{
    Unshare();
    M_PENDATA->m_nStyle = nStyle;
    RealizeResource();
} // end of wxPen::SetStyle
Beispiel #10
0
void wxPen::SetWidth(
  int                               nWidth
)
{
    Unshare();
    M_PENDATA->m_nWidth = nWidth;
    RealizeResource();
} // end of wxPen::SetWidth
Beispiel #11
0
void wxPen::SetPS( HPS hPS )
{
    Unshare();
    if (M_PENDATA->m_hPen)
        ::GpiDestroyPS(M_PENDATA->m_hPen);
    M_PENDATA->m_hPen = hPS;
    RealizeResource();
} // end of WxWinGdi_CPen::SetPS
Beispiel #12
0
void wxBrush::SetColour(
  const wxColour&                   rColour
)
{
    Unshare();
    M_BRUSHDATA->m_vColour = rColour;
    RealizeResource();
}
Beispiel #13
0
void wxPen::SetCap(int Cap)
{
    Unshare();
    
    M_PENDATA->m_cap = Cap;
    
    RealizeResource();
}
Beispiel #14
0
void wxPen::SetWidth(int Width)
{
    Unshare();
    
    M_PENDATA->m_width = Width;
    
    RealizeResource();
}
Beispiel #15
0
void wxPen::SetColour(const wxColour& col)
{
    Unshare();
    
    M_PENDATA->m_colour = col;
    
    RealizeResource();
}
Beispiel #16
0
void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
    Unshare();
    
    M_PENDATA->m_colour.Set(r, g, b);
    
    RealizeResource();
}
Beispiel #17
0
void wxPen::SetJoin(int Join)
{
    Unshare();
    
    M_PENDATA->m_join = Join;
    
    RealizeResource();
}
Beispiel #18
0
void wxBrush::SetStyle(
  int                               nStyle
)
{
    Unshare();
    M_BRUSHDATA->m_nStyle = nStyle;
    RealizeResource();
} // end of wxBrush::SetStyle
Beispiel #19
0
void wxPen::SetStyle(int Style)
{
    Unshare();
    
    M_PENDATA->m_style = Style;
    
    RealizeResource();
}
Beispiel #20
0
void wxBrush::SetStipple(
  const wxBitmap&                   rStipple
)
{
    Unshare();
    M_BRUSHDATA->m_vStipple = rStipple;
    RealizeResource();
} // end of wxBrush::SetStipple
Beispiel #21
0
void wxPen::SetStipple(const wxBitmap& Stipple)
{
    Unshare();
    
    M_PENDATA->m_stipple = Stipple;
    M_PENDATA->m_style = wxSTIPPLE;
    
    RealizeResource();
}
Beispiel #22
0
void wxPen::SetDashes(int nb_dashes, const wxDash *Dash)
{
    Unshare();
    
    M_PENDATA->m_nbDash = nb_dashes;
    M_PENDATA->m_dash = (wxDash *)Dash;
    
    RealizeResource();
}
Beispiel #23
0
bool wxFont::SetFaceName(const wxString& faceName)
{
    Unshare();

    M_FONTDATA->m_faceName = faceName;
    M_FONTDATA->m_nativeFontInfo.GetXFontName().Clear(); // invalid now

    return wxFontBase::SetFaceName(faceName);
}
Beispiel #24
0
void wxPen::SetStipple(
  const wxBitmap&                   rStipple
)
{
    Unshare();
    M_PENDATA->m_vStipple = rStipple;
    M_PENDATA->m_nStyle = wxSTIPPLE;
    RealizeResource();
} // end of wxPen::SetStipple
Beispiel #25
0
void wxBrush::SetPS(
  HPS                               hPS
)
{
    Unshare();
    if (M_BRUSHDATA->m_hBrush)
        ::GpiDestroyPS(M_BRUSHDATA->m_hBrush);
    M_BRUSHDATA->m_hBrush = hPS;
    RealizeResource();
} // end of WxWinGdi_CPen::SetPS
Beispiel #26
0
void wxBrush::SetColour(
  unsigned char                     cRed
, unsigned char                     cGreen
, unsigned char                     cBlue
)
{
    Unshare();
    M_BRUSHDATA->m_vColour.Set( cRed
                               ,cGreen
                               ,cBlue
                              );
    RealizeResource();
} // end of wxBrush::SetColour
Beispiel #27
0
void wxFont::DoSetNativeFontInfo( const wxNativeFontInfo& info )
{
    Unshare();

    M_FONTDATA->SetNativeFontInfo( info );
}
Beispiel #28
0
void wxFont::SetUnderlined(bool underlined)
{
    Unshare();

    M_FONTDATA->SetUnderlined(underlined);
}
Beispiel #29
0
void wxFont::SetWeight(wxFontWeight weight)
{
    Unshare();

    M_FONTDATA->SetWeight(weight);
}
Beispiel #30
0
void wxFont::SetEncoding(wxFontEncoding encoding)
{
    Unshare();

    M_FONTDATA->SetEncoding(encoding);
}