Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1c0ef28f
Kaydet (Commit)
1c0ef28f
authored
Nis 07, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add logging output operators for CGPoint and CGSize
Change-Id: I04ce457f002cfc0fdf3ab741a389082614035b17
üst
a72e3ed8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
utils.h
vcl/inc/quartz/utils.h
+2
-0
utils.cxx
vcl/quartz/utils.cxx
+21
-1
No files found.
vcl/inc/quartz/utils.h
Dosyayı görüntüle @
1c0ef28f
...
...
@@ -40,6 +40,8 @@ CFStringRef CreateCFString( const OUString& );
NSString
*
CreateNSString
(
const
OUString
&
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
CGRect
&
rRect
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
CGPoint
&
rPoint
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
CGSize
&
rSize
);
#endif // INCLUDED_QUARTZ_UTILS_HXX
...
...
vcl/quartz/utils.cxx
Dosyayı görüntüle @
1c0ef28f
...
...
@@ -72,7 +72,27 @@ std::ostream &operator <<(std::ostream& s, CGRect &rRect)
#ifndef SAL_LOG_INFO
(
void
)
rRect
;
#else
s
<<
(
int
)
rRect
.
size
.
width
<<
"x"
<<
(
int
)
rRect
.
size
.
height
<<
"@("
<<
(
int
)
rRect
.
origin
.
x
<<
","
<<
(
int
)
rRect
.
origin
.
y
<<
")"
;
s
<<
rRect
.
size
<<
"@"
<<
rRect
.
origin
;
#endif
return
s
;
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
CGPoint
&
rPoint
)
{
#ifndef SAL_LOG_INFO
(
void
)
rPoint
;
#else
s
<<
"("
<<
rPoint
.
x
<<
","
<<
rPoint
.
y
<<
")"
;
#endif
return
s
;
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
CGSize
&
rSize
)
{
#ifndef SAL_LOG_INFO
(
void
)
rSize
;
#else
s
<<
rSize
.
width
<<
"x"
<<
rSize
.
height
;
#endif
return
s
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment